Add new zvol: Difference between revisions

From Scalelogic Wiki
Jump to navigation Jump to search
migrate>Mi-S
No edit summary
migrate>Mi-S
No edit summary
Line 26: Line 26:
*'''​<span style="font-size:small;">Write cache logging (log bias)&nbsp;</span>'''-'''&nbsp;'''<span style="font-size: small"><span style="font-family:arial,helvetica,sans-serif">Use this property to provide a hint to system about handling synchronous requests for a specific dataset. If&nbsp;</span></span><span style="font-family: arial, helvetica, sans-serif; font-size: small">logbias</span><span style="font-size: small; font-family: arial, helvetica, sans-serif">&nbsp;is set to latency,</span><font style="font-size: small" face="arial, helvetica, sans-serif">&nbsp;GenesisZX uses the pool's separate log devices, if any, to handle the requests at low latency. If&nbsp;</font><span style="font-family: arial, helvetica, sans-serif; font-size: small">logbias&nbsp;</span><font style="font-size: small" face="arial, helvetica, sans-serif">is set to throughput</font><font style="font-size: small" face="arial, helvetica, sans-serif">, the system does not use the pool's separate log devices. Instead, GenesisZX optimizes synchronous operations for global pool throughput and efficient use of resources. The default value is&nbsp;</font><span style="font-family: arial, helvetica, sans-serif; font-size: small">latency</span><font style="font-size: small" face="arial, helvetica, sans-serif">. For most configurations, the default value is recommended.&nbsp;</font>
*'''​<span style="font-size:small;">Write cache logging (log bias)&nbsp;</span>'''-'''&nbsp;'''<span style="font-size: small"><span style="font-family:arial,helvetica,sans-serif">Use this property to provide a hint to system about handling synchronous requests for a specific dataset. If&nbsp;</span></span><span style="font-family: arial, helvetica, sans-serif; font-size: small">logbias</span><span style="font-size: small; font-family: arial, helvetica, sans-serif">&nbsp;is set to latency,</span><font style="font-size: small" face="arial, helvetica, sans-serif">&nbsp;GenesisZX uses the pool's separate log devices, if any, to handle the requests at low latency. If&nbsp;</font><span style="font-family: arial, helvetica, sans-serif; font-size: small">logbias&nbsp;</span><font style="font-size: small" face="arial, helvetica, sans-serif">is set to throughput</font><font style="font-size: small" face="arial, helvetica, sans-serif">, the system does not use the pool's separate log devices. Instead, GenesisZX optimizes synchronous operations for global pool throughput and efficient use of resources. The default value is&nbsp;</font><span style="font-family: arial, helvetica, sans-serif; font-size: small">latency</span><font style="font-size: small" face="arial, helvetica, sans-serif">. For most configurations, the default value is recommended.&nbsp;</font>


