Package: e2fsprogs
Version: 1.41.12-2
Severity: minor
If I try to shrink a mounted file system, resize2fs tells me:
sascha.si...@twin:~$ df -h /var
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/twin_vg-squeeze--var
26G 2.4G 22G 10% /var
sascha.si...@twin:~$ sudo resize2fs /dev/twin_vg/squeeze-var 18G
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/twin_vg/squeeze-var is mounted on /var; on-line resizing
required
On-line shrinking from 6815744 to 4718592 not supported.
sascha.si...@twin:~$
This first made me believe that online shrinking is supported, but for
some reason not working for the sizes I tried. Only after some research
and careful reading of resize2fs(8) it was clear that resize2fs doesn't
support online shrinking at all, not matter what size is passed.
A better error message would be:
On-line shrinking is not supported.
Or if you'd like to keep the numbers:
On-line shrinking is not supported (current size: 6815744, target size:
4718592).
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages e2fsprogs depends on:
ii e2fslibs 1.41.12-2 ext2/ext3/ext4 file system librari
ii libblkid1 2.17.2-3.2 block device id library
ii libc6 2.11.2-6 Embedded GNU C Library: Shared lib
ii libcomerr2 1.41.12-2 common error description library
ii libss2 1.41.12-2 command-line interface parsing lib
ii libuuid1 2.17.2-3.2 Universally Unique ID library
ii util-linux 2.17.2-3.2 Miscellaneous system utilities
e2fsprogs recommends no packages.
Versions of packages e2fsprogs suggests:
pn e2fsck-static <none> (no description available)
pn gpart <none> (no description available)
pn parted <none> (no description available)
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]