Operating System - HP-UX
1753781 Members
7772 Online
108799 Solutions
New Discussion юеВ

replacing a failing primary mirrored boot disk

 
BR86528
Occasional Advisor

replacing a failing primary mirrored boot disk

Hi:

I just wanted to verify if it's safe to remove a failing primary mirrored boot disk.
Considering that disk is still "claimed" and only some lvols are in stale state. Another consideration is the alternate boot disk is working. My assumption is that the Alternate disk should kick in once the failing primary boot disk is remove and no OS Panic should happen once the removal take place.

Thank you.
12 REPLIES 12
Robert-Jan Goossens
Honored Contributor

Re: replacing a failing primary mirrored boot disk

Hi,

HP created a complete disk failure cookbook, have a look at this doc.

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

Regards,
Robert-Jan
Sandeep_Chaudhary
Trusted Contributor

Re: replacing a failing primary mirrored boot disk

This is for Integrety server:


check wether u have LVM Cumulative Patch
is installed

swlist -l fileset|grep Cumulative


if yes u have LVM OLR installed

To stop LVM access of disk
#pvchange -a N /dev/dsk/c2t0d0s2

#vgdisplay -v vg00|grep syncd

Remove Disk

#ioscan -fnCdisk

# ioscan -funCdisk
Class I H/W Path Driver S/W State H/W Type Description
=============================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-N
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk NO_HW DEVICE HP 73.4GST373454LC
/dev/dsk/c2t0d0 /dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0 /dev/rdsk/c2t0d0s2
/dev/dsk/c2t0d0s1 /dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s1 /dev/rdsk/c2t0d0s3
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c2t1d0 /dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0 /dev/rdsk/c2t1d0s2
/dev/dsk/c2t1d0s1 /dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s1 /dev/rdsk/c2t1d0s3
Replace Disk

#ioscan
#insf

Create partition file
# cat /tmp/partitionfile
2
EFI 500MB
HPUX 100%

create partition on disk
#idisk -f /tmp/partitionfile -w /dev/rdsk/c2t0d0s2

check partition
#idisk /dev/rdsk/c2t0d0

install driver
#insf -e -H 0/1/1/0.0.0

#ioscan -funCdisk

Restore VG information
#vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t0d0s2

Activate disk
#pvchange -a y /dev/dsk/c2t0d0s2

Activate vg
#vgchange -a y vg00

place boot utolities
#mkboot -e -l /dev/rdsk/c2t0d0

make auto file in current directory
#echo "boot vmunix -lq" >./AUTO

update auto file
#efi_cp -d /dev/rdsk/c2t0d0s1 ./AUTO /efi/hpux/auto

#pvdisplay -v /dev/rdsk/c2t0d0s2|grep 'current.*0000 $'

Recover any missing links to all of the ogical volumes specified in the Boot Data
Reserved Area and update the Boot Data Reserved Area of each bootable physical
volume in the volume group
#lvlnboot -R /dev/vg00

#lvlnboot -v


#setboot -v

check wether all lvols are syscd
#vgdisplay -v vg00|grep syncd


Torsten.
Acclaimed Contributor

Re: replacing a failing primary mirrored boot disk

Some steps are for pre 11.23 - so it's really better to use this

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.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!   
BR86528
Occasional Advisor

Re: replacing a failing primary mirrored boot disk

Hi:

Thank you so much. It's now clear to me about the LVM OLAR capability.

BTW, this is the swlist output
# swlist -l fileset|grep Cumulative
# PHCO_35587 1.0 Software Distributor Cumulative Patch
# PHCO_36994 1.0 VxVM 3.5m Command Cumulative Patch 13
# PHKL_23666 1.0 SCSI IO Subsystem Cumulative Patch
# PHKL_29818 1.0 Cumulative DLKM module patch
# PHKL_30310 1.0 Cumulative USB Driver patch
# PHKL_35422 1.0 GIO Cumulative Patch
# PHKL_35970 1.0 LVM Cumulative Patch
# PHKL_36133 1.0 Cumulative VM, Psets, Preemption, PRM, MRG
# PHKL_36521 1.0 SCSI Ultra160 Cumulative Patch
# PHKL_36995 1.0 VxVM 3.5m Kernel Cumulative Patch 12
# PHKL_37544 1.0 SCSI IO Cumulative Patch
# PHNE_34777 1.0 Cumulative STREAMS Patch
# PHNE_35939 1.0 Cumulative Mux and Pty Patch
# PHSS_27700 1.0 CPSlib Cumulative Patch (OMP V2.0 for 11.11)
# PHSS_29487 1.0 GSS-API Version 1.0 Cumulative patch
# PHSS_31240 1.0 ObAM Cumulative Patch

I'm not sure if it has the LVM OLAR file set

Pls verify again.

Thank you.
Torsten.
Acclaimed Contributor

Re: replacing a failing primary mirrored boot disk

Most easy way to check:

# man pvchange

if you see

/usr/sbin/pvchange [-A autobackup] -a availability pv_path

NOTE: "-a"

you are ready to use it.

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!   
BR86528
Occasional Advisor

Re: replacing a failing primary mirrored boot disk

Hi;

Thank you so much.
I think i have the patch already as i checked within the patch database.

Thanks again.

Regards and god bless
Sandeep_Chaudhary
Trusted Contributor

Re: replacing a failing primary mirrored boot disk

U r welcome!!!

I think u forget to assign points..........
BR86528
Occasional Advisor

Re: replacing a failing primary mirrored boot disk

Hi:

Im sorry but this is the first time i posted on the forum.
I assigned a point but dont know who got it..

Im sorry.. Next time i'll be carefull..

Thank you so much
BR86528
Occasional Advisor

Re: replacing a failing primary mirrored boot disk

Hi:

I assigned a point again. pls let me know if you get it..

thanks to all.