[root@node1 iqn.2006-01.com.openfiler:disk1]# iscsiadm -m iface -I eth1 -o new
New interface eth1 added
[root@node1 iqn.2006-01.com.openfiler:disk1]# pwd
/var/lib/iscsi/nodes/iqn.2006-01.com.openfiler:disk1
[root@node1 iqn.2006-01.com.openfiler:disk1]# cd ../../..
[root@node1 lib]# cd iscsi/
[root@node1 iscsi]# ls
ifaces isns nodes send_targets slp static
[root@node1 iscsi]# cd ifaces/
[root@node1 ifaces]# ls
eth1
[root@node1 ifaces]# cat eth1
# BEGIN RECORD 2.0-871
iface.iscsi_ifacename = eth1
iface.transport_name = tcp
# END RECORD
[root@node1 ifaces]# iscsiadm -m discovery -t st -p private.storage -I eth1
192.168.2.100:3260,1 iqn.2006-01.com.openfiler:disk2
192.168.1.100:3260,1 iqn.2006-01.com.openfiler:disk2
192.168.2.100:3260,1 iqn.2006-01.com.openfiler:disk1
192.168.1.100:3260,1 iqn.2006-01.com.openfiler:disk1
[root@node1 ifaces]# iscsiadm -m iface -I eth1 -o delete
eth1 unbound and deleted.
[root@node1 ifaces]# iscsiadm -m node -o delete
iscsiadm: no records found!
[root@node1 ifaces]# iscsiadm -m node
iscsiadm: no records found!
New interface eth1 added
[root@node1 iqn.2006-01.com.openfiler:disk1]# pwd
/var/lib/iscsi/nodes/iqn.2006-01.com.openfiler:disk1
[root@node1 iqn.2006-01.com.openfiler:disk1]# cd ../../..
[root@node1 lib]# cd iscsi/
[root@node1 iscsi]# ls
ifaces isns nodes send_targets slp static
[root@node1 iscsi]# cd ifaces/
[root@node1 ifaces]# ls
eth1
[root@node1 ifaces]# cat eth1
# BEGIN RECORD 2.0-871
iface.iscsi_ifacename = eth1
iface.transport_name = tcp
# END RECORD
[root@node1 ifaces]# iscsiadm -m discovery -t st -p private.storage -I eth1
192.168.2.100:3260,1 iqn.2006-01.com.openfiler:disk2
192.168.1.100:3260,1 iqn.2006-01.com.openfiler:disk2
192.168.2.100:3260,1 iqn.2006-01.com.openfiler:disk1
192.168.1.100:3260,1 iqn.2006-01.com.openfiler:disk1
[root@node1 ifaces]# iscsiadm -m iface -I eth1 -o delete
eth1 unbound and deleted.
[root@node1 ifaces]# iscsiadm -m node -o delete
iscsiadm: no records found!
[root@node1 ifaces]# iscsiadm -m node
iscsiadm: no records found!
No comments:
Post a Comment