Project

General

Profile

Feature #9286

want refreservation=auto

Added by Mike Gerdts over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
zfs - Zettabyte File System
Start date:
2018-03-15
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

When a ZFS volume is created with zfs create -V (but without -s), the refreservation property is set to a value that is volsize plus the maximum size of metadata. If refreservation is ever set to another value, it is impossible to set it back to the automatically determined value. There are other cases where refreservation may be wrong. These include receiving a volume that was sent without properties and zfs clone.

We need:

zfs set refreservation=auto <volume>
zfs clone -o refreservation=auto <volume>

Each one would use the same function used by zfs create -V to determine the proper value for refreservation.


Related issues

Related to illumos gate - Bug #2973: Refreservation can not be set higher than volsizeNew2012-07-06

Actions

History

#1

Updated by Mike Gerdts over 1 year ago

  • Related to Bug #2973: Refreservation can not be set higher than volsize added
#2

Updated by Bryan Horstmann-Allen over 1 year ago

  • Project changed from OpenIndiana Distribution to illumos gate
  • Category deleted (OS/Net (Kernel and Userland))
#3

Updated by Marcel Telka over 1 year ago

  • Category set to zfs - Zettabyte File System
#4

Updated by Electric Monk over 1 year ago

  • Status changed from New to Closed
  • % Done changed from 60 to 100

git commit 1c10ae76c0cb31326c320e7cef1d3f24a1f47125

commit  1c10ae76c0cb31326c320e7cef1d3f24a1f47125
Author: Mike Gerdts <mike.gerdts@joyent.com>
Date:   2018-04-02T16:13:26.000Z

    9286 want refreservation=auto
    Reviewed by: Allan Jude <allanjude@freebsd.org>
    Reviewed by: Matthew Ahrens <mahrens@delphix.com>
    Reviewed by: John Kennedy <john.kennedy@delphix.com>
    Reviewed by: Andy Stormont <astormont@racktopsystems.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Also available in: Atom PDF