setboot(1M) in HP-UX 11i v3
Autosearch is OFF (disabled)
Note: if setboot is run again with the same DSF name to set the primary path (the above example sets the alternate
boot path), a different lunpath to the device will be chosen (if one exists):
# setboot –p /dev/disk/disk13
# setboot
Primary bootpath : 0/5/1/0.0x50001fe15001eea8.0x4001000000000000 (/dev/rdisk/disk13)
Alternate bootpath : 0/5/1/0.0x50001fe15001eead.0x4001000000000000 (/dev/rdisk/disk13)
Autoboot is OFF (disabled)
Autosearch is OFF (disabled)
Set Alternate Boot path using legacy DSF - Not Supported:
The use of legacy DSF to specify the boot path is invalid. The setboot command reports an error stating that a
legacy hardware path, lunpath hardware path or persistent DSF should be used as input for boot paths.
Use ioscan to list the mapping of all the legacy DSFs corresponding to a persistent DSF.
# ioscan -m dsf /dev/rdisk/disk13
Persistent DSF Legacy DSF(s)
===========================================
/dev/rdisk/disk13 /dev/rdsk/c35t0d1
/dev/rdsk/c37t0d1
/dev/rdsk/c31t0d1
/dev/rdsk/c33t0d1
# setboot -a /dev/rdsk/c35t0d1
setboot: "/dev/rdsk/c35t0d1" is not a valid bootpath. Bootpaths should be specified with a
persistent dsf or a legacy hardware path.
Set Alternate Boot Path using lunpath hardware path:
When setboot is used in the agile view, as a general rule, it is preferable to use the persistent DSF as input to
take full advantage of the multi-pathing and failover capabilities. However, there could be cases where the system
administrator would like to set a specific lunpath hardware path as boot path. In this case, he can pass directly the
lunpath hardware path to setboot.
# 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.0x50001fe15001eea8.0x4001000000000000
# setboot
Primary bootpath : 0/1/1/0.0x0.0x0 (/dev/rdisk/disk18)
Alternate bootpath : 0/5/1/0.0x50001fe15001eea8.0x4001000000000000 (/dev/rdisk/disk13)
Autoboot is OFF (disabled)
Autosearch is OFF (disabled
)
Test failover of Boot Paths:
The new mass storage stack allows setboot to support automatic failover of boot paths. If the bootpath (lunpath
written to stable storage) goes offline, setboot will failover to an alternate active lunpath to the same LUN. If there
is no such lunpath, setboot does not make any changes.
The following output from ioscan shows that all the lunpaths to the LUN - /dev/disk/disk13 are active.
14