ISCSI ½ºÅ丮Áö¿¡¼ ƯÁ¤Å¸ÄÏÀ» Áö¿ì·Á°í ÇÒ¶§ ¹ß»ýµÇ´Â ¿¡·¯
[root@localhost ~]# /etc/init.d/tgtd stop
/etc/sysconfig/tgtd: line 1: default-driver: command not found
Stopping SCSI target daemon: Stopping target framework daemon
Some initiators are still connected - could not stop tgtd
[root@localhost init.d]# tgtadm --op delete --mode target --tid 2 tgtadm: this target is still active |
¾Æ·¡Ã³·³ initator ¿¡ ±âÁ¸Á¢¼ÓÁ¤º¸°¡ ³²¾ÆÀÖ¾î¼ ¹ß»ýµÇ´Â ¿¡·¯ÀÌ´Ù.
Target 2: iqn.2011-02.com.mojily:XXX.XXX.XXX.XXX System information: Driver: iscsi State: ready I_T nexus information: I_T nexus: 6 Initiator: iqn.1987-05.com.intel:002590XX1FXX Connection: 1 IP Address: 192.168.1.1 LUN information: LUN: 0 Type: controller SCSI ID: IET 00020000 SCSI SN: beaf20 Size: 0 MB Online: Yes Removable media: No Backing store type: null Backing store path: None Backing store flags: Account information: ACL information: 192.168.1.1 |
ÀÌ·²¶§´Â °Á¦¿É¼Ç -f ¿Í ¼³Á¤ÆÄÀÏ ¿É¼Ç -c ¸¦ Á¶ÇÕÇؼ ¾Æ·¡Ã³·³ °Á¦·Î Áö¿ö¹ö¸®¸é µÈ´Ù.
-f, --force force some operations even if the target is in use
-c, --conf <conf file> specify an alternative configuration file
[root@localhost ~]# tgt-admin --update tid=2 -c /dev/null -f |
¡Ø ¸ðµÎ Áö¿ö¹ö¸±²¨¸é ALL
[root@localhost ~]# tgt-admin --update ALL -c /dev/null -f