Content Repository
239
n
ov
do
cx (e
n)
16
Ap
ril 20
10
28.2 Changing the Location of the Content
Repository on a Linux Server
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.
You can also create a symbolic link on your local hard drive if you want to store your data elsewhere
on your local device. However, the existing
content-repo
directory must be deleted.
1
(Optional) Run the following command to move the content from the
content-repo
directory
to a new directory on the disk to which you want to create the symbolic link:
mv /var/opt/novell/zenworks/content-repo/*
another-local-directory-on-
device
2
Run the following command to delete the
content-repo
directory:
rm -rf /var/opt/novell/zenworks/content-repo/
3
Run the following command to create the symbolic link to the new directory where you want to
store the data:
ln -s another-local-directory-on-device /var/opt/novell/zenworks/content-
repo
See the ln(1) man page for more information about how to symbolically link directories.
4
ZENworks requires that the ZENworks user has complete ownership rights on the directory to
which you have created the symbolic link. Run the following command to make the ZENworks
user the owner of this directory:
chown zenworks:zenworks -R /var/opt/novell/zenworks/content-repo/
See the chown(1) man page for more information about how to change ownership of
directories.
The following sections provide information on managing content repository locations on Linux:
Section 28.2.1, “Mounting a Share,” on page 239
Section 28.2.2, “Unmounting a Share,” on page 240
Section 28.2.3, “Creating a Permanent Mount,” on page 240
Section 28.2.4, “Moving Existing Content to the New Repository,” on page 240
28.2.1 Mounting a Share
After configuring a share on a remote machine, you can mount it from
/var/opt/novell/
zenworks/content-repo
by using the following command:
mount -t cifs -o username=
username
//
example.machine.com
/
share_name
/var/opt/
novell/zenworks/content-repo
In the command,
//
example.machine.com
/
share-name
is the share to mount and
/var/opt/
novell/zenworks/content-repo
is the mount point.
If you only need to store the data from part of your content repository on another share, you can also
do that. For example, if you need to store your ZENworks image files on another share, you can use
the following command: