Operating System - HP-UX
1752781 Members
5981 Online
108789 Solutions
New Discussion юеВ

Re: alternet root disk replacement

 
SOLVED
Go to solution
ani007
Super Advisor

alternet root disk replacement

Hi,
We need to replace one of our root disk(alternet disk).ioscan & dd command shows fine but we get stale on lvol1. so we need to replace it as per HP engg..he said they will replace it online. i have attached the o/p of vgdisplay & lvdisplay. please check am i correct

# uname -r
B.11.11
# model
9000/800/rp4440
#
#lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/c2t0d0
#lvreduce -m 0 /dev/vg00/lvol2 /dev/dsk/c2t0d0
#lvreduce -m 0 /dev/vg00/lvol3 /dev/dsk/c2t0d0
#lvreduce -m 0 /dev/vg00/lvol4 /dev/dsk/c2t0d0
#lvreduce -m 0 /dev/vg00/lvol5 /dev/dsk/c2t0d0
#lvreduce -m 0 /dev/vg00/lvol6 /dev/dsk/c2t0d0
#lvreduce -m 0 /dev/vg00/lvol7 /dev/dsk/c2t0d0
#lvreduce -m 0 /dev/vg00/lvol8 /dev/dsk/c2t0d0
#lvreduce -m 0 /dev/vg00/lvdaz /dev/dsk/c2t0d0
#lvreduce -m 0 /dev/vg00/lvol10 /dev/dsk/c2t0d0
#lvreduce -m 0 /dev/vg00/lvsap /dev/dsk/c2t0d0
#lvreduce -m 0 /dev/vg00/lvsapD01 /dev/dsk/c2t0d0
#lvreduce -m 0 /dev/vg00/lvoracle /dev/dsk/c2t0d0
#lvreduce -m 0 /dev/vg00/lvol14 /dev/dsk/c2t0d0

#vgreduce /dev/vg00 /dev/dsk/c2t0d0
Now replace the disk
#vgcfgrestore ├в n /dev/vg00 /dev/dsk/c2t0d0
#vgchange -a y /dev/vg00
#lvlnboot -Rv /dev/vg00
#vgsync /dev/vg00

Am i correct?another thing i will do it remotely & power cut is a problem so shall i use nohup? i hv never use it before..what will be the command then
Regards,
Ani
8 REPLIES 8
Torsten.
Acclaimed Contributor

Re: alternet root disk replacement

Procedure is NOT correct.


There is no need to do lvreduce, but if done, there is nothing you can restore with vgcfgrestore.



You can do this replacement online!

Full steps are here:

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


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!   
ani007
Super Advisor

Re: alternet root disk replacement

Hi,
Tnx for quick reply.

#pvchange -a n /dev/dsk/c2t0d0

HPCE replace the disk
#vgreduce /dev/vg00 /dev/dsk/c2t0d0
#pvchange -a y /dev/dsk/c0t8d0
#vgsync /dev/vg00

Is it correct now? if nor what it will be?

Regards,
Ani
nijokj
Trusted Contributor
Solution

Re: alternet root disk replacement

pvchange -a n /dev/dsk/c2t0d0
replace new the disk
ioscan -fnC disk
insf -C disk
vgcfgrestore -n vg00 /dev/rdsk/c2t0d0
mkboot -l /dev/rdsk/c2t0d0
mkboot -a "hpux -lq" /dev/rdsk/c2t0d0
pvchange -a y /dev/dsk/c2t0d0
vgsync vg00
lvlnboot -R
lvlnboot -v
hope this will help you
this is the procedure for PARISC platform.
INH
Regular Advisor

Re: alternet root disk replacement

Ani,
Steps you mentioned are not correct.

Find the attached steps to replace faukty root disk
------------
1) Detach the indicated faulty physical volume

host # pvchange -a n /dev/dsk/c0t8d0

2) Check the status of the PV at /dev/dsk/c0t8d0

host # pvdisplaypvdisplay -v /dev/dsk/c0t8d0 |more

3) Once faulty disk is succsessfully detached. Insert new wroking disk ( may be it is done by HP CE) Perform consistancy check on newly inserted disk

host # dd if=/dev/rdsk/c0t8d0 of=/dev/null bs=2048k

(.. should get o/p like as below )
205+0 records in
205+0 records out

4) Check the status of new PV at H/W path 4/0/1/0/0.8.0. Should be claimed state

host # ioscan -fnH4/0/1/0/0.8.0

host # diskinfo /dev/rdsk/c0t8d0


host # pvcreate -f -B /dev/rdsk/c0t8d0

5) Install boot programs on newly added disk at /dev/rdsk/c0t8d0

host # mkboot /dev/rdsk/c0t8d0

6) Restore vg00 configuration on newly added disk

host # vgcfgrestore -n vg00 /dev/rdsk/c0t8d0

7) Install autoexecute file on new disk

host # mkboot -a "hpux -lq" /dev/rdsk/c0t8d0


8)
host # cd /usr/sbin/diag/lif

host # /usr/sbin/diag/lif $

host # /usr/sbin/diag/lif # mkboot -b updatediaglif2 -p LABEL -p AUTO -p HPUX -p ISL /dev/rdsk/c0t8d0


host # /usr/sbin/diag/lif # liflslifls /dev/rdsk/c0t8d0

host # /usr/sbin/diag/lif # lifcp /dev/rdsk/c0t8d0:AUTO -


9) prepare LVM logical volume to be boot

host # /usr/sbin/diag/lif # lvlnboot -R -v


10) Change the PV and VG to active state

host # /usr/sbin/diag/lif # pvchange -a y /dev/dsk/c0t8d0

host # /usr/sbin/diag/lif # vgchange -a y vg00

host # /usr/sbin/diag/lif # vgsync vg00


11) Check error log

host # /usr/sbin/diag/lif # dmesg


12) Verify PV

host # /usr/sbin/diag/lif # pvdisplay -v /dev/dsk/c0t8d0 |more


13) Wait untill all LVs are synced properly


host # /usr/sbin/diag/lif # vgdisplay -v vg00 |grep -i stale


host # /usr/sbin/diag/lif # vgdisplay -v vg00 |more


End of activiy
Knowledge is power
ani007
Super Advisor

Re: alternet root disk replacement

HI,
INH mention that i need to do the following also in his attachment ... is it require??? or shall i go with NIJOKI process...

# pvcreate -f -B ...
&
host # cd /usr/sbin/diag/lif

host # /usr/sbin/diag/lif $

host # /usr/sbin/diag/lif # mkboot -b updatediaglif2 -p LABEL -p AUTO -p HPUX -p ISL /dev/rdsk/c0t8d0


host # /usr/sbin/diag/lif # liflslifls /dev/rdsk/c0t8d0
INH
Regular Advisor

Re: alternet root disk replacement

Hi Did follow this process recently to replace a faulty root disk

Rgads,
INH
Knowledge is power
Torsten.
Acclaimed Contributor

Re: alternet root disk replacement

If ou did a vgreduce, you need to do the complete mirroring process!


See the attached document above!

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!   
ani007
Super Advisor

Re: alternet root disk replacement

Tnx all