1836617 Members
2122 Online
110102 Solutions
New Discussion

Unable to pvcreate

 
SOLVED
Go to solution
steven Burgess_2
Honored Contributor

Unable to pvcreate

Hi

I have a new test/training server for my department.

It is quite an old box with 9 2gig disks on there. Previously the disks were populated with data on vg's 00, 01 and 02. I have taken an ignite from our old server and run it on this m/c. I now only have vg00 as expected. If i look at lvmtab it confirms this
s. When i attempt to do a pvcreate -f /dev/rdisk /c0t2d0
I get the message

Couldn't stat physical volume "/dev/rdisk/c0t2d0":
pvcreate: Couldn't open physical volume "/dev/rdisk/c0t2d0":
No such file or directory

If i remove lvmtab and perform a vgscan -a, i get the message

Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c0t2d0
/dev/dsk/c0t3d0

I cannot do a pvdisplay , as i get the message
pvdisplay: Couldn't find the volume group to which physical volume "/dev/dsk/c0t2d0" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c0t2d0".

Anyone?
take your time and think things through
4 REPLIES 4
Helen French
Honored Contributor
Solution

Re: Unable to pvcreate

Hi,

Just a thought, excuse me if it's typing mistake:

use 'rdsk' instead of 'rdisk'

# pvcreate -f /dev/rdsk/c0t2d0

HTH,
Shiju

Life is a promise, fulfill it!
steven Burgess_2
Honored Contributor

Re: Unable to pvcreate

Cheers

Whoops,
take your time and think things through
Sridhar Bhaskarla
Honored Contributor

Re: Unable to pvcreate

Hi Steven,

If you had data on those disks and if you want to retrive it, you SHOULD NOT be doing a pvcreate on them.

You need to use vgimport on those disks to get the previous logical volumes back.

#mkdir /dev/vg01
#mknod /dev/vg01/group 0x010000
#vgimport -v vg01 /dev/dsk/c0t2d0 /dev/dsk/c0t3d0
#vgchange -a y vg01

Now you can mount the logical volumes that appear under /dev/vg01 directory.

Repeat the same process for other disks also. You need to know what disks belong to what volume groups.

If you don't need the data and if you want o create *NEW* volume groups and filesystems then you can do a pvcreate -f as suggested by Shiju.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
steven Burgess_2
Honored Contributor

Re: Unable to pvcreate

Thanks

I have data from our old server that I am going to be recovering onto these disks

Thanks
take your time and think things through