Increasing mail server /home partition size

From Notes_Wiki

Home > CentOS > CentOS 6.x > Email server configuration > Increasing mail server /home partition size

To increase mail server /home partition size use following steps:

  1. Create and attach a new larger drive
  2. mount <new-device> /home2
  3. rsync -aH --delete /home/ /home2/
  4. service postfix stop
  5. service dovecot stop
  6. rsync -aH --delete /home/ /home2/
  7. umount /home
  8. umount /home2
  9. Edit /etc/fstab by running blkid and copying UUID for /home entry
  10. umount /home
  11. Test using mount -a
  12. df -h #and verify
  13. service dovecot start
  14. service postfix start
  15. Optionally disconnect and delete old /home partition. Format drive if it is going to untrusted sources as private emails are present.


Home > CentOS > CentOS 6.x > Email server configuration > Increasing mail server /home partition size