|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (8 bit)
|
NFS Help!
Alas, I am at the end of my rope with this.
I'm trying to create a random share on my linux box using NFS that I can access from my Mac - all seems to be going ok apart from the fact that I cannot access my share from my Mac. Now I think the issue is NFS-Server.service. when I type "sudo systemctl status nfs-server.service" the return I get is; Code:
nfs-server.service - NFS Server
Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled)
Active: active (exited) since Wed, 06 Jun 2012 22:56:41 +0100; 10min ago
Process: 2051 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
Process: 2048 ExecStop=/usr/sbin/rpc.nfsd 0 (code=exited, status=0/SUCCESS)
Process: 2073 ExecStartPost=/usr/lib/nfs-utils/scripts/nfs-server.postconfig (code=exited, status=0/SUCCESS)
Process: 2060 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS ${RPCNFSDCOUNT} (code=exited, status=0/SUCCESS)
Process: 2057 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
Process: 2054 ExecStartPre=/usr/lib/nfs-utils/scripts/nfs-server.preconfig (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/nfs-server.service
I think this is the root of my problems. Does anyone know what I can do to make that run? I've tried "sudo systemctl enable nfs-server.service" and likewise restart to no avail. Please someone help!! Cheers Alex |
|
|
|
|
|
#2 |
|
Staff
Premium Member
Join Date: Sep 2004
Location: Cardiff, Wales. UK
Posts: 6,558
|
Which Linux distro are you using?
__________________
Niwa no niwa ni wa, niwa no niwatori wa niwaka ni wani o tabeta. |
|
|
|
|
|
#3 |
|
Moderator
Staff
Premium Member
Join Date: Nov 2008
Location: Detroit, MI
Posts: 5,221
|
|
|
|
|
|
|
#4 | |
|
Member (8 bit)
|
Fedora 17
Quote:
I just don't know why the application is just not running? |
|
|
|
|
|
|
#5 |
|
Member (8 bit)
|
Just a few additional piece of information to help diagnose.
The /etc/exports file is as follows; Code:
/home/alex/shared 192.168.0.0/255.255.255.0(rw,insecure,no_root_squash) |
|
|
|
|
|
#6 |
|
Stereo junkie
|
Which method are you using to mount the share on the Mac? Your exports file looks fine, I'm thinking its something at the Mac end. Disk Utility 12.x: Add an NFS mount
__________________
Join the 1%, use Linux
|
|
|
|
|
|
#7 |
|
Member (8 bit)
|
In finder - go to - connect to server...
nfs://192.168.0.X/shared Being within the private network I don't want to bog anything down with user permissions etc. Ideally this linux box (laptop) is going to be connected permentantly to my router sharing this drive so that I can store everything on it easily. From every guide I've read the service status output for nfs-server.service is returning Active (Running) where as mine is reporting (exited). I'm going to try something else when I get home in an hour. |
|
|
|
|
|
#8 | |
|
Member (11 bit)
Join Date: Apr 2003
Posts: 1,562
|
Quote:
https://www.scientificlinux.org/ Fedora is very bleeding edge software with short support cycles. By way of example, Fedora 17 completely reworked their firewall with the new application name of "firewalld" and didn't get around to providing a gui AFAIK; I can't tell you how to disable the firewall although I'm sure there's a method available to do that. Disabling the firewall and disabling selinux would have been my first suggestion in beginning troubleshooting just to eliminate that as a problem source. Unless you really follow fedora it's hard to keep up with what they're doing over there. Scientific Linux(SL) is a Red Hat Enterprise Linux(RHEL) clone and would be a very stable choice for this project. At least you can find tons of documentation on setting up an NFS server for RHEL/SL and don't have to worry about the radical changes that sometimes occur between one fedora release and another. Last edited by kilgoretrout; 06-07-2012 at 08:05 PM. |
|
|
|
|
|
|
#9 | |
|
Member (8 bit)
|
Quote:
I completely reinstalled Fedora 17 from scratch using the full DVD rather than the live desktop edition and made sure I selected all the packages I wanted on installation. Once I had gotten it back I created a /share right at the top of the filesystem alongside /var /tmp /etc /home etc and then edited the permissions to full read/write access to everyone. I then setup my exports file in the exactly the same way. I noted that the nfs-server.service is still showing as active (exited) however when I type into my Mac machine using finder -> go to server nfs://192.168.0.3/shared It mounted the drive perfectly only when I had the firewall disabled - this is fine as I know I just need to allow the correct ports for me to re-enable the firewall if required. The idea I'm having so far is to have this small laptop hardwired into my router together with my PS3/Xbox etc and then to store my music and other media on this shared folder. I'm going to use Mediatomb to scan for changes on a particular folder within the /shared and which then I'll be able to stream that over DLNA to my PS3. I'm also going to have a folder full of my iTunes music that I'll then map to my iTunes relevant folder on my Mac so that iTunes streams the music from the /shared on my linux box. The reason I'm using Fedora 17 is that my mate works for Red Hat as a Solutions Architect here in the UK (covering EMEA) so the majority of questions he can answer pretty quickly. Thanks for all your suggestions though. |
|
|
|
|
|
|
#10 |
|
Member (11 bit)
Join Date: Apr 2003
Posts: 1,562
|
I kind of thought it might be the firewall settings. There are a lot of ports that have to be open for NFS to work properly. With fedora's new firewall application, I thought the default configuration would have some of those ports closed. I'm glad to see they finally got around to creating a gui for firewall configuration. Up until a month before the release that was being debated from what I can see with a little googling.
By the way, your friend should be thoroughly familiar with RHEL clones like Scientific Linux or Centos. They are just RHEL with the Red Hat trademarks removed. A lot of smaller companies that can't afford an Red Hat service contract use SL or Centos. |
|
|
|
|
|
#11 | |
|
Moderator
Staff
Premium Member
Join Date: Nov 2008
Location: Detroit, MI
Posts: 5,221
|
Quote:
http://distrowatch.com/table.php?distribution=oracle |
|
|
|
|
|
|
#12 |
|
Stereo junkie
|
Theres a very good piece of software called Firefly Media Server, thats nothing more than a DAAP (iTunes) server. In the repositories, it should be under "mt-daapd", works great with iTunes and other iStuff. Its very versatile, and supports multiple libraries.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|