Operating System - HP-UX
1833777 Members
2486 Online
110063 Solutions
New Discussion

How to replace internal mirrored defective hot plug drive hpux 11.11 ?

 
SOLVED
Go to solution
Sammy_2
Super Advisor

How to replace internal mirrored defective hot plug drive hpux 11.11 ?


One of my root drive failed. Failed one is c3t0d0. running off mirrored c2t1d0.
Cant see failed drive via ioscan now, guess because I have since rebooted the system.
I am told by HP my internal drive is hot pluggable (so I assume I need to do something before yanking the bad drive ???). I have the new disk.

What are the steps to replace and mirror the drive to current bootable drive without causing any outage ?if it is possible ?

The only way I know of is lvreduce the mirror on all the volumes on failed root disk to 0 and and vgreduce the failed disk out of vg00.
Then follow root miror coomand as if mirroring the root disk for the first time.Any other better way.
Thanks in advance.


Info about the system is below.


# uname -a
HP-UX testsystem B.11.11 U 9000/800 522788742 unlimited-user license



ioscan -fnkC disk

disk 1 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0

.....


#strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t1d0
/dev/dsk/c3t0d0
...
...
good judgement comes from experience and experience comes from bad judgement.
5 REPLIES 5
skt_skt
Honored Contributor
Solution

Re: How to replace internal mirrored defective hot plug drive hpux 11.11 ?

To list and verify the VG configuration backup file

root [/root] vgcfgrestore -n /dev/vg00 -l
Volume Group Configuration information in "/etc/lvmconf/vg00.conf"
VG Name /dev/vg00
---- Physical volumes : 2 ----
/dev/rdsk/c0t0d0 (Bootable)
/dev/rdsk/c3t0d0 (Bootable)

Pvchange -a n /dev/dsk/c0t0d0
Replace the disk
Ioscan -fnH path #Make sure path is CLAIMED
Diskinfo /dev/rdsk/c0t0d0 #verify disk

pvcreate â B /dev/rdsk/c0t0d0

mkboot /dev/rdsk/c0t0d0

mkboot -b /usr/lib/uxbootlf /dev/dsk/c0t0d0 #If -b option is given, boot programs in the pathname specified by boot_file_path are installed on the given device.



vgcfgrestore -F -n vg00 /dev/rdsk/c0t0d0
Pvchange -a y /dev/dsk/c0t0d0
vgchange -a y vg00
vgsync vg00

lvlnboot -R

for lif_comp in `lifls /dev/dsk/c3t0d0`
do
/usr/bin/lifcp /dev/dsk/c3t0d0:${lif_comp} /dev/dsk/c0t0d0:${lif_comp}

tkc
Esteemed Contributor

Re: How to replace internal mirrored defective hot plug drive hpux 11.11 ?

Hi Sammy, you indicated internal hot-plug disk. If the disk is not hot-swap, the OS may not be able to take care of the online replacement. Hot-plug only allow you to replace the FRU when device is still powered on.
Luk Vandenbussche
Honored Contributor

Re: How to replace internal mirrored defective hot plug drive hpux 11.11 ?

Hoang Chi Cong_1
Honored Contributor

Re: How to replace internal mirrored defective hot plug drive hpux 11.11 ?

Hi Sammy

Steps to replace the broken disk are:

1. Remove the bad disk out of vg00
#vgreduce /dev/vg00 /dev/dsk/c3t0d0
do vgscan -a to scan and recreate /etc/lvmtab file.
2. Replace the new one
3. Do mirroring to the new disk:
#pvcreate -f /dev/rdsk/c3t0d0 ///Force format first/////
#pvcreate -B /dev/rdsk/c3t0d0 ///For boot disk////
#mkboot -l /dev/dsk/c3t0d0
#mkboot -a "hpux -lq" /dev/dsk/c3t0d0
#setboot -a HW_PAHT

Then mirroring all of lvm in vg00, example:
#lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c3t1d0
................................

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

Then #lvlnboot -v to check again.

Goodluck and hope this help
Hoang Chi Cong
Looking for a special chance.......
Sammy_2
Super Advisor

Re: How to replace internal mirrored defective hot plug drive hpux 11.11 ?

Santosh,
your instruction are very detailed and accurate. But i did the steps (which left out some of your steps) below and it seems
to have mirrored the drive. I have not really tested booting off the new drive though.
Thanks a lot.

Luk,
I had the pdf but was unsure about hot pluggable drives.

Hoang,
I am sure your steps would work just fine but I was trying to prevent remirroring all the lvs again.
Seems like Santosh steps work fine for boot as well.

The steps are
pull disk, insert hot plug disk
ioscan -fnkC disk (can see disk now)
vgcfgrestore -n /dev/vg00 /dev/rdsk/c3t0d0

mkboot /dev/rdsk/cXtYdZ

mkboot -a "hpux -lq /stand/vmunix" /dev/rdsk/C3t0d0

lvlnboot -R

lvlnboot -v

vgchange -a y /dev/vg00

vgsync /dev/vg00
good judgement comes from experience and experience comes from bad judgement.