Skip to contentSkip to conversation

No label detected

linux-lvm Richard Mollel 2 participants 4 messages Nov 14, 2006 – Nov 15, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

Mandriva 2006.0
Kernel 2.6.12-24
lvm2-2.01.09-1mdk

LVM installed on whole devices, /dev/sdb, sdc and sdd. It has worked for over 2 years. Not sure if something in Mandriva regular update changed anything related....but now, upon reboot, the whole devices are seen as PV's. I have to run losetup (set them up as loop devices basically) then vgscan,pvscan,lvmdiskscan can see them, and i can mount my VG. What actually controls pvscan/vgscan commands?

/dev/sdb1: No label detected
/dev/sdc1: No label detected
/dev/sdd1: No label detected
Locking /var/lock/lvm/V_ASSIM_VG RB
Finding volume group "ASSIM_VG"
/dev/loop0: lvm2 label detected
/dev/loop1: lvm2 label detected
/dev/loop2: lvm2 label detected

_Thanks

Richard

____________________________________________________________________________________
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com

#1 lore raw

I have an idea of what is going on...but no really how to correct it once and for all.
The PV, VG, LV were created under Mandrake 10.0, in the days of LVM1. Then an upgrade install was done, to take it to Mandriva 2006.0, and thus the LVM1 was converted to LVM2 in the process.
When i first created the LVM devices...i used whole device, sdb,sdc & sdd...even though there were partitions sdb1, sdc1 and sdd1 which comprise of whole disk. LVM1 it seems did not have an issue. Since i was adding disks, i believe it is the first time that i actually ran pvscan....which effectively dumped /etc/lvm/.cache and created a new one. Under new one, since sdb1,sdc1 &sdd1 were of type LVM...it saw those, but not sdb, sdc and sdd.....which it says are unknown devices.
Is there any way to correct it "online"...ie. without moving all data out, wipe out all info, rebuild the PVs, VG & LV?
As a backup plan, i am mounting the whole devices, sdb, sdc & sdd as loop device using losetup...and that seems to work...though it is manual process....

_thanks

Rick

Quoted 28 lines · --- Richard Mollel

Hi,

Mandriva 2006.0
Kernel 2.6.12-24
lvm2-2.01.09-1mdk

LVM installed on whole devices, /dev/sdb, sdc and sdd.
It has worked for over 2 years. Not sure if something
in Mandriva regular update changed anything related....but now, upon reboot, the whole devices are
seen as PV's. I have to run losetup (set them up as loop devices basically) then vgscan,pvscan,lvmdiskscan
can see them, and i can mount my VG. What actually controls pvscan/vgscan commands?

/dev/sdb1: No label detected
/dev/sdc1: No label detected
/dev/sdd1: No label detected
Locking /var/lock/lvm/V_ASSIM_VG RB
Finding volume group "ASSIM_VG"
/dev/loop0: lvm2 label detected
/dev/loop1: lvm2 label detected
/dev/loop2: lvm2 label detected

Quoted 7 lines

_Thanks

Richard

____________________________________________________________________________________

Quoted 5 lines

Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call
rates.
http://voice.yahoo.com

Quoted 7 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/

____________________________________________________________________________________
Sponsored Link

Mortgage rates near 39yr lows.
$510k for $1,698/mo. Calculate new payment! www.LowerMyBills.com/lre

#3 lore raw

SOLVED: [linux-lvm] No label detected

In reply to Richard Mollel

OK....so i backed up all data on one partition... vgchange -a n
fdisk /dev/sdb, /dev/sdc and /dev/sdd
delete the partition within...
ie. delete /dev/sdb1, /dev/sdc1 and /dev/sdd1 then;
pvscan .....Voila...all my PV's are back to life.... vgscan, vgchange -a y, mount! It all worked. No data loss......
So i did not my backup after all.

Lessons:
Even though everything worked OK under LVM1....when i performed a pvscan under LVM2.....it did not like the fact that PV is whole device (/dev/sdb) and there is an underlying partition, (/dev/sdb1).

My issue, mystery solved.....

Quoted 48 lines · --- Richard Mollel

I have an idea of what is going on...but no really how
to correct it once and for all.
The PV, VG, LV were created under Mandrake 10.0, in the days of LVM1. Then an upgrade install was done, to
take it to Mandriva 2006.0, and thus the LVM1 was converted to LVM2 in the process.
When i first created the LVM devices...i used whole device, sdb,sdc & sdd...even though there were partitions sdb1, sdc1 and sdd1 which comprise of whole
disk. LVM1 it seems did not have an issue. Since i was adding disks, i believe it is the first time that i actually ran pvscan....which effectively dumped /etc/lvm/.cache and created a new one. Under new one, since sdb1,sdc1 &sdd1 were of type LVM...it saw those, but not sdb, sdc and sdd.....which
it says are unknown devices.
Is there any way to correct it "online"...ie. without
moving all data out, wipe out all info, rebuild the PVs, VG & LV?
As a backup plan, i am mounting the whole devices, sdb, sdc & sdd as loop device using losetup...and that
seems to work...though it is manual process....

_thanks

Rick

Quoted 6 lines · --- Richard Mollel

Hi,

Mandriva 2006.0
Kernel 2.6.12-24
lvm2-2.01.09-1mdk

Quoted 8 lines

LVM installed on whole devices, /dev/sdb, sdc and sdd.
It has worked for over 2 years. Not sure if something
in Mandriva regular update changed anything related....but now, upon reboot, the whole devices are
seen as PV's. I have to run losetup (set them up

Quoted 23 lines

as

Quoted 21 lines

loop devices basically) then vgscan,pvscan,lvmdiskscan
can see them, and i can mount my VG. What actually controls pvscan/vgscan commands?

/dev/sdb1: No label detected
/dev/sdc1: No label detected
/dev/sdd1: No label detected
Locking /var/lock/lvm/V_ASSIM_VG RB
Finding volume group "ASSIM_VG"
/dev/loop0: lvm2 label detected
/dev/loop1: lvm2 label detected
/dev/loop2: lvm2 label detected

_Thanks

Richard

____________________________________________________________________________________

Quoted 5 lines
Quoted 5 lines

Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call
rates.
http://voice.yahoo.com

Quoted 12 lines
Quoted 7 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/

____________________________________________________________________________________

Quoted 6 lines

Sponsored Link

Mortgage rates near 39yr lows.
$510k for $1,698/mo. Calculate new payment! www.LowerMyBills.com/lre

Quoted 7 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/

____________________________________________________________________________________
Sponsored Link

Mortgage rates near 39yr lows.
$510k for $1,698/mo. Calculate new payment! www.LowerMyBills.com/lre