1 (edited by cn_1984 2016-01-21 12:19:28)

Topic: how to add additonal storage volume

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.93
- Linux/BSD distribution name and version: centos
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx):nginx
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue:
====

hi there, i am fairly new to setting up mail server on my own

i was wondering after the storage on my mail server is full ,is it possible to add additonal storage volumes to my existing server
if the answer is yes, how would i be able to do that or are there any guides or documentation that can help me with that??

thanks!!!!

----

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

2

Re: how to add additonal storage volume

*) If you have LVM for the mail storage before installing iRedMail, then it's easy to add additional hard disks into LVM.
*) If you don't have LVM, and want to attach new hard disk, here's a way:

1) format new disk to your preferred file system, e.g. ext4, xfs, ... (your choice)
2) mount it on a mount point. e.g. /mnt/new_disk (please use lower cases)
3) Move one mail domain to new disk, then create a symbol link back to old directory. For example, if you the mailbox for domain "example.com" is /var/vmail/vmail1/example.com/, you can move it to /mnt/new_disk/example.com, then create symbol link like this:

ln -s /mnt/new_disk/example.com /var/vmail/vmail1/example.com

That's it.

Note: it's just a possible solution, not the unique solution.