Disk Replacement - Integrity (Itanium) 11.31 - Persistent DSF
1.
Save hardware paths information of
the disk (printout or file). It's very important to save this information,
since some of these details won't be available after the scsimgr command.
#
ioscan -fnkNC disk
Class I
H/W Path Driver S/W State H/W Type Description
===================================================================
disk 8
64000/0xfa00/0x2 esdisk NO_HW
DEVICE HP 36.4GST336754LC
/dev/disk/disk8 /dev/disk/disk8_p2 /dev/rdisk/disk8 /dev/rdisk/disk8_p2
/dev/disk/disk8_p1 /dev/disk/disk8_p3 /dev/rdisk/disk8_p1 /dev/rdisk/disk8_p3
#
ioscan -m lun
Class I
Lun H/W Path Driver S/W State
H/W Type Health Description
=======================================================================
disk 8
64000/0xfa00/0x2 esdisk NO_HW
DEVICE offline HP 36.4GST336754LC
0/1/1/0.0xa.0x0
/dev/disk/disk8 /dev/disk/disk8_p2 /dev/rdisk/disk8 /dev/rdisk/disk8_p2
/dev/disk/disk8_p1 /dev/disk/disk8_p3 /dev/rdisk/disk8_p1 /dev/rdisk/disk8_p3
#
ioscan -fnkNC lunpath
Class I
H/W Path Driver S/W State H/W Type Description
==================================================================
lunpath 2
0/1/1/0.0xa.0x0 eslpt NO_HW
LUN_PATH LUN path for disk8
|
Note: If the server is rebooted to execute the change, only the new
LUN instance will be displayed. The old LUN will disappear from the ioscan
output. Keep the output of these commands in a secure place.
2.
Detach the physical volume from the
volume group.
#
pvchange -a N /dev/disk/disk8_p2
|
3.
Physically replace the disk.
4.
Replacing and executing ioscan again
won't report the disk as CLAIMED yet. Checking the lunpath(s) you should be
able to see the AUTH_FAILED state. This is a security mechanism implemented on
HP-UX 11.31 to avoid replacing the bad disk unless you explicitly authorize it
from the OS.
#
scsimgr get_info -C lunpath -I 2
STATUS INFORMATION FOR LUN
PATH : lunpath2
Generic
Status Information
SCSI
services internal state
= UNOPEN
Open
close state
= AUTH_FAILED
|
5.
Notify the mass storage subsystem
that the disk has been replaced (Authorize the replacement). Make sure you have
created the logs specified in step #1, the lunpath HW path can't be read from
the original disk after this command.
#
scsimgr -f replace_wwid -D /dev/rdisk/disk8
scsimgr:
Successfully validated binding of LUN paths with new LUN.
|
Note: This command allows the storage subsystem to replace the old
disk's LUN World-Wide-Identifier (WWID) with the new disk's LUN WWID. The
storage subsystem will create a new LUN instance and new device special files
for the new disk. This command is not required if you reboot the server because
no lunpath will be assign to the old /dev/rdisk/disk8, because the system
automatically authorizes the replacement after the reboot.
6.
Determine the new persistent device
special file (agile view) of the disk. The lunpath HW path(0/1/1/0.0xa.0x0) was
originally assigned to disk8, it is now temporary assigned to disk3 in this example.
Using the lunpath HW path you ensure that disk3 is the correct new disk that
replaces disk8.
#
ioscan -m lun
Class I
Lun H/W Path Driver S/W State
H/W Type Health Description
=======================================================================
disk 8
64000/0xfa00/0x2 esdisk NO_HW
DEVICE offline HP 36.4GST336754LC
/dev/disk/disk8 /dev/disk/disk8_p2 /dev/rdisk/disk8 /dev/rdisk/disk8_p2
/dev/disk/disk8_p1 /dev/disk/disk8_p3 /dev/rdisk/disk8_p1 /dev/rdisk/disk8_p3
disk 3
64000/0xfa00/0x3 esdisk CLAIMED
DEVICE online HP 36.4GST336753LC
0/1/1/0.0xa.0x0
/dev/disk/disk3 /dev/rdisk/disk3
|
7.
Create a description file to create
the EFI partitions. Use the following command:
#
cat >> /tmp/idf << EOF
3
EFI
500MB
HPUX
100%
HPSP
400MB
|
8.
Use idisk to setup the disk
partitioning using the file created above and create the persistent device
special files.
#
idisk -wf /tmp/idf /dev/rdisk/disk#
|
Note:There will be a prompt with a message saying the operation may be
destructive and asks to continue. Be sure to answer 'yes' for the operation to
be successful. If the prompt is answered with 'y' only, an error is received
along with a message saying "user aborting".
#
insf -e -H 64000/0xfa00/0x#
insf:
Installing special files for esdisk instance # address 64000/0xfa00/0x#
|
9.
Verify the state of the mass storage
subsystem after creating the EFI partitions.
#
ioscan -m lun
Class I
Lun H/W Path Driver S/W State
H/W Type Health Description
=======================================================================
disk 8
64000/0xfa00/0x2 esdisk NO_HW
DEVICE offline HP 36.4GST336754LC
/dev/disk/disk8 /dev/disk/disk8_p2 /dev/rdisk/disk8 /dev/rdisk/disk8_p2
/dev/disk/disk8_p1 /dev/disk/disk8_p3 /dev/rdisk/disk8_p1 /dev/rdisk/disk8_p3
disk 3
64000/0xfa00/0x3 esdisk CLAIMED
DEVICE online HP 36.4GST336753LC
0/1/1/0.0xa.0x0
/dev/disk/disk3 /dev/disk/disk3_p2 /dev/rdisk/disk3 /dev/rdisk/disk3_p2
/dev/disk/disk3_p1 /dev/disk/disk3_p3 /dev/rdisk/disk3_p1 /dev/rdisk/disk3_p3
|
10.
Assign the old instance number to the
replacement disk. This commands restores disk8 as the valid device file to
acces the new disk and removes disk3 device files.
#
io_redirect_dsf -d /dev/disk/disk8 -n /dev/disk/disk3
|
Note:If you miss to create the efi partition before using
io_redirect_dsf, the command will gracefully fail with the following error
message:
#
io_redirect_dsf -d /dev/disk/disk8 -n /dev/disk/disk3
Number
of old DSFs=8.
Number
of new DSFs=2.
The
number of old and new DSFs must be the same.
|
11.
Verify that the io_redirect_dsf has
properly attached the disk to the previous persistent dsf and that the physical volume status is CLAIMED.
#
ioscan -m lun
Class I
Lun H/W Path Driver S/W State
H/W Type Health Description
======================================================================
disk 8
64000/0xfa00/0x3 esdisk CLAIMED
DEVICE online HP 36.4GST336753LC
0/1/1/0.0xa.0x0
/dev/disk/disk8 /dev/disk/disk8_p2 /dev/rdisk/disk8 /dev/rdisk/disk8_p2
/dev/disk/disk8_p1 /dev/disk/disk8_p3 /dev/rdisk/disk8_p1 /dev/rdisk/disk8_p3
#
ioscan -fnkNC disk
Class I
H/W Path Driver S/W State H/W Type Description
===================================================================
disk 8
64000/0xfa00/0x3 esdisk CLAIMED
DEVICE HP 36.4GST336753LC
/dev/disk/disk8 /dev/disk/disk8_p2 /dev/rdisk/disk8 /dev/rdisk/disk8_p2
/dev/disk/disk8_p1 /dev/disk/disk8_p3 /dev/rdisk/disk8_p1 /dev/rdisk/disk8_p3
|
12.
Use mkboot to format and populate the
newly created EFI partition:
#
mkboot -e -l /dev/dsk/disk8
|
13.
Change the AUTO file contents to the
proper mode:.
A)
Primary boot disk.
#
cat >> /tmp/auto << EOF
boot
vmunix
EOF
#
efi_cp –d /dev/rdisk/disk8_p1 /tmp/auto /efi/hpux/auto
|
B)
Alternate boot disk.
#
cat >> /tmp/auto << EOF
boot
vmunix –lq
EOF
#
efi_cp –d /dev/rdisk/disk8_p1 /tmp/auto /efi/hpux/auto
|
14.
Restore the LVM reserved areas
(PVRA/VGRA).
#
vgcfgrestore –n vg00 /dev/rdisk/disk8_p2
|
15.
Reattach the new disk:
#
pvchange -a y /dev/rdisk/disk8_p2
|
16.
Reactivate the volume group to attach
the physical volume.
#
vgchange –a y vgXX
|
Note: In case that the volume group don’t start to synchronize the
logical volumes automatically, you can force synchronization with:
#
vgsync vgXX
|
17.
Use lvlnboot to ensure that the LVM
logical volumes are prepared to be root, primary swap or dump volume.
#
lvlnboot -R
#
lvlnboot -v
|
18.
Update /stand/bootconf to reflect
your current boot disks. The format is "l" for "larry"
followed by an space and the disk name, for example:
#
cat /stand/bootconf
l
/dev/disk/disk8
|
No comments:
Post a Comment