• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Question Additional disk only for emails on plesk ?

Erick Nunes

Basic Pleskian
Hello,

In plesk is it possible to choose a disk just for emails?

He currently uses Amazon Lightsail and would like to set all customer emails on a disk apart from everything else.

Is there a tutorial for this?

Thanks
 
You can use this as a blueprint:

Code:
# list existing block devices
fdisk -l
     -->  /dev/vdb


# partition the new block device
fdisk /dev/vdb
    n
    p
    <enter>
    <enter>
    w


# format the new partition
mkfs.ext4 /dev/vdb1


# disable automatic fs-check every X days/mounts
tune2fs -c0 -i0 /dev/vdb1


# stop services potentially accessing /var/qmail
service postfix stop
service dovecot stop


# rename old qmail directory and create new one
mv /var/qmail /var/qmail_old
mkdir /var/qmail


# get UUID of the new partition
blkid
    --> e725875b-0153-49c6-8e9b-132b0acf0b30


# edit fstab to make system automatically mount the new partition/block device (on boot)
vi /etc/fstab
    --> added "UUID=e725875b-0153-49c6-8e9b-132b0acf0b30 /var/qmail      ext4    errors=remount-ro 0       2"

   
# mount the new partition
mount -a


# move content from old qmail directory to new parition/block device
mv /var/qmail_old/* /var/qmail/
rmdir /var/qmail_old


# starting the stopped services again
service postfix start
service dovecot start
 
Obligatory warning that using fdisk or mkfs.ext4 on the wrong device can lead to total data loss, so be careful, double-check every parameter, and do NOT proceed if you're not really sure.
 
Back
Top