Emails going to boot volume rather than attached EBS
Hello,
I have a CentOS 7 server running on an amazon EC2 instance. I have mailpiler running fine, I have an EBS volume mounted as /var/piler. In the /var/piler directory mount I have the imap directory,sphinx,stat,store,tmp. When I log onto the gui, the emails are being dropped onto my boot volume rather than the EBS volume connected. How can I have the emails go to the proper volume?
Comments (19)
-
reporter -
I would suspect your EBS is mounted as a sub directory inside /var/piler and not as the piler directory inside /var
Have you considered mounting your ebs as /ebs and creating a sym link to /var/piler
-
reporter No I did not, can you explain how I could do that?
-
-
reporter oh you mean I mounted it as /var/piler as oppose to /piler in the /var directory? I used the documentation to set this up, how would I create a link?
-
reporter I actually think this is working, I think the gui is displaying the wrong storage. My EBS on /var/piler is growing.
-
run the following
du -h --max-depth=1 /var/piler
-
reporter where should I run that? What will be the effect of it? I can confirm my emails are on the EBS volume, will this change the gui to display the proper storage?
-
reporter I ran the command it displayed the /var/piler directory and showed me the storage being occupied by each directory. /var/piler/store keeps increasing.
-
repo owner Will you show me df -h output (make sure you format it)?
-
reporter I am fairly new to this and do apologize, how do I upload a formatted copy of my output?
-
repo owner See the toolbar at the comment box, eg. H1, H2, ... "Code" is what you need. Also make sure you use the Preveiew button on the right.
-
reporter Filesystem Size Used Avail Use% Mounted on /dev/xvda1 10G 2.4G 7.7G 24% / devtmpfs 903M 0 903M 0% /dev tmpfs 920M 0 920M 0% /dev/shm tmpfs 920M 104M 817M 12% /run tmpfs 920M 0 920M 0% /sys/fs/cgroup /dev/xvdf 99G 2.2G 92G 3% /var/piler
-
repo owner Thanks. based on the df output, your setup is just fine. I'm not sure how could happen that "When I log onto the gui, the emails are being dropped onto my boot volume"? What evidence do you have to support your claim?
-
reporter Im sorry, maybe I used the wrong terms. When I log onto the gui, the disk usage is showing me /dev/xvda1 not /dev/xvdf so it is misleading.
-
repo owner Try this: add the following to config-site.php:
$config['DATA_PARTITION'] = '/var/piler';
-
repo owner - changed status to resolved
If the above setting doesn't solve your problem, then reopen the issue.
-
reporter Unfortunately even adding that to the config-site did not help.
-
reporter please reopen the issue.
- Log in to comment
The /dv/xvda1 that the emails are on is only a 10GB drive while the EBS mounted on/var/piler is a 100GB drive so its larger lol.