linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] vg not intact after other disks are exchanged
@ 2005-12-30 18:18 Thomas Krichel
  2005-12-31 14:42 ` Thomas Krichel
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Krichel @ 2005-12-30 18:18 UTC (permalink / raw)
  To: Linux LVM


  hi LVM gurus!

  I have a Dell computer with a scsi (mounted as root), and
  four ide disks hda to hdd. I have hdb, hdc and hdd in a volume
  group vg1. hda is separate.
 
  I am running lvm2 2.01.04-5 from Debian testing.

  Trouble with the scsi disk let me to take it out and replace
  hda with a differnt physical disk that can act as root. After
  changing the boot sequence in the bios the machine boots up fine.
  I left the three other ide disks untouched. But, when
  I want to activate the vg, I have a problem

fasolt:~# pvscan
  Couldn't find device with uuid 'N0i9f3-0xqW-iPyq-7EG9-e4kI-Oa3F-jPfRpC'.
  Couldn't find device with uuid 'N0i9f3-0xqW-iPyq-7EG9-e4kI-Oa3F-jPfRpC'.
  PV /dev/hdc         VG vg1   lvm2 [186.30 GB / 0    free]
  PV unknown device   VG vg1   lvm2 [167.68 GB / 0    free]
  PV /dev/hdb1        VG vg1   lvm2 [372.61 GB / 0    free]
  Total: 3 [726.59 GB] / in use: 3 [726.59 GB] / in no VG: 0 [0   ]

  But hdd is still there, it is just not recogized as 
  part of vg1. 

fasolt:~# fdisk -l /dev/hdd

Disk /dev/hdd: 180.0 GB, 180045766656 bytes
255 heads, 63 sectors/track, 21889 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/hdd doesn't contain a valid partition table

  I exclude hda from scanning, 

fasolt:~# grep hda /etc/lvm/lvm.conf
    filter = [ "r|/dev/cdrom|" , "r|/dev/hda|" ]
    # filter = [ "a|^/dev/hda8$|", "r/.*/" ]

  therefore it is likely that hdd is the device
  N0i9f3-0xqW-iPyq-7EG9-e4kI-Oa3F-jPfRpC that could not be found.
 
  What do I do now? How do I add it again saying that this
  is the PV that is unknown?


  Cheers,

  Thomas Krichel                             mailto:krichel@openlib.org
                                        http://openlib.org/home/krichel
                                    RePEc:per:1965-06-05:thomas_krichel

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

* Re: [linux-lvm] vg not intact after other disks are exchanged
  2005-12-30 18:18 [linux-lvm] vg not intact after other disks are exchanged Thomas Krichel
@ 2005-12-31 14:42 ` Thomas Krichel
  2005-12-31 17:00   ` Thomas Krichel
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Krichel @ 2005-12-31 14:42 UTC (permalink / raw)
  To: Linux LVM



  Thomas Krichel writes

> fasolt:~# pvscan
>   Couldn't find device with uuid 'N0i9f3-0xqW-iPyq-7EG9-e4kI-Oa3F-jPfRpC'.
>   Couldn't find device with uuid 'N0i9f3-0xqW-iPyq-7EG9-e4kI-Oa3F-jPfRpC'.
>   PV /dev/hdc         VG vg1   lvm2 [186.30 GB / 0    free]
>   PV unknown device   VG vg1   lvm2 [167.68 GB / 0    free]
>   PV /dev/hdb1        VG vg1   lvm2 [372.61 GB / 0    free]
>   Total: 3 [726.59 GB] / in use: 3 [726.59 GB] / in no VG: 0 [0   ]
> 
> But hdd is still there, it is just not recogized as 
> part of vg1. 

  I have no response to my problem. I have been poking around more.
  Actually

fasolt:~# pvdisplay /dev/hdd
  --- Physical volume ---
  PV Name               /dev/hdd
  VG Name               vg1
  PV Size               167.68 GB / not usable 0   
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              42925
  Free PE               0
  Allocated PE          42925
  PV UUID               N0i9f3-0xqW-iPyq-7EG9-e4kI-Oa3F-jPfRpC
   
  This is exactly the sume uudi 'N0i9f3-0xqW-iPyq-7EG9-e4kI-Oa3F-jPfRpC'.
  that pvscan can not find.

  It is strange that the scan does not find the /dev/hdd volume,
  but the display manually finds the same data. If anyone wants
  to have a look I would be happy to have them access the machine.


  Cheers,

  Thomas Krichel                             mailto:krichel@openlib.org
                                        http://openlib.org/home/krichel
                                    RePEc:per:1965-06-05:thomas_krichel

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

* Re: [linux-lvm] vg not intact after other disks are exchanged
  2005-12-31 14:42 ` Thomas Krichel
@ 2005-12-31 17:00   ` Thomas Krichel
  2006-01-03 14:15     ` Alasdair G Kergon
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Krichel @ 2005-12-31 17:00 UTC (permalink / raw)
  To: Linux LVM




  Thomas Krichel writes

> It is strange that the scan does not find the /dev/hdd volume,
> but the display manually finds the same data. If anyone wants
> to have a look I would be happy to have them access the machine.
 
  Actually, I found that using lvm.conf, I can tell it to 
  scan for the disk, and then the disk is found, and the 
  vg1 is created. This closes my problem. But it is still
  bad that pvscan can't find the disk after other disks
  have been exchanged. Maybe this is a bios problem.


  Cheers,

  Thomas Krichel                             mailto:krichel@openlib.org
                                        http://openlib.org/home/krichel
                                    RePEc:per:1965-06-05:thomas_krichel

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

* Re: [linux-lvm] vg not intact after other disks are exchanged
  2005-12-31 17:00   ` Thomas Krichel
@ 2006-01-03 14:15     ` Alasdair G Kergon
  0 siblings, 0 replies; 4+ messages in thread
From: Alasdair G Kergon @ 2006-01-03 14:15 UTC (permalink / raw)
  To: LVM general discussion and development

> > It is strange that the scan does not find the /dev/hdd volume,
> > but the display manually finds the same data.
>   Actually, I found that using lvm.conf, I can tell it to 
>   scan for the disk, and then the disk is found, and the 
>   vg1 is created. This closes my problem. But it is still
>   bad that pvscan can't find the disk after other disks
>   have been exchanged. Maybe this is a bios problem.
 
Debian users in particular often report problems like this because 
of an incorrect symlink connecting /dev/cdrom to /dev/hdd and an 
lvm.conf filter ignoring cdrom.

Alasdair
-- 
agk@redhat.com

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

end of thread, other threads:[~2006-01-03 14:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-30 18:18 [linux-lvm] vg not intact after other disks are exchanged Thomas Krichel
2005-12-31 14:42 ` Thomas Krichel
2005-12-31 17:00   ` Thomas Krichel
2006-01-03 14:15     ` Alasdair G Kergon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).