Thanks. I checked tgt by "sudo service tgt status". The result is okay, but I cannot create a target and also cannot find the tgtd process using ps. Here's the output: hadoop@kelvin-desktop ~ $ sudo tgtadm --lld iscsi --mode target --op new --tid 1 --targetname iqn.2013-5.com.example:hlfs tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected hadoop@kelvin-desktop ~ $ ps aux | grep tgt hadoop 3671 0.0 0.0 5828 840 pts/1 S+ 15:49 0:00 grep --colour=auto tgt On Sat, May 04, 2013 at 07:55:26AM -0700, ronnie sahlberg wrote: > It already started when you ran sudo service tgt restart > To check if tgt is running you should use "sudo service tgt status" > not chkconfig. > > Use the service command to start/stop/check the service at runtime. > > > chkconfig is something different. It is used to configure whether or > not the service will be automatically started when you reboot the > system. > > > So usually when you set up a service for the first time you > 1, use "service ... start" to start it up. > 2, use "chkconfig --on" to configure the system so that it will be > automatically restarted when you reboot > > > > > > On Fri, May 3, 2013 at 11:41 PM, Wang Sen <kelvin.xupt@xxxxxxxxx> wrote: > > Hi all, > > > > I installed tgt under Ubuntu system by apt-get. But It seems that tgtd cannot > > start. > > > > hadoop@kelvin-desktop ~ $ sudo service tgt restart > > [sudo] password for hadoop: > > tgt stop/waiting > > tgt start/running > > hadoop@kelvin-desktop ~ $ chkconfig --list | grep tgt > > tgt 0:off 1:off 2:off 3:off 4:off 5:off 6:off > > hadoop@kelvin-desktop ~ $ sudo service tgt start > > start: Job is already running: tgt > > > > Can anyone tell me the reason and how to fix it? > > > > Thanks. > > -- > > To unsubscribe from this list: send the line "unsubscribe stgt" in > > the body of a message to majordomo@xxxxxxxxxxxxxxx > > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe stgt" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html