Mount Linux Storage Devices Prior to configuring NAS storage in the StorCycle solution, mount the storage device(s) using the following commands.
- Create a directory. sudo mkdir ./mount-point
- Mount the share to the created directory.
or NFS shares use the following:
sudo mount -t nfs server:/directory /mount-point
For CIFS shares use the following:
sudo mount -t cifs -o username="user",password="password",domain="domain",iocharset=utf8, dir_mode=0755 //uncpath/to/share /mount-point
Note: In order for users to use symbolic links to access files in secondary storage, the share must be mounted on the StorCycle Linux server using the same mount point used by all users of the primary storage. For example, if users of the primary storage mount 'nas_server/share1' as 'mnt/share1', then the StorCycle server must also mount it as 'mnt/share1'. If the StorCycle server instead uses a different mount point, symbolic links created by the StorCycle solution will not provide access to the file.
- Mount any desired read-only shares to the directory.
To mount a network share:
Create the mount point directory:
Mount the share using the mount command:
- servername: The IP or hostname of the share server
- sharename: The name of the share to mount
- username: Username to authenticate with
- password: Password for the username
The share should now be accessible under the mount point directory.
To make the mount persist across reboots, add an entry in /etc/fstab.
For example:
//server/share /mnt/networkshare cifs username=user,password=pass,sec=ntlm 0 0
Check server reachability, credentials, and that required packages are installed if issues are encountered. Review system logs for additional clues.
mount -t cifs //servername/sharename /mnt/mountpoint -o username=username,password=password,sec=ntlm
mkdir /mnt/networkshare