Operating System - HP-UX
1752538 Members
4942 Online
108788 Solutions
New Discussion юеВ

Re: HPUX 11.11 - Replace primary mirror disk from another hpux machine secondary mirror disk

 
dunstan
Frequent Advisor

HPUX 11.11 - Replace primary mirror disk from another hpux machine secondary mirror disk

Hello,
our hpux is B.11.11.
I completly lost the primary boot disk (mirrored)and the IOSCACN shows NO_HW.
I have another same modal HPUX machine with the mirrored boot disk (it is not in use but the machine is up and running).
So I am going to use one of the boot disk from that machine.

Anyway.. I have removed the secondary disk on the old machine and put in this live machine.
The disk was claimed.
Can you please tell me how to remove or delete all existing information from the disk, before
start the setup?

I tried to delete using pvremove /dev/rdsk/c1t2d0 and getting the following message.
The physical vulume /dev/rdsk/c1t2d0 belongs to volume group /dev/vg00, could not remove.

Please advise me.
Thanks,
11 REPLIES 11
g3jza
Esteemed Contributor

Re: HPUX 11.11 - Replace primary mirror disk from another hpux machine secondary mirror disk

Hi,

try following the famous document to re-mirror the disk again:

http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01911837/c01911837.pdf

To owerwrite the old LVM headers from the disk, #pvcreate -f should do it.....

rariasn
Honored Contributor

Re: HPUX 11.11 - Replace primary mirror disk from another hpux machine secondary mirror disk

Hi:

# pvdisplay /dev/dsk/cxtydz
# pvcreate -f /dev/dsk/cxtydz


Force the creation of a physical volume (thus
deleting any file system or volume manager
information present) without first requesting
confirmation.


man pvcreate

rgs,

dunstan
Frequent Advisor

Re: HPUX 11.11 - Replace primary mirror disk from another hpux machine secondary mirror disk

Thanks for the big help.
Yes, it worked.
I have did the vgcfgrestore and vgsync
its now working.
I will reboot using primary disk and let see the the outcome.

Regards, Dunstan.
dunstan
Frequent Advisor

Re: HPUX 11.11 - Replace primary mirror disk from another hpux machine secondary mirror disk

hello,
I have now fixed this primary disk with your help, and rebooted successfuly using primary boot disk.
However, the secondary disk is now showing Stale, when I do the
pvdisplay -v /dev/dsk/c2t2d0
The stale disk is in /dev/vg00/lvol3.

by doing`bdf` i can see it is mounted to root (/).

FYI, there were no stale before I doing the work on primary disk.

Please advise.
Thanks.
g3jza
Esteemed Contributor

Re: HPUX 11.11 - Replace primary mirror disk from another hpux machine secondary mirror disk

please give the output of #vgdisplay -v vg00

Did you mirror the secondary disk correctly, considering the contigious order of the first 3 lvols? I mean, you mirrored lvol1 first, then lvol2 and then lvol3 and so on....
dunstan
Frequent Advisor

Re: HPUX 11.11 - Replace primary mirror disk from another hpux machine secondary mirror disk

Please find attached the vgdisplay.

I followed this step.
pvcreate -f /dev/rdsk/c1t2d0
pvcreate -B /dev/rdsk/c1t2d0
mkboot -l /dev/dsk/c1t2d0
mkboot -a "hpux -lq" /dev/dsk/c1t2d0
vgcfgrestore ├в n vg00 /dev/rdsk/c1t2d0
vgsync vg00
vgchange -a y /dev/vg00

Then rebooted using primary boot disk.

Thanks,
g3jza
Esteemed Contributor

Re: HPUX 11.11 - Replace primary mirror disk from another hpux machine secondary mirror disk

#lvdisplay -v /dev/vg00/lvol3

what if you issue:
#lvsync /dev/vg00/lvol3


I don't know in what state was the lvol3 before the failure of your disk.

If the lvsync won't help, then try creating the mirror from scratch, which is described in Appendix D of the doc 'when good disks go bad'
Roopesh Nair
Occasional Advisor

Re: HPUX 11.11 - Replace primary mirror disk from another hpux machine secondary mirror disk

Hi Dude ,

It will be great if you are checking the output of #lvdisplay /dev/vg00/lvol3 and check for each pvdisplay -v which will give pe status (allocated /free ) pls ensure both disks are having same no of pe's free. otherwise do a #lvsync /dev/vg00/lvol3 .it will solve the issue.

Cheers

Roopesh
dunstan
Frequent Advisor

Re: HPUX 11.11 - Replace primary mirror disk from another hpux machine secondary mirror disk

Hi,
Thanks for your help resolving this issue.
Last Friday, I did the vgsync again and it was success, everything sync correctly.
all the stale disk disappeared.
Then I did the ignite backup successfully.
But..
today, the replaced disk crashed completely.
ioscan showes as NO_HW, and everything stale on this disk.

I am not sure, the issue is with the disk, or somewhere else.
Can someone point me in correct direction.
Thanks,