34.3 Mounting the Content Repository on a Linux Server to an NSS Volume

You can mount the content-repo directory on a Linux server on to an NSS Volume.

Before you begin, ensure that the following prerequisites are met:

  • The NSS volume is set up and mounted in the /media/nss/NSSVOL/ directory of the server.

  • The Samba service is installed and configured to run as root on the server. To verify this, run the following command and ensure that the value in UID column is root, especially for the processes with PPID = 1.

    ps -Alf | grep samba

To mount the content-repo directory:

  1. Stop the ZENserver, ZENloader and ZENmntr services.

  2. Run the following command to move the content from the content-repo directory to a temporary directory on the disk so that the content-repo directory is empty:

    mv /var/opt/microfocus/zenworks/content-repo/* another-local-directory-on-device

  3. Go to the /media/nss/NSSVOL directory, and create a zencontent subdirectory within it.

  4. Use YaST to add the newly created subdirectory to the list of Samba shares (for example, zenshare) on the server.

  5. Restart the Samba service.

  6. (Conditional) Run the following command to add a Samba root user if the Samba root user does not already exist:

    smbpasswd -a root

    For security reasons, you must specify a root password that is different from the login password.

  7. (Optional) To test if the newly created share is accessible over the Samba protocol, access the share from a Windows device by providing the Samba root user credentials

  8. Run the following command to mount the zenshare share:

    mount //localhost/zenshare /var/opt/microfocus/zenworks/content-repo -t cifs -o username=root

  9. Restore the backed-up content to the /var/opt/microfocus/zenworks/content-repo directory. The content is now stored on the NSS volume.

  10. Restart the ZENserver, ZENloader and ZENmntr services.

  11. (Conditional) To ensure that the share is automatically mounted every time the server reboots, add the following line in the /etc/fstab file:

    //localhost/zenshare /var/opt/microfocus/zenworks/content-repo cifs username=root,password=rootpass 0 0