iscsiadm 註冊和刪除不要的 lun 方法
2013-08-07 17:46
[root@voipdb1 ~]# iscsiadm -m node -p 192.168.101.2 -l
Logging in to [iface: default, target: iqn.1992-04.com.emc:cx.ckm00114501380.b4, portal: 192.168.101.2,3260] (multiple)
Login to [iface: default, target: iqn.1992-04.com.emc:cx.ckm00114501380.b4, portal: 192.168.101.2,3260] successful.
[root@voipdb2 ~]# iscsiadm -m node -p 192.168.101.2 -l
Logging in to [iface: default, target: iqn.1992-04.com.emc:cx.ckm00114501380.b4, portal: 192.168.101.2,3260] (multiple)
Login to [iface: default, target: iqn.1992-04.com.emc:cx.ckm00114501380.b4, portal: 192.168.101.2,3260] successful.
[root@voipdb2 ~]# iscsiadm -m node -p 192.168.104.2 -l
Logging in to [iface: default, target: iqn.1992-04.com.emc:cx.ckm00114501380.b5, portal: 192.168.104.2,3260] (multiple)
Login to [iface: default, target: iqn.1992-04.com.emc:cx.ckm00114501380.b5, portal: 192.168.104.2,3260] successful.
[root@voipdb1 ~]# iscsiadm -m node
192.168.106.3:3260,3 iqn.1992-04.com.emc:cx.ckm00114501380.a6
192.168.105.2:3260,7 iqn.1992-04.com.emc:cx.ckm00114501380.b6
192.168.102.47:3260,10 iqn.1992-04.com.emc:cx.ckm00114501380.a9
192.168.101.2:3260,5 iqn.1992-04.com.emc:cx.ckm00114501380.b4
192.168.104.1:3260,2 iqn.1992-04.com.emc:cx.ckm00114501380.a5
192.168.102.48:3260,11 iqn.1992-04.com.emc:cx.ckm00114501380.b8
192.168.106.2:3260,8 iqn.1992-04.com.emc:cx.ckm00114501380.b7
192.168.106.1:3260,4 iqn.1992-04.com.emc:cx.ckm00114501380.a7
192.168.102.49:3260,12 iqn.1992-04.com.emc:cx.ckm00114501380.b9
192.168.104.2:3260,6 iqn.1992-04.com.emc:cx.ckm00114501380.b5
192.168.101.1:3260,1 iqn.1992-04.com.emc:cx.ckm00114501380.a4
192.168.102.46:3260,9 iqn.1992-04.com.emc:cx.ckm00114501380.a8
[root@voipdb1 ~]# iscsiadm -m node -o delete -p 192.168.106.3
[root@voipdb1 ~]# iscsiadm -m node -o delete -p 192.168.105.2
[root@voipdb1 ~]# iscsiadm -m node -o delete -p 192.168.102.47
[root@voipdb1 ~]# iscsiadm -m node -o delete -p 192.168.102.48
[root@voipdb1 ~]# iscsiadm -m node -o delete -p 192.168.106.2
[root@voipdb1 ~]# iscsiadm -m node -o delete -p 192.168.106.1
[root@voipdb1 ~]# iscsiadm -m node -o delete -p 192.168.102.49
[root@voipdb1 ~]# iscsiadm -m node -o delete -p 192.168.102.46
[root@voipdb1 ~]# iscsiadm -m node
192.168.101.2:3260,5 iqn.1992-04.com.emc:cx.ckm00114501380.b4
192.168.104.1:3260,2 iqn.1992-04.com.emc:cx.ckm00114501380.a5
192.168.104.2:3260,6 iqn.1992-04.com.emc:cx.ckm00114501380.b5
192.168.101.1:3260,1 iqn.1992-04.com.emc:cx.ckm00114501380.a4