Re: Samba + external drives

2007-08-18 Thread koffiejunkie

koffiejunkie wrote:
Right, I just finished doing some tests.  Via NFS and FTP, to the 
external disc, the same thing happens.  The copy runs fine (I was 
copying a 3.9GB ISO) for a random amount of time - shortest now was 
300MB, longest was just under 3GB - and then the disc seem to get 
unplugged.


Then, I repeated the tests, with samba, NFS and ftp, copying the same 
ISO to my home directory on the notebook, and this worked without a 
problem.


I copied the file from the notebook's drive to the external drive - no 
problem.


Then I tried the following.  I ftp-ed to localhost, and did a put 
file.iso to the external drive.  This worked 100%  I did similar tests 
with nfs and smb, connecting to localhost and copying the file via the 
smb/nfs clients - al worked fine.


I also did at least one failed and one successful each using the 
notebook's wireless instead of wired network, to rule out network 
hardware, and repeated all the tests from my second notebook (which runs 
Debian too).


So it's just a mix of network and network copy that seems to cause 
problems.


I hope that's better :-) Any ideas?


Some further info.  I mentioned this problem to a colleague, and his 
first thought was that he has had some issues with KDE and Gnome's 
automount-type daemons.  So I booted into a console, didn't log into KDE 
(although gdm was running), mounted the external disc by hand, and then 
copied lots of stuff via the network to it.  It worked solidly for more 
than an hour.  Then, while I had a DVD ISO copying, I logged into KDE 
and started writing a DVD (off the external disc).  It fialed halfway 
through with K3B moaning that it couln't read the file.  Looked back at 
the logs, external disc just got unplugged.


So it would seem the automount stuff is causing this.  But why?


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Samba + external drives

2007-08-18 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/18/07 17:59, koffiejunkie wrote:
[snip]
 
 So it would seem the automount stuff is causing this.  But why?

Because automounting is a bad/Evil Windows idea, and it's taking
it's Evil revenge out on us by causing such problems.

- --
Ron Johnson, Jr.
Jefferson LA  USA

Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGx3t5S9HxQb37XmcRAtJ4AKDe6VvpPbivWEVcBHd3I2btFakd8QCg1/4o
vGE7rYpMYAhvZpCy2h8IcUw=
=YQNl
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Samba + external drives

2007-08-15 Thread koffiejunkie

Ron Johnson wrote:

What if you FTP the file from the OSX box to the firewire drive on
the external drive?

That might narrow down the problem.


I'll give it a try tonight.  I suspect it will work :-)


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Samba + external drives

2007-08-15 Thread koffiejunkie

Ron Johnson wrote:

What if you FTP the file from the OSX box to the firewire drive on
the external drive?

That might narrow down the problem.


Right, I just finished doing some tests.  Via NFS and FTP, to the 
external disc, the same thing happens.  The copy runs fine (I was 
copying a 3.9GB ISO) for a random amount of time - shortest now was 
300MB, longest was just under 3GB - and then the disc seem to get unplugged.


Then, I repeated the tests, with samba, NFS and ftp, copying the same 
ISO to my home directory on the notebook, and this worked without a problem.


I copied the file from the notebook's drive to the external drive - no 
problem.


Then I tried the following.  I ftp-ed to localhost, and did a put 
file.iso to the external drive.  This worked 100%  I did similar tests 
with nfs and smb, connecting to localhost and copying the file via the 
smb/nfs clients - al worked fine.


I also did at least one failed and one successful each using the 
notebook's wireless instead of wired network, to rule out network 
hardware, and repeated all the tests from my second notebook (which runs 
Debian too).


So it's just a mix of network and network copy that seems to cause problems.

I hope that's better :-) Any ideas?


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Samba + external drives

2007-08-15 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/15/07 17:38, koffiejunkie wrote:
 Ron Johnson wrote:
 What if you FTP the file from the OSX box to the firewire drive on
 the external drive?

 That might narrow down the problem.
 
 Right, I just finished doing some tests.  Via NFS and FTP, to the
 external disc, the same thing happens.  The copy runs fine (I was
 copying a 3.9GB ISO) for a random amount of time - shortest now was
 300MB, longest was just under 3GB - and then the disc seem to get
 unplugged.
 
 Then, I repeated the tests, with samba, NFS and ftp, copying the same
 ISO to my home directory on the notebook, and this worked without a
 problem.
 
 I copied the file from the notebook's drive to the external drive - no
 problem.
 
 Then I tried the following.  I ftp-ed to localhost, and did a put
 file.iso to the external drive.  This worked 100%  I did similar tests
 with nfs and smb, connecting to localhost and copying the file via the
 smb/nfs clients - al worked fine.
 
 I also did at least one failed and one successful each using the
 notebook's wireless instead of wired network, to rule out network
 hardware, and repeated all the tests from my second notebook (which runs
 Debian too).
 
 So it's just a mix of network and network copy that seems to cause
 problems.
 
 I hope that's better :-) Any ideas?

Yeah.  Beg for help on lkml.  :(

You've asked a relatively smart question.  I hope lkml can help even
more.
http://catb.org/~esr/faqs/smart-questions.html

- --
Ron Johnson, Jr.
Jefferson LA  USA

Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGw9meS9HxQb37XmcRAvveAJ0RamotKb9uEeYNVgL2mqtlhlxnGwCghgXU
hage0DHask9sYlxD8CUkWe0=
=VxK2
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Samba + external drives

2007-08-15 Thread Stefan Monnier
 So it's just a mix of network and network copy that seems to cause problems.

 I hope that's better :-) Any ideas?

I'd try linux-kernel.


Stefan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Samba + external drives

2007-08-14 Thread koffiejunkie

Hi guys,

I have a strange problem.   I use an external IDE/Firewire enclosure on 
my notebook.  This works 100%, is solid as a rock and performs very very 
well.  It works with USB2 too, reliably, just slower.


I have a Mac Mini at home, so I have some samba shares on the external 
drive.  The Mac can acess them fine (OS X 10.4), but when I copy large a 
 file from the Mac to one of the shares on the external drive, it 
copies a bit and then fails saying something to the effect that the 
share is not accessible.   Looking back at the notebook, syslog gives me 
the kind of errors you get when unplugging a disc without unmounting it. 
  So my first thought was that either the disc or the enclosure was 
going bad.


So I ran an fsck on the disc, which came out fine.  Copying huge files 
to it directly from the notebook works fine as well.  So it seems to be 
fine.


Then I remembered I had a similar problem at a client copying from 
Windows to a samba server on an external (USB2) drive.  Different 
machines, different drives, different distro (SUSE 9.2 or 10.0 at the 
time).   I have since tried various distros on my notebook (extra 
partition), and I always get the same result, so it seems to be a 
persisten samba issue.


Has anyone else seen this?

Thanks


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Samba + external drives

2007-08-14 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/14/07 14:40, koffiejunkie wrote:
 Hi guys,
 
 I have a strange problem.   I use an external IDE/Firewire enclosure on
 my notebook.  This works 100%, is solid as a rock and performs very very
 well.  It works with USB2 too, reliably, just slower.
 
 I have a Mac Mini at home, so I have some samba shares on the external
 drive.  The Mac can acess them fine (OS X 10.4), but when I copy large a
  file from the Mac to one of the shares on the external drive, it copies
 a bit and then fails saying something to the effect that the share is
 not accessible.   Looking back at the notebook, syslog gives me the kind
 of errors you get when unplugging a disc without unmounting it.   So my
 first thought was that either the disc or the enclosure was going bad.
 
 So I ran an fsck on the disc, which came out fine.  Copying huge files
 to it directly from the notebook works fine as well.  So it seems to be
 fine.
 
 Then I remembered I had a similar problem at a client copying from
 Windows to a samba server on an external (USB2) drive.  Different
 machines, different drives, different distro (SUSE 9.2 or 10.0 at the
 time).   I have since tried various distros on my notebook (extra
 partition), and I always get the same result, so it seems to be a
 persisten samba issue.
 
 Has anyone else seen this?

But samba works well when transferring from OSX to an internal drive?

What does Google say?

What kernel are you running?  Debian or home-rolled?

A syslog extract would be helpful.

- --
Ron Johnson, Jr.
Jefferson LA  USA

Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGwhE4S9HxQb37XmcRAjoMAJ9Mu4Jh7u/C7I4x1MKb8LAomTKTmgCePr1X
EN+94aJ88cRvYWBhnYBKVEA=
=pj+b
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Samba + external drives

2007-08-14 Thread koffiejunkie

Ron Johnson wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/14/07 14:40, koffiejunkie wrote:

Hi guys,

I have a strange problem.   I use an external IDE/Firewire enclosure on
my notebook.  This works 100%, is solid as a rock and performs very very
well.  It works with USB2 too, reliably, just slower.

I have a Mac Mini at home, so I have some samba shares on the external
drive.  The Mac can acess them fine (OS X 10.4), but when I copy large a
 file from the Mac to one of the shares on the external drive, it copies
a bit and then fails saying something to the effect that the share is
not accessible.   Looking back at the notebook, syslog gives me the kind
of errors you get when unplugging a disc without unmounting it.   So my
first thought was that either the disc or the enclosure was going bad.

So I ran an fsck on the disc, which came out fine.  Copying huge files
to it directly from the notebook works fine as well.  So it seems to be
fine.

Then I remembered I had a similar problem at a client copying from
Windows to a samba server on an external (USB2) drive.  Different
machines, different drives, different distro (SUSE 9.2 or 10.0 at the
time).   I have since tried various distros on my notebook (extra
partition), and I always get the same result, so it seems to be a
persisten samba issue.

Has anyone else seen this?


But samba works well when transferring from OSX to an internal drive?

Yes, but gives problems to an external.


What does Google say?
Various samba config options - none that makes any difference - and not 
much else.  I've googled this now and then for the last two two years 
and haven't found a fix yet.




What kernel are you running?  Debian or home-rolled?
At the moment 2.6.21 recompiled from Debian's sources (on Lenny) to 
exclude paravirtualization and include HPET RTC emulation, but otherwise 
identical.  But like I said, I've seen the same issue on various 
distros, and I see it with the stock Debian kernels too - doesn't seem 
to be a specific kernel issue.



A syslog extract would be helpful.


My apologies, I was at work when I sent the mail - keep forgetting to do 
it at home.  I copied a DVD ISO, and this is the error I get when it 
dies (on OSX):


The operation cannot be completed because you do not have sufficient 
privileges for some of the items


Which makes no sense at all since I'm only copying one file, I managed 
to copy 2.3GB of it (if it was 2.0GB I would have suspected the old 
FAT32 compatibility stuff, but clearly it's not).


/var/log/syslog:
Aug 14 22:57:40 theluggage kernel: ieee1394: sbp2: aborting sbp2 command
Aug 14 22:57:40 theluggage kernel: sd 0:0:0:0:
Aug 14 22:57:40 theluggage kernel: command: Write(10): 2a 00 07 
96 05 47 00 00 f8 00

Aug 14 22:57:50 theluggage kernel: ieee1394: sbp2: aborting sbp2 command
Aug 14 22:57:50 theluggage kernel: sd 0:0:0:0:
Aug 14 22:57:50 theluggage kernel: command: Test Unit Ready: 00 
00 00 00 00 00

Aug 14 22:57:50 theluggage kernel: ieee1394: sbp2: reset requested
Aug 14 22:57:50 theluggage kernel: ieee1394: sbp2: generating sbp2 fetch 
agent reset

Aug 14 22:58:00 theluggage kernel: ieee1394: sbp2: aborting sbp2 command
Aug 14 22:58:00 theluggage kernel: sd 0:0:0:0:
Aug 14 22:58:00 theluggage kernel: command: Test Unit Ready: 00 
00 I/O to offline device
Aug 14 22:58:00 theluggage kernel: sd 0:0:0:0: rejecting I/O to offline 
device

Aug 14 22:58:00 theluggage last message repeated 83 times

/var/log/samba/log.10.0.1.2:
[2007/08/14 22:49:02, 1] smbd/service.c:make_connection_snum(1033)
  twoflower (10.0.1.2) connect to service EXT320 initially as user 
hansdp (uid=1000, gid=1000) (pid 24132)


After this, the drive is no longer available, and I have to unplug it, 
powercycle it, and plug it back in.


Copying the same file to the notebook's internal drive via samba works 
fine, and then copying the file from the notebook's drive to the 
external drive (i.e. no samba) works fine.


Any ideas?


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Samba + external drives

2007-08-14 Thread michael




Copying the same file to the notebook's internal drive via samba works
fine, and then copying the file from the notebook's drive to the
external drive (i.e. no samba) works fine.

Any ideas?



Would be interested to see if sharing the drive via netatalk makes
a difference. Have you tried this?

Mike


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Samba + external drives

2007-08-14 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/14/07 17:14, koffiejunkie wrote:
 Ron Johnson wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 08/14/07 14:40, koffiejunkie wrote:
 Hi guys,

 I have a strange problem.   I use an external IDE/Firewire enclosure on
 my notebook.  This works 100%, is solid as a rock and performs very very
 well.  It works with USB2 too, reliably, just slower.

[snip]
 
 The operation cannot be completed because you do not have sufficient
 privileges for some of the items
 
 Which makes no sense at all since I'm only copying one file, I managed
 to copy 2.3GB of it (if it was 2.0GB I would have suspected the old
 FAT32 compatibility stuff, but clearly it's not).
 
 /var/log/syslog:
 Aug 14 22:57:40 theluggage kernel: ieee1394: sbp2: aborting sbp2 command
 Aug 14 22:57:40 theluggage kernel: sd 0:0:0:0:
 Aug 14 22:57:40 theluggage kernel: command: Write(10): 2a 00 07
 96 05 47 00 00 f8 00
 Aug 14 22:57:50 theluggage kernel: ieee1394: sbp2: aborting sbp2 command
 Aug 14 22:57:50 theluggage kernel: sd 0:0:0:0:
 Aug 14 22:57:50 theluggage kernel: command: Test Unit Ready: 00
 00 00 00 00 00
 Aug 14 22:57:50 theluggage kernel: ieee1394: sbp2: reset requested
 Aug 14 22:57:50 theluggage kernel: ieee1394: sbp2: generating sbp2 fetch
 agent reset
 Aug 14 22:58:00 theluggage kernel: ieee1394: sbp2: aborting sbp2 command
 Aug 14 22:58:00 theluggage kernel: sd 0:0:0:0:
 Aug 14 22:58:00 theluggage kernel: command: Test Unit Ready: 00
 00 I/O to offline device
 Aug 14 22:58:00 theluggage kernel: sd 0:0:0:0: rejecting I/O to offline
 device
 Aug 14 22:58:00 theluggage last message repeated 83 times
 
 /var/log/samba/log.10.0.1.2:
 [2007/08/14 22:49:02, 1] smbd/service.c:make_connection_snum(1033)
   twoflower (10.0.1.2) connect to service EXT320 initially as user
 hansdp (uid=1000, gid=1000) (pid 24132)
 
 After this, the drive is no longer available, and I have to unplug it,
 powercycle it, and plug it back in.
 
 Copying the same file to the notebook's internal drive via samba works
 fine, and then copying the file from the notebook's drive to the
 external drive (i.e. no samba) works fine.
 
 Any ideas?

What if you FTP the file from the OSX box to the firewire drive on
the external drive?

That might narrow down the problem.

- --
Ron Johnson, Jr.
Jefferson LA  USA

Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGwlpzS9HxQb37XmcRAu+PAJ48kRf4mTdelhcxH97jzy600PBjrwCgpo4J
aEqUJHVgnzxo8BWZIKDEi0Q=
=Q76b
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]