Reset Search
 

 

Article

HOW TO Mount A Remote CIFS or NFS File Share On Extreme Management Center

« Go Back

Information

 
TitleHOW TO Mount A Remote CIFS or NFS File Share On Extreme Management Center
Objective
Provide the ability to mount remote shares on an Ubuntu-based Extreme Management Center portfolio appliance for ease of file offloading or backup purposes.
Environment
  • Extreme Management Center (XMC, formerly NetSight)
  • Extreme Control (NAC)
  • Extreme Analytics (purview)
  • CIFS
  • NFS
Procedure
WARNING: Modification of the /etc/fstab file should be conducted with caution. Corruption or deletion of the pre-existing mounts may result in an inoperable system.
  1. Create a local mount point in the /media subdirectory.
root@xmc830111.local:~$ mkdir /media/<local_mount_point>
  1. Make a backup copy of the /etc/fstab file.
root@xmc830111.local:~$ cp /etc/fstab /etc/fstab.original
  1. Modify the /etc/fstab file to add the following line, changing options as noted:
FOR CIFS -> //<IP_of_Share>/<share> /media/<local_mount_point> cifs rw,username=<username>,password=<password>,domain=<domain> 0 0
FOR  NFS -> <IP_of_Share>:<share_path> /media/<local_mount_point> nfs rw 0 0
  1. Issue the appropriate mount command to complete the configuration:
Ubuntu 16.04 and later   -- root@xmc830111.local:~$ mount -a
Ubuntu 14.04 and earlier -- root@xmc830111.local:~$ mountall
Additional notes
NOTE: Mounting CIFS remote shares requires the Ubuntu cifs-utils package to be present on the host system. To check if the cifs-utils package is installed and optionally install it use the example below as a guideline:
root@xmc830111.local:~$ dpkg -l | grep -i cifs-utils
root@xmc830111.local:~$ apt-get install cifs-utils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libfile-copy-recursive-perl linux-headers-4.4.0-116 linux-headers-4.4.0-116-generic python-samba samba-common-bin
  samba-dsdb-modules samba-libs samba-vfs-modules sbsigntool update-inetd
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  keyutils libtalloc2
The following NEW packages will be installed:
  cifs-utils keyutils libtalloc2
0 upgraded, 3 newly installed, 0 to remove and 179 not upgraded.
Need to get 156 kB of archives.
After this operation, 465 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libtalloc2 amd64 2.1.5-2 [34.0 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 cifs-utils amd64 2:6.4-1ubuntu1.1 [74.5 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 keyutils amd64 1.5.9-8ubuntu1 [47.1 kB]
Fetched 156 kB in 0s (507 kB/s)     
Selecting previously unselected package libtalloc2:amd64.
(Reading database ... 110862 files and directories currently installed.)
Preparing to unpack .../libtalloc2_2.1.5-2_amd64.deb ...
Unpacking libtalloc2:amd64 (2.1.5-2) ...
Selecting previously unselected package cifs-utils.
Preparing to unpack .../cifs-utils_2%3a6.4-1ubuntu1.1_amd64.deb ...
Unpacking cifs-utils (2:6.4-1ubuntu1.1) ...
Selecting previously unselected package keyutils.
Preparing to unpack .../keyutils_1.5.9-8ubuntu1_amd64.deb ...
Unpacking keyutils (1.5.9-8ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libtalloc2:amd64 (2.1.5-2) ...
Setting up cifs-utils (2:6.4-1ubuntu1.1) ...
Setting up keyutils (1.5.9-8ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
root@xmc830111.local:~$ dpkg -l | grep -i cifs-utils
ii  cifs-utils                            2:6.4-1ubuntu1.1                           amd64        Common Internet File System utilities

NOTE: Mounting NFS remote shares requires the Ubuntu nfs-common package to be present on the host system. To check if the nfs-common package is installed and optionally install it use the example below as a guideline:
root@xmc830111.local:~$ dpkg -l | grep -i nfs-common
root@xmc830111.local:~$ apt-get install nfs-common
root@xmc830111.local:~$ dpkg -l | grep -i nfs-common
ii  nfs-common                            1:1.2.8-9ubuntu12.2                        amd64        NFS support files common to client and server

Below is an example of a CIFS or NFS remote mount to a NetSight_Backup share hosted on a server 192.168.100.10 mounted locally on XMC as /media/remote_cifs_mount or remote_nfs_mount respectively:
mkdir /media/remotebackup
FOR CIFS -> //192.168.100.10/NetSight_Backup /media/remote_cfs_mount cifs rw,username=NetSight_Backup,password=abc123,domain=mydomain 0 0
FOR  NFS -> 192.168.100.10:/NetSight_Backup /media/remote_nfs_mount nfs rw 0 0

root@xmc830111.local:/$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/systemvg-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda1 during installation
UUID=d2784ba8-3411-4fa0-b837-91e30cf0d453 /boot           ext2    defaults        0       2
/dev/mapper/systemvg-swap_1 none            swap    sw              0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
//192.168.100.10/NetSight_Backup /media/remote_cifs_mount cifs rw,username=root,password=ForgetMe,_netdev 0 0
192.168.100.10:/NetSight_Backup /media/remote_nfs_mount nfs rw,_netdev 0 0

Creating Mounts on NS-A-20 Appliances

If attempting to mount on an NS-A-20 you will need to add the following delay script to the system:

Create a file named "fstab" with the following contents: 
#!/bin/sh
sleep 30
mountall
Add this file into the /etc/network//if-up.d directory and change the permissions using the command:
chmod 777 fstab

NOTE: If files are created on the remote mount with zero length files, a reboot of XMC may be required.
NOTE: In order to get this share to remount on boot the local mount point must be in the /media directory. If in the /mnt directory the mountall command will not function normally and the share will not remount on reboot.

Additional information on mounting remote shares on Ubuntu can be found @ https://wiki.ubuntu.com/MountWindowsSharesPermanently.

NOTE: If the installation of nfs-common fails as noted below, simply run 'apt-get update' followed by 'apt --fix-broken install' as instructed before re-running 'apt-get install nfs-common':
root@xmc:~$ apt-get -f install nfs-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libpython2.7 : Depends: libpython2.7-stdlib (= 2.7.15~rc1-1ubuntu0.1) but 2.7.15-4ubuntu4~18.04.2 is to be installed
 nfs-common : Depends: libnfsidmap2 but it is not going to be installed
              Depends: keyutils
 nplan : Depends: netplan.io
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255