Operating System - HP-UX
1834417 Members
1676 Online
110067 Solutions
New Discussion

error when creating a volume group

 
SOLVED
Go to solution
antoniou
Occasional Advisor

error when creating a volume group

When creating a volume group vg01 on disk /dev/dsk/c2t1d0 the system crash.
Now when i want to create a vg on this disk, i have the error message
"pvcreate: The physical volume "/dev/dsk/c2t1d0" is already recorded in the "/etc/lvmtab" file."
2 REPLIES 2
Sanjay_6
Honored Contributor
Solution

Re: error when creating a volume group

Hi,

Is the disk listed in /etc/lvmtab. Do a "strings /etc/lvmtab" to check.

You can simply do a vgexport to remove that vg info from lvmtab and then do a "pvcreate -f" for this disk and vgcreate to recreate the vg on this disk.

Hope this helps.

Regds
Geoff Wild
Honored Contributor

Re: error when creating a volume group

If vg01 does not exist - when you try the vgexport, then mv /etc/lvmtab /etc/lvmtab.bad
vgscan

pvcreate -f /dev/rdsk/c2t1d0

Then recreate the vg..

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.