|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Subject: Re: moving /var/spool/postfix
From: Wietse Venema (wietse
porcupine.org)Date: Thu Aug 24 2000 - 18:03:23 CDT
- Next message: Wietse Venema: "Re: rbl listing notifications"
- Previous message: Wietse Venema: "Re: STOP THAT THREAD"
- In reply to: David Terrell: "Re: moving /var/spool/postfix"
- Next in thread: elton: "Re: moving /var/spool/postfix"
- Reply: Wietse Venema: "Re: moving /var/spool/postfix"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Nope, it is not good enough to just copy the files. If you move
Postfix queues across file systems it is safer to move all (incoming,
active, deferred) queue files to the new incoming queue.
Postfix queue files are based on the file inode number plus time
of arrival in microseconds. If you just copy files you can lose
mail.
Wietse
David Terrell:
> On Thu, Aug 24, 2000 at 09:36:40PM +0200, Len Conrad wrote:
> > One of my IMGate users badly partitioned his FreeBSD disk and /var is
> > too small and filling up fast, while /usr can is very spacey empty
> > and can be made spacier by losing /var/ports tree.
> >
> > Apart from repointing /spool/postfix in main.cf and mv-ing it
> > elsewhere, what else needs to be done to keep postfix happy post-move?
> >
> > postfix stop
> > edit main.cf
> > move from /var/spool/postfix to /var2/spool/postfix
> > postfix start
> >
> > It's never that simple, is it?
>
> That depends on what exactly "move from ... to ..." means.
>
> I would:
> postfix stop
> mkdir -p /var2/spool/postfix
> cd /var/spool
> mv postfix oldpost
> ln -sf /var2/spool/postfix postfix
> cd oldpost
> tar cf - . | (cd ../postfix ; tar xpvf - )
> postfix start
>
> The p in the tar xpvf is very important. :)
>
> --
> David Terrell | But remember that "layman" is just a polite
> dbt
meat.net | word for "idiot."
> http://wwn.nebcorp.com/ | - Neal Stephenson
>
>
>
>
- Next message: Wietse Venema: "Re: rbl listing notifications"
- Previous message: Wietse Venema: "Re: STOP THAT THREAD"
- In reply to: David Terrell: "Re: moving /var/spool/postfix"
- Next in thread: elton: "Re: moving /var/spool/postfix"
- Reply: Wietse Venema: "Re: moving /var/spool/postfix"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]