Add new zvol: Difference between revisions

From Scalelogic Wiki
Jump to navigation Jump to search
m 1 revision
No edit summary
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div><span style="font-size:small">This function allows you to create a new zvol. You have to fill in or choose detailed information related to zvol&nbsp;:</span><br/></div>
This function allows you to create a new zvol. You have to fill in or choose detailed information related to zvol&nbsp;:
*<div><span style="font-size:small"><span style="font-family:arial,helvetica,sans-serif">'''NAME''' - Name of the new Zvol</span></span><br/></div>
*<div><span style="font-size:small"><span style="font-family:arial,helvetica,sans-serif">'''SIZE''' - Size of the new Zvol. The unit for this values is '''GiB (Gibibyte).'''</span></span><br/></div>
<div style="margin-left: 80px"><span style="font-size:small"><span style="font-family:arial,helvetica,sans-serif">'''​'''<span style="color: rgb(37, 37, 37);  line-height: 22.399999618530273px">In general, if you multiply 1024&nbsp;</span><span style="color: rgb(37, 37, 37);  line-height: 22.399999618530273px">·</span><span style="color: rgb(37, 37, 37);  line-height: 22.399999618530273px">1024&nbsp;</span><span style="color: rgb(37, 37, 37);  line-height: 22.399999618530273px">·</span><span style="color: rgb(37, 37, 37);  line-height: 22.399999618530273px">1024 = 1 073 741 824b, the result is equal to 2</span><sup style="line-height: 1em;  color: rgb(37, 37, 37);  font-family: sans-serif">30.</sup></span></span><br/></div><div style="margin-left: 80px"><span style="font-size:small"><span style="font-family:arial,helvetica,sans-serif">For example,&nbsp;<span style="color: rgb(37, 37, 37);  line-height: 22.399999618530273px;  background-color: rgb(249, 249, 249)">1&nbsp;</span>'''GiB'''<span style="color: rgb(37, 37, 37);  line-height: 22.399999618530273px;  background-color: rgb(249, 249, 249)">&nbsp;= 1024 × 1 MiB</span><span style="color: rgb(37, 37, 37);  line-height: 22.399999618530273px;  background-color: rgb(249, 249, 249)">&nbsp;= 1024 × 1024 × 1 KiB&nbsp;</span><span style="color: rgb(37, 37, 37);  line-height: 22.399999618530273px;  background-color: rgb(249, 249, 249)">= 1024 × 1024 × 1024 × 1 B</span>&nbsp;=&nbsp;<span style="color: rgb(37, 37, 37);  line-height: 22.399999618530273px">1 073 741 824&nbsp;~ 1070 GB</span></span></span><br/></div>
*<div><span style="font-size:small"><span style="font-family:arial,helvetica,sans-serif">'''PROVISIONING&nbsp;''':</span></span></div>
**<div><span style="font-size:small"><span style="font-family:arial,helvetica,sans-serif">​'''thin provisioning -'''<span style="color: rgb(37, 37, 37);  line-height: 22.399999618530273px">&nbsp;involves using v</span>irtualization technology<span style="color: rgb(37, 37, 37);  line-height: 22.399999618530273px">&nbsp;to give the appearance of having more physical resources than are actually available.&nbsp;</span><span style="color: rgb(51, 51, 51);  line-height: 18px">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.</span></span></span><br/></div>
**<div><span style="font-size:small"><span style="font-family:arial,helvetica,sans-serif"><span style="color: rgb(37, 37, 37);  line-height: 22.399999618530273px">'''thick provisioning''' -&nbsp;</span><span style="color: rgb(51, 51, 51);  line-height: 18px">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.</span></span></span></div>


