moving /var/vmail to a sperate disk

Discussion in 'General' started by pyte, Feb 1, 2023.

  1. pyte

    pyte Well-Known Member HowtoForge Supporter

    Hi,
    i need to move my /var/vmail to another disk, and just want to sanity check beforehand. So these are the steps that i would do:
    • stop all services related to mail
    • mount the disk to a tmp path like /mnt/
    • move over all data from /var/vmail to /mnt
    • unmount /mnt
    • mount the disk to /var/vmail
    • create an fstab entry for it
    • restart alle the services
    Anything else, that i might forgot?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    That should be all, in my opinion.
     
    ahrasis and pyte like this.
  3. pyte

    pyte Well-Known Member HowtoForge Supporter

    In not that into the quota stuff, do i need to set these mount options to not break ISPConfig quotas for mail?
    Code:
    UUID=d6e8015e-77b6-44ed-9d52-88d2daf2d233 /var/vmail    ext4    usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0 1 1
    I've tried but i got an error while booting up
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    No, mount it without quota. Quota is needed for websites only, maildir quota is a virtual quota calculated by Dovecot.
     
    ahrasis likes this.
  5. pyte

    pyte Well-Known Member HowtoForge Supporter

    Oh that makes sense. Thank you!
     

Share This Page