NFS on Pogo and Windows

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

Re: NFS on Pogo and Windows

Postby sethjvm » Thu Nov 08, 2012 1:46 pm

$this->bbcode_second_pass_code('', '# cat mtab
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,relatime,errors=continue,user_xattr,acl,data=writeback 0 0
devtmpfs /dev devtmpfs rw,size=62632k,nr_inodes=15658,mode=755 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sys /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
run /run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
shm /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,relatime 0 0
/dev/root /srv/nfs4/share ext3 rw,relatime,errors=continue,user_xattr,acl,data=writeback 0 0
rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
nfsd /proc/fs/nfsd nfsd rw,nosuid,nodev,noexec,relatime 0 0
')

it looks like the binded directory is mounted.
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 2:01 pm

Then what did you mean under "Its not shared"? How do you know? ;)
Post /etc/rc.d/nfs-server status output and /etc/exports content.

$this->bbcode_second_pass_quote('sethjvm', 'I') am using NFS client on XBMC on an Apple TV version 2
Post showmount output. What OS version it runs on? NFS Client version?
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: NFS on Pogo and Windows

Postby hydro » Thu Nov 08, 2012 2:29 pm

Even if it's shared, there is no data, because an empty directory on the root partition is shared. The problem is: external drives are not mounted via fstab during boot. The question is why. Does it work after boot with
$this->bbcode_second_pass_code('', '
mount UUID=274fea3c-368d-4228-9257-ab59391a3118
')
(don't specify a mountpoint here, so that the entry in fstab is used).
Does it work with /dev/sdb1 or /dev/disk/by-uuid/ 274fea3c-368d-4228-9257-ab59391a3118 instead of UUID=274fea3c-368d-4228-9257-ab59391a3118 ?
I also wonder if udev-automount is responsible for mounting of external drives, that would mean filesystems are labeled share_drive, backup_drive and temporary, are they (lsblk -f) ?
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 » Thu Nov 08, 2012 2:37 pm

But mtab content shows, the shared dir is mounted, not empty. He also switched automount off. It looks like his problem is on the client side. Running exportfs -arv may have the same effect in this case as mount -a. :)
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: NFS on Pogo and Windows

Postby hydro » Thu Nov 08, 2012 2:45 pm

How do you see from mtab the directory is not empty?
$this->bbcode_second_pass_code('', '
/dev/root / ext3 rw,relatime,errors=continue,user_xattr,acl,data=writeback 0 0
/dev/root /srv/nfs4/share ext3 rw,relatime,errors=continue,user_xattr,acl,data=writeback 0 0
')
First is root partition mounted on /, second is directory /media/share_drive (on root partition) mounted on /srv/nfs4/share. If a drive was mounted we would see
$this->bbcode_second_pass_code('', '
/dev/root / ext3 rw,relatime,errors=continue,user_xattr,acl,data=writeback 0 0
/dev/sdb1 /media/share/drive ext3 rw,relatime,errors=continue,user_xattr,acl,data=writeback 0 0
/dev/sdb1 /srv/nfs4/share ext3 rw,relatime,errors=continue,user_xattr,acl,data=writeback 0 0
')
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 » Thu Nov 08, 2012 3:12 pm

It looks like for a quick test he decided to share the root FS without attaching a second drive. But... he never defined "not shared" clause to begin with. :D
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: NFS on Pogo and Windows

Postby sethjvm » Thu Nov 08, 2012 3:42 pm

$this->bbcode_second_pass_quote('hydro', 'E')ven if it's shared, there is no data, because an empty directory on the root partition is shared. The problem is: external drives are not mounted via fstab during boot. The question is why. Does it work after boot with
$this->bbcode_second_pass_code('', '
mount UUID=274fea3c-368d-4228-9257-ab59391a3118
')
(don't specify a mountpoint here, so that the entry in fstab is used).
Does it work with /dev/sdb1 or /dev/disk/by-uuid/ 274fea3c-368d-4228-9257-ab59391a3118 instead of UUID=274fea3c-368d-4228-9257-ab59391a3118 ?
I also wonder if udev-automount is responsible for mounting of external drives, that would mean filesystems are labeled share_drive, backup_drive and temporary, are they (lsblk -f) ?


When I issue
$this->bbcode_second_pass_code('', '
mount UUID=274fea3c-368d-4228-9257-ab59391a3118
')
after a reboot, the drive does mount at /media/share_drive. I have also tried modifying my /etc/fstab to mount by /dev/sdb1 and LABEL=share_drive and neither seems to fix the mounting at boot problem.

So this does appear to be something other than a NFS problem.

I found this page ****.blogspot.ch/2010/07/usb-drive-fstab-uuid-arch-linux.html but I am not sure if his solution is relevant to my situation.
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

Previous

Return to Community Guides

Who is online

Users browsing this forum: No registered users and 6 guests