*<div><span style="font-size:small"><span style="font-family:arial,helvetica,sans-serif">'''DEDUPLICATION'''&nbsp;:</span></span></div>
*'''Name'''&nbsp;- Name of the new Zvol
**<span style="font-size:small"><span style="font-family:arial,helvetica,sans-serif">​'''Disabled (default)'''</span></span>
*'''Size'''&nbsp;- Size of the new Zvol. The unit for this values is '''GiB (Gibibyte).'''<br/>In general, if you multiply 1024 ·1024 ·1024 = 1 073 741 824b, the result is equal to 2<sup>30</sup>.<br/>For example, 1 GiB = 1024 × 1 MiB = 1024 × 1024 × 1 KiB = 1024 × 1024 × 1024 × 1 B = 1 073 741 824 ~ 1070 GB
**<span style="font-size:small"><span style="font-family:arial,helvetica,sans-serif">'''On -&nbsp;'''<span style="color: rgb(51, 51, 51);  line-height: 19.200000762939453px;  text-align: justify">is a pseudonym for "sha256"</span></span></span>
**<span style="font-size:small"><span style="font-family:arial,helvetica,sans-serif">'''Verify -&nbsp;'''<span style="color: rgb(51, 51, 51);  line-height: 19.200000762939453px;  text-align: justify">is a pseudonym for "sha256,verify",&nbsp;</span><span style="color: rgb(85, 85, 85);  line-height: 18px">option that performs a full comparison of every incoming block with any alleged duplicate to ensure that they really are the same</span></span></span>
**<span style="font-size:small"><span style="font-family:arial,helvetica,sans-serif">'''sha 256 -&nbsp;'''performs an operation where the <span style="color: rgb(85, 85, 85);  line-height: 18px">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.</span></span></span>
**<span style="font-size:small"><span style="font-family:arial,helvetica,sans-serif">'''sha 256, verify -&nbsp;'''<span style="color: rgb(51, 51, 51);  line-height: 19.200000762939453px;  text-align: justify">enables an ability to detect and correct hash collisions, however this is very system intensive and is not recommended for casual use</span></span></span>


*<span style="font-size:small"><span style="font-family:arial,helvetica,sans-serif">'''COMPRESSION -&nbsp;'''there are several data compression methods - You will see all available methods on the drop-down list. The default compression method is&nbsp;'''LZ4'''''.''You can also choose no compression ''('''''NONE''').</span></span>
*'''Provisioning''':*​'''Thin provisioned -'''&nbsp;involves using virtualization technology to give the appearance of having more physical resources than are actually available.&nbsp;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.
**<span style="font-size:small"><span style="font-family:arial,helvetica,sans-serif"><span style="line-height: 18px">'''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.</span></span></span>
**'''Thick provisioned (default)'''&nbsp;-&nbsp;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.
**<span style="font-size:small"><span style="font-family:arial,helvetica,sans-serif"><span style="line-height: 18px">'''LZJB''' - &nbsp;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.</span></span></span>
 
**<span style="font-size:small"><span style="font-family:arial,helvetica,sans-serif"><span style="line-height: 18px">'''ZLE''' is a very fast compression method, with very light compression ratios.</span></span></span>
*'''Deduplication''':*​'''Disabled (default)'''
**<span style="font-size:small"><span style="font-family:arial,helvetica,sans-serif"><span style="line-height: 18px">'''lz4''' - is intended as a faster and smarter replacement for lzjb</span></span></span>
**'''On -&nbsp;'''is a pseudonym for "sha256"
*<span style="font-size:small"><span style="line-height: 18px">​</span>'''VOLUME BLOCK SIZE &nbsp;- '''s<span style="color: rgb(0, 0, 0)">pecifies the block size of the volume. The blocksize&nbsp;</span><span style="color: rgb(0, 0, 0)">cannot be changed once the volume has been written, so it should be&nbsp;set at volume creation time.&nbsp;</span></span>'''​'''<span style="font-size: small">the default value is '''128'''</span><span style="font-size: small">&nbsp;</span>'''KiB (for Release 1.0 up00 default value is 64KiB).'''<span style="font-size: small">The value can be changed. You can choose between&nbsp;: 8; 16; 32; 64; 128 [KiB].</span>
**'''Verify -&nbsp;'''is a pseudonym for "sha256,verify",&nbsp;option that performs a full comparison of every incoming block with any alleged duplicate to ensure that they really are the same
*'''SYNC&nbsp;''' - you can choose from three options&nbsp;:
**'''sha256 -&nbsp;'''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 -&nbsp;'''enables an ability to detect and correct hash collisions, however this is very system intensive and is not recommended for casual use
 
*'''​COPIES&nbsp;'''-&nbsp;Controls the number of copies of data stored for this dataset.&nbsp;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&nbsp;charged to the associated file and dataset, changing the "used"&nbsp;property and counting against quotas and reservations. Changing this property only affects the newly-written data. You can choose from three options:
**'''1 (default)'''
**'''2'''
**'''3'''
 
*'''Compression -&nbsp;'''there are several data compression methods - You will see all available methods on the drop-down list. The default compression method is&nbsp;'''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'''&nbsp;- &nbsp;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'''&nbsp;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&nbsp; - '''specifies the block size of the volume. The block size&nbsp;cannot be changed once the volume has been written, so it should be&nbsp;set at volume creation time.&nbsp;'''​'''The default value is '''128'''&nbsp;'''KiB.&nbsp;'''<br/>The value can be changed. You can choose between&nbsp;: 4; 8; 16; 32; 64; 128, 256; 512 [KiB] and 1 [MB].
*'''Write cache logging (sync)&nbsp;'''- you can choose from three options&nbsp;:
**'''always (default)'''
**'''always (default)'''
**'''standard'''
**'''standard'''
**'''disabled'''
**'''disabled'''
*'''​LOG BIAS &nbsp;-&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>
*'''​Write cache logging (log bias)&nbsp;'''-'''&nbsp;'''Use this property to provide a hint to system about handling synchronous requests for a specific dataset. If&nbsp;logbias&nbsp;is set to '''Write log device (latency)''', ZX uses the pool's separate log devices, if any, to handle the requests at low latency. If&nbsp;logbias&nbsp;is set to '''In pool (throughput)''', the system does not use the pool's separate log devices. Instead, ZX optimizes synchronous operations for global pool throughput and efficient use of resources. The default value is Write log device (latency). For most configurations, the default value is recommended.
 
*'''Primary cache&nbsp;'''-&nbsp;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&nbsp;metadata is cached. The default value is "All".
*'''​Secondary cache&nbsp;'''-&nbsp;Controls what is cached in the secondary cache (L2ARC). If this&nbsp;property is set to "All", then both user data and metadata is&nbsp;cached. If this property is set to "None", then neither user data&nbsp;nor metadata is cached. If this property is set to "Metadata", then&nbsp;only metadata is cached. The default value is "All".


*<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>
You can attach this newly created zvol to a target. To do that, you have to:
*<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>


<span style="font-size: small; font-family: arial, helvetica, sans-serif; color: rgb(0, 0, 0)">​</span><span style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: small">You can attach this newly created zvol to a target. To do that, You have to&nbsp;:</span>
*choose one of the existing '''Target&nbsp;''' names
*define the '''SCSI ID&nbsp;''' for the target (you can generate a random SCSI ID number by clicking '''Generate''' button)&nbsp;
*define the&nbsp;'''LUN&nbsp;'''for the target
*'''Access mode&nbsp;'''for the target - the default is&nbsp;'''Read-Write,&nbsp;'''You can choose the '''Read-Only&nbsp;'''option


*<span style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: small">choose one of the existing '''Target&nbsp;'''</span><span style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: small">name</span>
*<span style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: small">define the '''SCSI ID&nbsp;'''</span><span style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: small">for the target (you can generate a random SCSI ID number)&nbsp;</span>
*<span style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: small">define the&nbsp;'''LUN&nbsp;'''</span><span style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: small">for the target</span>
*<span style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: small">'''Access mode&nbsp;'''for the target - the default is&nbsp;'''Read-Write,&nbsp;'''You can choose the&nbsp;'''Read-Only&nbsp;'''option.</span>
<div></div>
[[Category:Help topics]]
[[Category:Help topics]]

Latest revision as of 13:48, 22 September 2020

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, 1 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
  • ​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 choose from three options:
    • 1 (default)
    • 2
    • 3
  • 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 Write log device (latency), ZX uses the pool's separate log devices, if any, to handle the requests at low latency. If logbias is set to In pool (throughput), the system does not use the pool's separate log devices. Instead, ZX optimizes synchronous operations for global pool throughput and efficient use of resources. The default value is Write log device (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".

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

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