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-06-07 03:39:02

rcblackwell
Member
From: Pickering, ON
Registered: 2008-05-19
Posts: 204
Website

rsnapshot - Help Requried to Set Up NFS RO Directory

I'm having trouble establishing an NFS directory per section 7.2 of the rsnapshot How To found here http://rsnapshot.org/howto/1.2/rsnapshot-HOWTO.en.pdf

Although I've been able to create the directories and set appropriate rights, no matter what I try I'm unable to get files in the /mnt/HD_a2/.private/.sanpshot/ directory to show up in the RO /mnt/HD_a2/.sanpshot/ directory.

My problem seems to be associated with nfsd as an error occurs when starting the service. The error reads "localhost.localdomain:/mnt/HD_b2/.private/.snapshots: Function not implemented" which is related to the RO directory I'm attempting to establish.

One thing I've noticed while working through this problem is the entry I make in the /etc/fstab file will disappear up restart of the DNS323.

How can I get around the disappearing entry situation and get files to show up in the desired directory?

My /etc/fstab file reads as follows;
proc            /proc           proc    defaults        0       0
/dev/ram0       /                       minix   defaults        1       1
/dev/mtdblock0  /sys/mtd1       minix   defaults        0       0
/image.cfs      /sys/crfs       cramfs  loop            0       0
localhost:/mnt/HD_b2/.private/.snapshots/       /mnt/HD_b2/.snapshots/  nfs     ro      0       0


My /etc/export file reads as follows;
/mnt/HD_a2 192.168.1.0/24(rw,no_root_squash)
/mnt/HD_a4 192.168.1.0/24(rw,no_root_squash)
/mnt/HD_b2 192.168.1.0/24(rw,no_root_squash)
/mnt/HD_b4 192.168.1.0/24(rw,no_root_squash)
/mnt/web_page 192.168.1.0/24(rw,no_root_squash)
/mnt/HD_b2/.private/.snapshots/ 127.0.0.1(ro,no_root_squash)

top provides the following detail;
  PID  PPID USER     STAT   VSZ %MEM %CPU COMMAND
2482  2472 root     S     8316  13%   0% /ffp/bin/php-cgi
2483  2472 root     S     8316  13%   0% /ffp/bin/php-cgi
2485  2482 root     S     8316  13%   0% /ffp/bin/php-cgi
2484  2483 root     S     8316  13%   0% /ffp/bin/php-cgi
2431     1 root     S     5576   9%   0% /ffp/sbin/unfsd -e /ffp/etc/exports
2501  1605 root     S     5448   9%   0% /usr/sbin/samba/smbd -D
2770  2460 root     S     5084   8%   0% sshd: root@pts/0
1605     1 root     S     4928   8%   0% /usr/sbin/samba/smbd -D
1613  1605 root     S     4928   8%   0% /usr/sbin/samba/smbd -D
1570     1 root     S     4388   7%   0% /web/webs
1685     1 root     S     3080   5%   0% mt-daapd
1692  1688 root     S     3080   5%   0% mt-daapd
1688  1685 root     S     3080   5%   0% mt-daapd
2368  1688 root     S     3080   5%   0% mt-daapd
1609     1 root     S     2976   5%   0% /usr/sbin/samba/nmbd -D
2472     1 root     S     2748   4%   0% /ffp/sbin/lighttpd -f /ffp/etc/lighttpd.conf
2460     1 root     S     2332   4%   0% /ffp/sbin/sshd
1684     1 nobody   S     2164   3%   0% mt-daapd
1721     1 root     S     1568   3%   0% crond
    1     0 root     S     1564   3%   0% init
1626     1 root     S     1564   3%   0% -sh
2772  2770 root     S     1348   2%   0% -sh
3879  2772 root     R     1336   2%   0% top
1559     1 root     S     1316   2%   0% /sys/custom/upnp/upnp 0 D-Link Corporation http://www.dlink.com D-Link DNS-323 D
1667     1 root     S     1264   2%   0% lpd Waiting
1615     1 root     S      780   1%   0% op_server 3 3 3
3710     1 root     S      752   1%   0% /ffp/sbin/rpc.mountd
3689     1 root     S      568   1%   0% /ffp/sbin/rpc.statd
3679     1 root     S      552   1%   0% /ffp/sbin/rpc.portmap
1552     1 root     S      544   1%   0% chkbutton
1185     1 root     S      496   1%   0% atd
1577     1 root     S      488   1%   0% fancontrol
   49     5 root     SW       0   0%   0% [pdflush]
   50     5 root     SW       0   0%   0% [pdflush]
  203     1 root     SW       0   0%   0% [mtdblockd]
   51     1 root     SW       0   0%   0% [kswapd0]
  231     1 root     SW<      0   0%   0% [loop0]
   11     5 root     SW<      0   0%   0% [kblockd/0]
    5     1 root     SW<      0   0%   0% [kthread]
  218     5 root     SW<      0   0%   0% [kmirrord/0]
  217     5 root     SW<      0   0%   0% [kcryptd/0]
  190     1 root     SW       0   0%   0% [scsi_eh_1]
  189     1 root     SW       0   0%   0% [scsi_eh_0]
    3     1 root     SW<      0   0%   0% [events/0]
  191     1 root     SW       0   0%   0% [scsi_eh_2]
    2     1 root     SWN      0   0%   0% [ksoftirqd/0]
   14     1 root     SW       0   0%   0% [khubd]
    4     1 root     SW<      0   0%   0% [khelper]
  192     1 root     SW       0   0%   0% [scsi_eh_3]
   52     5 root     SW<      0   0%   0% [aio/0]

With Appreciation

Bob Blackwell
Pickering, ON


Bob Blackwell
Pickering, ON

Offline

 

#2 2008-06-08 16:23:24

rcblackwell
Member
From: Pickering, ON
Registered: 2008-05-19
Posts: 204
Website

Re: rsnapshot - Help Requried to Set Up NFS RO Directory

rcblackwell wrote:

I'm having trouble establishing an NFS directory per section 7.2 of the rsnapshot How To found here http://rsnapshot.org/howto/1.2/rsnapshot-HOWTO.en.pdf

Although I've been able to create the directories and set appropriate rights, no matter what I try I'm unable to get files in the /mnt/HD_a2/.private/.sanpshot/ directory to show up in the RO /mnt/HD_a2/.sanpshot/ directory.

Here's a little follow-up on my problem;

With a little more tinkering I was able to rid the error that was occuring however the files still didn't show up in the File Explorer of Windows Vista Business. Turns out that Windows Vista Business doesn't support NFS. To obtain NFS functionality Bill want's me to move to Windows Ultimate at a cost of $139 dollars. I elected to move to WinSCP with an SFTP connection instead!

Bob Blackwell
Pickering, ON

Last edited by rcblackwell (2008-06-08 16:24:06)


Bob Blackwell
Pickering, ON

Offline

 

#3 2008-06-10 14:29:28

charly4711
New member
Registered: 2008-06-10
Posts: 1

Re: rsnapshot - Help Requried to Set Up NFS RO Directory

Could you elaborate on what you did to get rid of the message about the unimplemented function?
I have that message, too ... and it seems nfsd is not starting due to it.

TIA,
Karl.

Offline

 

#4 2008-06-10 15:53:14

rcblackwell
Member
From: Pickering, ON
Registered: 2008-05-19
Posts: 204
Website

Re: rsnapshot - Help Requried to Set Up NFS RO Directory

charly4711 wrote:

Could you elaborate on what you did to get rid of the message about the unimplemented function?
I have that message, too ... and it seems nfsd is not starting due to it.

TIA,
Karl.

Karl,

I'm a newbie to Linux thus I really don't know for sure what I did to correct the problem. I did find that attempting to use nfsd.sh on a box without a Linux kernel isn't possible and I think that was the cause of my problem. See "NFS Network File System" at the very bottom of the http://dns323.kood.org/howto:ffp page. There's a blurb there that reads "NFS-utils contains required utilities to activate a kernel NFS server (Kernel-level NFS support is available on the CH3SNAS, and not on the DNS-323....." I missed this the first time round

During the course of my venture I found several articles that were useful. They are as follow;

http://nfs.sourceforge.net/nfs-howto/
http://nfs.sourceforge.net/nfs-howto/ar01s03.html
http://nfs.sourceforge.net/nfs-howto/ar … es_started


Bob Blackwell
Pickering, ON

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB