Lenny lvm2 fsadm resize bugs/questions
trouble daemon
troubledaemon at gmail.com
Tue Jun 22 08:44:49 UTC 2010
Debian LVM Team,
I recently noticed that lvm2 in lenny seems to still be broken with regards to
offline resizing, same as was the case in etch. In fact, I recall it only ever
working for me in potato (lvm1 wasn't it?) and has been broken ever since.
That being said, I did come across a bug report that seems to ring a bell as a
partial solution that I may have used in etch as well, that involved grabbing
the source deb and pulling out fsadm.sh and renaming it to fsadm and putting it
in the $PATH. I did try this, but it seems that it is having problems with
resizing:
# fsadm -l resize /dev/volumes/lenny 25G
fsck 1.41.3 (12-Oct-2008)
e2fsck 1.41.3 (12-Oct-2008)
/dev/mapper/volumes-lenny: clean, 43509/3686400 files,
5952526/7364608 blocks
resize2fs 1.41.3 (12-Oct-2008)
The containing partition (or device) is only 7364608 (4k) blocks.
You requested a new size of 26214400 blocks.
fsadm: Resize ext2 failed
fsadm failed: 1
I tried specifying the blocks param without a suffix as well, but it seems to
be having a problem converting units. At first glance, it appears to be that
fsadm is expecting 1k blocks but is using 4k and just needs to take it into
consideration, but I may be wrong.
Also, I ended up grabbing the lvm2 from squeeze just now as well to test the
fsadm script It also seems that the fsadm script in squeeze is broken as well.
I stumbled upon a bug report on lvm2 that suggested that a more recent version
has corrected the missing fsadm script, but since it doesn't work, I am
concerned that squeeze might ship with this broken lvm resize script and
continue this bug for yet a third release.
While trying to think what might cause this, I thought maybe it could be a bug
related to the fact that I used the stride option in mkfs with this LV to try
stagger the filesystem better across the 4 PV's that make up the VG?
Anyways, let me know if there is anything I can do to help test this bug on my
lenny box as far as patches to fsadm might go. Thanks!
PS - I liked LVM commands better when typing the command without options with
automatically display the "--help", way faster to refresh myself on the options
available. Not I have to always add the option :(
troubled
More information about the pkg-lvm-maintainers
mailing list