*<span style="font-size:small"><span style="font-family:arial,helvetica,sans-serif">'''Primary cache&nbsp;'''-&nbsp;<span style="color: rgb(0, 0, 0)">Controls what is cached in the primary cache (ARC). If this prop</span><span style="color: rgb(0, 0, 0)">erty is set to "all", then both user data and metadata is cached.</span><span style="color: rgb(0, 0, 0)">If this property is set to "none", then neither user data nor metad</span><span style="color: rgb(0, 0, 0)">ata is cached. If this property is set to "metadata", then only</span><span style="color: rgb(0, 0, 0)">&nbsp;metadata is cached. The default value is "all".</span></span></span>
*<span style="font-size:small"><span style="font-family:arial,helvetica,sans-serif">'''Primary cache&nbsp;'''-&nbsp;<span style="color: rgb(0, 0, 0)">Controls what is cached in the primary cache (ARC). If this prop</span><span style="color: rgb(0, 0, 0)">erty is set to "All", then both user data and metadata is cached.</span><span style="color: rgb(0, 0, 0)">If this property is set to "None", then neither user data nor metad</span><span style="color: rgb(0, 0, 0)">ata is cached. If this property is set to "Metadata", then only</span><span style="color: rgb(0, 0, 0)">&nbsp;metadata is cached. The default value is "All".</span></span></span>
*<span style="font-family:arial,helvetica,sans-serif"><span style="font-size:small">'''​Secondary cache&nbsp;'''-&nbsp;<span style="color: rgb(0, 0, 0)">Controls what is cached in the secondary cache (L2ARC). If this</span><span style="color: rgb(0, 0, 0)">&nbsp;property is set to "all", then both user data and metadata is&nbsp;</span><span style="color: rgb(0, 0, 0)">cached. If this property is set to "none", then neither user data</span><span style="color: rgb(0, 0, 0)">&nbsp;nor metadata is cached. If this property is set to "metadata", then&nbsp;only metadata is cached. The default value is "all".</span></span></span>
*<span style="font-family:arial,helvetica,sans-serif"><span style="font-size:small">'''​Secondary cache&nbsp;'''-&nbsp;<span style="color: rgb(0, 0, 0)">Controls what is cached in the secondary cache (L2ARC). If this</span><span style="color: rgb(0, 0, 0)">&nbsp;property is set to "All", then both user data and metadata is&nbsp;</span><span style="color: rgb(0, 0, 0)">cached. If this property is set to "None", then neither user data</span><span style="color: rgb(0, 0, 0)">&nbsp;nor metadata is cached. If this property is set to "Metadata", then&nbsp;only metadata is cached. The default value is "All".</span></span></span>
*'''​COPIES&nbsp;'''<span style="font-size: small; font-family: arial, helvetica, sans-serif">-&nbsp;</span><span style="font-size: small; font-family: arial, helvetica, sans-serif; color: rgb(0, 0, 0)">Controls the number of copies of data stored for this dataset.</span><span style="font-size: small; font-family: arial, helvetica, sans-serif; color: rgb(0, 0, 0)">&nbsp;These copies are in addition to any redundancy provided by the</span><span style="font-size: small; font-family: arial, helvetica, sans-serif; color: rgb(0, 0, 0)">&nbsp;pool, for example, mirroring or raid-z. The copies are stored on</span><span style="font-size: small; font-family: arial, helvetica, sans-serif; color: rgb(0, 0, 0)">&nbsp;different disks, if possible. The space used by multiple copies is</span><span style="font-size: small; font-family: arial, helvetica, sans-serif; color: rgb(0, 0, 0)">&nbsp;charged to the associated file and dataset, changing the "used"&nbsp;</span><span style="font-size: small; font-family: arial, helvetica, sans-serif; color: rgb(0, 0, 0)">property and counting against quotas and reservations.</span><span style="font-size: small; font-family: arial, helvetica, sans-serif; color: rgb(0, 0, 0)">Changing this property only affects the newly-written data.</span>
*'''​COPIES&nbsp;'''<span style="font-size: small; font-family: arial, helvetica, sans-serif">-&nbsp;</span><span style="font-size: small; font-family: arial, helvetica, sans-serif; color: rgb(0, 0, 0)">Controls the number of copies of data stored for this dataset.</span><span style="font-size: small; font-family: arial, helvetica, sans-serif; color: rgb(0, 0, 0)">&nbsp;These copies are in addition to any redundancy provided by the</span><span style="font-size: small; font-family: arial, helvetica, sans-serif; color: rgb(0, 0, 0)">&nbsp;pool, for example, mirroring or raid-z. The copies are stored on</span><span style="font-size: small; font-family: arial, helvetica, sans-serif; color: rgb(0, 0, 0)">&nbsp;different disks, if possible. The space used by multiple copies is</span><span style="font-size: small; font-family: arial, helvetica, sans-serif; color: rgb(0, 0, 0)">&nbsp;charged to the associated file and dataset, changing the "used"&nbsp;</span><span style="font-size: small; font-family: arial, helvetica, sans-serif; color: rgb(0, 0, 0)">property and counting against quotas and reservations.</span><span style="font-size: small; font-family: arial, helvetica, sans-serif; color: rgb(0, 0, 0)">Changing this property only affects the newly-written data.</span>



Revision as of 11:50, 29 October 2018

This function allows you to create a new zvol. You have to fill in or choose detailed information related to zvol :
  • Name - Name of the new Zvol
  • Size - Size of the new Zvol. The unit for this values is GiB (Gibibyte).
In general, if you multiply 1024 ·1024 ·1024 = 1 073 741 824b, the result is equal to 230.
For example, GiB = 1024 × 1 MiB = 1024 × 1024 × 1 KiB = 1024 × 1024 × 1024 × 1 B = 1 073 741 824 ~ 1070 GB
  • Provisioning:
    • Thin provisioned - involves using virtualization technology to give the appearance of having more physical resources than are actually available. Use this format to save storage space. For the thin disk, you provision as much datastore space as the disk would require based on the value that you enter for the disk size. However, the thin disk starts small and at first, uses only as much datastore space as the disk needs for its initial operations.
    • Thick provisioned (default) - creates a virtual disk in a thick format. Space required for the virtual disk is allocated when the virtual disk is created. Data remaining on the physical device is not erased during creation.
  • Deduplication:
    • Disabled (default)
    • On - is a pseudonym for "sha256"
    • Verify - is a pseudonym for "sha256,verify", option that performs a full comparison of every incoming block with any alleged duplicate to ensure that they really are the same
    • sha256 - performs an operation where the same output given two different inputs, then it is reasonable to assume that when two blocks have the same checksum, they are in fact the same block.
    • sha256, Verify - enables an ability to detect and correct hash collisions, however this is very system intensive and is not recommended for casual use
  • Compression - there are several data compression methods - You will see all available methods on the drop-down list. The default compression method is lz4.You can also choose no compression (None).
    • gzip, the standard levels of 1 through 9 are supported, where 1 is as fast as possible, with the least compression, and 9 is as compressed as possible, taking as much time as necessary.
    • lzjb -  is a fast method with tight compression ratios, which is standard with most Lempel-Ziv algorithms. LZJB seems to provide the best all around results in terms of performance and compression.
    • zle is a very fast compression method, with very light compression ratios.
    • lz4 - is intended as a faster and smarter replacement for lzjb
  • Volume block size  - specifies the block size of the volume. The block size cannot be changed once the volume has been written, so it should be set at volume creation time. The default value is 128 KiB. 
    The value can be changed. You can choose between : 4; 8; 16; 32; 64; 128, 256; 512 [KiB] and 1 [MB].
  • Write cache logging (sync) - you can choose from three options :
    • always (default)
    • standard
    • disabled
  • Write cache logging (log bias) - Use this property to provide a hint to system about handling synchronous requests for a specific dataset. If logbias is set to latency, GenesisZX uses the pool's separate log devices, if any, to handle the requests at low latency. If logbias is set to throughput, the system does not use the pool's separate log devices. Instead, GenesisZX optimizes synchronous operations for global pool throughput and efficient use of resources. The default value is latency. For most configurations, the default value is recommended. 
  • Primary cache Controls what is cached in the primary cache (ARC). If this property is set to "All", then both user data and metadata is cached.If this property is set to "None", then neither user data nor metadata is cached. If this property is set to "Metadata", then only metadata is cached. The default value is "All".
  • ​Secondary cache Controls what is cached in the secondary cache (L2ARC). If this property is set to "All", then both user data and metadata is cached. If this property is set to "None", then neither user data nor metadata is cached. If this property is set to "Metadata", then only metadata is cached. The default value is "All".
  • ​COPIES Controls the number of copies of data stored for this dataset. These copies are in addition to any redundancy provided by the pool, for example, mirroring or raid-z. The copies are stored on different disks, if possible. The space used by multiple copies is charged to the associated file and dataset, changing the "used" property and counting against quotas and reservations.Changing this property only affects the newly-written data.

You can attach this newly created zvol to a target. To do that, You have to :

  • choose one of the existing Target name
  • define the SCSI ID for the target (you can generate a random SCSI ID number) 
  • define the LUN for the target
  • Access mode for the target - the default is Read-Write, You can choose the Read-Only option.