resize2fs giving weird results
Posted: 19 Oct 2009, 21:14
Hi,
I am resizing the main lv and filesystem so I can create an encrypted partition on my Bubba Two using DM-Crypt and LUKS.
What's weird is if, for example, I resize /dev/mapper/bubba-storage to 807G, upon remounting df -h tells me the filesystem is only 795G in size. I've tried a few different sizes and also tried entering the target size in megabytes (using M instead of G) but each time it gets resized to something different to my chosen value. I did try entering the size in blocks instead and although it got resized to the right number of blocks it was still reported by df -h as the wrong value in GB. Both df and resize2fs use base 2 values for GB by default so I'm at a loss to explain this.
Google's turned up nothing, however I've not used resize2fs a great deal so it might be obvious and expected behaviour.
Anyone?
TIA.
I am resizing the main lv and filesystem so I can create an encrypted partition on my Bubba Two using DM-Crypt and LUKS.
What's weird is if, for example, I resize /dev/mapper/bubba-storage to 807G, upon remounting df -h tells me the filesystem is only 795G in size. I've tried a few different sizes and also tried entering the target size in megabytes (using M instead of G) but each time it gets resized to something different to my chosen value. I did try entering the size in blocks instead and although it got resized to the right number of blocks it was still reported by df -h as the wrong value in GB. Both df and resize2fs use base 2 values for GB by default so I'm at a loss to explain this.
Google's turned up nothing, however I've not used resize2fs a great deal so it might be obvious and expected behaviour.
Anyone?
TIA.