Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cmd:sanhook [2012/03/24 20:31]
mcb30
cmd:sanhook [2017/03/26 13:38]
mcb30
Line 3: Line 3:
 ===== Synopsis ===== ===== Synopsis =====
  
-    sanhook [--drive <​drive>​] [--no-describe] <uri>+    sanhook [--drive <​drive>​] [--no-describe] <​uri> ​[<​uri>​...]
  
 ===== Examples ===== ===== Examples =====
Line 10: Line 10:
  
     sanhook iscsi:​10.0.4.1:::​1:​iqn.2010-04.org.ipxe.dolphin:​storage     sanhook iscsi:​10.0.4.1:::​1:​iqn.2010-04.org.ipxe.dolphin:​storage
 +
 +=== Attach a multipath iSCSI target ===
 +
 +    sanhook iscsi:​192.168.0.101::::​iqn.2010-04.org.ipxe.squirrel:​storage \
 +            iscsi:​192.168.0.102::::​iqn.2010-04.org.ipxe.squirrel:​storage
 +
 +=== Attach two independent iSCSI targets ===
 +
 +    sanhook --drive 0x80 iscsi:​10.0.4.1:::​1:​iqn.2010-04.org.ipxe.dolphin:​storage
 +    sanhook --drive 0x81 iscsi:​192.168.0.1::::​iqn.2010-04.org.ipxe.chipmunk:​storage
  
 === Check ability to attach a SAN target === === Check ability to attach a SAN target ===
Line 22: Line 32:
 ===== Description ===== ===== Description =====
  
-Attach the specified [[:​sanuri|SAN target ​URI]] as the specified SAN drive. ​ If no SAN drive is explicitly specified then the default SAN drive (''​%%0x80%%''​) will be used.+Attach the specified [[:​sanuri|SAN target ​URIs]] as the specified SAN drive. ​ If no SAN drive is explicitly specified then the default SAN drive (''​%%0x80%%''​) will be used.
  
 The SAN drive will be described via an appropriate mechanism (such as an iBFT for an iSCSI drive) unless the ''​%%--no-describe%%''​ option is specified. The SAN drive will be described via an appropriate mechanism (such as an iBFT for an iSCSI drive) unless the ''​%%--no-describe%%''​ option is specified.
Line 39: Line 49:
 ===== Notes ===== ===== Notes =====
  
-If you wish to attach to multiple SAN targetseach target ​must be attached as a different ​SAN drive.+You can create a multipath SAN device by specifying multiple SAN target URIs.  iPXE will use whichever SAN target responds first, and will retry all URIs if the original SAN target fails for any reason. ​ You must ensure that all SAN URIs in a multipath SAN device point to the same underlying SAN drive. 
 + 
 +If you wish to attach to multiple ​independent ​SAN drivesthen you must use the ''​sanhook''​ command once for each independent ​SAN drive.
  
cmd/sanhook.txt · Last modified: 2017/03/26 13:38 by mcb30
Recent changes RSS feed CC Attribution-Share Alike 4.0 International Driven by DokuWiki
All uses of this content must include an attribution to the iPXE project and the URL https://ipxe.org
References to "iPXE" may not be altered or removed.