How to move the content of /var/lib/pulp into a new logical volume?

Solution Unverified - Updated

Environment

  • Red Hat Satellite 6.x

Issue

  • How to move the content of /var/lib/pulp into a new logical volume?

  • Need to create a separate filesystem for yum repositories.

Resolution

Below steps are to be followed in order to achieve this but please note that the below solution is NOT A TESTED SOLUTION so please take backup of the Satellite server before following the below steps:

  • Create a new logical volume like /dev/vgname/newlv for example.

  • Stop the katello services.

    # foreman-maintain service stop
    
  • Take backup of /var/lib/pulp/*.

  • Mount /var/lib/pulp to /dev/vgname/newlv and also create a fstab entry.

  • Restore the data of /var/lib/pulp/*.

  • Restore the security context.

    # restorecon -Rv /var/lib/pulp/*
    
  • Ensure all the directories and files has apache:apache permission.

  • Start Satellite services:

    # foreman-maintain service start
    

For more KB articles/solutions related to Red Hat Satellite 6.x Pulp 2.0 Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Pulp 2.0-related Issues

SBR
Product(s)

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.