Increasing mail server /home partition size

From Notes_Wiki
Revision as of 15:57, 27 February 2016 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>Email_server_configuration|Email server configuration</yambe:breadcrumb> =Increasing mail server /home partition size= To increase mail server /home partiti...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>Email_server_configuration|Email server configuration</yambe:breadcrumb>

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.


<yambe:breadcrumb>Email_server_configuration|Email server configuration</yambe:breadcrumb>