PDA

Bekijk de volledige versie : Samba dies



marcus7601
08-05-2006, 15:57
Could someone give me some direction? Im no good at linux.

My samba-service dies ones every day. I have my shares on ext3-formatted usb-drive mounted on /opt.

I have no idea where to start looking. Any ideas?

Running Oleg 1.9.2.7-7c

Styno
08-05-2006, 16:38
Please post a relevant portion of your system log here please.

marcus7601
08-05-2006, 17:09
I found a thread on openwrt.org regarding this and that the problem was usb2.0

Could this be the same error?

http://forum.openwrt.org/viewtopic.php?pid=16470


May 8 18:06:04 kernel: usb_control/bulk_msg: timeout
May 8 18:06:19 kernel: usb_control/bulk_msg: timeout
May 8 18:06:24 kernel: usb_control/bulk_msg: timeout
May 8 18:06:36 kernel: scsi: device set offline - not ready or command retry failed after bus reset: host 0 channel 0 id 0 lun 0
May 8 18:06:36 kernel: SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 70000
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 34099256
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 34099258
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 34099400
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 34099654
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 2386
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 4604
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 4608
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 34099256
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 64489296
May 8 18:06:36 kernel: EXT3-fs error (device sd(8,1)): ext3_get_inode_loc: unable to read inode block - inode=8092419, block=32244648
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 2
May 8 18:06:36 kernel: EXT3-fs error (device sd(8,1)) in ext3_reserve_inode_write: IO failure
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 2
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 66324818
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 66324818
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 64489296
May 8 18:06:36 kernel: EXT3-fs error (device sd(8,1)): ext3_get_inode_loc: unable to read inode block - inode=8092419, block=32244648
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 2
May 8 18:06:36 kernel: EXT3-fs error (device sd(8,1)) in ext3_reserve_inode_write: IO failure
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 2
May 8 18:06:36 kernel: EXT3-fs error (device sd(8,1)) in ext3_orphan_add: IO failure
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 2
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 64489296
May 8 18:06:36 kernel: EXT3-fs error (device sd(8,1)): ext3_get_inode_loc: unable to read inode block - inode=8092419, block=32244648
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 2
May 8 18:06:36 kernel: EXT3-fs error (device sd(8,1)) in ext3_reserve_inode_write: IO failure
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 2
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 66324818
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 66324818
May 8 18:06:36 kernel: I/O error: dev 08:01, sector 64489296

Oleg
08-05-2006, 20:16
Try using beta firmware: http://oleg.wl500g.info/7d-pre5/

marcus7601
08-05-2006, 20:49
Ok, i have now flashed with the beta firmware. Will let it run over night to see if it work...keep your fingers crossed.

marcus7601
09-05-2006, 19:14
Confirming that it seems much more stable. The old error is gone.

However this is in my log

May 9 16:09:42 smbd[230]: [2006/05/09 16:09:42, 0] lib/util_sock.c:write_socket_data(540)
May 9 16:09:42 smbd[230]: write_socket_data: write failure. Error = Broken pipe
May 9 16:09:42 smbd[230]: [2006/05/09 16:09:42, 0] lib/util_sock.c:write_socket(566)
May 9 16:09:42 smbd[230]: write_socket: Error writing 64575 bytes to socket 8: ERRNO = Broken pipe
May 9 16:09:42 smbd[230]: [2006/05/09 16:09:42, 0] lib/util_sock.c:send_smb(756)
May 9 16:09:42 smbd[230]: Error writing 64575 bytes to client. -1. Exiting

marcus7601
11-05-2006, 19:11
new problem gone. Old problem back. Any ideas?

