tgtadm 데몬이 중지되는 과정에서 subsys내에 id값이 제대로 삭제가 되지 않아서 발생
/var/lock/subsys
클라이언트 프로그램이 실행되기 위해서는 데몬들이 /var/lock/subsys에
실행 id를 생성하므로 이 디렉토리를 탐색하면 현재 어떤 데몬이 실행중인지를 알수 있다.
[root@localhost ~]# /etc/init.d/tgtd start tgtadm: can't connect to the tgt daemon, Connection refused tgtadm: can't send the request to the tgt daemon, Transport endpoint is not connected Failed to shutdown target Starting SCSI target daemon: [ OK ]
[root@localhost ~]# /etc/init.d/tgtd status /etc/sysconfig/tgtd: line 1: default-driver: command not found tgtd 는 종료되었으나 subsys가 잠겨있음
[root@localhost subsys]# ll /var/lock/subsys/tgtd -rw-r--r-- 1 root root 0 7월 1 11:54 /var/lock/subsys/tgtd
[root@localhost subsys]# rm /var/lock/subsys/tgtd rm: remove 일반 빈 파일 `/var/lock/subsys/tgtd'? y removed `/var/lock/subsys/tgtd'
[root@localhost subsys]# /etc/init.d/tgtd start
Starting SCSI target daemon: [ OK ] |