Re: tgtd startup problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Tomasz,

thanks for the hints. The netstat looks fine, no port 3260 is actually in use.
As for the strace, I am not an expert on that. Maybe you can find a clue?

Albert


Tomasz Chmielewski wrote:

Such obvious things like:

netstat -tpna
tcp 0 0 0.0.0.0:52615 0.0.0.0:* LISTEN 2010/rpc.statd tcp 0 0 0.0.0.0:59949 0.0.0.0:* LISTEN 1968/iscsid tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1978/rpcbind tcp 0 0 127.0.0.1:7634 0.0.0.0:* LISTEN 2404/hddtemp tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2379/sshd tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2495/cupsd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2429/sendmail: acce tcp 1 0 192.168.1.40:46977 134.109.132.16:80 CLOSE_WAIT 6775/python tcp 0 0 192.168.1.40:49774 74.125.79.104:80 TIME_WAIT - tcp 0 0 192.168.1.40:49772 74.125.79.104:80 TIME_WAIT - tcp 0 0 192.168.1.40:49498 192.168.1.3:993 TIME_WAIT - tcp 1 0 192.168.1.40:46666 158.197.16.70:80 CLOSE_WAIT 6775/python tcp 0 0 192.168.1.40:44630 192.168.1.3:993 TIME_WAIT - tcp 1 0 192.168.1.40:59301 129.177.13.104:80 CLOSE_WAIT 6775/python tcp 0 0 192.168.1.40:49492 192.168.1.3:993 ESTABLISHED 3160/mail-notificat tcp 1 0 192.168.1.40:36307 199.6.1.174:80 CLOSE_WAIT 6775/python tcp 1 0 192.168.1.40:43822 195.220.108.108:80 CLOSE_WAIT 6775/python tcp 1 0 192.168.1.40:46978 134.109.132.16:80 CLOSE_WAIT 6775/python tcp 0 0 192.168.1.40:44604 192.168.1.3:993 TIME_WAIT - tcp 1 0 192.168.1.40:37274 129.143.116.10:80 CLOSE_WAIT 6775/python tcp 0 0 :::3205 :::* LISTEN 2318/isnsd tcp 0 0 :::111 :::* LISTEN 1978/rpcbind tcp 0 0 :::22 :::* LISTEN 2379/sshd

or

strace -f tgtd
execve("/usr/sbin/tgtd", ["tgtd"], [/* 29 vars */]) = 0
brk(0)                                  = 0x92ff000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=104678, ...}) = 0
mmap2(NULL, 104678, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f51000
close(3)                                = 0
open("/lib/libcrypto.so.7", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\271\205\0074\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1351056, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f50000 mmap2(0x7828000, 1366072, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7828000 mmap2(0x795f000, 81920, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x136) = 0x795f000 mmap2(0x7973000, 10296, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7973000
close(3)                                = 0
open("/lib/libpthread.so.0", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20X\271\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=131332, ...}) = 0
mmap2(0xb91000, 98784, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb91000 mmap2(0xba6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14) = 0xba6000 mmap2(0xba8000, 4576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xba8000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\247\240\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1758448, ...}) = 0
mmap2(0x9f4000, 1476176, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x9f4000 mmap2(0xb57000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x163) = 0xb57000 mmap2(0xb5a000, 9808, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb5a000
close(3)                                = 0
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\252\270\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=20460, ...}) = 0
mmap2(0xb8a000, 16500, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb8a000 mmap2(0xb8d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb8d000
close(3)                                = 0
open("/lib/libz.so.1", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \266\274\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=79376, ...}) = 0
mmap2(0xbca000, 80624, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xbca000 mmap2(0xbdd000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12) = 0xbdd000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f4f000 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f4e000 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7f4e6c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb8d000, 4096, PROT_READ)     = 0
mprotect(0xb57000, 8192, PROT_READ)     = 0
mprotect(0xba6000, 4096, PROT_READ)     = 0
mprotect(0x9f0000, 4096, PROT_READ)     = 0
munmap(0xb7f51000, 104678)              = 0
set_tid_address(0xb7f4e708)             = 6889
set_robust_list(0xb7f4e710, 0xc)        = 0
futex(0xbfc69ba0, FUTEX_WAKE_PRIVATE, 1) = 0
rt_sigaction(SIGRTMIN, {0xb952c0, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xb95700, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=10240*1024, rlim_max=RLIM_INFINITY}) = 0
uname({sys="Linux", node="orange.pauw.homeunix.net", ...}) = 0
rt_sigaction(SIGINT, {0x8054b60, [], 0}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGPIPE, {0x8054b60, [], 0}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x8054b60, [], 0}, {SIG_DFL}, 8) = 0
epoll_create(4096)                      = 3
socket(PF_NETLINK, SOCK_RAW, 0)         = 4
bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(4, {sa_family=AF_NETLINK, pid=6889, groups=00000000}, [12]) = 0
time(NULL)                              = 1236423566
sendto(4, "\24\0\0\0\26\0\1\3\216S\262I\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0\216S\262I\351\32\0\0\2\10\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0\216S\262I\351\32\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 128 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0\216S\262I\351\32\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
close(4)                                = 0
brk(0)                                  = 0x92ff000
brk(0x9320000)                          = 0x9320000
open("/etc/gai.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
futex(0xb5aad0, FUTEX_WAKE_PRIVATE, 2147483647) = 0
socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET6, sin6_port=htons(3260), inet_pton(AF_INET6, "::", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0 getsockname(4, {sa_family=AF_INET6, sin6_port=htons(45141), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0 connect(4, {sa_family=AF_UNSPEC, sa_data="\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, 16) = 0 connect(4, {sa_family=AF_INET, sin_port=htons(3260), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 getsockname(4, {sa_family=AF_INET6, sin6_port=htons(35001), inet_pton(AF_INET6, "::ffff:127.0.0.1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
close(4)                                = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 4
setsockopt(4, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(4, {sa_family=AF_INET, sin_port=htons(3260), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
listen(4, 128)                          = 0
fcntl64(4, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
epoll_ctl(3, EPOLL_CTL_ADD, 4, {EPOLLIN, {u32=154136584, u64=154136584}}) = 0
socket(PF_INET6, SOCK_STREAM, IPPROTO_TCP) = 5
setsockopt(5, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
setsockopt(5, SOL_IPV6, IPV6_V6ONLY, [1], 4) = 0
bind(5, {sa_family=AF_INET6, sin6_port=htons(3260), inet_pton(AF_INET6, "::", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0
listen(5, 128)                          = 0
fcntl64(5, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(5, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
epoll_ctl(3, EPOLL_CTL_ADD, 5, {EPOLLIN, {u32=154136608, u64=154136608}}) = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 6
bind(6, {sa_family=AF_FILE, path="TGT_IPC_ABSTRACT_NAMESPACE"}, 110) = -1 EADDRINUSE (Address already in use)
write(2, "(null): ", 8(null): )                 = 8
write(2, "ipc_init(569) can\'t bind a socke"..., 58ipc_init(569) can't bind a socket, Address already in use) = 58
close(6)                                = 0
exit_group(1)                           = ?



do not give an answer?



--
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

[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux