All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] No label detected
@ 2006-11-14 23:42 Richard Mollel
  2006-11-15 15:16 ` Richard Mollel
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Mollel @ 2006-11-14 23:42 UTC (permalink / raw)
  To: linux-lvm

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] No label detected
  2006-11-14 23:42 [linux-lvm] No label detected Richard Mollel
@ 2006-11-15 15:16 ` Richard Mollel
  2006-11-15 15:58   ` Alasdair G Kergon
  2006-11-15 22:28   ` SOLVED: " Richard Mollel
  0 siblings, 2 replies; 4+ messages in thread
From: Richard Mollel @ 2006-11-15 15:16 UTC (permalink / raw)
  To: LVM general discussion and development

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
--- Richard Mollel <unixtipz@yahoo.com> wrote:

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



 
____________________________________________________________________________________
Sponsored Link

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] No label detected
  2006-11-15 15:16 ` Richard Mollel
@ 2006-11-15 15:58   ` Alasdair G Kergon
  2006-11-15 22:28   ` SOLVED: " Richard Mollel
  1 sibling, 0 replies; 4+ messages in thread
From: Alasdair G Kergon @ 2006-11-15 15:58 UTC (permalink / raw)
  To: LVM general discussion and development

Wipe the partition tables if you aren't using partitions.
(Back them up first of course.)

Alasdair
-- 
agk@redhat.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* SOLVED: [linux-lvm] No label detected
  2006-11-15 15:16 ` Richard Mollel
  2006-11-15 15:58   ` Alasdair G Kergon
@ 2006-11-15 22:28   ` Richard Mollel
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Mollel @ 2006-11-15 22:28 UTC (permalink / raw)
  To: LVM general discussion and development

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.....
--- Richard Mollel <unixtipz@yahoo.com> wrote:

> 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
> --- Richard Mollel <unixtipz@yahoo.com> wrote:
> 
> > 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
> > 
> > _______________________________________________
> > 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/
> > 
> 
> 
> 
>  
>
____________________________________________________________________________________
> Sponsored Link
> 
> Mortgage rates near 39yr lows. 
> $510k for $1,698/mo. Calculate new payment! 
> www.LowerMyBills.com/lre
> 
> _______________________________________________
> 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/
> 



 
____________________________________________________________________________________
Sponsored Link

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-11-15 22:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-14 23:42 [linux-lvm] No label detected Richard Mollel
2006-11-15 15:16 ` Richard Mollel
2006-11-15 15:58   ` Alasdair G Kergon
2006-11-15 22:28   ` SOLVED: " Richard Mollel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.