Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to add a volume group

Status
Not open for further replies.

ehspacl

IS-IT--Management
Feb 11, 2002
54
GB
Dear All,

I am trying to add a volume group to a system I have cloned.
However I have used the command:-
#pvcreate -f /dev/rdsk/c2t0d0
The error message tells me that the physical volume has already been recorded in the "/etc/lvmtab" file.

Any idea's?
I've tried to modify this file but it loses the my other volume groups

Many thanks

Paul
 
If you are adding a volume group, don't you want to be using vgcreate? You cannot modify the lmvtab file directly, it must be done with the vg commands. You can check current definitions in lvmtab using the strings command - what does that show? Is c2t0d0 already in there?

Another suggestion - can you use sam instead of the command line? It might be easier to figure things out.
 
hello,

before you pvcreate, perform the following:

$ strings /etc/lvmtab
this will tell you what disks are in your volume groups.

If you are trying to add a new disk, review the device file with "ioscan -fnCdisk" and make sure its correct.

There is a possibility that the disk could be a pvlink (additional path to the same disk). You will need to confirm.

Once you have got the correct disk, do the following:
$ pvcreate <dev>
$ mkdir /dev/vgxx
$ mknod /dev/vgxx/group c 64 0x030000 (check minor number and make sure its unique to other vg group device files)
$ vgcreate /dev/vgxx <dev>
$ lvcreate and newfs to create your new filesystems

if you are not sure, reply with the following:
$ ioscan -fnCdisk
$ strings /etc/lvmtab

Regards,
Mike
 
Thanks for your help.

But I have solved this issue.

What I had to do was run
#vgscan -p -v
#mv /etc/lvmtab /etc/lvmtab.old
#vgscan -v

Basically I regenerated the lvmtab file that was causing the problem.
Hope this might help someone else.

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top