Re: vg works fine under FC3, but not FC4

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

 



from my experience, this doesn't help, it seems that pvscan, vgscan doesn't recognize whole device as lvm capable device and then remove it from .cache (so your vg seems to disappear but if you manually put your device in .cache, it fixes everything)


see output for exemple :
pitch:/etc/lvm# pvs
 PV         VG   Fmt  Attr PSize   PFree
 /dev/hdc   vg0  lvm2 a-    19.11G 19.11G
 /dev/hdd   vg0  lvm2 a-   149.05G  4.05G
pitch:/etc/lvm#
pitch:/etc/lvm#
pitch:/etc/lvm# pvscan
 Couldn't find device with uuid 'iZzizb-LmBD-0wx1-QD3g-76aO-1zJI-d61tNs'.
 PV unknown device   VG vg0   lvm2 [149.05 GB / 4.05 GB free]
 PV /dev/hdc         VG vg0   lvm2 [19.11 GB / 19.11 GB free]
 Total: 2 [168.16 GB] / in use: 2 [168.16 GB] / in no VG: 0 [0   ]
pitch:/etc/lvm# pvs
 Couldn't find device with uuid 'iZzizb-LmBD-0wx1-QD3g-76aO-1zJI-d61tNs'.
 Couldn't find device with uuid 'iZzizb-LmBD-0wx1-QD3g-76aO-1zJI-d61tNs'.
 Couldn't find all physical volumes for volume group vg0.
 Can't read vg0: skipping
 Couldn't find device with uuid 'iZzizb-LmBD-0wx1-QD3g-76aO-1zJI-d61tNs'.
 Couldn't find all physical volumes for volume group vg0.
 Can't read vg0: skipping

note that it doesn't happen on both disks, but they were set up identically.

see also this output, pvdisplay on the faulty device seems to fix it :
pitch:/etc/lvm# vgdisplay
 Couldn't find device with uuid 'iZzizb-LmBD-0wx1-QD3g-76aO-1zJI-d61tNs'.
 Couldn't find all physical volumes for volume group vg0.
 Volume group "vg0" doesn't exist
pitch:/etc/lvm# pvdisplay
 Couldn't find device with uuid 'iZzizb-LmBD-0wx1-QD3g-76aO-1zJI-d61tNs'.
 --- Physical volume ---
 PV Name               unknown device
 VG Name               vg0
PV Size 149.05 GB / not usable 0 Allocatable yes
 PE Size (KByte)       4096
 Total PE              38156
 Free PE               1036
 Allocated PE          37120
 PV UUID               iZzizb-LmBD-0wx1-QD3g-76aO-1zJI-d61tNs
--- Physical volume ---
 PV Name               /dev/hdc
 VG Name               vg0
PV Size 19.11 GB / not usable 0 Allocatable yes
 PE Size (KByte)       4096
 Total PE              4892
 Free PE               4892
 Allocated PE          0
 PV UUID               vzCHIG-WqYt-w2Kv-qGog-vK74-GEBu-svsWBm
pitch:/etc/lvm# pvdisplay /dev/hdd
 --- Physical volume ---
 PV Name               /dev/hdd
 VG Name               vg0
PV Size 149.05 GB / not usable 0 Allocatable yes
 PE Size (KByte)       4096
 Total PE              38156
 Free PE               1036
 Allocated PE          37120
 PV UUID               iZzizb-LmBD-0wx1-QD3g-76aO-1zJI-d61tNs
pitch:/etc/lvm#
pitch:/etc/lvm# pvdisplay
 --- Physical volume ---
 PV Name               /dev/hdd
 VG Name               vg0
PV Size 149.05 GB / not usable 0 Allocatable yes
 PE Size (KByte)       4096
 Total PE              38156
 Free PE               1036
 Allocated PE          37120
 PV UUID               iZzizb-LmBD-0wx1-QD3g-76aO-1zJI-d61tNs
--- Physical volume ---
 PV Name               /dev/hdc
 VG Name               vg0
PV Size 19.11 GB / not usable 0 Allocatable yes
 PE Size (KByte)       4096
 Total PE              4892
 Free PE               4892
 Allocated PE          0
 PV UUID               vzCHIG-WqYt-w2Kv-qGog-vK74-GEBu-svsWBm
pitch:/etc/lvm# vgs
 VG   #PV #LV #SN Attr  VSize   VFree
 vg0    2   1   0 wz--n 168.16G 23.16G

so for me at least, the best practice for now is to set a partition on the whole disk (hdd1) set its type '8e' and use it instead of the whole device. I didnt have any problem working like this.

fyi: debian sarge with :
pitch:~# vgscan --version
 LVM version:     2.01.04 (2005-02-09)
 Library version: 1.01.00-ioctl (2005-01-17)
 Driver version:  4.1.1

Alasdair G Kergon wrote:

No - I'm suggesting you need to check if any *whole device* PVs like hdd actually have partition tables on them, and if so, remove them.

Alasdair

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/



_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux