DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2007-06-27 10:59:59

dkl
Member
From: Toulouse
Registered: 2007-06-16
Posts: 104

Stale NFS file handle with rsync

Hello everybody

   I have faced yesterday a problem, which I have solved, so this is not a blocking situation for me. I post here to inform you, and to know if somebody saw this before,  or has an explanation.

I am using rsync to backup directories from my Ubuntu/Edgy computer to the DNS323. I have fonz's fun_plug on it, using NFS. My first idea was to rsync through the NFS mount point. This worked OK, *except* for logical links (files linked with "ln -s"). Apparently, rsync is unable to "chown" them, issuing an error: "rsync: chown <file path> failed: Stale NFS file handle (116)". The result is that all files are "backuped", but all logical links are "root:root" on the backup. The owner for other files is correct.

I looked around on the interned for this error, but found nothing closely related. I must say that, when "rsyncing" to an external USB disk (which was the way I did before using the DNS323, I did not have this problem).

I solved this by using the rsync --daemon on the DNS323 (thank you Fonz again) instead of the NFS mount , so, again, this is not a blocking point.

Any idea?

  Regards

Offline

 

#2 2007-06-27 11:31:51

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Stale NFS file handle with rsync

I've seen this myself, but haven't come to do investigate it further. A solution to this seems to be related to a "no_subtree_check" option in the exports file, but unfs3 doesn't seem to support this. One could try to start unfsd with the "-b" option which claims to prevent stale file handles in some cases.

Offline

 

#3 2007-06-27 11:47:17

frodo
Member
From: Stockholm, Sweden
Registered: 2007-01-17
Posts: 259

Re: Stale NFS file handle with rsync

Which parameters do you use to rsync? Anyway just a useful hint. Have you had a look at rsnapshot? It is very cool for backing up unix systems.

Offline

 

#4 2007-06-27 11:50:36

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Stale NFS file handle with rsync

frodo wrote:

Have you had a look at rsnapshot? It is very cool for backing up unix systems.

Doesn't that require perl?

Offline

 

#5 2007-06-27 13:06:17

dkl
Member
From: Toulouse
Registered: 2007-06-16
Posts: 104

Re: Stale NFS file handle with rsync

Hello again

- for frodo: I don't have here the exact command line, I will post it this evening from home. One thing I can say is that there is nothing exotic in it (-av, -backup option, plus some exclude files, etc..), it worked perfectly on a USB disk and works now with rsync daemon (using the network name). I would then say that the problem comes from NFS rather than rsync... And as I wrote, using rsync daemon (so without NFS) worfs perfectly, so there is no need for me to look for another backup tool, rsync is nice.

- for fonz: I will make a test with -b and keep you informed.

Thanks

Offline

 

#6 2007-06-27 19:00:22

frodo
Member
From: Stockholm, Sweden
Registered: 2007-01-17
Posts: 259

Re: Stale NFS file handle with rsync

fonz,

Yes it requires perl. I chroot to debian.

dkl,

rsnaphot i using rsync but you get snapshots. It is way cool. I use it to backup my private linux server.
It roughly uses the space of two full backups. Depending on how much changes you do on your server that is.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB