Bug#326853: lvm2: Impossible resizing LVs after using vgextend
Robert Alexander
bob at ngi.it
Tue Sep 6 08:10:11 UTC 2005
Package: lvm2
Version: 2.01.12-2
Severity: important
Dear friends,
first of all thank you for your work supporting all of us Debian addicts.
My initial VG (vg1) was mapped onto my /dev/hda8 partition which resided
on my /dev/hda3 extended partition.
After some resizing and moving of the partitions I created a NEW
/dev/hda7 PV and used vgextend to assign it to my vg1 volume group.
The "old" PV now lives on the /dev/hda8 partition.
After this I tried extending my /dev/vg1/lvusr filesystem but got the
following errors:
lvextend -L+400M /dev/vg1/lvusr
Extending logical volume lvusr to 3.09GB
Inconsistent length 66 71
PV segment pe_alloc_count mismatch: 1436 != 1520
PV segment VG free_count mismatch: 1570 != 1486
Internal error: PV segments corrupted in vg1
Luckily the LV are still usable and only resizing looks to have problems.
Here follows some more debugging information:
bob at t40:~$ uname -a
Linux t40 2.6.11.4T40237392G-RJA #1 Mon Mar 28 19:36:30 CEST 2005 i686
GNU/Linux
t40:/home/bob# pvdisplay
--- Physical volume ---
PV Name /dev/hda9
VG Name vg1
PV Size 6.77 GB / not usable 0
Allocatable yes
PE Size (KByte) 4096
Total PE 1733
Free PE 313
Allocated PE 1420
PV UUID CSxEXj-LPQv-VAlv-gTxv-zLfa-2dZ4-MGN7T1
--- Physical volume ---
PV Name /dev/hda8
VG Name vg1
PV Size 4.97 GB / not usable 0
Allocatable yes
PE Size (KByte) 4096
Total PE 1273
Free PE 1273
Allocated PE 0
PV UUID FmDlz8-gBJ6-oH5X-Cg26-ZDdm-pTSh-obtzqG
t40:/home/bob# vgdisplay
--- Volume group ---
VG Name vg1
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 19
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 5
Open LV 5
Max PV 0
Cur PV 2
Act PV 2
VG Size 11.74 GB
PE Size 4.00 MB
Total PE 3006
Alloc PE / Size 1420 / 5.55 GB
Free PE / Size 1586 / 6.20 GB
VG UUID sLbPHD-Fxe8-sMkh-pMk8-dvgK-2c8K-DKCEt8
t40:/home/bob# lvdisplay /dev/vg1/lvusr
--- Logical volume ---
LV Name /dev/vg1/lvusr
VG Name vg1
LV UUID PeGQ6L-dqE6-KH7G-ErcU-pzAD-A6JM-ZEHM6x
LV Write Access read/write
LV Status available
# open 1
LV Size 2.70 GB
Current LE 690
Segments 2
Allocation inherit
Read ahead sectors 0
Block device 254:1
bob at t40:~$ sudo lvm version
LVM version: 2.01.12 (2005-06-14)
Library version: 1.01.03 (2005-06-13)
Driver version: 4.4.0
fdisk -l /dev/hda
Disk /dev/hda: 80.0 GB, 80026361856 bytes
240 heads, 63 sectors/track, 10337 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 3373 25499848+ 7 HPFS/NTFS
/dev/hda3 3374 9914 49449960 f W95 Ext'd (LBA)
/dev/hda5 3374 8132 35978008+ b W95 FAT32
/dev/hda6 8133 8268 1028128+ 82 Linux swap /
Solaris
/dev/hda7 * 8269 8285 128488+ 83 Linux
/dev/hda8 8286 8975 5216368+ 8e Linux LVM
/dev/hda9 8976 9914 7098808+ 8e Linux LVM
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11.4T40237392G-RJA
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Versions of packages lvm2 depends on:
ii debconf 1.4.51 Debian configuration management sy
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii libdevmapper1.01 2:1.01.03-1 The Linux Kernel Device Mapper use
ii lvm-common 1.5.19 The Logical Volume Manager for Lin
lvm2 recommends no packages.
-- debconf information:
lvm2/snapshots:
More information about the pkg-lvm-maintainers
mailing list