xfs
[Top] [All Lists]

RE: Snapshots with external logs

To: <freemyer-ml@xxxxxxxxxxxxxxxxx>
Subject: RE: Snapshots with external logs
From: "Mike Young" <myoung@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 2 Feb 2004 16:26:17 -0800
Cc: <linux-xfs@xxxxxxxxxxx>
In-reply-to: <1075765917.13711.21.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
Thread-index: AcPp56RRXEkBPwZBQI6mEhqrIdKhfQABDH7g
Hi Greg,

Thanks for the quick response.

I'm using LVM for the snapshot and rollback.  You're right it is doing an
xfs_freeze, which does flush the log to disk.  So, without the log present,
I'm sure I'm going to have to use some option at mount time to create a new
log.  Is this a correct assumption?  Do you know what the option will be so
I can just automate the mount?

Thanks,

Mike

-----Original Message-----
From: Greg Freemyer [mailto:freemyer-ml@xxxxxxxxxxxxxxxxx] 
Sent: Monday, February 02, 2004 3:52 PM
To: Mike Young
Cc: linux-xfs@xxxxxxxxxxx
Subject: Re: Snapshots with external logs

On Mon, 2004-02-02 at 18:28, Mike Young wrote:
> Hi,
> 
>  
> 
> I was wondering if anyone using the external logs also utilizes snapshots.
> I'm trying to figure out how to do this so I can recover properly in the
> case of rollback.  Any help on this is greatly appreciated.
> 
>  
> 
> Thanks,
> 
>  
> 
> Mike
> 

How are you doing snapshot rollbacks?  I have never been exposed to that
concept.

Does anyone know if xfs_freeze flushes the log to disk?

If xfs_freeze does cause the log to be flushed to disk, you don't need
to snapshot the log.  You just rollback the snapshot of the data volume,
and clear the log volume.

FYI: The vfs_lock kernel patch invokes the same logic as xfs_freeze, so
it too flushes the disk if I am right.

Greg
-- 
Greg Freemyer





<Prev in Thread] Current Thread [Next in Thread>