Skip to contentSkip to conversation

LVM bug

linux-lvm Rich Turner 2 participants 3 messages Jan 14, 2003 – Jan 15, 2003

lore
Share & tools
lore
#0 lore raw

The following is a situation where LVM fails.

Previously, I installed a system and created a physical volume on an entire disk. I am now re-installing the system and have created a physical volume on a partition on the same disk. The partition was created with sfdisk. I am able to create volume groups and logical volumes with no problem.

The problem arises after a reboot of the system. vgscan fails to find any volume groups. pvscan finds physical volumes on both the disk and the partition. It appears LVM fails when creating a physical volume on a partition of a disk when there was previously a physical volume on the same entire disk.

Using LVM 1.0.1

Rich Turner
Storix Software

#1 lore raw

-- Rich Turner <[email protected]>

Quoted 8 lines

The following is a situation where LVM fails.

Previously, I installed a system and created a physical volume on an entire disk. I am now re-installing the system and have created a physical volume on a partition on the same disk. The partition was created with sfdisk. I am able to create volume groups and logical volumes with no problem.

Quoted 7 lines

The problem arises after a reboot of the system. vgscan fails to find any volume groups. pvscan finds physical volumes on both the disk and the partition. It appears LVM fails when creating a physical volume on a partition of a disk when there was previously a physical volume on the same entire disk.

Using LVM 1.0.1

(1) 1.0.1 is pretty badly out of date; suggest updating to 1.0.6 or 2.X.

(2) Running pvcreate on a full device (e.g., /dev/hda) then again on /dev/hdaX will end up overwriting a portion of the contents in your first PV with the second one. LVM did exactly what you wanted it to. How is the a bug.

--
Steven Lembark 2930 W. Palmer
Workhorse Computing Chicago, IL 60647

                                           +1 773 252 1080
#2 lore raw
Quoted 18 lines · Steven Lembark

-- Rich Turner <[email protected]>

Quoted 14 lines

The following is a situation where LVM fails.

Previously, I installed a system and created a physical volume on an entire disk. I am now re-installing the system and have created a physical volume on a partition on the same disk. The partition was created with sfdisk. I am able to create volume groups and logical volumes with no problem.

The problem arises after a reboot of the system. vgscan fails to find any volume groups. pvscan finds physical volumes on both the disk and the partition. It appears LVM fails when creating a physical volume on a partition of a disk when there was previously a physical volume on the same entire disk.

Quoted 4 lines
Quoted 1 line

Using LVM 1.0.1

(1) 1.0.1 is pretty badly out of date; suggest updating to

    1.0.6 or 2.X.

I will upgrade to 1.0.6 and see if there are any changes

Quoted 5 lines

(2) Running pvcreate on a full device (e.g., /dev/hda) then again on /dev/hdaX will end up overwriting a portion of the contents in your first PV with the second one. LVM did exactly what you wanted it to. How is the a bug.

LVM did not do what I wanted, it failed. On a new install it still see's a full device physical volume from a previous install. My new install has only one physical volume on a partition. It fails because vgscan can not find any volume groups because pvscan is looking for the now non-existent physical volume on the entire disk.

Quoted 15 lines

--
Steven Lembark 2930 W. Palmer
Workhorse Computing Chicago, IL 60647

                                            +1 773 252 1080

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/