Search This Blog

Thursday, July 10, 2014

Disk Replacement - HP 9000 (PA-RISC) 11.31 - Persistent DSF

Disk Replacement - HP 9000 (PA-RISC) 11.31 - Persistent DSF
1.  Save hardware paths information of the disk (printout or file). It is 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/rdisk/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
             0/1/1/0.0xa.0x0
                      /dev/disk/disk8   /dev/rdisk/disk8

# 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

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/rdisk/disk8
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.  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

# 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/rdisk/disk8

# 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/rdisk/disk8

8.  Repopulate the LIF area:

# mkboot /dev/disk/disk8

9.  Change the AUTO file contents to the proper mode:
A)  Primary boot disk.

# mkboot –a “hpux” /dev/disk/disk8

B)  Alternate boot disk.

# mkboot –a “hpux –lq” /dev/disk/disk8

10. Reattach the new disk:

# pvchange -a y /dev/disk/disk8

11. Use lvlnboot to ensure that the LVM logical volumes are prepared to be root, primary swap or dump volume.

# lvlnboot -R
# lvlnboot -v

12. 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

13. Use lvlnboot to ensure that the LVM logical volumes are prepared to be root, primary swap or dump volume.

# lvlnboot -R
# lvlnboot –v

14. 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