16.15. Extending RAID
You can extend a RAID by using the --grow option of the mdadm utility. For more information, see the mdadm(8)` man page on your system.
Prerequisites
- Enough disk space.
-
The
partedpackage is installed.
Procedure
- Extend RAID partitions. For more information, see Resizing a partition with parted.
Extend RAID to the maximum of the partition capacity:
# mdadm --grow --size=max /dev/md0To set a specific size, write the value of the
--sizeparameter in kB, for example--size=524228.Increase the size of file system. For example, if the volume uses XFS and is mounted to /mnt/, enter:
# xfs_growfs /mnt/