System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Replace failed boot disk on hpux 11.23

SOLVED
Go to solution
Nappy_1
Frequent Advisor

Replace failed boot disk on hpux 11.23

i need to replace a failed boot disk (primary one) on a rx7640 server running hpux 11.23
the server is booted and runnig on the second boot disk

Could some one help me with a procedure?
11 REPLIES
Pete Randall
Outstanding Contributor
Solution

Re: Replace failed boot disk on hpux 11.23

Steven E. Protter
Exalted Contributor

Re: Replace failed boot disk on hpux 11.23

Shalom,

Its important to say which type of raid you are using.

That system has a P400 card and can use hardware raid. If so, fixing this merely means replacing a hot swap disk.

If indeed as I suspect you used software raid, you have some fun with the when disks go bad document that we all love so much.

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
Avinash20
Honored Contributor

Re: Replace failed boot disk on hpux 11.23

If its a Mirrored disk follow the below

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

"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Avinash20
Honored Contributor

Re: Replace failed boot disk on hpux 11.23

Please dont forget to assign points to this thread !!

All the Best !!
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Torsten.
Acclaimed Contributor

Re: Replace failed boot disk on hpux 11.23

IMHO some steps are missing or different in the reply from Avinash V Rao, so I would suggest to follow the link in the first post.

;-))

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!   
Nappy_1
Frequent Advisor

Re: Replace failed boot disk on hpux 11.23

Thank you Avinash for the detailed answer.
Avinash20
Honored Contributor

Re: Replace failed boot disk on hpux 11.23

Did you replace the disk sucessfully and did everything work fine.
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Nappy_1
Frequent Advisor

Re: Replace failed boot disk on hpux 11.23

not yet ;-) maybe tomorrow
Pete Randall
Outstanding Contributor

Re: Replace failed boot disk on hpux 11.23

And you can be sure Avinash will check back tomorrow to collect another 10 points.


Pete

P.S. No points for this, please

Pete
Nappy_1
Frequent Advisor

Re: Replace failed boot disk on hpux 11.23

hi Pete,
if you come back tomorrow, you will get another 10 points ;-)
點燃
Valued Contributor

Re: Replace failed boot disk on hpux 11.23

Hi ,
We have used this procedure to replace the failed boot disk on a superdome server.

In this case, the disk was /dev/dsk/c0t6d0 and the secondary disk was /dev/dsk/c2t6d0.

# pvchange -a N /dev/dsk/c0t6d0s2 (Detaches all paths to the disk)
# vi /tmp/partitionfile (add following lines)

3
EFI 100MB
HPUX 100%
HPSP 400MB

# idisk -wf /tmp/partitionfile /dev/rdsk/c0t6d0 (Writes the partition file to the disk)
# insf -e -C disk (Recreates the device files for the new disk)
# mkboot -e -l /dev/rdsk/c0t6d0 (Writes EFI info to the EFI partition on the disk)
# efi_ls -d /dev/rdsk/c0t6d0s1 (Lists the contents of the EFI root directory on the disk)
# lifls -l /dev/rdsk/c0t6d0s2 (Lists the contents of the LIF directory on the disk)
# mkboot -a "boot vpmon -a" /dev/dsk/c0t6d0 (Writes the boot string to the AUTO file on the disk)
# efi_cp -d /dev/rdsk/c0t6d0s1 -u /EFI/HPUX/AUTO /tmp/x; cat /tmp/x (Lists the contents of the AUTO file on the disk)
# efi_ls -d /dev/dsk/c0t6d0s1 /EFI/HPUX (Lists the contents of the /EFI/HPUX directory on the disk)
# efi_ls -d /dev/dsk/c2t6d0s1 /EFI/HPUX (Lists the contents of the /EFI/HPUX directory on the disk)
# efi_cp -d /dev/rdsk/c2t6d0s1 -u /EFI/HPUX/crashdump.efi /tmp/crashdump.efi (Writes the contents of the crashdump.efi file on the secondary disk to a temporary file)
# efi_cp -d /dev/rdsk/c0t6d0s1 /tmp/crashdump.efi /EFI/HPUX/ (Writes the crashdump.efi file to the new disk)
# efi_cp -d /dev/rdsk/c2t6d0s1 -u /EFI/HPUX/vparconfig.efi /tmp/vparconfig.efi (Writes the contents of the vparconfig.efi file on the secondary disk to a temporary file)
# efi_cp -d /dev/rdsk/c0t6d0s1 /tmp/vparconfig.efi /EFI/HPUX/ (Writes the vparconfig.efi file to the new disk)
# efi_ls -d /dev/dsk/c0t6d0s1 /EFI/HPUX (Lists the contents of the /EFI/HPUX directory on the disk)
# vgcfgrestore -n vg00 /dev/rdsk/c0t6d0s2 (Restores the LVM configuration information to the new disk)
# pvchange -a y /dev/dsk/c0t6d0s2 (Attaches the path back to the new disk)
# vgchange -a y vg00 (Activates the volume group)
# vgsync /dev/vg00 (Syncs all lvols within the volume group)
# setboot -p 0/0/0/2/0.6.0 (Sets the primary boot path)
# vparefiutil -u -H 0/0/0/2/0.6.0 (Run on all vpars) (Updates the hw_path to EFI_path mappings in the vpar database)
# lvlnboot -b /dev/vg00/lvol1 (Defines lvol1 to be the boot volume on the next boot and updates the Boot Data Reserved Area of each boot disk)
# lvlnboot -r /dev/vg00/lvol3 (Defines lvol3 to be the root volume on the next boot and updates the Boot Data Reserved Area of each boot disk)
# lvlnboot -s /dev/vg00/lvol2 (Defines lvol2 to be the swap volume on the next boot and updates the Boot Data Reserved Area of each boot disk)
# lvlnboot -d /dev/vg00/lvol2 (Defines lvol2 to be the dump volume on the next boot and updates the Boot Data Reserved Area of each boot disk)
# shutdown -ry 0 (Reboots the O/S instance)

You can use setboot command after this to change the default boot device etc..


Hope this helps!
Pradeesh Kumar
Man's mind, once stretched by a new idea, never regains its original dimensions