Just to try this out, I created a 9g zpool and a 5g volume in that zpool. 
Then I used dd to write to every block of the volume.

Taking a snapshot of the volume at that point attempts to reserve an 
additional 5g, which fails.

With 1g volumes we see it in action:

bash-3.00# zpool create tank c0d1s0
bash-3.00# zfs list
NAME   USED  AVAIL  REFER  MOUNTPOINT
tank  89.5K  9.84G     1K  /tank
bash-3.00# zfs create -V 1g tank/vol
bash-3.00# zfs list
NAME       USED  AVAIL  REFER  MOUNTPOINT
tank      1.00G  8.84G    18K  /tank
tank/vol     1G  9.84G    16K  -
bash-3.00# dd if=/dev/zero of=/dev/zvol/dsk/tank/vol bs=128k
write: No such device or address
8193+0 records in
8193+0 records out
bash-3.00# zfs list
NAME       USED  AVAIL  REFER  MOUNTPOINT
tank      1.00G  8.84G    18K  /tank
tank/vol     1G  8.87G   993M  -
bash-3.00# zfs snapshot tank/[EMAIL PROTECTED]
bash-3.00# zfs list
NAME            USED  AVAIL  REFER  MOUNTPOINT
tank           2.00G  7.84G    18K  /tank
tank/vol       2.00G  8.84G  1.00G  -
tank/[EMAIL PROTECTED]      0      -  1.00G  -
bash-3.00#

So that's probably what Paul is running into.


On Thu, 13 Nov 2008, Matthew Ahrens wrote:

> Are you sure that you don't have any refreservations?
>
> --matt
>
> Paul wrote:
>> I apologize for lack of info regarding to previous post.
>>
>> # zpool list
>>
>> NAME            SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
>> gwvm_zpool     3.35T  3.16T   190G    94%  ONLINE  -
>> rpool           135G  27.5G   107G    20%  ONLINE  -
>> ...
>>
>> #  zfs list
>>
>> ...
>> gwvm_zpool/gwpo19stby                                100G   504M    18K  
>> /gwvm_zpool/gwpo19stby
>> gwvm_zpool/[EMAIL PROTECTED]                 0      -    18K  -
>> gwvm_zpool/gwpo19stby/po19stby-vdisk1                100G  34.6G  65.9G  -
>> ...
>>
>> Issue:
>>
>> run
>>
>> #  zfs snapshot -r gwvm_zpool/[EMAIL PROTECTED]
>> cannot create snapshot 'gwvm_zpool/gwpo19stby/[EMAIL PROTECTED]': out of 
>> space
>> no snapshots were created
>>
>>
>> # zfs snapshot wvm_zpool/gwpo19stby/[EMAIL PROTECTED]
>> cannot create snapshot 'gwvm_zpool/gwpo19stby/[EMAIL PROTECTED]': out of 
>> space
>>
>>
>> The gwvm_zpool  pool still has 190 GB available.  Snapshot does not consume 
>> the storage space.  When I performed snapshot with different zvol size (1GB, 
>> 10GB),  I have no problem with the   "out of space"  message.
>>
>
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
>


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

Reply via email to