Configure mount points on every On-Demand Encoder processing server that uses remote storage.
Before you start
- The remote storage and mount points must be available at boot.
- The encoder accesses the storage as
daemon:daemon. It needs read access to input files and read, write, and execute access to output directories. - Use a mount point under
/opt/mediakind/mount/your_directoryor/mnt/your_directory. - For SMB/CIFS, obtain the remote storage username and password.
- For NFS, add the
daemonuser to the group that owns the share. For example, MediaKind CMS usesnobody:nobody. On each encoder that uses this share, run the following command.
sudo usermod -aG nobody daemonMount remote storage
-
Open an SSH session as root.
-
Prepare the mount point and inspect the encoder account.
mkdir -p /opt/mediakind/mount/Storage chown -R daemon:daemon /opt/mediakind/mount/Storage id daemon -
Create the local directory if necessary.
mkdir -p /opt/mediakind/mount/Storage -
Set its ownership.
chown -R daemon:daemon /opt/mediakind/mount/Storage -
Retrieve the user and group identifiers.
id daemon -
Record the UID and GID from the output.
-
Open the mount configuration.
vi /etc/fstab -
Add the entry for your protocol. Replace
RemoteServerwith the remote server name or address. The example share isStorageand the local mount point is/opt/mediakind/mount/Storage. For SMB/CIFS, replace the UID, GID, username, and password with your storage settings.SMB/CIFS example:
//RemoteServer/Storage /opt/mediakind/mount/Storage cifs sec=ntlm,defaults,rw,uid=<UID>,gid=<GID>,user=<USERNAME>,password=<PASSWORD> 0 0NFS example:
RemoteServer:/Storage /opt/mediakind/mount/Storage nfs defaults,user,auto,intr 0 0Option Meaning defaultsIncludes automatic mounting at boot. rw,roRead-write or read-only access. uid,gidUser and group that own the mount point. user,passwordCredentials for accessing the remote SMB/CIFS server. For other protocols, refer to the Linux mount documentation for the corresponding
fstaboptions. -
Mount the storage.
mount -a -
Test write access as the encoder account. Check that
mount.testappears in the directory.cd /opt/mediakind/mount/Storage su -c 'touch mount.test' daemon ls /opt/mediakind/mount/Storage -
Run
mountto check that the remote storage is mounted. -
Create a job using a remote location or the absolute path of the mounted directory.
Location Input Output Remote file://RemoteServer/Storage/CustomInputFileName.tsfile://RemoteServer/StorageMounted file:///opt/mediakind/mount/Storage/CustomInputFileName.tsfile:///opt/mediakind/mount/Storage