E.0 Changing the Location of the Content Repository on a Linux or Appliance Server

While upgrading ZENworks 2020 Update 1 and earlier versions to ZENworks 2020 Update 2, ZENworks might not function properly, after upgrade, if you have content-repo as a symbolic link to a folder that is outside the ZENworks folder structure.

For example, if the content is available in /var/my-external-content-repo and /var/opt/novell/zenworks/content-repo points to that directory, then it might not work.

Hence, ensure that you move the /var/my-external-content-repo to a different partition and mount it to /var/opt/novell/zenworks/content-repo.

You can store your data on a local mount or on a network share such as NFS, SMB, or CIFS and mount the share in your content-repo directory to access your data.

Let us assume that /dev/sdb is a partition on which you are planning have the content-repo, perform the following steps:

  1. Stop all the ZENworks services.

  2. Create a directory by running mkdir /tmp/temp-mount

  3. Mount the partition: mount </dev/sdb> /tmp/temp-mount

  4. Move the content-repo by using mv /var/my-external-content-repo/* /tmp/temp-mount

  5. Unmount the directory by using umount /tmp/temp-mount

  6. Remove the directory by running rmdir /tmp/temp-mount

  7. Remove the symbolic link by running rm /var/opt/novell/zenworks/content-repo/

  8. Create a directory by running the mkdir /var/opt/novell/zenworks/content-repo/ command

  9. mount </dev/sdb> /var/opt/novell/zenworks/content-repo. Ensure that these steps are performed automatically by adding an entry in the /etc/fstab file.

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

  10. To verify, run ls /var/opt/novell/zenworks/content-repo

    If the command lists the content and images folder, then the content-repo is configured successfully.

  11. Run permissions.sh

  12. Start all the ZENworks services.