NFS one Dietpi to another.

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
jonyskids
Posts: 18
Joined: Thu Nov 16, 2017 3:21 pm

NFS one Dietpi to another.

Post by jonyskids »

I have two Dietpis. Identical each with identical 3T Hard Drives. What is the best way to mount the hard drive attached to Dietpi-1 from Dietpi-2?

Thanks!
User avatar
Joulinar
Posts: 4536
Joined: Sat Nov 16, 2019 12:49 am

Re: NFS one Dietpi to another.

Post by Joulinar »

Hi,

you can use SAMBA or NFS to have a drive shared between both systems.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
jonyskids
Posts: 18
Joined: Thu Nov 16, 2017 3:21 pm

Re: NFS one Dietpi to another.

Post by jonyskids »

I understand. On Dietpi-2 I installed: 110 NFS Client: network file system client.

On Dietpi-1 in Dietpi-Drive_Manger I choose: NFS : Setup a connection for a NFS compatible file share

I get:

[FAILED] NFS mount failed with the following error output: │
│ │
│ mount.nfs: mount(2): Connection refused │
│ mount.nfs: portmap query retrying: RPC: Program not registered │
│ mount.nfs: portmap query failed: RPC: Program not registered │
│ mount.nfs: requested NFS version or transport protocol is not supported │
│ mount.nfs: timeout set for Tue Apr 13 17:03:15 2021 │
│ mount.nfs: trying text-based options │
│ 'port=2049,vers=4.2,addr=192.168.2.4,clientaddr=192.168.2.3' │
│ mount.nfs: trying text-based options 'port=2049,addr=192.168.2.4' │
│ mount.nfs: prog 100003, trying vers=3, prot=6 │
│ mount.nfs: prog 100003, trying vers=3, prot=17
User avatar
Joulinar
Posts: 4536
Joined: Sat Nov 16, 2019 12:49 am

Re: NFS one Dietpi to another.

Post by Joulinar »

you would need to install the NFS server functionality on the first system and export your share.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
trendy
Posts: 292
Joined: Tue Feb 25, 2020 2:54 pm

Re: NFS one Dietpi to another.

Post by trendy »

On server, install nfs-server. Then edit /etc/exports and add a line:

Code: Select all

/mnt/backup/odroid 172.30.30.100(rw,async,no_root_squash,fsid=0,crossmnt,no_subtree_check)
Adjust the path to the desired and the IP to the one of the client.
Restart nfs-server dietpi-services restart nfs-kernel-server

Then on client use dietpi-drive_manager to create a new network drive, select NFS, fill in the IP of the server , and the mountpoint under /mnt
User avatar
Joulinar
Posts: 4536
Joined: Sat Nov 16, 2019 12:49 am

Re: NFS one Dietpi to another.

Post by Joulinar »

NFS server is available via software ID 109 :)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply