• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • 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.

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