Zfs: Difference between revisions

543 bytes added ,  5 years ago
Line 60: Line 60:
This will use the [https://en.wikipedia.org/wiki/LZ4_(compression_algorithm) lz4] compression algorithm on the zpool <code>data</code>. If your data is largely binary you might not see large reduction in storage use, however, if your data is something more compressible, such as ascii data, you may see a larger reduction in storage use. Using compression can also improve file IO performance because less data needs to read and written. However this can depend on the particular compression algorithm chosen and some particularly computationally intensive algrothims may actually reduce file IO performance. The lz4 algorithm was choosen because it is a resonable compromise between speed and amount of compression achieved, other compression algorithms may provide better compression or speed but likely not both.
This will use the [https://en.wikipedia.org/wiki/LZ4_(compression_algorithm) lz4] compression algorithm on the zpool <code>data</code>. If your data is largely binary you might not see large reduction in storage use, however, if your data is something more compressible, such as ascii data, you may see a larger reduction in storage use. Using compression can also improve file IO performance because less data needs to read and written. However this can depend on the particular compression algorithm chosen and some particularly computationally intensive algrothims may actually reduce file IO performance. The lz4 algorithm was choosen because it is a resonable compromise between speed and amount of compression achieved, other compression algorithms may provide better compression or speed but likely not both.


Check settings
To see a list of peroperties for your pool use the below command.
<source lang="console">
<source lang="console">
[name@server]$ sudo zfs get all data
[name@server]$ sudo zfs get all data
NAME  PROPERTY              VALUE                  SOURCE
data  type                  filesystem            -
data  creation              Fri Mar  1 17:57 2019  -
data  used                  82.5K                  -
data  available            19.3G                  -
data  referenced            24K                    -
data  compressratio        1.00x                  -
data  mounted              yes                    -
data  quota                none                  default
...
</source>
</source>


cc_staff
1,486

edits