Resize AWS EBS raid0

by Scott Robinson   Last Updated May 14, 2018 15:00 PM

I've got an AWS raid0 array that I'm struggling to resize.

The underlying EBS volumes have been increased in size, but I'm not able to re-size the array to resize the FS.

I've tried using mdadm and various different versions of the below command but keep failing.

user@ip-10-38-130-115:~$ sudo mdadm --grow /dev/md0 --size=max
mdadm: Cannot set device size in this type of array.

user@ip-10-38-130-115:~$ sudo mdadm --detail /dev/md0
/dev/md0:
        Version : 1.2
  Creation Time : Tue Apr 10 21:41:28 2018
     Raid Level : raid0
     Array Size : 1572470784 (1499.63 GiB 1610.21 GB)
   Raid Devices : 3
  Total Devices : 3
    Persistence : Superblock is persistent

    Update Time : Tue Apr 10 21:41:28 2018
          State : clean
 Active Devices : 3
Working Devices : 3
 Failed Devices : 0
  Spare Devices : 0

     Chunk Size : 512K

           Name : ip-172-31-27-17:inSITE_RAID
           UUID : f149a8f2:018c43cf:60af7e73:4ba8d589
         Events : 0

    Number   Major   Minor   RaidDevice State
       0     202       16        0      active sync   /dev/xvdb
       1     202       32        1      active sync   /dev/xvdc
       2     202       48        2      active sync   /dev/xvdd

user@ip-10-38-130-115:~$ sudo fdisk -l
Disk /dev/xvdd: 3.5 TiB, 3865470566400 bytes, 7549747200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/xvdb: 3.5 TiB, 3865470566400 bytes, 7549747200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/xvdc: 3.5 TiB, 3865470566400 bytes, 7549747200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/md0: 1.5 TiB, 1610210082816 bytes, 3144941568 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 524288 bytes / 1572864 bytes


Related Questions





Linux RAID1 Software - grub resync after fail

Updated April 03, 2015 08:00 AM