Linux iSCSI: differenze tra le versioni

Da Emigar.
Jump to navigation Jump to search
(Creata pagina con '<pre> #!/bin/sh iscsiadm -m iface #default tcp,<empty>,<empty>,<empty>,<empty> #iser iser,<empty>,<empty>,<empty>,<empty> #eth0-bnx2i bnx2i,f0:92:1c:02:d7:49,<empty>,<empty>,<em...')
 
Nessun oggetto della modifica
 
(6 versioni intermedie di uno stesso utente non sono mostrate)
Riga 1: Riga 1:
ftp://ftp.supermicro.com/CDR-NIC_1.31_for_Add-on_NIC_Cards/Broadcom/Manuals/English/linux.htm

<pre>
<pre>
#!/bin/sh
#!/bin/sh
Riga 25: Riga 27:
iscsiadm -m node -I eth1-bnx2i --login
iscsiadm -m node -I eth1-bnx2i --login
</pre>
</pre>

<pre>
iscsiadm -m node -I eth0-bnx2i -T iqn.2003-10.com.redhat.host:data-lun01 --op update -n node.startup -v automatic
iscsiadm -m node -I eth1-bnx2i -T iqn.2003-10.com.redhat.host:data-lun01 --op update -n node.startup -v automatic
</pre>

<pre>
iscsiadm -m iface -I eth0-bnx2i
# BEGIN RECORD 2.0-872.suse
iface.iscsi_ifacename = eth0-bnx2i
iface.net_ifacename = <empty>
iface.ipaddress = 10.1.1.1
iface.hwaddress = f0:92:1c:02:d7:49
iface.transport_name = bnx2i
iface.initiatorname = <empty>
iface.bootproto = <empty>
iface.subnet_mask = 255.255.255.0
iface.gateway = <empty>
iface.ipv6_autocfg = <empty>
iface.linklocal_autocfg = <empty>
iface.router_autocfg = <empty>
iface.ipv6_linklocal = <empty>
iface.ipv6_router = <empty>
iface.state = <empty>
iface.vlan_id = 0
iface.vlan_priority = 0
iface.vlan_state = <empty>
iface.iface_num = 0
iface.mtu = 0
iface.port = 0
# END RECORD
</pre>


<pre>
more /etc/multipath.conf
defaults {
getuid_callout "/lib/udev/scsi_id --whitelisted --page=0x83 --device=/dev/%n"
path_grouping_policy multibus
path_checker readsector0
rr_min_io 100
rr_weight priorities
failback immediate
no_path_retry fail
user_friendly_names yes
}

blacklist {
# internal disks
wwid 3600508b1001ccf78e4b2a3cde5d3ad2d
wwid 3600508b1001c0a6531ac265a8a614c16
}
</pre>


[[Categoria:Unix]]
[[Categoria:OpenSource]]

Versione attuale delle 15:54, 6 mar 2014

ftp://ftp.supermicro.com/CDR-NIC_1.31_for_Add-on_NIC_Cards/Broadcom/Manuals/English/linux.htm

#!/bin/sh
iscsiadm -m iface

#default tcp,<empty>,<empty>,<empty>,<empty>
#iser iser,<empty>,<empty>,<empty>,<empty>
#eth0-bnx2i bnx2i,f0:92:1c:02:d7:49,<empty>,<empty>,<empty>
#bnx2i.f0:92:1c:02:d7:49 bnx2i,f0:92:1c:02:d7:49,<empty>,<empty>,<empty>
#eth1-bnx2i bnx2i,f0:92:1c:02:d7:4d,<empty>,<empty>,<empty>
#bnx2i.f0:92:1c:02:d7:4d bnx2i,f0:92:1c:02:d7:4d,<empty>,<empty>,<empty>

iscsiadm -m node -I eth0-bnx2i --logout
iscsiadm -m node -I eth1-bnx2i --logout

iscsiadm -m iface -I eth0-bnx2i -o update -n iface.ipaddress -v 10.1.1.1
iscsiadm -m iface -I eth0-bnx2i -o update -n iface.subnet_mask -v 255.255.255.0
iscsiadm -m iface -I eth1-bnx2i -o update -n iface.ipaddress -v 10.1.1.2
iscsiadm -m iface -I eth1-bnx2i -o update -n iface.subnet_mask -v 255.255.255.0

sleep 20

iscsiadm -m discoverydb -t st -p 10.1.1.80 -I eth0-bnx2i -I eth1-bnx2i --discover

iscsiadm -m node -I eth0-bnx2i --login
iscsiadm -m node -I eth1-bnx2i --login
 iscsiadm -m node -I eth0-bnx2i -T iqn.2003-10.com.redhat.host:data-lun01 --op update -n node.startup -v automatic
 iscsiadm -m node -I eth1-bnx2i -T iqn.2003-10.com.redhat.host:data-lun01 --op update -n node.startup -v automatic
iscsiadm -m iface -I eth0-bnx2i
# BEGIN RECORD 2.0-872.suse
iface.iscsi_ifacename = eth0-bnx2i
iface.net_ifacename = <empty>
iface.ipaddress = 10.1.1.1
iface.hwaddress = f0:92:1c:02:d7:49
iface.transport_name = bnx2i
iface.initiatorname = <empty>
iface.bootproto = <empty>
iface.subnet_mask = 255.255.255.0
iface.gateway = <empty>
iface.ipv6_autocfg = <empty>
iface.linklocal_autocfg = <empty>
iface.router_autocfg = <empty>
iface.ipv6_linklocal = <empty>
iface.ipv6_router = <empty>
iface.state = <empty>
iface.vlan_id = 0
iface.vlan_priority = 0
iface.vlan_state = <empty>
iface.iface_num = 0
iface.mtu = 0
iface.port = 0
# END RECORD


more /etc/multipath.conf 
defaults {
	getuid_callout		"/lib/udev/scsi_id --whitelisted --page=0x83 --device=/dev/%n"
	path_grouping_policy	multibus
	path_checker		readsector0
	rr_min_io		100
	rr_weight		priorities
	failback		immediate
	no_path_retry		fail
	user_friendly_names	yes
}

blacklist {
        # internal disks
	wwid 3600508b1001ccf78e4b2a3cde5d3ad2d
	wwid 3600508b1001c0a6531ac265a8a614c16
}