[linux-lvm] Can't reduce lvm2 volume. I get "Volume group mapper doesn't exist"
Marcus Claesson
m.claesson at student.ucc.ie
Fri May 12 16:18:48 UTC 2006
Hi!
I have a problem reducing a logical volume and I'm sure it's just some
silly error, but I can't get my head around it.
I've got lvm2-2.02.01-1.3.RHEL4 installed on kernel-2.6.9-34.ELsmp.
This is what I got mounted:
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p2 49G 20G 27G 42% /
/dev/cciss/c0d0p1 99M 9.8M 84M 11% /boot
/dev/mapper/Volume00-LogVol00
97G 84G 8.1G 92% /home
none 2.9G 0 2.9G 0% /dev/shm
/dev/mapper/Volume00-LogVol02
97G 11G 81G 12% /usr/local
/dev/mapper/Volume00-LogVol01
97G 84G 8.3G 91% /var
I want to shrink /dev/mapper/Volume00-LogVol02 from 97G to 20G, and this
is what I tried.
# umount /dev/mapper/Volume00-LogVol02
# e2fsck -f /dev/mapper/Volume00-LogVol02
e2fsck 1.35 (28-Feb-2004)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/mapper/Volume00-LogVol02: 56614/12812288 files (1.5% non-
contiguous), 3099826/25600000 blocks
# resize2fs -p /dev/mapper/Volume00-LogVol02 20G
resize2fs 1.35 (28-Feb-2004)
Resizing the filesystem on /dev/mapper/Volume00-LogVol02 to 5242880 (4k)
blocks.
Begin pass 2 (max = 1787074)
Relocating blocks XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Begin pass 3 (max = 782)
Scanning inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Begin pass 4 (max = 2690)
Updating inode references XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXThe
filesystem on /dev/mapper/Volume00-LogVol02 is now 5242880 blocks long.
But here I get error messages:
# lvreduce -L 20G -v /dev/mapper/Volume00-LogVol02
Finding volume group mapper
Wiping cache of LVM-capable devices
Volume group mapper doesn't exist
I also tried:
# lvresize -L 20G -v /dev/mapper/Volume00-LogVol02
Finding volume group mapper
Wiping cache of LVM-capable devices
Volume group mapper doesn't exist
I then mounted the device again and saw it was 20G big. But no more
extra size had been added to the volume group...
What am I doing wrong???
Really appreciate any help!
Regards,
Marcus
More information about the linux-lvm
mailing list