[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zfs-discuss
Subject:    Re: [zfs-discuss] Snapshot creation time
From:       "Ellis, Mike" <Mike.Ellis () fmr ! com>
Date:       2009-08-28 15:04:29
Message-ID: 4BFA116039720941BBE96DD4AE4FA14206A3A325 () MSGMMKCLE2WIN ! DMN1 ! FMR ! COM
[Download RAW message or body]

Try a:  zfs get -pH -o value creation <snapshot>

 -- MikeE

-----Original Message-----
From: zfs-discuss-bounces@opensolaris.org
[mailto:zfs-discuss-bounces@opensolaris.org] On Behalf Of Chris Baker
Sent: Friday, August 28, 2009 10:52 AM
To: zfs-discuss@opensolaris.org
Subject: [zfs-discuss] Snapshot creation time

I'm using "find" to run a directory scan to see which files have changed
since the last snapshot was taken. Something like:

zfs snapshot tank/filesystem@snap1
... time passes ...
find /tank/filesystem -newer /tank/filesystem/.zfs/snap1 -print

Initially I assumed the time data on the .zfs/snap1 directory would
reflect the time the snapshot was taken - but the time values were
earlier than that. So I thought perhaps it was the time of the last
filesystem modification, but now that seems not to be the case. The
above "find" line is discovering files in the snapshot newer than the
snapshot root directory which just seems odd.

Please can anyone advise what time data is being used for the snapshot
root directory?

Also - please can anyone advise any better approach than grepping zpool
history to find an accurate-to-the-second snapshot creation or
filesystem modification time?  I suppose I could encode the time in the
snapshot name, but that feels clumsy. "zfs get creation" will only give
me to the nearest minute.

Appreciate any observations.

Cheers

Chris
-- 
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic