I was told that this could be caused by
 http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6792701
 Removing large holey file does not free space

However, attempts to verify the cause were fruitless as zdb dumps core:
r...@onix# zdb -ddd p0
...
                  partial [2473161,2473169) length 8
outage [0,18446744073709551615) length 18446744073709551615
                /dev/dsk/c9t1d0s0 [DTL-required]
Dataset p0/tmp [ZPL], ID 112, cr_txg 6724, 40.6M, 1387 objects

ZIL header: claim_txg 0, claim_blk_seq 0, claim_lr_seq 0 replay_seq 0, flags 0x0
Memory fault(coredump)
r...@onix#

I transferred the contents of p0 to p1 via send/receive and I can tell that the p1 pool does *not* have the ghost allocation and zdb -ddd p1 does it's thing *without* dump.

To summarize; there are/were bugs that cause(d) "ghost allocations" and zfs send/receive is a method to remove them.

Best regards, Joost

On 6-12-2010 13:09, Joost Mulders wrote:
Hi,

I've output of space allocation which I can't explain. I hope someone
can point me at the right direction.

The allocation of my "home" filesystem looks like this:

jo...@onix$ zfs list -o space p0/home
NAME AVAIL USED USEDSNAP USEDDS USEDREFRESERV USEDCHILD
p0/home 31.0G 156G 86.7G 69.7G 0 0

This tells me that *86,7G* is used by *snapshots* of this filesystem.
However, when I look at the space allocation of the snapshots, I don't
see the 86,7G back!

jo...@onix$ zfs list -t snapshot -o space | egrep 'NAME|^p0\/home'
NAME AVAIL USED USEDSNAP USEDDS USEDREFRESERV USEDCHILD
p0/h...@s1 - 62.7M - - - -
p0/h...@s2 - 53.1M - - - -
p0/h...@s3 - 34.1M - - - -
p0/h...@s4 - 277M - - - -
p0/h...@s5 - 2.21G - - - -
p0/h...@s6 - 175M - - - -
p0/h...@s7 - 46.1M - - - -
p0/h...@s8 - 47.6M - - - -
p0/h...@s9 - 43.0M - - - -
p0/h...@s10 - 64.1M - - - -
p0/h...@s11 - 563M - - - -
p0/h...@s12 - 76.6M - - - -

The sum of the USED column is only some 3,6G, so the question is "to
what is the 86,7G of USEDSNAP allocated?" Ghost snapshots?

This is with zpool version 22. This zpool was used a year or so in
onnv-129. I upgraded the host recently to build 151a but I didn't
upgrade the pool yet.

Any pointers are appreciated!

Joost

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to