16.16. Shrinking RAID
You can shrink RAID by using the --grow option of the mdadm utility. For more information, see the mdadm(8) man page on your system.
重要
The XFS file system does not support shrinking.
Prerequisites
-
The
partedpackage is installed.
Procedure
- Shrink the file system. For more information, see Managing file systems.
Decrease the RAID to the size, for example to 512 MB:
# mdadm --grow --size=524228 /dev/md0Write the
--sizeparameter in kB.- Shrink the partition to the size you need.