vg not intact after other disks are exchanged
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:[email protected]
http://openlib.org/home/krichel RePEc:per:1965-06-05:thomas_krichel
Thomas Krichel writes
Quoted 10 lines
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:[email protected]
http://openlib.org/home/krichel RePEc:per:1965-06-05:thomas_krichel
Thomas Krichel writes
Quoted 3 lines
It is strange that the scan does not find the
/dev/hddvolume, 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:[email protected]
http://openlib.org/home/krichel RePEc:per:1965-06-05:thomas_krichel
Quoted 7 lines
Quoted 2 lines
It is strange that the scan does not find the
/dev/hddvolume, 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
Signature · 1 line
[email protected]