게시물 1,376건
   
[ISCSI Error] Some initiators are still connected - could not stop tgtd
글쓴이 : 최고관리자 날짜 : 2011-07-01 (금) 11:43 조회 : 9868
글주소 :
                                
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

이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.