cc_staff
1,486
edits
No edit summary |
No edit summary |
||
Line 39: | Line 39: | ||
</tab> | </tab> | ||
</tabs> | </tabs> | ||
=Using ZFS= | |||
Create a zpool and zfs file system | |||
<source lang="console"> | |||
[name@server]$ sudo zpool create -f data /dev/vdb /dev/vdc | |||
</source> | |||
Turn on and choose a compression algorithim | |||
<source lang="console"> | |||
[name@server]$ sudo zfs set compression=lz4 data | |||
</source> | |||
Check settings | |||
<source lang="console"> | |||
[name@server]$ sudo zfs get all data | |||
</source> | |||
Create a dataset within the <code>data</code> zpool | |||
<source lang="console"> | |||
[name@server]$ sudo zfs create -p data/www | |||
</source> | |||
Add a new volume | |||
<source lang="console"> | |||
[name@server]$ sudo zpool add data /dev/vde | |||
</source> | |||
Check pool status | |||
<source lang="console"> | |||
[name@server]$ sudo zpool status data | |||
</source> | |||
Destroy a zpool | |||
<source lang="console"> | |||
[name@server]$ sudo zpool destroy data | |||
</source> | |||
=Notes= | |||
While in theory it should be possible to use ZFS with resizing volumes in OpenStack in practices this has not been straight forward and is better to be avoided if possible. |