xfs_freeze -f misbehaving under lenny / xfsprogs 2.9.8

Eric Sandeen sandeen at sandeen.net
Mon Mar 30 08:45:15 CDT 2009


Stuart Rowan wrote:
> Hi,
> 
> We have a backup script running on another machine that ssh's in to the 
> affected server and does the following:
> mkdir -p /tmp/foo;
> /usr/sbin/xfs_freeze -f /home;
> /sbin/lvcreate -s -L 20G -n snap-shot home ;
> /usr/sbin/xfs_freeze -u /home;
> mount -o nouuid,ro /dev/data/snap-shot /tmp/foo;
> 
> It then rsyncs (over ssh) the data to the backup store from /tmp/foo
> 
> The above command set hangs at running "/sbin/lvcreate -s -L 20G -n 
> snap-shot home;"
> 
> All I/O to /home is of course blocked at this point so for example exim 
> starts queueing up all the mail.


lvcreate now does the fs freeze on its own via the snapshot ioctl, so if
you run freeze manually first, you are stuck behind that first freeze.

Just drop the xfs_freeze's from the above, and all should be well.

-Eric




More information about the xfs mailing list