• 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 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