Bug#669682: lvm2: failed to do fsck on ext3 after shrinking the lvm device

bowen li bwlee.sky at gmail.com
Sat Apr 21 01:50:36 UTC 2012

Package: lvm2
Version: 2.02.66-5
Severity: normal

When I tried to shrink /home and wanted to reuse some space on /root, I tried
lvresize, then fsck -f.  lvresize seemed succeed, but the next step failed.

Then I cannot get the filesystem resized, and need to mount /home manually when
reboot the machine.

below is info after above actions, it seems lvm size not changed, and the size
of lvm not exactly equals size of file system.

bwlee at imrunning:~/flow$ sudo lvs
  LV     VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert
  home   imrunning -wi-ao 139.75g
  root   imrunning -wi-ao   6.52g
  swap_1 imrunning -wi-ao   2.53g
bwlee at imrunning:~/flow$ df -h
Filesystem            Size  Used Avail Use% Mounted on
                      6.5G  6.1G   63M  99% /
tmpfs                 1.5G     0  1.5G   0% /lib/init/rw
udev                  1.5G  252K  1.5G   1% /dev
tmpfs                 1.5G     0  1.5G   0% /dev/shm
                      138G  101G   31G  77% /home
/dev/sda1             228M   17M  199M   8% /boot

-- System Information:
Debian Release: 6.0.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lvm2 depends on:
ii  dmsetup                 2:1.02.48-5      The Linux Kernel Device Mapper use
ii  libc6                   2.11.3-3         Embedded GNU C Library: Shared lib
ii  libdevmapper1.02.1      2:1.02.48-5      The Linux Kernel Device Mapper use
ii  libreadline5            5.2-7            GNU readline and history libraries
ii  libudev0                164-3            libudev shared library
ii  lsb-base                3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip

lvm2 recommends no packages.

lvm2 suggests no packages.

-- no debconf information

More information about the pkg-lvm-maintainers mailing list