1

Topic: What to Relocate to New Volume

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.2
- Deployed with iRedMail Easy or the downloadable installer? Installer
- Linux/BSD distribution name and version: Rocky 9.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Manage mail accounts with iRedAdmin-Pro? no
====

We've finally run out of space on our Linode cloud server. I'm tired of arguing with people about their quotas and cleaning up their mailboxes, so we've decided to add a volume.

The existing volume is 80GB and I plan to add another 40GB. Is there any best practice about what to move? How would I do it?

If I was going to add a larger second volume, I could relocate the whole mailstore, but the whole store won't fit. I don't think I want to use some kind of spanning option that makes the whole thing look like a single volume, but I might be wrong. I don't know much about linux partioning, so I'm a bit nervous.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: What to Relocate to New Volume

You can move mailboxes of several domains to new volume. For example:

1: Mount new volume under /mnt/newvolume/
2: Stop Postfix / Dovecot / Nginx services, make sure no process will update mailboxes during change.
3: Move /var/vmail/vmail1/<domain1> to /mnt/newvolume/, then create /var/vmail/vmail1/<domain1> as a symbol link to /mnt/newvolume/<domain1>/. For example:

mv /var/vmail/vmail1/domain1.com /mnt/newvolume/
ln -sf /mnt/newvolume/domain1.com /var/vmail/vmail1/domain1.com

4: Repeat step 3 if you need to move more domains to new volume.
5: Start postfix / dovecot / nginx services.

3

Re: What to Relocate to New Volume

Wow, that's great, and simple too.

Thanks very much!
Paul

4

Re: What to Relocate to New Volume

Perhaps this should be made into a standard Doc at https://docs.iredmail.org/index.html ?

5

Re: What to Relocate to New Volume

For the record, this worked perfectly. Total downtime less than 5 minutes.

6

Re: What to Relocate to New Volume

Thanks for sharing.