Issue
How to move /opt/alt to different location to free up more space in /opt?
Environment
CloudLinux OS 6(h)/7(h)/8
cPanel/Plesk/DirectAdmin/No panel
Solution
To move the /opt/alt to a different place do this:
- Move /opt/alt to the desired location
mv /opt/alt /var/opt_alt
- Create /opt/alt directory
mkdir /opt/alt
- Bind mount new to old:
mount -o bind /var/opt_alt /opt/alt
- Remount CageFS via
cagefsctl --remount-all
- Add an entry to /etc/fstab, something like:
/var/opt_alt /opt/alt none bind 0 0
Comments
0 comments
Please sign in to leave a comment.