Saturday, 9 April 2011

Howto use nfs to access files on a Drobo-FS - UPDATED

This should work for Linux clients and OS-X.

Notes

1. I am going to assume that, if you want to use nfs on your Drobo-FS then you know what you are doing and I can be brief.

2. drobo-fs is the dns name of your Drobo-FS or use it's IP address. In OS-X, I use drobo-fs.local

Steps

2. If Linux, make a mount point

sudo mkdir /mnt/drobo

3. If Linux, add this to your /etc/fstab file - UPDATED

drobo-fs.local:/mnt/DroboFS/Shares/Public  /mnt/drobo  nfs  rw,soft,proto=tcp  0  0

3.1 Install nfs-common package


If Linux

sudo apt-get install nfs-common



4. Mount the nfs directory on your client

If Linux

sudo mount /mnt/drobo

If OS-X

mount -w -t nfs drobo-fs.local:/mnt/DroboFS/Shares/Public /mnt/drobo

Thanks to http://obasandbox.wordpress.com/tag/drobofs/
or in Finder

Connect to server nfs://drobo-fs.local:/mnt/DroboFS/Shares/Public

Test

In Linux, browse to /mnt/drobo and you should see the files in your Public share.

In OS-X, open the drobo-fs.local share.


5 comments:

  1. Tried doing this on OS/X, and I get an error:

    mount: realpath /mnt: No such file or directory

    ReplyDelete
  2. If you tell me each command you entered and your result, I will try to help.

    ReplyDelete
  3. This was the exact command I used after installing unfsd on the Drobo-FS:

    mount -w -t nfs 169.254.213.234:/mnt/DroboFS/Shares/Public /mnt/drobo/public

    I also tried
    mount -w -t nfs drobo-fs.local:/mnt/DroboFS/Shares/Public /mnt/drobo
    as noted above, with the same error message.

    ReplyDelete
  4. Anonymous - if you haven't figured this out yet, the very last "/mnt/drobo" is the actual location you want to mount the contents of the Public Drobo folder to. Unless you created the "mnt" and "drobo" folders yourself, then you'll get this error. For instance, I mounted mine to /Volumes/Drobo Public. This means I had to go to the Volumes folder (in Finder, click on the "Go" option in the top menu, then Go To Folder, and type in /Volumes. From there you have to manually create the folder(s) you want the Drobo to be mounted in. Hope that makes sense and helps you and others who come here.

    ReplyDelete
  5. I constantly got following error no matter what permissions I set up in exports file:


    mount.nfs: access denied by server while mounting 192.168.0.148:/mnt/DroboFS/Shares/Public

    my exports:

    /mnt/DroboFS/Shares/Public *(rw,no_root_squash,anonuid=0,anongid=0)
    /mnt/DroboFS/Shares/Public 192.168.0.0/24(rw,no_root_squash,anonuid=0,anongid=0)

    please advice :)

    ReplyDelete

Please use family friendly language.