Operating System - HP-UX
1855686 Members
3873 Online
104103 Solutions
New Discussion

replacing a bad mirror boot disk

 
Tony Escujuri_1
Advisor

replacing a bad mirror boot disk

I would appreciate any help concerning the following problem.
I am trying to replace a bad mirror boot disk. The following ioscan will show the drives that I'm trying to fix. Notice the commands I'm using
in steps 1-7.

# ioscan -knfC disk
8/4.14.0 /dev/dsk/c0t14d0 /dev/rdsk/c0t14d0.
4 Gb Boot Mirror, Bad, had to be replaced.

8/4.15.0 /dev/dsk/c0t15d0 /dev/rdsk/c0t15d0
4 Gb Boot Disk, Works Good.

BACKGROUND:

The "Boot mirror" failed and was causing excessive I/O errors. So I
replaced it with a good one.
After booting up into multi-user mode, I tried to do the following command
to add the new mirror physical drive:

Step 1. # pvcreate -B /dev/rdsk/c0t14d0

Why did I get this error message?

# create: The physical volume already belongs to a volume.


Also are the following commands what I need to finish mirroring the new
drive?



Step 2. # vgcfgrestore -n vg00 /dev/rdsk/c0t14d0
Setp 3. # mkboot /dev/rdsk/c0t14d0
Step 4. # mkboot -a "hpux -lq (icon_wink.gif/stand/vmunix" /dev/rdsk/c0t14d0
Step 5. # vgchange -a y vg00
Step 6. # vgsync vg00
Step 7. # lvlnboot -v to check results.


Regards,
Tony Escujuri.
I don't know very much!
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor

Re: replacing a bad mirror boot disk

The physical volume has data structures which indicate that this PV has been used in a VG at some point.

You need to use the pcvreate -f flag (in addition to the -B) to force the operation.
If it ain't broke, I can fix that.
Geoff Wild
Honored Contributor

Re: replacing a bad mirror boot disk

sounds like the disk belonged to a vg once before - do a pvcreate -f /dev/rdsk/c0t14d0




These commands are fine...

vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t14d0

mkboot /dev/rdsk/c0t14d0

mkboot -a "hpux -lq (;0) /stand/vmunix" /dev/rdsk/c0t14d0

vgchange -a y /dev/vg00

lvlnboot -Rv /dev/vg00

vgsync /dev/vg00


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.
Patrick Wallek
Honored Contributor

Re: replacing a bad mirror boot disk

You got that message because at some point in time that disk probably was part of a VG somewhere. To eliminate that message do:

# pvcreate -f -B /dev/rdsk/c0t14d0

Then follow the rest of your steps which look fine and should work like charm for you.
Dario_1
Trusted Contributor

Re: replacing a bad mirror boot disk

Tony:

You will have to force this operation using the -f option. Man pvcreate for more information.

Regards,

DR
Tom Danzig
Honored Contributor

Re: replacing a bad mirror boot disk

You shouldn't need to even do a pvcreate. The following should do it:

# vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t14d0
# vgchange -a y /dev/vg00
# mkboot /dev/rdsk/c0t14d0
# mkboot -a "hpux -lq /stand/vmunix" /dev/rdsk/c0t14d0
# lvlnboot -R
# vgsync /dev/vg00
# lvlnboot -v