May 11 15:53:51 kernel: EXT3-fs error (device sd(8,1)) in ext3_reserve_inode_write: IO failure
May 11 15:53:51 kernel: I/O error: dev 08:01, sector 2
May 11 15:53:51 kernel: I/O error: dev 08:01, sector 65654842
May 11 15:53:51 kernel: I/O error: dev 08:01, sector 65654842
May 11 15:53:51 kernel: I/O error: dev 08:01, sector 64489296
May 11 15:53:51 kernel: EXT3-fs error (device sd(8,1)): ext3_get_inode_loc: unable to read inode block - inode=8092419, block=32244648
May 11 15:53:51 smbd[453]: xbox (192.168.50.197) couldn't find service server
May 11 15:53:51 kernel: I/O error: dev 08:01, sector 2
May 11 15:53:51 kernel: EXT3-fs error (device sd(8,1)) in ext3_reserve_inode_write: IO failure
May 11 15:53:51 kernel: I/O error: dev 08:01, sector 2
May 11 15:53:51 kernel: EXT3-fs error (device sd(8,1)) in ext3_orphan_add: IO failure
May 11 15:53:51 kernel: I/O error: dev 08:01, sector 2
May 11 15:53:51 kernel: I/O error: dev 08:01, sector 64489296
May 11 15:53:51 kernel: EXT3-fs error (device sd(8,1)): ext3_get_inode_loc: unable to read inode block - inode=8092419, block=32244648
May 11 15:53:51 kernel: I/O error: dev 08:01, sector 2
May 11 15:53:51 kernel: EXT3-fs error (device sd(8,1)) in ext3_reserve_inode_write: IO failure
May 11 15:53:51 kernel: I/O error: dev 08:01, sector 2
May 11 15:53:51 kernel: I/O error: dev 08:01, sector 65654842
May 11 15:53:51 kernel: I/O error: dev 08:01, sector 65654842
May 11 15:53:51 kernel: I/O error: dev 08:01, sector 64489296
May 11 15:53:51 kernel: EXT3-fs error (device sd(8,1)): ext3_get_inode_loc: unable to read inode block - inode=8092419, block=32244648
May 11 15:53:51 kernel: I/O error: dev 08:01, sector 2
May 11 15:53:51 kernel: EXT3-fs error (device sd(8,1)) in ext3_reserve_inode_write: IO failure
May 11 15:53:51 kernel: I/O error: dev 08:01, sector 2
May 11 15:53:51 kernel: EXT3-fs error (device sd(8,1)) in ext3_orphan_add: IO failure
May 11 15:53:51 kernel: I/O error: dev 08:01, sector 2

oleo
11-05-2006, 21:16
Shorten the USB cable to 40cm. Add additional capacitors near HDD supply. This is worth trying solution for such problems!

marcus7601
12-05-2006, 08:48
Could you give me more details?

It did stabilize a bit more with the new firmware though....

marcus7601
12-05-2006, 18:49
I have also discovered that /opt/ (usbdrive) is not mounted anymore after this error occures. Is the problem that the drive unmounts by itself?

marcus7601
16-05-2006, 07:10
For future reference i will here post my solution.

I found out that it wasnt Samba that was acting out. Still dont know what the problem was. However it is solved. The whole problem disappeared when i put a usb-hub between router and external drive. Dont ask me why.
My syslog also reports a little different startup-log.

But it works...

Styno
16-05-2006, 08:48
Probably your harddisk draws too much power from the USB port of the router causing errors in the data transmission or something in that order. Using an externally powered USB hub can indeed solve these problems.

marcus7601
16-05-2006, 12:21
Thats what i thought too. However, my USB-drive has external powersupply and the usb-hub is NOT powered.

zalaam
27-08-2007, 17:42
Confirming that it seems much more stable. The old error is gone.

However this is in my log

May 9 16:09:42 smbd[230]: [2006/05/09 16:09:42, 0] lib/util_sock.c:write_socket_data(540)
May 9 16:09:42 smbd[230]: write_socket_data: write failure. Error = Broken pipe
May 9 16:09:42 smbd[230]: [2006/05/09 16:09:42, 0] lib/util_sock.c:write_socket(566)
May 9 16:09:42 smbd[230]: write_socket: Error writing 64575 bytes to socket 8: ERRNO = Broken pipe
May 9 16:09:42 smbd[230]: [2006/05/09 16:09:42, 0] lib/util_sock.c:send_smb(756)
May 9 16:09:42 smbd[230]: Error writing 64575 bytes to client. -1. Exiting
I get the same error, i got two 250gb hd's connected (WD MyBook's with external powersupply) to a usb-hub (with external powersupply).


[admin@barricade /]$ cat /opt/var/log/samba/log.xbox
[2007/08/27 19:29:39, 0] source/lib/util_sock.c:write_socket_data(499)
write_socket_data: write failure. Error = Broken pipe
[2007/08/27 19:29:39, 0] source/lib/util_sock.c:write_socket(524)
write_socket: Error writing 65597 bytes to socket 13: ERRNO = Broken pipe
[2007/08/27 19:29:39, 0] source/lib/util_sock.c:send_smb(704)
Error writing 65597 bytes to client. -1. (Broken pipe)

It only happens when i'm streaming files from one of the hd's. This one:

/dev/discs/disc0/disc on /tmp/harddisk type ext3 (rw,noatime)

I'm using oleg's 1.9.2.7-7g firmwire on a wl500gp, anyone got a solution for this?