• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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