setboot(1M) in HP-UX 11i v3
Appendix A: Examples of setboot Usage
The following examples illustrate the usage of setboot with the new options. Outputs of the scsimgr and ioscan
commands have also been included for clarity. The output of ioscan has been trimmed for readability.
Note: ioscan has been used throughout these examples to illustrate the mappings between (a) legacy and
lunpath hardware paths, (b) persistent and legacy DSFs and the lunpath hardware paths to a LUN.
Display the current Boot Path settings in stable storage:
The setboot command displays lunpath and persistent LUN DSF information for every boot path.
# setboot
Primary bootpath : 0/1/1/0.0x0.0x0 (/dev/rdisk/disk18)
Alternate bootpath : 0/1/1/0.0x0.0x0 (/dev/rdisk/disk18)
Autoboot is OFF (disabled)
Autosearch is OFF (disabled)
Set Alternate Boot Path using legacy hardware path:
Legacy hardware paths may be used as input for boot path to setboot, for backward compatibility. However
setboot output will display the persistent DSF and an available lunpath hardware path to the device.
# ioscan -m hwpath -H 0/5/1/0.0x50001fe15001eead.0x4001000000000000
Lun H/W Path Lunpath H/W Path Legacy H/W Path
=====================================================================================
64000/0xfa00/0xd
0/5/1/0.0x50001fe15001eead.0x4001000000000000 0/5/1/0.97.19.19.0.0.1
# setboot -a 0/5/1/0.97.19.19.0.0.1
# setboot
Primary bootpath : 0/1/1/0.0x0.0x0 (/dev/rdisk/disk18)
Alternate bootpath : 0/5/1/0.0x50001fe15001eead.0x4001000000000000 (/dev/rdisk/disk13)
Autoboot is OFF (disabled)
Autosearch is OFF (disabled)
Set Alternate Boot Path using persistent DSF:
To support Agile Addressing, setboot now accepts a persistent DSF as valid input. The setboot command finds
an active lunpath to the LUN and writes it to stable storage.
# ioscan -m lun /dev/rdisk/disk13
Class I Lun H/W Path Driver S/W State H/W Type Health Description
======================================================================================
disk 13 64000/0xfa00/0xd esdisk CLAIMED DEVICE online COMPAQ HSV111 (C)COMPAQ
0/5/1/0.0x50001fe15001eead.0x4001000000000000
0/5/1/0.0x50001fe15001eeac.0x4001000000000000
0/5/1/0.0x50001fe15001eea8.0x4001000000000000
0/5/1/0.0x50001fe15001eea9.0x4001000000000000
/dev/disk/disk13 /dev/rdisk/disk13
# setboot –a /dev/disk/disk13
# setboot
Primary bootpath : 0/1/1/0.0x0.0x0 (/dev/rdisk/disk18)
Alternate bootpath : 0/5/1/0.0x50001fe15001eead.0x4001000000000000 (/dev/rdisk/disk13)
Autoboot is OFF (disabled)
13