Access denied nfs 3

I have a SSD where I store my OS and I have a 1 TB hard-drive where I store my files (mounted at /media/karhu/EYE_BACKUP/). I want to share my files. I can share my SSD (such as /home/karhu/spot2) using NFS but if I try to do the same for my 1 TB hard-drive (/media/karhu/EYE-BACKUP/), I get access denied error when I try to mount it on the client.

Here are some shots of my LINUX /etc/exports and one of my mount attempt on the remote SGI work station (client applying to share the files)



Any words of experience and wisdom would be much appreciated!

Is the same SGI client successfully mounting the SSD drive? Or is that from a different NFS client?

Yes the same SGI client does successfully mount the SSD drive (the one with the OS). Anythoughts on what to try next?

Set the access rights on the SGI mount point directory to 777

Does that help?

Run 'showmount' on the SGI against the NFS servers name and/or IP address. If it can't see the mount offered you have no chance until it does.

How do I find the mount point directory? is it in /etc/fstab?

Sorry I'm a real amateur..

Looking at your screenshots you seem to be trying to use the mountpoint /workflow1 more than once. You can't do that!

Sorry that I didn't notice before.

On the Linux NFS server check the current disk mounts and the current NFS exports:

df -T
exportfs

To redo the mounts (in /etc/fstab) and the exports (in /etc/exports) do

sudo mount -av
sudo exportfs -av

Many thanks for the replies.
I'll have to recommence at the weekend. Here is the last screenshot of the


day. I wish I know what the problem was..

"not in host database" means it cannot resolve the given hostname to an IP address.
Either you map the hostname to an IP address in /etc/hosts (that is the "file" host database), or you use the IP address in the mount command.

Okay, I'll try both. Many thanks for the clarification

Oh my goodness, this is tricky!

My problem seems to be with my Linux PC: when I attach my storage drive ( called FILMOUT) it appears on the task bar, just as computer files home page does (called files). I can export a folder in the computer files window and mount it on may SGI.

However, when I launch FILMOUT it comes up in a separate window and has a path address simply media/karhu/FILMOUT


I do not know how to enter the additional storage drives in the SGI's /etc/hosts/. what should I type?

Obviously this didn't work out on three attempts to mount using both IP and computer ids

any suggestions how I should enter the additional storage dive into SGI's hosts so it is not rejected by nfs would be much appreciated!

Hi
According to these capture it seem that you made an error mounting those points like the first field just after the first “slash” after the “IP address “ doesn’t have to be there. But To give you better advices, I will ask you those action:

SERVER SIDE:
1: full path of disk you want to export
2:do “getfacl (disk_path)” to get the permissions on the disk you want to share 
3:a screenshot of the “exports” file with the entry of the disk you want to export
4:the ip address of the server which export the disk
 

CLIENT SIDE:
1: full path of the mountpoint 
2:do “getfacl (mountpoint_path)” to get the permissions on the mountpoint 
3:do “showmount -e (server_ip) “ to see if the client side is able to see the exported disk from the server 
4:the IP address of the client 
5:a screenshot of the “/etc/hosts” file to seen the name server list 

Many thanks for the advice, and commands for server & client sides. Unfortunately I am away from the workstation today, but will resume tomorrow. Hopefully I'll make progress then with these tips ...

so here are two further screen shots, with no progress. When I try to mount the storage drive FILMOUT on the client SGI the cursor does not return the shell. I wonder what is preventing this task? Should I try to nest the storage drive in the home folder of the server? Is the storage drive still missing a mount point? Sorry for my lack of understanding.


The mount will time-out after some time, maybe after 1-2 hours. You can interrupt with Ctrl-C
Of course you should get a sucessful mount or at least a "permission denied" message after some seconds.

You did not answer our question to show the effective NFS exports:
On the NFS server:

sudo exportfs

On the NFS client:

showmount -e 172.23.23.103
ping 172.23.23.103
rpcinfo -p 172.23.23.103

Sorry for the delay, and all responses are very helpful.
Before inputing the command you suggest, I took the worksation back home where the IP is different, and more annoying the default Gateway. It was 172.23.23.1 but now at home it is 192.168.0.1

What would be the easiest way to change this? When the SGI powers up it does not register the new gateway and dispalys the old one.

Once this is resolved I'll run the command you suggest, first thing!

Many thanks, again

I've sorted out the Gateway problem, so now the home folder of the server mounts on a folder in the homepage of the client.

About mounting the storage drive the server linux pc, here are some screen shots of the commands you suggested to run.


ping has packet loss??
On the other hand, the remote queries showmount -e and rpcinfo -p look good; a mount should succeed.
A mount does a kind of rpcinfo -p and then uses the highest supported mountd version, and I guess that udp will be used.
When mounted, an access on the mounted share will use the highest supported nfs version (3) and tcp.

I could try the ping again this evening, yes a bit of a mystery - the packet loss of ping.
but in short there was a successful mount of the server's home folder on the client, but still unsuccessful with the server's storage drive .

My understanding is that I must mount the server's storage drive on a different folder in the client's home page. For example I have mounted the a folder in the server's hompage on a folder titled workflow which is in the client's hompage. I would therefore mount the server's storage in a different folder in the client's homepage titled, for example workflow2.
Will the stroage drive not mount in this folder because I am exporting the whole drive as opposed to a folder in the drive?

in other words export iscurrently server_linuxpc/media/user/storage_drive
when it should be server_linuxpc/media/user/storage_drive/home_folder