Linux iSCSI
Jump to navigation
Jump to search
#!/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