Extend 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.

Before you begin

  • Enough disk space.
  • The parted package is installed.

Procedure

  1. Extend RAID partitions. For more information, see Resizing a partition with parted.
  2. Extend RAID to the maximum of the partition capacity:
    # mdadm --grow --size=max /dev/md0

    To set a specific size, write the value of the --size parameter in kB, for example --size=524228.

  3. Increase the size of file system. For example, if the volume uses XFS and is mounted to /mnt/, enter:
    # xfs_growfs /mnt/