Cannot mount old HDD NFS share (pool is good)

opensourceFTW

Explorer
Joined
May 27, 2022
Messages
86
I built a new TrueNAS core server due to heat issues in my new homelab. I bought 2x 12TB HDDs and everything is working right but I saw that I failed to copy some of my data to my 5TB external HDD. No problem I thought, I will just remount the pool.

When trying to mount the share in terminal, terminal tells me "mount.nfs: access denied by server while mounting XXX.XXX.X.XXX /mnt/XXX/XXXX /mnt/XXX"

I am confused. I setup my old HDD to have the exact same persmissions as my 2x12TB. That does not work. What am I doing wrong?
 

artlessknave

Wizard
Joined
Oct 29, 2016
Messages
1,506
nfs is a network protocol.
you are telling mount to mount a network share on a remote system. are these disks mounted on a network server and shared, via NFS?

if this was a zfs pool, you need to import the pool like any other zfs pool.

mount would not have 2 /mnt locations, that makes no sense either.
 

opensourceFTW

Explorer
Joined
May 27, 2022
Messages
86
My old HHD is mounted correctly but when I try to mount on my linux machine I run into a permissions issue even though the pool for that HDD has the same permissions as my new homelab HDDs. I do not get it.

Screenshot from 2023-08-22 21-47-58.png
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
What are the NFS share settings?
 

opensourceFTW

Explorer
Joined
May 27, 2022
Messages
86
Exactly the same as my new homelab, which mounts just fine. I changed the permissions to open, same error. I use "sudo mount -t nfs -o mountvers=3 192.168.1.XXX:/mnt/Share/Storage /home/XXX" to mount my homelab. That does not work for my old NAS HDD. I took out "mountvers=3" and terminal says it cannot find it /etc/fstab/
 

opensourceFTW

Explorer
Joined
May 27, 2022
Messages
86
I tried to access again. "access denied by server". I am 99% sure this is a permission isssue but, the permissions are exactly the same as my homelab so I am lost.
Screenshot from 2023-09-15 19-47-13.png
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
My old HHD is mounted correctly but when I try to mount on my linux machine I run into a permissions issue even though the pool for that HDD has the same permissions as my new homelab HDDs. I do not get it.
Your linux machine user needs to have the same uid as the TrueNAS machine.

Also, post output of showmount --exports on the TrueNAS machine.
 

opensourceFTW

Explorer
Joined
May 27, 2022
Messages
86
Your linux machine user needs to have the same uid as the TrueNAS machine.

Also, post output of showmount --exports on the TrueNAS machine.
TrueNAS server: uid=0(root) gid=0(wheel) groups=0(wheel)
Linux machine: uid=1000(bison) gid=1000(bison) groups=1000(bison), 4(adm),24(cdrom),27(sudo),30(dip), 46(plugdev),122(lpadmin), 135(lxd),136(sambashare)

showmount --export
/mnt/NAS/storage (current TrueNAS server)
/mnt/test/ (old Truenas HDD)
 
Top