Operating System - HP-UX
1832645 Members
2652 Online
110043 Solutions
New Discussion

pvcreate, volumegroup, lvmtab...

 
SOLVED
Go to solution
nkkorhaz
Advisor

pvcreate, volumegroup, lvmtab...

I'd like creating volume group, my SAM writed this message:
"pvcreate: The physical volume "/dev/dsk/c0t14d0" is already recorded in the "/etc/lvmtab" file."

why? how is it removing from the lvmtab file?
4 REPLIES 4
Pete Randall
Outstanding Contributor
Solution

Re: pvcreate, volumegroup, lvmtab...

Apparently, /dev/dsk/c0t14d0 was once a part of a Volume Group. If you're sure that this is no longer true, you can try this:

mv /etc/lvmtab /etc/lvmtab.old
vgscan -v

Pete

Pete
Ravi_8
Honored Contributor

Re: pvcreate, volumegroup, lvmtab...

Hi,

#mv /etc/lvmtab /etc/lvmtab.old
#vgscan -v
#strings /etc/lvmtab

if this shows the disk c0t14d0 then the disk belongs to a volume group and has data in that.

if the command #strings /etc/lvmtab doesn't show the disk c0t14d0 then
#pvcreate -f /dev/rdsk/c0t14d0
#mkdir /dev/vg01 (i am assuming vg to be craeted is vg01)
#cd /dev/vg01
#mknod group c 64 0x010000
#vgcreate /dev/vg01 /dev/dsk/c0t14d0
never give up
T G Manikandan
Honored Contributor

Re: pvcreate, volumegroup, lvmtab...

YOu can just run

#vgscan -p -a -v
to just run the vgscan in the preview mode.
There is no need to remove the lvmtab file

check for the output.

After this if the physical volume does not belong to any VG you can do a

#mv /etc/lvmtab /etc/lvmtab.old
#vgscan -a

Thanks
Armin Feller
Honored Contributor

Re: pvcreate, volumegroup, lvmtab...

Hi,

please check /etc/lvmtab and the disk:

# strings /etc/lvmtab

If the disk cantains to a volume group please do not use iut for creating a new volume group.

# pvdisplay -v /dev/dsk/c0t14d0

Here you will find the voulme group the disk is containing to.

If you are sure the disk is free and you can use it for creating a new volume group do following:

# mv /etc7Lvmtab /etc/lvmtab.old
# vgscan -v

# pvcreate -f "/dev/rdsk/c0t14d0
# vgcreate -n vgXY "/dev/dsk/c0t14d0
# vgdisplay -v vgXY

Hope that helps.

Regards ...
Armin