Zfs: Difference between revisions

769 bytes added ,  5 years ago
no edit summary
No edit summary
No edit summary
Line 44: Line 44:


==Creating a zpool==
==Creating a zpool==
Create a zpool and zfs file system
<source lang="console">
<source lang="console">
[name@server]$ sudo zpool create -f data /dev/vdb /dev/vdc
[name@server]$ sudo zpool create -f data /dev/vdb /dev/vdc
Line 54: Line 53:
[name@server]$ sudo zfs set compression=lz4 data
[name@server]$ sudo zfs set compression=lz4 data
</source>
</source>
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 speed up your file IO 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 rates. 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
Check settings
cc_staff
1,486

edits