[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Maildir backup

On Wed, Jan 28, 2009 at 7:28 PM, Oliver Hitz <oliver@net-track.ch> wrote:

> By the way, you can have stable filesystem snapshots using XFS and LVM:
> - xfs_freeze -f freezes your filesystem in a consistent state
> - create your lvm snapshot
> - xfs_freeze -u thaws the filesystem

This is not advisable in a live e-mail system, because:

> This method will freeze access to the filesystem for a short duration.

> I'm using this for backing up vmware images, which are 2 GB files.
> Before freezing the filesystem, I pause the VM in question and resume it
> afterwards. In my case, services are stopped for maybe one or two
> minutes, depending on the time vmware takes to pause and resume.

Freezing a live mail system may not be quite so quick, since you ought
to gracefully handle termination of  current connections. Remember
that not only SMTP will be affected, causing random delays, but also
reader processes will have to be denied for the duration.

If your file system is served via NFS, then you can have files that
remain open for a very long time after you initiated your shutdown

Now, there are ways around this in freeware, but they add complexity
to the mail delivery system.

ZFS snapshots seem to be a more workable approach than LVM snapshots,
but then your file server should be running Solaris (e.g.
OpenSolaris), or FreeBSD if your sense of adventure is merely mild.

Reply to: