pvcreate problem on new IDE disk
I just installed a new 120G IDE disk. My system currently has two 32G SCSI disks. I intend to migrate the data off of the SCSI disks on to the IDE disk.
My version info:
Linux home 2.4.19 #7 SMP Sat Apr 19 18:04:41 PDT 2003 i686 unknown unknown GNU/Linux
home:~# pvcreate --version LVM version: 1.95.10 (2002-05-31) Library version: 0.96.04-ioctl-cvs (2002-08-14) Driver version: 1.0.8
The drive is a 120G Maxtor IDE drive. I have a 1G partition (which I will eventually reinstall the OS onto) and a ~120G partition which I want to initialize as a physical volume, add it to a new volume group, create some LV's, and then copy the data from my existing disks into it.
Device Boot Start End Blocks Id System /dev/hdd1 1 4064 2048224+ 83 Linux /dev/hdd2 4065 238216 118012608 8e Linux LVM
But when I do the pvcreate I get this error:
home:~# pvcreate /dev/hdd2 Failed to read existing physical volume '/dev/hdd2' /dev/hdd2: Couldn't find device. Failed to setup physical volume "/dev/hdd2"
Googling on "Failed to read existing physical volume" produces zero hits. Nothing at all. Any ideas?
Signature · 1 line
Tracy Reed http://www.ultraviolet.org
Quoted 1 line · Tracy R Reed
/dev/hdd2: Couldn't find device.
Two things to check first:
Make sure that /dev/hdd2 exists and that other programs can
write/read it;
Run 'vgscan' and then try the pvcreate again.
[vgscan needs running after new devices are added]
Alasdair
Signature · 1 line
[email protected]
On Mon, Apr 21, 2003 at 12:07:15AM +0100, Alasdair G Kergon spake thusly:
Quoted 3 lines
Two things to check first:
Make sure that/dev/hdd2exists and that other programs can
write/read it;
brw-rw---- 1 root disk 22, 66 Mar 14 2002 /dev/hdd2
Quoted 2 lines
Run 'vgscan' and then try the pvcreate again.
[vgscan needs running after new devices are added]
home:/# vgscan Reading all physical volumes. This may take a while... Found volume group "system" using metadata type lvm1 home:/# pvcreate /dev/hdd2 Failed to read existing physical volume '/dev/hdd2' Physical volume "/dev/hdd2" successfully created
It still says "failed to read" etc. but then says successfully created. Hmm...
home:/# vgextend system /dev/hdd2 Volume group "system" successfully extended
Ok, looks like it is working ok. Now another problem...
home:/# pvmove Command not implemented yet.
Ugh...looks like LVM1 had it but LVM2 does not yet. Has this changed since my version?
LVM version: 1.95.10 (2002-05-31)
Even if pvmove is still nonexistant I guess I can put the new disk in another VG, create LV's over there, and manually copy the data over.
Thanks for the help!
Signature · 1 line
Tracy Reed http://www.ultraviolet.org
Quoted 23 lines · Tracy R Reed
On Mon, Apr 21, 2003 at 12:07:15AM +0100, Alasdair G Kergon spake thusly:
Quoted 3 lines
Two things to check first:
Make sure that/dev/hdd2exists and that other programs can
write/read it;brw-rw---- 1 root disk 22, 66 Mar 14 2002
/dev/hdd2Quoted 2 lines
Run 'vgscan' and then try the pvcreate again.
[vgscan needs running after new devices are added]home:/# vgscan Reading all physical volumes. This may take a while... Found volume group "system" using metadata type lvm1 home:/# pvcreate /dev/hdd2 Failed to read existing physical volume '/dev/hdd2' Physical volume "/dev/hdd2" successfully createdIt still says "failed to read" etc. but then says successfully created. Hmm...
home:/# vgextend system /dev/hdd2 Volume group "system" successfully extended
Quoted 7 lines
Ok, looks like it is working ok. Now another problem...
home:/# pvmove Command not implemented yet.Ugh...looks like LVM1 had it but LVM2 does not yet. Has this changed since my version?
You'll have it shortly with LVM 2.0 :)
Quoted 5 lines
LVM version: 1.95.10 (2002-05-31)
Even if pvmove is still nonexistant I guess I can put the new disk in another VG, create LV's over there, and manually copy the data over.
Yes.
Quoted 5 lines
Thanks for the help!
Signature · 1 line
Tracy Reed http://www.ultraviolet.org
Regards,
Heinz -- The LVM Guy --
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Quoted 6 lines · Tracy R Reed
But when I do the pvcreate I get this error:
home:~# pvcreate /dev/hdd2 Failed to read existing physical volume '/dev/hdd2' /dev/hdd2: Couldn't find device. Failed to setup physical volume "/dev/hdd2"
did you reboot after fdisk??