Hi

see my response in line.

On Thu, Feb 25, 2010 at 2:05 AM, Milan Shah <milanmukuls...@gmail.com>wrote:

> Hi,
>
> This is what we are trying to understand.
>
> Luns are presented to the CDOM and then we create the zpool on them.
>
> On top of the zpool zvol is created and then it is presented to the GDOM.
>
> zpool list | grep testpool
>
> testpool    12G   114K  12.0G     0%  ONLINE  -
>
>
>
> zfs list | grep testpool
>
> testpool          110K  11.8G    18K  /testpool
>
>
>
> *zfs create -V 10g testpool/testvol*
>
>
>
> zfs list | grep testpool
>
> testpool          10.0G  1.81G    18K  /testpool
>
> testpool/testvol    10G  11.8G    16K  -
>
>
>
> In the gdom we create the UFS file system using newfs on this disk and then
> we copy 4GB of data on that.
>
> */dev/dsk/c0d1s0        9.8G    10M   9.7G     1%    /test*
>
> The disk space used increases.
>
> zpool list | grep testpool
>
> zfs list | grep testpool
>
>
>
> zpool list | grep testpool
>
> testpool    12G  4.49G  7.51G    37%  ONLINE  -
>
>
>
> zfs list | grep testpool
>
> testpool          10.0G  1.81G    18K  /testpool
>
> testpool/testvol    10G  7.32G  4.49G  -
>
>
>
> */dev/dsk/c0d1s0        9.8G   4.3G   5.5G    44%    /test*
>
>
>
> After this we delete all the things in the /test directory, so that the
> disk space is freed.
>
> */dev/dsk/c0d1s0        9.8G    10M   9.7G     1%    /test*
>

the act of deleting files in UFS simply does a few accounting changes to the
filesystem thus has no affect on the blocks in ZFS volume, and in some cases
could actually make the zvol space grow. The only possible way to have ZFS
storage shrink would be to have compression enabled on the zvol, and then
over write the files with zero's and even this wouldn't necessarily shrink
the volume due to ZFS's copy on write storage.


James Dickens
http://uadmin.blogspot.com




> This doesn’t gets reflected on the zfs list and it still shows the same
> size.
>
> zpool list | grep testpool
>
> testpool    12G  4.49G  7.51G    37%  ONLINE  -
>
>
>
> zfs list | grep testpool
>
> testpool          10.0G  1.81G    18K  /testpool
>
> testpool/testvol    10G  7.32G  4.49G  -
>
>
>
> Thanks for the help in advance.
>
> _______________________________________________
> 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

Reply via email to