Help- NFS on pogoplug E02

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Help- NFS on pogoplug E02

Postby rflores2323 » Wed Jan 23, 2013 5:40 am

I am trying to get NFS working on my pogoplug E02 wtih ALARM to share my /media folder and all the external usb drives attached to it. Here are some things that I have done, please advise what Im missing since when I try to connect nfs it doesnt connect.

I would like to add my /media folder as a nfs share to be accessible on my network.

I installed nfs 1.2.6-4 using packer
I bind with mount --bind /media /media
I set permissions
$this->bbcode_second_pass_code('', '[root@alarm ~]# chmod 777 /media')

I reexported by
$this->bbcode_second_pass_code('', '
[root@alarm ~]# exportfs -ra
[root@alarm ~]# exportfs -arv
exporting 192.168.1.2/30:/media')


I ran the service and enabled it also
$this->bbcode_second_pass_code('', '
[root@alarm ~]# systemctl start rpc-idmapd.service
[root@alarm ~]# systemctl start rpc-mountd.service')


Below are my mounted usb drives
$this->bbcode_second_pass_code('', '
[xbmc@alarm ~]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 7705504 1315916 5998168 18% /
/dev/root 7705504 1315916 5998168 18% /
devtmpfs 126152 0 126152 0% /dev
tmpfs 126236 0 126236 0% /dev/shm
tmpfs 126236 288 125948 1% /run
tmpfs 126236 0 126236 0% /sys/fs/cgroup
tmpfs 126236 0 126236 0% /tmp
/dev/sdb1 976760000 796875876 179884124 82% /media/ext drive 2
/dev/sdc1 1953512000 1526774152 426737848 79% /media/Expansion Drive
/dev/sdd1 1465135100 1155186728 309948372 79% /media/Elements')

/etc/fstab
$this->bbcode_second_pass_code('', '#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>

/media /media none bind 0 0
')

/etc/exports
$this->bbcode_second_pass_code('', '# /etc/exports
#
# List of directories exported to NFS clients. See exports(5).
# Use exportfs -arv to reread.
#
# Example for NFSv2 and NFSv3:
# /srv/home hostname1(rw,sync) hostname2(ro,sync)
#
# Example for NFSv4:
# /srv/nfs4 hostname1(rw,sync,fsid=0)
# /srv/nfs4/home hostname1(rw,sync,nohide)
# Using Kerberos and integrity checking:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/home gss/krb5i(rw,sync,nohide)
#

/media 192.168.1.2/30(rw,fsid=0,no_subtree_check)')

/etc/mdmapd.conf
$this->bbcode_second_pass_code('', '
[General]

Verbosity = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
Domain = localdomain

[Mapping]

Nobody-User = nobody
Nobody-Group = nobody

[Translation]

Method = nsswitch')

/etc/conf.d/nfs-server/conf
$this->bbcode_second_pass_code('', '
# Where to mount nfsd filesystem; the default is "/proc/fs/nfsd".
PROCNFSD_MOUNTPOINT=""

# Options used to mount nfsd filesystem; the default is "rw,nodev,noexec,nosuid$
PROCNFSD_MOUNTOPTS=""

# Options for rpc.mountd.
# If you have a port-based firewall, you might want to set up
# a fixed port here using the --port option.
# See rpc.mountd(8) for more details.
MOUNTD_OPTS=""

# Do you want to start the svcgssd daemon? It is only required for Kerberos
# exports. Valid alternatives are "yes" and "no"; the default is "no".
NEED_SVCGSSD=""

# Options to pass to rpc.svcgssd.
# See rpc.svcgssd(8) for more details.
SVCGSSD_OPTS=""
')

UUID
$this->bbcode_second_pass_code('', '[root@alarm ~]# blkid -o list -c /dev/null
device fs_type label mount point UUID
-------------------------------------------------------------------------------
/dev/sda1 ext2 / 43a1fe96-484a-4103-8a25-c07e55bbd4db
/dev/sdb1 ntfs Expansion Drive (in use) F480628F806257DE
/dev/sdc1 ntfs Elements (in use) CE1433D41433BE71
/dev/sdd1 ntfs ext drive 2 (in use) 0E2454C02454AD09')
Last edited by rflores2323 on Wed Jan 23, 2013 1:41 pm, edited 1 time in total.
rflores2323
 
Posts: 17
Joined: Wed Nov 23, 2011 4:39 pm

Re: Help- NFS on pogoplug E02

Postby moonman » Wed Jan 23, 2013 8:27 am

mount --bind /media /media ? you haven't done anything with this command as you've mounted /media in /media. I am not even sure what the outcome is. In the wiki they did it this way because they bind to an exported NFS directory so that you don't have to copy (in the example there) music to the exported dir.

Any reason you don't want to use samba? Is it to be shared with devices running Linux?
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Help- NFS on pogoplug E02

Postby rflores2323 » Wed Jan 23, 2013 12:54 pm

I want to try nfs as its works better with xbmc and an atv2. So how do i het an nfs share on /media so that all my drives under /media can be seen in my network? Do i have to bind each drive folder to /media? also how do i make /media the nfs root?
rflores2323
 
Posts: 17
Joined: Wed Nov 23, 2011 4:39 pm

Re: Help- NFS on pogoplug E02

Postby moonman » Wed Jan 23, 2013 9:48 pm

Don't mount --bind anything.

Just edit /etc/exports and add something like this:
$this->bbcode_second_pass_code('', '/media 192.168.1.1/24(rw,sync)')
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Help- NFS on pogoplug E02

Postby rflores2323 » Wed Jan 23, 2013 10:51 pm

can you share nfts drives thru nfs?
rflores2323
 
Posts: 17
Joined: Wed Nov 23, 2011 4:39 pm

Re: Help- NFS on pogoplug E02

Postby moonman » Wed Jan 23, 2013 11:01 pm

use no_root_squash option to export ntfs
such as:
$this->bbcode_second_pass_code('', '/media/NTFS_DRIVE 192.168.1.1/24(rw,sync,no_root_squash)')

NTFS_DRIVE = where your ntfs drive is mounted, so replace it with your mount point
Last edited by moonman on Wed Jan 23, 2013 11:07 pm, edited 1 time in total.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Help- NFS on pogoplug E02

Postby moonman » Wed Jan 23, 2013 11:05 pm

Another thing I noticed:

exportfs -arv
exporting 192.168.1.2/30:/media

use /24 mask as with /30 you are very limited (4 ips I think) so maybe your client machine does not fall in the range of allowed IPs to connect.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Help- NFS on pogoplug E02

Postby rflores2323 » Wed Jan 23, 2013 11:18 pm

wow I got samba up and running in less than 10 mins thru webmin.

NFS seems to have permission errors. I exported the directories thru webmin but still cannot connect as it shows a permission error.

ARGGG,, I will see how samba works. Thanks for the help
rflores2323
 
Posts: 17
Joined: Wed Nov 23, 2011 4:39 pm

Re: Help- NFS on pogoplug E02

Postby moonman » Wed Jan 23, 2013 11:33 pm

Yeah samba is may be easier to setup. You may get better performance with NFS though if you set it up properly AND clients are Unix*. Webmin probably tries to secure the share so set it up manually.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 4 guests