1830899 Members
1974 Online
110017 Solutions
New Discussion

Root disk problem.

 
SOLVED
Go to solution
AnthonySN
Respected Contributor

Root disk problem.

Hi,
One of the root disk which is mirrored has failed and we need to replace the disk.
what is the best way to replace the disk.
OS is hpux 11.0.

6 REPLIES 6
Steven E. Protter
Exalted Contributor
Solution

Re: Root disk problem.

Shalom,

If possible break the mirrors.

lvsplit
lvextend m=0

Normally its not possible to break the mirrors.

So.

Remove and replace the disk.

If the disk is not hot swappable, restart the system.

vgreduce -f vg00

This will force the now dead disk out of vg00. Follow the post vgreduce instructions strictly and carefully.

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

re-mirror and test vg00 mirror configuration.

pvcreate -B /dev/rdsk/c1t0d0 #use real disk

mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk


# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?

If you are running 64-bit OS:

# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?


vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0

# real disk. repeat for other lvols

lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk

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
AnthonySN
Respected Contributor

Re: Root disk problem.

Hi SEP,
Thanks for the detailed reply.

how abt the below process.
1.replace the def disk with new disk.
2.mv /etc/lvmtab /etc/lvmtab.old
3.pvcreate -f -B /dev/rdsk/newdisk.
4.mv /etc/lvmtab.old /etc/lvmtab
5.vgcfgrestore -n vg00
6.vgchange -a y /dev/vg00
7.vgsync vg00
8.mkboot /dev/rdsk/newdisk
9.mkboot -a "hpux -lq" /dev/rdsk/newdisk
10.lvlnboot -Rv /dev/vg00

Let me know if im missing anything.
Steven E. Protter
Exalted Contributor

Re: Root disk problem.

Shalom,

My procedure was developed and tested on 11.11.

I can't test it on 11.00 but you seem to be missing these steps.

# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?

If you are running 64-bit OS:

# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?

I don't know if they are needed or correct for 11.00.

I like your plan and think it will work though I'd do it in an order more like my procedure (pride of ownership perhaps?).

A test boot off the alternate root disk is the only way to confirm your configuration is correct.

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
Torsten.
Acclaimed Contributor

Re: Root disk problem.

As mentioned before, see

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

There is everything you need.

Regarding your steps:

No need for steps 2, 3 and 4

start with step 1 followed by 5 and extend this step with the disk device.

step10:
lvlnboot -r /dev/vg00/lvol3
lvlnboot -b /dev/vg00/lvol1
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2

step 11:
lvlnboot -v


@SEP:

in current 11.11 the file updatediaglif/2 (offline diagnostics) is no longer there.

It is now avaiolable from http://software.hp.com
and installed via swinstall (if needed).

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!   
AnthonySN
Respected Contributor

Re: Root disk problem.

Successfully changed the disk without any problem following the above procedure.

Thanks evryone.
AnthonySN
Respected Contributor

Re: Root disk problem.

followed the given procedure.