Emails going to boot volume rather than attached EBS

Issue #590 resolved
Nanz IT created an issue

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)

  1. Nanz IT reporter

    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.

  2. eXtremeSHOK

    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

  3. Nanz IT 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?

  4. Nanz IT reporter

    I actually think this is working, I think the gui is displaying the wrong storage. My EBS on /var/piler is growing.

  5. Nanz IT 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?

  6. Nanz IT 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.

  7. Janos SUTO 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.

  8. Nanz IT 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
    
  9. Janos SUTO 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?

  10. Nanz IT 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.

  11. Janos SUTO repo owner

    Try this: add the following to config-site.php:

    $config['DATA_PARTITION'] = '/var/piler';
    
  12. Log in to comment