此内容没有您所选择的语言版本。

Appendix A. Using an NFS Share for Content Storage


Your environment requires adequate hard disk space to fulfill content storage. In some situations, it is useful to use an NFS share to store this content. This appendix shows how to mount the NFS share on your Satellite Server’s content management component.

Important

Do not mount the full /var/lib/pulp on an NFS share. Parts of the Satellite Server use transient SQLite databases, which have issues over NFS. Red Hat recommends the use of high-bandwidth, low-latency storage for the /var/lib/pulp file system. Red Hat Satellite has many operations that are IO-intensive so usage of high-latency, low-bandwidth storage could potentially have issues with performance degradation. Only use the NFS share for the /var/lib/pulp/content directory.

  1. Create the NFS share. This example uses a share at nfs.example.com:/satellite/content. Make sure this share provides the appropriate permissions to the Satellite Server and its apache user.
  2. Shutdown the Satellite services on the Satellite host:

    Copy to Clipboard Toggle word wrap
    # katello-service stop
  3. Make sure the Satellite Server has the nfs-utils package installed:

    Copy to Clipboard Toggle word wrap
    # yum install nfs-utils
  4. You need to copy the existing contents of /var/lib/pulp/content to the NFS share. First, mount the NFS share to a temporary location:

    Copy to Clipboard Toggle word wrap
    # mkdir /mnt/temp
    # mount -o rw nfs.example.com:/satellite/content /mnt/temp

    Copy the existing contents of /var/lib/pulp/content to the temporary location:

    Copy to Clipboard Toggle word wrap
    # cp -r /var/lib/pulp/content/* /mnt/temp/.
  5. Set the permissions for all files on the share to use the apache user. This ID of this user is usually 48.
  6. Unmount the temporary storage location:

    Copy to Clipboard Toggle word wrap
    # umount /mnt/temp
  7. Remove the existing contents of /var/lib/pulp/content:

    Copy to Clipboard Toggle word wrap
    # rm -rf /var/lib/pulp/content/*
  8. Edit the /etc/fstab file and add the following line:

    Copy to Clipboard Toggle word wrap
    nfs.example.com:/satellite/content    /var/lib/pulp/content   nfs    rw,hard,intr,context="system_u:object_r:httpd_sys_rw_content_t:s0"

    This makes the mount persistent across system reboots. Make sure to include the SELinux context.

  9. Enable the mount:

    Copy to Clipboard Toggle word wrap
    # mount -a
  10. Confirm the NFS share mounts to var/lib/pulp/content:

    Copy to Clipboard Toggle word wrap
    # df
    Filesystem                         1K-blocks     Used Available Use% Mounted on
    ...
    nfs.example.com:/satellite/content 309506048 58632800 235128224  20% /var/lib/pulp/content
    ...

    Also confirm that the existing content exists at the mount on var/lib/pulp/content:

    Copy to Clipboard Toggle word wrap
    # ls /var/lib/pulp/content
  11. Start the Satellite services on the Satellite host:

    Copy to Clipboard Toggle word wrap
    # katello-service start

The Satellite Server now uses the NFS share to store content. Run a content synchronization (see Section 4.3, “Synchronizing Content”) to make sure the NFS share works as expected.

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat, Inc.