Operating System - HP-UX
1821068 Members
2555 Online
109631 Solutions
New Discussion юеВ

Re: Re : How to sync back the mirror disk

 
SOLVED
Go to solution
Vincent_5
Super Advisor

Re : How to sync back the mirror disk

Hi Guys,
Can someone advce, I have a rx2620 with 2 x 73GB disk configure with nirror disk UX. Somehow or rather, the secondary disk fail and a harddisk was replaced. Can I know how can I configure the Mirror disk back. Kindly advice was steps. OS 11i version 2


Regards
Vincent
nothing is better than to know more
9 REPLIES 9
Ninad_1
Honored Contributor

Re: Re : How to sync back the mirror disk

Vincent,

Following is the procedure I had noted from some previous thread, which I can get hold of right now, but the info is as below.
Will post thr link to thread if I find it.



1. ioscan -H path### (eg 0/4/0/0 do not use .) # put disk as claimed from no-hw
2. ioscan -funC disk|more # check to see hw is claimed
3. mv /etc/lvmtab /etc/lvmtab.old # pvcreate fails if disk is in lvmtab
4. pvcreate -f -B /dev/rdsk/c_t_d0 # sets aside a boot area
5. mv /etc/lvmtab.old /etc/lvmtab # moves it back
6. vgcfgrestore -n vg00 /dev/rdsk/c_t_d0 # restores headers on drive
7. vgchange -a y /dev/vg00 # puts drive online
8. vgsync vg00 # if disk does not automatically start syncing (if stale)
9. mkboot /dev/rdsk/c_t_d0 # puts the boot sector in the boot area
10. mkboot -a "hpux -lq" /dev/rdsk/c_t_d0 # puts HPUX in the auto file
11. lvlnboot -Rv /dev/vg00 # updates the LIF with the info from the BDRA
12. cd /usr/sbin/diag/lif
13. mkboot -b updatediaglif -p ISL -p HPUX -p LABEL -p AUTO /dev/rdsk/c_t_d0 # to put ODE, etc. back on boot area
14. vgdisplay -v vg00 # to check it


Regards,
Ninad
Ninad_1
Honored Contributor

Re: Re : How to sync back the mirror disk

Steven E. Protter
Exalted Contributor

Re: Re : How to sync back the mirror disk

Shalom Vincent,

Usually lvsync does the job, logical volume by logical volume.

If it fails there is something wrong preventing it from working, most likely a flakey disk or connection/cabel whatnot.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ninad_1
Honored Contributor

Re: Re : How to sync back the mirror disk

Vincent,

And refer to this

http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=195202.

No points for this please.
Regards,
Ninad
AwadheshPandey
Honored Contributor

Re: Re : How to sync back the mirror disk

if it is root disk then follow this procedure
pvcreate -B /dev/dsk/rdsk/c#t#d#
vgcfgrestore -n /dev/vgname /dev/dsk/c#t#d#
vgchange -a y /dev/vgname
mkboot /dev/rdsk/c#t#d#
mkboot -a "hpux -lq(;0)/stand/vmunix" /dev/rdsk/c#t#d#
lvlnboot -R
vgsync /dev/vgname
else
pvcreate /dev/dsk/rdsk/c#t#d#
vgcfgrestore -n /dev/vgname /dev/dsk/c#t#d#
vgchange -a y /dev/vgname
vgsync /dev/vgname
Pls see the attached doc for details on LVM.
Cheers,
Awadhesh
It's kind of fun to do the impossible
Andrew Rutter
Honored Contributor
Solution

Re: Re : How to sync back the mirror disk

hi vincent,

procedure is differnt for itanium servers, more steps before resyncing disk is required

Follow these steps
in attached doc

Andy

Re: Re : How to sync back the mirror disk


insert the disk
#ioscan -funC disk
this is to verify that the new disk is functioning
#pvcreate -f -B /dev/rdsk/cxdxtx Create the PV with 2912KB lif area
#lvextend -m 1 /dev/vg00/lvolxx /dev/dsk/cxtxdx & mirror the LVs in the vg00 to the replaced disk
#mkboot -b /dev/rdsk/cxdxtx
#mkboot -a hpux /dev/rdsk/cxtxdx
#lvlnboot -R /dev/vg00
or else u can reffer the white paper named "when good disks go bad " in the www.itrc.hp.com site

Torsten.
Acclaimed Contributor

Re: Re : How to sync back the mirror disk

Don't do the pvcreate command.

Read the document posted by Andrew - this is the correct procedure, because this is an Integrity Server.

Good luck!

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!   
Florian Heigl (new acc)
Honored Contributor

Re: Re : How to sync back the mirror disk

Please also take a moment to let us know if Your disks appear properly mirrored again and (You know it was coming), also assign a few points to the people that tried to help You getting Your system back into shape.
yesterday I stood at the edge. Today I'm one step ahead.