On 27/07/2009, at 10:14 PM, Tobias Exner wrote:
Hi list,
I've did some tests and run into a very strange situation..
I created a zvol using "zfs create -V" and initialize an sam-
filesystem on this zvol.
After that I restored some testdata using a dump from another system.
So far so good.
After some big troubles I found out that releasing files in the sam-
filesystem doesn't create space on the underlying zvol.
So staging and releasing files just work until the "zfs list" shows
me a zvol with 100% usage although the sam-filesystem was only
filled up to 20%.
I didn't create snapshots and a scrub did show any errors.
When the zvol was filled up even a sammkfs can't solve the problem.
I had to destroy the zvol ( not zpool ).
After that I was able recreate a new zvol with sam-fs on top.
this is a feature of block devices. once you (or samfs) uses a block
on the zvol, it has no mechanism to tell the zvol when it is no longer
using it. samfs simply unreferences the blocks it frees, it doesnt
actively go through them and tell the block layer underneath it that
they can be reclaimed. from the zvols point of view theyre still being
used because they were used at some point in the past.
you might be able to get the space back in the zvol by writing a
massive file full of zeros in the samfs, but you'd have to test that.
Is that a known behaviour? .. or did I run into a bug?
it's known.
dlg
System:
SAM-FS 4.6.85
Solaris 10 U7 X86
_______________________________________________
sam-qfs-discuss mailing list
sam-qfs-disc...@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/sam-qfs-discuss
David Gwynne
Infrastructure Architect
Engineering, Architecture, and IT
University of Queensland
+61 7 3365 3636
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss