• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Temporary moving /var/www to mount new disk as /var/www

hbudin

New Pleskian
Server operating system version
Centos 7.9
Plesk version and microupdate number
Obisdian 18.05
Hi,

i am using Azure VM instance with Plesk preinstalled (Centos version). It come with boot disk of 30 GB, so added new 300 GB /dev/sdc1 (drive to use for storage of data inside /var/www folder)
Question - i already configured some sites and everything is working from /var/www/vhosts folder on boot disk. Server is not in production yet.
I want to mount /dev/sdc1 300 gb drive as /var/www mount point, but as this is currently used by real /var/www folder I am wndering how "dangrous" is to temporary do
Code:
mv /var/www /var/wwwtemp
, then mount 300 gb drive as /var/www. After that do mv to move all files from /var/wwwtemp to /var/www which will actually copy them to 300 GB disk space now mounted as /var/www
 
A bulk of your user's data is going to be in vhosts. I would recommend just leaving the 30GB as is, and then move the vhosts directory to the new 300GB partition by using the transvhosts utility;

https://support.plesk.com/hc/en-us/...ge-virtual-hosts-location-in-Plesk-for-Linux-
But moving via transvhosts requires to degrade security by chaning SElinux option - as per instructions Centos should stay in permissive mode. I think trade-off with securirty degradation is not worth it.
On second look, whole /var/ folder - should go to 300 gb partition because there are logs, mysql datafiles, psa dumps.... that can griow really big and 30 gb won't do it

I think I will cross my fingers and do movings :)
 
Back
Top