How to move the content of /var/lib/pulp into a new logical volume?
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/newlvfor example. -
Stop the katello services.
# foreman-maintain service stop -
Take backup of
/var/lib/pulp/*. -
Mount
/var/lib/pulpto/dev/vgname/newlvand 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:apachepermission. -
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
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.