• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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 How do I move the "/var/lib/mysql" and "/var/qmail/mailnames" directories to a different volume under /mnt/drivename/... ?

Tim den Dikken

New Pleskian
Hi Pleskians,

I'm hosting on a DO droplet which I configured with a extra drive mounted via the /mnt/ folder in Plesk. As I want to give all the subscriptions some extra disk, e-mail and database space. I already moved the vhosts folder with the "transvhosts.pl" utility. This works great now, this leaves me with the "/var/lib/mysql" and "/var/qmail/mailnames" folder yet to be moved.

I've looked all over the form and there has been some threads here and there, but none of them seem to have a complete solution. I assume it is not as simple as just moving the directories as for the vhosts it changed all the config files.

I really hope someone could help me out here!
 
You can use bind command and add line to /etc/fstab

/mnt/disc/qmail /var/qmail/mailnames none defaults,bind 0 0
/mnt/disc/mysql /var/mysql none defaults,bind 0 0

Don't forget to set the correct permissions and owner.
 
of course - a little mistake in 2nd line: (mysql datadir is default /var/lib/mysql)

/mnt/disc/mysql /var/lib/mysql none defaults,bind 0 0
 
Back
Top