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*

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

Reply via email to