Re: [zfs-discuss] snapshot size

2012-06-05 Thread Stefan Ring
> Can I say
>
>        USED-REFER=snapshot size ?

No. "USED" is the space that would be freed if you destroyed the
snapshot _right now_. This can change (and usually does) if you
destroy previous snapshots.
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] snapshot size

2012-06-05 Thread Albert Shih
 Le 05/06/2012 ? 17:08:51+0200, Stefan Ring a écrit
> > Two questions from a newbie.
> >
> >        1/ What REFER mean in zfs list ?
> 
> The amount of data that is reachable from the file system root. It's
> just what I would call the contents of the file system.

OK thanks. 

> 
> >        2/ How can I known the size of all snapshot size for a partition ?
> >        (OK I can add zfs list -t snapshot)
> 
> zfs get usedbysnapshots 

Thansk 

Can I say 

USED-REFER=snapshot size ? 


Regards.

JAS
-- 
Albert SHIH
DIO bâtiment 15
Observatoire de Paris
5 Place Jules Janssen
92195 Meudon Cedex
Téléphone : 01 45 07 76 26/06 86 69 95 71
xmpp: j...@jabber.obspm.fr
Heure local/Local time:
mar 5 jui 2012 17:16:07 CEST
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] snapshot size

2012-06-05 Thread Stefan Ring
> Two questions from a newbie.
>
>        1/ What REFER mean in zfs list ?

The amount of data that is reachable from the file system root. It's
just what I would call the contents of the file system.

>        2/ How can I known the size of all snapshot size for a partition ?
>        (OK I can add zfs list -t snapshot)

zfs get usedbysnapshots 

Or if you have a recent enough system, have a look at the "written"
property: http://blog.delphix.com/matt/files/2011/11/oss.pdf (pg 8).
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] snapshot size

2012-06-05 Thread Albert Shih
Hi all,

Two questions from a newbie.

1/ What REFER mean in zfs list ? 

2/ How can I known the size of all snapshot size for a partition ?
(OK I can add zfs list -t snapshot)

Regards.

JAS


-- 
Albert SHIH
DIO bâtiment 15
Observatoire de Paris
5 Place Jules Janssen
92195 Meudon Cedex
Téléphone : 01 45 07 76 26/06 86 69 95 71
xmpp: j...@jabber.obspm.fr
Heure local/Local time:
mar 5 jui 2012 16:57:38 CEST
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] Snapshot size as reported by the USED property

2010-08-30 Thread Peter Radig
I create snapshots on my datasets quite frequently. My understanding of the 
USED property of a snapshot is that it indicates the amount of data that was 
written to the dataset after the snapshot was taken. But now I'm seeing a 
snapshot with USED == 0 where there was definitely write activity after it was 
taken.

Is my understanding wrong or do I see a thing that is not supposed to happen? I 
am on NCP3.

Thanks,
Peter
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Snapshot size larger than expected

2008-01-23 Thread Matt Newcombe
OK, to answer my own question (with a little help from Eric!) ...

I was using vi to edit the file which must be rewriting the entire file back 
out to disk - hence the larger than expected growth of the snapshot.

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


Re: [zfs-discuss] Snapshot size larger than expected

2008-01-23 Thread Eric Schrock
How are you editing the file?  Are you sure your editor isn't writing
out the entire file even though only four characters have changed?  If
you truss the app, do you see a single 4 byte write to the file?

- Eric

On Wed, Jan 23, 2008 at 11:11:38AM -0800, Matt Newcombe wrote:
> Hi,
> 
> We're currently testing a Thumper running Solaris10 with a view to buying a 
> couple. 
> 
> I'm not seeing what I would expect to see as far as snapshot space 
> utilization and am hoping someone could explain why.
> 
> Here's what I'm doing -
> 
> Creating an empty zpool & zfs
> Creating a 6MB text file
> Taking a snapshot
> 
> So far so good. The filesystem size is 6MB and the snapshot 0MB
> 
> Now I edit the first 4 characters of the text file. I would have expected the 
> size of the snapshot to have grown by the size of the changed *blocks* but 
> when I do a 'zfs list' the filesystem is now reported as being around 12MB 
> total with the snapshot around 6MB.
> 
> So the snapshot is being reported as being the size of the changed *files* 
> and not the changed *blocks*. Is this corret (that the snapshot is consuming 
> this space) or is that just how it's being reported with th zfs list command?
> 
> Many thanks - Matt
>  
>  
> This message posted from opensolaris.org
> ___
> zfs-discuss mailing list
> zfs-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

--
Eric Schrock, Fishworkshttp://blogs.sun.com/eschrock
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Snapshot size larger than expected

2008-01-23 Thread A Darren Dunham
On Wed, Jan 23, 2008 at 11:11:38AM -0800, Matt Newcombe wrote:
> Creating an empty zpool & zfs
> Creating a 6MB text file
> Taking a snapshot
> 
> So far so good. The filesystem size is 6MB and the snapshot 0MB
> 
> Now I edit the first 4 characters of the text file. I would have
> expected the size of the snapshot to have grown by the size of the
> changed *blocks* but when I do a 'zfs list' the filesystem is now
> reported as being around 12MB total with the snapshot around 6MB.

How did you edit the file?  Are you sure that the editor didn't just
create a temporary file and rename it (thus updating every block)?

-- 
Darren Dunham   [EMAIL PROTECTED]
Senior Technical Consultant TAOShttp://www.taos.com/
Got some Dr Pepper?   San Francisco, CA bay area
 < This line left intentionally blank to confuse you. >
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] Snapshot size larger than expected

2008-01-23 Thread Matt Newcombe
Hi,

We're currently testing a Thumper running Solaris10 with a view to buying a 
couple. 

I'm not seeing what I would expect to see as far as snapshot space utilization 
and am hoping someone could explain why.

Here's what I'm doing -

Creating an empty zpool & zfs
Creating a 6MB text file
Taking a snapshot

So far so good. The filesystem size is 6MB and the snapshot 0MB

Now I edit the first 4 characters of the text file. I would have expected the 
size of the snapshot to have grown by the size of the changed *blocks* but when 
I do a 'zfs list' the filesystem is now reported as being around 12MB total 
with the snapshot around 6MB.

So the snapshot is being reported as being the size of the changed *files* and 
not the changed *blocks*. Is this corret (that the snapshot is consuming this 
space) or is that just how it's being reported with th zfs list command?

Many thanks - Matt
 
 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss