Just an FYI, using the resize= option in mkfs.ext4 was not intuitive.
Sometimes the number of GDT blocks reserved was smaller when specifying
a larger resize= number.

Instead we created an LV that was 1/1,000th our estimated maximum,
created a filesystem on it with mkfs.ext4, and then resized it to the
minimum.  Here's a sample script using the loopback device:

dd if=/dev/zero of=ext4.img bs=1M count=10000
dev=$(losetup -vf ext4.img| cut -d" " -f4)
mkfs.ext4 ${dev}
tune2fs -l ${dev} | grep -i gdt
resize2fs -M ${dev}
tune2fs -l ${dev} | grep -i gdt

Regards,
- Robert

-- 
cannot resize ext4 once GDT blocks exhausted
https://bugs.launchpad.net/bugs/656115
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to