Re: [zfs-discuss] What's eating my disk space? Missing snapshots?

2009-08-25 Thread Robert Milkowski
Matthew Stevenson wrote: It does lead to another question though: is there a way to see how much data is shared between any two given snapshots only if these are the only two snapshots (and no clones) as then the difference in a total used space for all snapshots (two of them) and a sum of

Re: [zfs-discuss] What's eating my disk space? Missing snapshots?

2009-08-22 Thread Al Hopper
On Thu, Aug 20, 2009 at 5:25 PM, Robert Milkowski mi...@task.gda.pl wrote: Matthew Stevenson wrote: Ha ha, I know! Like I say, I do get COW principles! I guess what I'm after is for someone to look at my specific example (in txt file attached to first post) and tell me specifically how to

Re: [zfs-discuss] What's eating my disk space? Missing snapshots?

2009-08-21 Thread Matthew Stevenson
Thank you very much, this explains it perfectly. I had been coming to the conclusion that the shared data must be what accounts for the missing space, but previously my thinking/expectation was that it would be charged against the snapshot in which the shared data first appeared. Doing that

Re: [zfs-discuss] What's eating my disk space? Missing snapshots?

2009-08-20 Thread Robert Milkowski
Matthew Stevenson wrote: Ha ha, I know! Like I say, I do get COW principles! I guess what I'm after is for someone to look at my specific example (in txt file attached to first post) and tell me specifically how to find out where the 13.8GB number is coming from. I feel like a total numpty

Re: [zfs-discuss] What's eating my disk space? Missing snapshots?

2009-08-18 Thread Matthew Stevenson
The guide is good, but didn't tell me anything I didn't already know about this area unfortunately. Anyway, I freed up a big chunk of space by first deleting the snapshot which was reported by zfs list as being the largest (2GB). Doing zfs list after this deletion revealed that several of the

Re: [zfs-discuss] What's eating my disk space? Missing snapshots?

2009-08-18 Thread Fajar A. Nugraha
On Tue, Aug 18, 2009 at 2:37 PM, Matthew Stevensonno-re...@opensolaris.org wrote: So there must be basically lots of references to data that hide themselves from the surface and can't really be found using zfs list. zfs list -t all usually works for me. Look at USED and REFER My understanding

Re: [zfs-discuss] What's eating my disk space? Missing snapshots?

2009-08-18 Thread Matthew Stevenson
Hi, thanks for the info. Can you have a look at the attachment on the original post for me? Everything you said is what I expected to see in the output there, but a lot of the values are blank where I hoped they would at least be able to tell me a breakdown of the USEDSNAP figure As far as I

Re: [zfs-discuss] What's eating my disk space? Missing snapshots?

2009-08-18 Thread Fajar A. Nugraha
On Tue, Aug 18, 2009 at 4:09 PM, Matthew Stevensonno-re...@opensolaris.org wrote: Hi, thanks for the info. Can you have a look at the attachment on the original post for me? Everything you said is what I expected to see in the output there, but a lot of the values are blank where I hoped

Re: [zfs-discuss] What's eating my disk space? Missing snapshots?

2009-08-18 Thread Matthew Stevenson
Well, I see USEDSNAP 13.8 GB for the dataset, so if you delete ALL snapshots you'd probably be able to get that much. I agree, it's just hard to see how... As for which snapshot to delete to get most space, that's a liitle bit tricky. See

Re: [zfs-discuss] What's eating my disk space? Missing snapshots?

2009-08-18 Thread Thomas Burgess
it's pretty simple, if i understand it correctly. When you add some blocks to zfs... xxx then take a snapshot (snapshot of x) the disk has the space of the x's and the snapshot does't take up any space yet then you add more to the drive and maybe take another snapshot

Re: [zfs-discuss] What's eating my disk space? Missing snapshots?

2009-08-18 Thread Matthew Stevenson
I do understand these concepts, but to me that still doesn't explain why adding the size of each snapshot together doesn't equal the size reported by zfs list in USEDSNAP. I'm clearly missing something. Hmmm... -- This message posted from opensolaris.org

Re: [zfs-discuss] What's eating my disk space? Missing snapshots?

2009-08-18 Thread Richard Elling
On Aug 18, 2009, at 9:04 AM, Matthew Stevenson wrote: I do understand these concepts, but to me that still doesn't explain why adding the size of each snapshot together doesn't equal the size reported by zfs list in USEDSNAP. Here is the pertinent text from the ZFS Admin Guide.

Re: [zfs-discuss] What's eating my disk space? Missing snapshots?

2009-08-18 Thread Thomas Burgess
dude, i just explained it =) ok...let me see if i can do better... if you have a file that's 1 gb , in zfs you have those blocks added. on a normal filesystem when you edit the file or add to it, it will erase the old file and add a new one over it (more or less). on zfs, you have the blocks

Re: [zfs-discuss] What's eating my disk space? Missing snapshots?

2009-08-18 Thread Matthew Stevenson
Ha ha, I know! Like I say, I do get COW principles! I guess what I'm after is for someone to look at my specific example (in txt file attached to first post) and tell me specifically how to find out where the 13.8GB number is coming from. I feel like a total numpty for going on about this, I

Re: [zfs-discuss] What's eating my disk space? Missing snapshots?

2009-08-18 Thread Thomas Burgess
If you understand how copy on write works and how snapshots work then the concept of the extra space should make perfect since. If you want a mathmatic formula for how to figure it out i would have to say that it would be based on how DIFFERENT the data is between snapshots AND how MUCH data it

[zfs-discuss] What's eating my disk space? Missing snapshots?

2009-08-14 Thread Matthew Stevenson
Please can someone take a look at the attached file which shows the output on my machine of zfs list -r -t filesystem,snapshot -o space rpool/export/home/matt The USEDDS figure of ~2GB is what I would expect, and is the same figure reported by the Disk Usage Analyzer. Where is the remaining

Re: [zfs-discuss] What's eating my disk space? Missing snapshots?

2009-08-14 Thread Richard Elling
On Aug 14, 2009, at 9:19 AM, Matthew Stevenson wrote: Please can someone take a look at the attached file which shows the output on my machine of zfs list -r -t filesystem,snapshot -o space rpool/export/home/matt The USEDDS figure of ~2GB is what I would expect, and is the same figure