[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[linux-lvm] Misbehaving physical volume



Hi,

I have a 8-disk RAID 0 device with 6 partitions and managed under LVM 1.0.3 
(RH8, kernel 2.4.18-27.8.0smp):

Disk /dev/sda: 255 heads, 63 sectors, 218789 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1   *         1     36449 292776561   8e  Linux LVM
/dev/sda2         36450     72898 292776592+  8e  Linux LVM
/dev/sda3         72899    109347 292776592+  8e  Linux LVM
/dev/sda4        109348    218789 879092865    5  Extended
/dev/sda5        109348    145796 292776561   8e  Linux LVM
/dev/sda6        145797    182245 292776561   8e  Linux LVM
/dev/sda7        182246    207245 200812468+  8e  Linux LVM

The following physical volumes are reported by pvscan:

# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE   PV "/dev/sda1" of VG "vgt9"    [279.21 GB / 0 free]
pvscan -- ACTIVE   PV "/dev/sda2" of VG "vgt10"   [279.21 GB / 11.98 GB free]
pvscan -- ACTIVE   PV "/dev/sda3" of VG "vgt9"    [279.21 GB / 105.57 GB free]
pvscan -- inactive PV "/dev/sda5" of VG "vgt9"    [279.21 GB / 279.21 GB free]
pvscan -- ACTIVE   PV "/dev/sda6" of VG "vgBulyk" [279.19 GB / 0 free]
pvscan -- ACTIVE   PV "/dev/sda7" of VG "vgBulyk" [191.48 GB / 688 MB free]
pvscan -- total: 6 [1.55 TB] / in use: 6 [1.55 TB] / in no VG: 0 [0]

This setup I inherited from the previous sysadmin, so I don't know the history 
details, but I assumed /dev/sda5 was never used. Now I want to add it to vgt9 
volume group or move it to vgt10 one. This does not work:

# vgextend -v vgt9 /dev/sda5
vgextend -- locking logical volume manager
vgextend -- checking volume group name "vgt9"
vgextend -- checking volume group "vgt9" existence
vgextend -- checking for inactivity of volume group
vgextend -- reading data of volume group "vgt9" from lvmtab
vgextend -- INFO: maximum logical volume size is 255.99 Gigabyte
vgextend -- reading data for all physical volumes from disk(s)
vgextend -- extending VGDA structures of volume group "vgt9"
vgextend -- ERROR: "/dev/sda5" is not a new physical volume

# vgreduce vgt9 /dev/sda5
vgreduce -- physical volume "/dev/sda5" doesn't belong to volume group "vgt9"

# vgextend vgt10 /dev/sda5
vgextend -- INFO: maximum logical volume size is 255.99 Gigabyte
vgextend -- ERROR: "/dev/sda5" is not a new physical volume

However:

# pvdisplay /dev/sda5
--- Physical volume ---
PV Name               /dev/sda5
VG Name               vgt9
PV Size               279.21 GB [585553122 secs] / NOT usable 4.44 MB [LVM: 
407 KB]
PV#                   3
PV Status             NOT available
Allocatable           yes
Cur LV                0
PE Size (KByte)       4096
Total PE              71477
Free PE               71477
Allocated PE          0
PV UUID               YXRHyO-Ykl0-t7v1-iesS-WjJs-EadK-XRYQQY

Am I doing something wrong? What else to try?

Thanks,
Ivan


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]