Welcome! Log In Create A New Profile

Advanced

Cant resize Raid 5 bigger than 16TB (solved)

Posted by Fotex 
Cant resize Raid 5 bigger than 16TB (solved)
July 12, 2017 01:18PM
Hey folks I hope someone can help me with this.

I have been trying to grow an existing raid5.
The raid was 3 x 6TB disks and I added another 6tb disk, growing went fine and setting mdadm devices= 4 went fine.
When trying to resize md1 it complains about the size of the raid.
So I downloaded and installed e2fsprogs-1.43.4.
(https://askubuntu.com/questions/779754/how-do-i-resize-an-ext4-partition-beyond-the-16tb-limit)
However I can't resize it when the system is running from the array.

Then I made an ubuntu usb and booted up from ram, now Im not sure what to do next, fdisk -l does not show md0 and md1.
I dont know how to mount them when they are not listed in /dev/
What do you think, would it be better to just start from scratch and add a ssd disk for the filesystem or what can I do?

***EDIT***
Okay, I downloaded and installed mdadm.
Then did:
#mdadm --assemble --scan
Now md1 and md0 is showing, so far so good.

After following the guide at
(https://askubuntu.com/questions/779754/how-do-i-resize-an-ext4-partition-beyond-the-16tb-limit)

its now working.

ubuntu@ubuntu:~/e2fsprogs/resize$ sudo e2fsck -fn /dev/md1
e2fsck 1.42.13 (17-May-2015)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/md1: 1243841/549093376 files (0.2% non-contiguous), 2584103250/4392721152 blocks

ubuntu@ubuntu:~/e2fsprogs/resize$ sudo e2fsck -f /dev/md1
e2fsck 1.42.13 (17-May-2015)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/md1: 1243841/366063616 files (0.2% non-contiguous), 2572546718/2928480512 blocks
ubuntu@ubuntu:~/e2fsprogs/resize$ sudo ./resize2fs -b /dev/md1
resize2fs 1.43 (17-May-2016)
Converting the filesystem to 64-bit.
The filesystem on /dev/md1 is now 2928480512 (4k) blocks long.

ubuntu@ubuntu:~/e2fsprogs/resize$ sudo ./resize2fs -p /dev/md1
resize2fs 1.43 (17-May-2016)
Resizing the filesystem on /dev/md1 to 4392721152 (4k) blocks.
Begin pass 2 (max = 7433)
Relocating blocks XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Begin pass 3 (max = 89371)
Scanning inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Begin pass 5 (max = 3)
Moving inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The filesystem on /dev/md1 is now 4392721152 (4k) blocks long.

Disk /dev/md1: 16.4 TiB, 17992585838592 bytes, 35141769216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 524288 bytes / 1572864 bytes

Disk /dev/sda: 5.5 TiB, 6001175126016 bytes, 11721045168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: BB4721D2-D72F-4DA4-A36D-55DCF146E9D6

Device Start End Sectors Size Type
/dev/sda1 2048 999423 997376 487M BIOS boot
/dev/sda2 999424 6858751 5859328 2.8G Linux RAID
/dev/sda3 6858752 11721043967 11714185216 5.5T Linux RAID


Disk /dev/sdb: 5.5 TiB, 6001175126016 bytes, 11721045168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 79DE32E9-1E69-42DA-BFA7-24A299FC1454

Device Start End Sectors Size Type
/dev/sdb1 2048 999423 997376 487M BIOS boot
/dev/sdb2 999424 6858751 5859328 2.8G Linux RAID
/dev/sdb3 6858752 11721043967 11714185216 5.5T Linux RAID


Disk /dev/sdc: 5.5 TiB, 6001175126016 bytes, 11721045168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 4602F2BA-B6DA-45A6-9341-F844EEE68DCC

Device Start End Sectors Size Type
/dev/sdc1 2048 999423 997376 487M BIOS boot
/dev/sdc2 999424 6858751 5859328 2.8G Linux RAID
/dev/sdc3 6858752 11721043967 11714185216 5.5T Linux RAID


Disk /dev/sdd: 5.5 TiB, 6001175126016 bytes, 11721045168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: BB4721D2-D72F-4DA4-A36D-55DCF146E9D6

Device Start End Sectors Size Type
/dev/sdd1 2048 999423 997376 487M BIOS boot
/dev/sdd2 999424 6858751 5859328 2.8G Linux RAID
/dev/sdd3 6858752 11721043967 11714185216 5.5T Linux RAID



Edited 2 time(s). Last edit at 07/12/2017 03:39PM by Fotex.
Re: Cant resize Raid 5 bigger than 16TB (solved)
July 14, 2017 06:04AM
well done!

a problem reported and a solution posted. Thankyou
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: