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 2008-09-28 23:27:58

puterboy
Member
Registered: 2008-09-18
Posts: 306

How to get nfs (not unfs) to work on DNS_323 without custom kernel

I need to get the real nfs (not the user-space unfs) to run on my DNS-323 to use with BackupPC running on my server (not on the NAS).

It turns out that rsync and unfs have problems with symbolic links giving a series of error mesages of form:
    rsync: failed to set times on "<path-to-file>": Stale NFS file handle (116)
The specific option causing the problem is --times (in addition to the obvious --links needed to sync symbolic links)
I did not have any such problems when using nfs to another computer.

This error messages cause rsync to barf

The ideal solution would be to find a way to get kernel-space nfs working on the DNS-323 without needing a custom kernel or firmware.
Is it possible to compile a kernel-space nfs.ko module that will work with the 1.05 firmware?

Alternatively, are there any "tricks" to making unfs work better on symbolic links or to get rsync to consider links but ignore --times on just them?

(NOTE: I know that some people have gotten BackupPC to run directly on their DNS-323 but for several reasons, I want it running on my main Linux server.)

Thanks

Offline

 

#2 2008-09-29 00:13:42

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

Re: How to get nfs (not unfs) to work on DNS_323 without custom kernel

puterboy wrote:

Is it possible to compile a kernel-space nfs.ko module that will work with the 1.05 firmware?

There's a kernel-nfs module out there. I tried it about 1.5 years ago, and it always crashed my dns-323 withing a few minutes.

Offline

 

#3 2008-09-29 00:34:53

puterboy
Member
Registered: 2008-09-18
Posts: 306

Re: How to get nfs (not unfs) to work on DNS_323 without custom kernel

Well maybe there is a chance things would work with the 1.05 firmware.

I am willing to try compiling my own version if you could give me some pointers on how to (cross) compile modules for this kernel and hardware.

I guess naively I don't understand why compiling the native 2.6.x nfs.ko kernel module wouldn't work given that NFS has long been supported in the kernel. Couldn't I just compile the module and the associated nfs-utils programs or is that way more complicated than it sounds to the beginner...

Actually, I probably could borrow the libs and user-space tools from the CH3SNAS since they would be compatible right?

Alternatively, is there a simple kernel to flash that would be:
1. Relatively low risk to install (and not require serial port or JTAG)
2. That would preserve the existing web-based DNS functionality
3. That would be reversible if/when D-Link upgrades its own firmware

If so, where can I find it.... big_smile
and that would preserve

If so I just need some references on how to start compiling & cross-compiling.

Offline

 

#4 2008-09-30 12:46:42

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

Re: How to get nfs (not unfs) to work on DNS_323 without custom kernel

Why use NFS? Rsyncing over NFS is always slow and cumbersome. Try running rsync either over ssh or use rsyncd.

Offline

 

#5 2008-09-30 13:00:13

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

Re: How to get nfs (not unfs) to work on DNS_323 without custom kernel

puterboy wrote:

1. Relatively low risk to install (and not require serial port or JTAG)
2. That would preserve the existing web-based DNS functionality
3. That would be reversible if/when D-Link upgrades its own firmware

I think, some have flashed the Conceptronics firmware on their DNS-323. Conflicts with No. 3, though.
It might work to just flash the Conceptronics kernel.

Offline

 

#6 2008-10-02 06:06:56

puterboy
Member
Registered: 2008-09-18
Posts: 306

Re: How to get nfs (not unfs) to work on DNS_323 without custom kernel

frodo wrote:

Why use NFS? Rsyncing over NFS is always slow and cumbersome. Try running rsync either over ssh or use rsyncd.

Well, I am running BackupPC on my server (and I want it to run there) which requires the backup directory to be mountable.
I tried sshfs but it doesn't support hard links while unfs has problems with soft links.

So seems like my best bet is to get nfs working.

Offline

 

#7 2008-10-02 06:09:31

puterboy
Member
Registered: 2008-09-18
Posts: 306

Re: How to get nfs (not unfs) to work on DNS_323 without custom kernel

fonz wrote:

puterboy wrote:

1. Relatively low risk to install (and not require serial port or JTAG)
2. That would preserve the existing web-based DNS functionality
3. That would be reversible if/when D-Link upgrades its own firmware

I think, some have flashed the Conceptronics firmware on their DNS-323. Conflicts with No. 3, though.
It might work to just flash the Conceptronics kernel.

Any pointers on how to just flash the kernel without risking bricking the DNS-323.
Specifically, how can I test flashing the Conceptronics kernel is a reversible way in case it doesn't work out.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB