NFS on Pogo and Windows

Guides written by the community, for the community, and only guides!

Re: NFS on Pogo and Windows

Postby sethjvm » Wed Nov 07, 2012 7:52 pm

I removed udev-automount and modified my /etc/fstab.
Code: Select all
TARGET                    SOURCE                        FSTYPE     OPTIONS
/                         /dev/root                     ext3       rw,relatime,errors=continue,user_xattr,acl,data=writeback
ââ/dev                    devtmpfs                      devtmpfs   rw,size=62632k,nr_inodes=15658,mode=755
â ââ/dev/pts              devpts                        devpts     rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
â ââ/dev/shm              shm                           tmpfs      rw,nosuid,nodev,relatime
ââ/proc                   proc                          proc       rw,nosuid,nodev,noexec,relatime
â ââ/proc/fs/nfsd         nfsd                          nfsd       rw,nosuid,nodev,noexec,relatime
ââ/sys                    sys                           sysfs      rw,nosuid,nodev,noexec,relatime
ââ/run                    run                           tmpfs      rw,nosuid,nodev,relatime,mode=755
ââ/tmp                    tmpfs                         tmpfs      rw,nosuid,nodev,relatime
ââ/srv/nfs4/share         /dev/root[/media/share_drive] ext3       rw,relatime,errors=continue,user_xattr,acl,data=writeback
ââ/var/lib/nfs/rpc_pipefs rpc_pipefs                    rpc_pipefs rw,relatime

and my /etc/fstab
Code: Select all
#
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
tmpfs           /tmp    tmpfs   nodev,nosuid    0       0
/swapfile.img none swap sw 0 0
UUID=274fea3c-368d-4228-9257-ab59391a3118 /media/share_drive ext3 defaults 0 0
UUID=539404ae-0ebe-4c22-8695-dea8b7a13da5 /media/backup_drive ext3 defaults 0 0
UUID=C0BA45F4BA45E80C /media/temporary ntfs defaults 0 0
/media/share_drive /srv/nfs4/share none bind

but it is still not mounting correctly.

So I am back to adding mount -a to /etc/rc.local.
Pogo Plug Pro with ALARM SATA rootfs
success: wireless, samba, sabnzbd, sickbeard, transmission, lamp with Gallery3 and newznab+, rsync server, tor
still trying: avahi, minidlna
up next: asterisk, openvpn, proxy server of some sort
gave up: nfs and lvm
sethjvm
 
Posts: 53
Joined: Wed Oct 19, 2011 7:36 am

Re: NFS on Pogo and Windows

Postby sambul13 » Wed Nov 07, 2012 9:04 pm

sethjvm wrote:I was able to share files successfully using NFSv3 directions on the archlinux wiki.
What did you do differently then? ;)

sethjvm wrote:if I have to reboot, the only way that I can get the files to share is to manually run.
How it manifests itself? What NFS client do you use? How it is setup? :?
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: NFS on Pogo and Windows

Postby pepedog » Wed Nov 07, 2012 9:05 pm

I am a snob and moved on to systemd, not going to convince you to go that way as not on pogoplug pro at the moment.
But I notice in your DAEMONS you don't have netfs, why is that. I think it's in default rootfs, and spy a mount -a in it
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: NFS on Pogo and Windows

Postby sambul13 » Wed Nov 07, 2012 9:17 pm

Actually, I'd double this question. If he's talking about a client PC's issue, he should have netfs in daemons list to mount remote network filesystems locally.
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: NFS on Pogo and Windows

Postby sethjvm » Wed Nov 07, 2012 9:35 pm

I did add netfs back to the daemons file, it does not seem to make any difference.

The big difference between nfsv3 and nfsv4 is how I had to define an nfs root in v4 and then bind shared files under that root in fstab.

I am using NFS client on XBMC on an Apple TV version 2.

NFSv4 server works with "mount -a" in /etc/rc.local which as I stated feels inelegant compared to getting the nfs mount to correctly bind using only /etc/fstab.
Pogo Plug Pro with ALARM SATA rootfs
success: wireless, samba, sabnzbd, sickbeard, transmission, lamp with Gallery3 and newznab+, rsync server, tor
still trying: avahi, minidlna
up next: asterisk, openvpn, proxy server of some sort
gave up: nfs and lvm
sethjvm
 
Posts: 53
Joined: Wed Oct 19, 2011 7:36 am

Re: NFS on Pogo and Windows

Postby hydro » Wed Nov 07, 2012 11:00 pm

I asked google about "pogoplug pro uuid fstab" and first hit tells me you had a similar problem a year ago.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: NFS on Pogo and Windows

Postby sambul13 » Wed Nov 07, 2012 11:26 pm

sethjvm

You said above to be successful with NFS Archlinux Wiki. What's your concern then - NFS4? :D Do you omit 0 0 for NFS4 bind? I'm not sure whether using pretty old OS version with latest NFS release can be trouble free. And hydro mentioned alternative way to mount NFS shares - did you try that?

Try to review your udev-automount rules instead of deleting them. Post mount outcome after boot here (without mount -a invoked). When you say, your drives aren't shared, does it in fact mean they're not mounted at boot? Or mounted, but not binded? What it has to do with NFS - it may be a bug in your OS version... Binding example is just one of several ways to mount shares. :P
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: NFS on Pogo and Windows

Postby WarheadsSE » Thu Nov 08, 2012 12:12 am

I'm not sure whether using pretty old KERNEL version with latest NFS release can be trouble free.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6729
Joined: Mon Oct 18, 2010 2:12 pm

Re: NFS on Pogo and Windows

Postby sethjvm » Thu Nov 08, 2012 7:21 am

I did eventually resolve the UUID problem from the first time. I was using a USB flash drive for rootfs and it was dying.

I do appreciate that effort that everyone put in helping. I am going to take a deep breath and accept "mount -a" as a solution.
Pogo Plug Pro with ALARM SATA rootfs
success: wireless, samba, sabnzbd, sickbeard, transmission, lamp with Gallery3 and newznab+, rsync server, tor
still trying: avahi, minidlna
up next: asterisk, openvpn, proxy server of some sort
gave up: nfs and lvm
sethjvm
 
Posts: 53
Joined: Wed Oct 19, 2011 7:36 am

Re: NFS on Pogo and Windows

Postby sambul13 » Thu Nov 08, 2012 12:58 pm

Its still unclear from your posts, whether shared partitions were mounted in your binded dirs or not. Look at /etc/mtab after boot without using mount -a. If not mounted, run man mount and man fstab to see options available in your kernel version. Try adding remount line for the binded partition in fstab below bind or use other available options to see if it helps. Note that kernel interaction with fstab evolved with Linux development, and now udev plays key role with improved and expanded mount rules.
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

PreviousNext

Return to Community Guides

Who is online

Users browsing this forum: No registered users and 1 guest