[stgt] [RFC] example init.d script for tgtd
    Tomasz Chmielewski 
    mangoo at wpkg.org
       
    Tue Oct 21 15:56:17 CEST 2008
    
    
  
FUJITA Tomonori schrieb:
(...)
>> # tgtd ; tgtadm --lld iscsi --op new --mode target --tid 1 -T iqn.2008-01.....
>> 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
> 
> I guess that 'daemon' program works differently from what you did here
> (that's what I wrote in the previous mail). But I might be wrong since
> I don't know how 'daemon' program works (Debian doesn't have the program).
> 
> For your case, this patch helps (you also need the tgtadm patch that
> I've just sent)?
It helps here.
# tgtd ; tgtadm --lld iscsi --op new --mode target --tid 1 -T iqn....
# tgt-admin -s
Target 1: iqn....
    System information:                               
        Driver: iscsi                                 
(...)
Repeated several times, so it seems like it works.
Restarting still needs "sleep 1s" ;)
# tgtd ; tgtadm --op delete --mode system ; tgtd
(null): iscsi_tcp_init(222) unable to bind server socket, Address already in use
No available low level driver!
# 
# tgtd ; tgtadm --op delete --mode system ; sleep 1s; tgtd
# 
-- 
Tomasz Chmielewski
http://wpkg.org
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
    
    
More information about the stgt
mailing list