Skip to content

Configure mount points

Mount remote storage on each encoder server so jobs can read input files and publish their output.

Updated View as Markdown

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_directory or /mnt/your_directory.
  • For SMB/CIFS, obtain the remote storage username and password.
  • For NFS, add the daemon user to the group that owns the share. For example, MediaKind CMS uses nobody:nobody. On each encoder that uses this share, run the following command.
sudo usermod -aG nobody daemon

Mount remote storage

  1. Open an SSH session as root.

  2. 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
  3. Create the local directory if necessary.

    mkdir -p /opt/mediakind/mount/Storage
  4. Set its ownership.

    chown -R daemon:daemon /opt/mediakind/mount/Storage
  5. Retrieve the user and group identifiers.

    id daemon
  6. Record the UID and GID from the output.

  7. Open the mount configuration.

    vi /etc/fstab
  8. Add the entry for your protocol. Replace RemoteServer with the remote server name or address. The example share is Storage and 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 0

    NFS example:

    RemoteServer:/Storage /opt/mediakind/mount/Storage nfs defaults,user,auto,intr 0 0
    Option Meaning
    defaults Includes automatic mounting at boot.
    rw, ro Read-write or read-only access.
    uid, gid User and group that own the mount point.
    user, password Credentials for accessing the remote SMB/CIFS server.

    For other protocols, refer to the Linux mount documentation for the corresponding fstab options.

  9. Mount the storage.

    mount -a
  10. Test write access as the encoder account. Check that mount.test appears in the directory.

    cd /opt/mediakind/mount/Storage
    su -c 'touch mount.test' daemon
    ls /opt/mediakind/mount/Storage
  11. Run mount to check that the remote storage is mounted.

  12. Create a job using a remote location or the absolute path of the mounted directory.

    Location Input Output
    Remote file://RemoteServer/Storage/CustomInputFileName.ts file://RemoteServer/Storage
    Mounted file:///opt/mediakind/mount/Storage/CustomInputFileName.ts file:///opt/mediakind/mount/Storage
Navigation