vg works fine under FC3, but not FC4
My vg mounts fine under fc3, but when i installed fc4 on a new drive, I cant bring in the vg. I get errors for hdc like "Couldn't find device with uuid..." and PV unknown device (from pvscan).
I can plug back in the old boot drive and run under fc3 and things work well.
The vg consists of 1 lv and 2 pv drives configured as:
my_vg:
my_lv1:
hdc2 (ext2)
hdd (single partition as ext2)
The old hda boot disk is ext3 running FC3 and the new hda boot disk is running the dafault lvm partitions under FC4.
hdc is formatted with boot and swap on hdc1 and hdc5 - probably this was from an earlier install (although I did have these disks plugged in while installing FC4 - when the installer started asking about reformatting hdc and hdd, I powered down, unplugged these drives, and redid the install)
Any ideas to try?
- John
I had a similar problem with FC4.
lvm2-2.01 has problems.
Downgrade to lvm2-2.00 from FC3.
Richard
Quoted 21 lines · On Tue, 16 Aug 2005 [email protected] wrote:
My vg mounts fine under fc3, but when i installed fc4 on a new drive, I cant bring in the vg. I get errors for hdc like "Couldn't find device with uuid..." and PV unknown device (from pvscan).
I can plug back in the old boot drive and run under fc3 and things work well.
The vg consists of 1 lv and 2 pv drives configured as:
my_vg:
my_lv1:
hdc2 (ext2)
hdd (single partition as ext2)The old hda boot disk is ext3 running FC3 and the new hda boot disk is running the dafault lvm partitions under FC4.
hdc is formatted with boot and swap on hdc1 and hdc5 - probably this was from an earlier install (although I did have these disks plugged in while installing FC4 - when the installer started asking about reformatting hdc and hdd, I powered down, unplugged these drives, and redid the install)
Any ideas to try?
- John
Any guidance on the best way to downgrade? Yum doesnt seem to do this and I get a number of dependencies using rpm - libdevmapper.so.1.00, libdevmapper.so.1.00(base) and libreadline.so.4
Thanks, John
Richard Ray <[email protected]> wrote:
I had a similar problem with FC4.
lvm2-2.01 has problems.
Downgrade to lvm2-2.00 from FC3.
Richard
Quoted 11 lines · On Tue, 16 Aug 2005 [email protected] wrote:
My vg mounts fine under fc3, but when i installed fc4 on a new drive, I cant bring in the vg. I get errors for hdc like "Couldn't find device with uuid..." and PV unknown device (from pvscan).
I can plug back in the old boot drive and run under fc3 and things work well.
The vg consists of 1 lv and 2 pv drives configured as:
my_vg:my_lv1:
hdc2 (ext2)
hdd (single partition as ext2)
Quoted 10 lines
The old hda boot disk is ext3 running FC3 and the new hda boot disk is running the dafault lvm partitions under FC4.
hdc is formatted with boot and swap on hdc1 and hdc5 - probably this was from an earlier install (although I did have these disks plugged in while installing FC4 - when the installer started asking about reformatting hdc and hdd, I powered down, unplugged these drives, and redid the install)
Any ideas to try?
- John
_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Quoted 1 line · On Tue, Aug 16, 2005 at 12:26:00AM -0700, [email protected] wrote:
My vg mounts fine under fc3, but when i installed fc4 on a new drive, I cant bring in the vg. I get errors for hdc like "Couldn't find device with uuid..." and PV unknown device (from pvscan).
Check for a bogus partition table.
If a device (e.g. /dev/hdd) is partitioned, you can't use /dev/hdd as the PV but have to use one of its partitions instead e.g. /dev/hdd1.
If something like this happened, you need to remove the partition table.
Alasdair
Signature · 1 line
[email protected]
wget http://mirrors.kernel.org/fedora/core/3/i386/os/Fedora/RPMS/lvm2-2.00.25-1.01.i386.rpm
rpm -Uvh --nodeps --oldpackage lvm2-2.00.25-1.01.i386.rpm
Quoted 41 lines · On Tue, 16 Aug 2005 [email protected] wrote:
Any guidance on the best way to downgrade? Yum doesnt seem to do this and I get a number of dependencies using rpm - libdevmapper.so.1.00, libdevmapper.so.1.00(base) and libreadline.so.4
Thanks, John
Richard Ray <[email protected]> wrote:
I had a similar problem with FC4.
lvm2-2.01 has problems.
Downgrade to lvm2-2.00 from FC3.Richard
Quoted 11 lines · On Tue, 16 Aug 2005 [email protected] wrote:
My vg mounts fine under fc3, but when i installed fc4 on a new drive, I cant bring in the vg. I get errors for hdc like "Couldn't find device with uuid..." and PV unknown device (from pvscan).
I can plug back in the old boot drive and run under fc3 and things work well.
The vg consists of 1 lv and 2 pv drives configured as:
my_vg:my_lv1:
hdc2 (ext2)
hdd (single partition as ext2)Quoted 10 lines
The old hda boot disk is ext3 running FC3 and the new hda boot disk is running the dafault lvm partitions under FC4.
hdc is formatted with boot and swap on hdc1 and hdc5 - probably this was from an earlier install (although I did have these disks plugged in while installing FC4 - when the installer started asking about reformatting hdc and hdd, I powered down, unplugged these drives, and redid the install)
Any ideas to try?
- John
_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Thanks, I guess the right way to do this is to use fdisk to remove partitions 1 and 5, then extend the lv to cover the whole disk, then use resize2fs or ext2resize to resize the filesystem
This seems preferrable to reverting to version 2.00 and maintaining an old version
Thanks, John
Alasdair G Kergon <[email protected]> wrote:
Quoted 1 line · On Tue, Aug 16, 2005 at 12:26:00AM -0700, [email protected] wrote:
My vg mounts fine under fc3, but when i installed fc4 on a new drive, I cant bring in the vg. I get errors for hdc like "Couldn't find device with uuid..." and PV unknown device (from pvscan).
Check for a bogus partition table.
If a device (e.g. /dev/hdd) is partitioned, you can't use /dev/hdd as the PV but have to use one of its partitions instead e.g. /dev/hdd1.
If something like this happened, you need to remove the partition table.
Alasdair
Signature · 7 lines
[email protected] _______________________________________________ linux-lvm mailing list [email protected] https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
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
Thanks - I now see a post you make last year and I think this is exactly the situation Another cause of problems could be if people created a whole-disk PV
on a device that actually held a partition table - i.e. they
ignored the partition table, even though the kernel would still be using it.
From 2.00.29, lvm2 tries to detect partitioned devices and stop you using them directly as PVs unless you remove the partition table first. (i.e. if it's partitioned, only the partitions can be PVs, not the whole disk device)
I can remove the partition table, but dont I still have to do something with the sectors residing on the other partitions? If I delete the partition table, LVM would assume the entire disk is formatted the same, but there will still be sectors at the beginning and end that were left over from the boot and swap partitions.
Thanks, John
Alasdair G Kergon <[email protected]> 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
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
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
Quoted 13 lines · Alasdair G Kergon
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
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Thanks all for your help. For the benefit of others, here is the solution Alasdair and others recommended that worked. (Putting this into the how-to document would save Alasdair some time)
Situation: Drive hdc was actually partitioned with 3 partitions when I installed it in an LVM volume. LVM version 2.00.?? allowed a pvcreate on it with the partition table intact. Later versions of 2.00.?? (.13 perhaps?) do not ignore the partition table. So, it worked fine until upgrading to 2.01
Solution:
Wipe the partition table: (some recommended bs=1k and others recommended bs=512 which I tried first since it was more conservative)
dd if=/dev/zero of=/dev/hdc bs=512 count=1 blockdev --rereadpt /dev/hdc
Now, do vgscan and pvscan to confirm it worked
Then, I had to exclude the dvd drive (hdb for me) from LVM scans, adding this to /etc/lvm/lvm.conf:
filter = [ "r|/dev/hdb|","r|/dev/cdrom|",
"r|/dev/dvd|"]
Then, add the vg and mount:
vgchange -ay my_vg
mkdir /my_mount_point
mount /dev/my_vg/my_lv1 /my_mount_point
Finally, add the line in /etc/fstab for the mount
Here's links to earlier messages on the subject:
www.redhat.com/archives/linux-lvm/2005-March/msg00084.html
http://www.archivum.info/[email protected]/2004-12/msg00652.html
Quoted 160 lines · --- Antoine
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: skippingnote 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 0PV UUID
vzCHIG-WqYt-w2Kv-qGog-vK74-GEBu-svsWBmpitch:/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-d61tNspitch:/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 0PV UUID
vzCHIG-WqYt-w2Kv-qGog-vK74-GEBu-svsWBmpitch:/etc/lvm# vgs VG #PV #LV #SN Attr VSize VFree vg0 2 1 0 wz--n 168.16G 23.16Gso 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.1Quoted 1 line · Alasdair G Kergon
No - I'm suggesting you need to check if any *whole
device* PVs like hdd
Quoted 1 line
actually have partition tables on them, and if so,
remove them.
Quoted 8 lines
Alasdair
_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO athttp://tldp.org/HOWTO/LVM-HOWTO/
Quoted 4 lines
_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at
http://tldp.org/HOWTO/LVM-HOWTO/