Operating System - HP-UX
1748006 Members
4410 Online
108757 Solutions
New Discussion юеВ

Re: pvcreate: The physical volume "/dev/dsk/c1t6d0" is already recorded in the "/etc/lvmtab" file

 
SOLVED
Go to solution
Jan Shu
Regular Advisor

pvcreate: The physical volume "/dev/dsk/c1t6d0" is already recorded in the "/etc/lvmtab" file

Hi,
I used to have 2 root disks mirrored (c1t6d0 primary boot disk and c2t6d0 alternative boot disk) on a HP 9000 N-4000 server running 11.00. Last week I tried to install new OS 11.23 on c1t6d0 but it was failed. Since my users need this server up, so I boot it up from c2t6d0 disk and tried to mirror c1t6d0 disk again. But I got this error:

njuxdb05 # pvcreate -f /dev/rdsk/c1t6d0
pvcreate: The physical volume "/dev/dsk/c1t6d0" is already recorded in the "/etc/lvmtab" file.

How to fix this so I can mirror c1t6d0 disk? Thank you.

Regards,
Jan Shu
system admin
7 REPLIES 7
Torsten.
Acclaimed Contributor
Solution

Re: pvcreate: The physical volume "/dev/dsk/c1t6d0" is already recorded in the "/etc/lvmtab" file

OK, you did install the new OS without reducing the mirror for the "old" OS.

Now proceed like after a disk replacement.

see

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

(vgcfgrestore, mkboot, vgsync)

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Jan Shu
Regular Advisor

Re: pvcreate: The physical volume "/dev/dsk/c1t6d0" is already recorded in the "/etc/lvmtab" file

Hi Torsten,

I am still having problem to remove this c1t6d0 disk. I tried the steps in "5. Removing the Disk" but the vgreduce failed again:

njuxdb05 # vgreduce /dev/vg00 /dev/dsk/c1t6d0
vgreduce: Couldn't query physical volume "/dev/dsk/c1t6d0":
The specified path does not correspond to physical volume attached to
this volume group

Please help.

regards,
Jan
Torsten.
Acclaimed Contributor

Re: pvcreate: The physical volume "/dev/dsk/c1t6d0" is already recorded in the "/etc/lvmtab" file

Try to build the mirror again:

vgcfgrestore -n vg00 /dev/rdsk/c1t6d0
vgchange -a y vg00
mkboot -l /dev/rdsk/c1t6d0
vgsync vg00&

check with
lvlnboot -v

Do all the lvlnboot commands from the manual.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Jan Shu
Regular Advisor

Re: pvcreate: The physical volume "/dev/dsk/c1t6d0" is already recorded in the "/etc/lvmtab" file

Hi Torsten,

This is a production oracle db server. If I try to build the mirror on-line, would it cause server crash or reboot?

Thanks.

Regards,
Jan
Torsten.
Acclaimed Contributor

Re: pvcreate: The physical volume "/dev/dsk/c1t6d0" is already recorded in the "/etc/lvmtab" file

You can only built a mirror while the OS is up.

No need to reboot.

Just make sure to run the commands against the correct disk. Refer to the manual.

The OS has still the information about the mirror - restore it.

Check with

vgdisplay -v vg00
strings /etc/lvmtab

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
skt_skt
Honored Contributor

Re: pvcreate: The physical volume "/dev/dsk/c1t6d0" is already recorded in the "/etc/lvmtab" file

To list and verify the VG configuration backup file

root [/root] vgcfgrestore -n /dev/vg00 -l
Volume Group Configuration information in "/etc/lvmconf/vg00.conf"
VG Name /dev/vg00
---- Physical volumes : 2 ----
/dev/rdsk/c0t0d0 (Bootable)
/dev/rdsk/c3t0d0 (Bootable)

Pvchange -a n /dev/dsk/c0t0d0
Replace the disk
Ioscan -fnH path #Make sure path is CLAIMED
Diskinfo /dev/rdsk/c0t0d0 #verify disk

pvcreate ├в B /dev/rdsk/c0t0d0

mkboot /dev/rdsk/c0t0d0

mkboot -b /usr/lib/uxbootlf /dev/dsk/c0t0d0 #If -b option is given, boot programs in the pathname specified by boot_file_path are installed on the given device.



vgcfgrestore -F -n vg00 /dev/rdsk/c0t0d0
Pvchange -a y /dev/dsk/c0t0d0
vgchange -a y vg00
vgsync vg00

lvlnboot -R

for lif_comp in `lifls /dev/dsk/c3t0d0`
do
/usr/bin/lifcp /dev/dsk/c3t0d0:${lif_comp} /dev/dsk/c0t0d0:${lif_comp}


Jan Shu
Regular Advisor

Re: pvcreate: The physical volume "/dev/dsk/c1t6d0" is already recorded in the "/etc/lvmtab" file

Hi Santhosh, thank you for the information. I will try those steps and let you know if it works.

Regards,
Jan