28.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:

To mount the content-repo directory:

  1. Go to the /etc/init.d/ directory and stop the novell-zenserver, novell-zenloader, and novell-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/novell/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/novell/zenworks/content-repo -t cifs -o username=root

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

  10. Go to the /etc/init.d/ directory and restart the novell-zenserver, novell-zenloader, and novell-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/novell/zenworks/content-repo cifs username=root,password=rootpass 0 0