Thursday, December 13, 2012

Access NetApp filer from Linux host

FILER SIDE STEPS

Enable SSH
First enable SSH on the filer. Enable SSH (preferably version 2 - as it's more secure)
NETAPPFILER> secureadmin enable ssh2
NETAPPFILER> secureadmin setup ssh

Exportfs
Then we need to export the /vol/vol0 on the filer. Edit the /etc/exportfs file to add an entry like this
/vol/vol0       -sec=sys,rw=fqdn of the admin linux host or IP address

If you cant edit the file add an entry via exportfs command
exportfs -p rw=linux hostname /vol/vol0

ON THE LINUX HOST

Listing the exports
LinuxHost:#showmount -e filername
this will list the exports and you should see an entry for the vol0

Create a mount point
LinuxHost:# mkdir -p /mnt/mount1

Mounting the /vol/vol0
LinuxHost:# mount -t nfs NETAPPFILER:/vol/vol0 /mnt/mount1

List the contents
Navigate to /mnt/mount1 and do ls -l and you will see the filer's file system
LinuxHost:/mnt/mount1# ls -la