このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
01_linux:13_storage:36_linstor_bcache [2022/07/07 23:06] – 作成 matsui | 01_linux:13_storage:36_linstor_bcache [2022/08/24 07:15] (現在) – matsui | ||
---|---|---|---|
行 24: | 行 24: | ||
</ | </ | ||
+ | ==== プールの設定修正 ==== | ||
+ | <color # | ||
+ | |||
+ | < | ||
+ | zfs set compress=lz4 DataPool | ||
+ | ##zfs set compress=off DataPool | ||
+ | zfs set sync=disabled DataPool | ||
+ | zfs set atime=off DataPool | ||
+ | zpool set autotrim=off DataPool | ||
+ | </ | ||
+ | |||
+ | ==== プールの設定確認 ==== | ||
+ | < | ||
+ | zfs get compress | ||
+ | zfs get sync | ||
+ | zfs get dedup | ||
+ | zfs get atime | ||
+ | zpool get -o all all | grep autotrim | ||
+ | </ | ||
+ | |||
+ | ==== LINSOTR storage-pool追加 ==== | ||
+ | < | ||
+ | linstor storage-pool create zfsthin node1 DfltStorPool DataPool | ||
+ | linstor storage-pool create zfsthin node2 DfltStorPool DataPool | ||
+ | linstor storage-pool create zfsthin node3 DfltStorPool DataPool | ||
+ | linstor storage-pool create zfsthin node4 DfltStorPool DataPool | ||
+ | </ | ||
+ | |||
+ | ===== 3.Bcache領域作成 | ||
+ | |||
+ | |||
+ | 今回は、/ | ||
+ | 本来はnvmeのSSDを利用したりする。Optane SSDなど | ||
+ | |||
+ | < | ||
+ | lvcreate -l 100%FREE --thinpool ubuntu-vg/ | ||
+ | linstor storage-pool create lvmthin oshv1001 LinstorCache ubuntu-vg/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== 4.create resource group ===== | ||
+ | |||
+ | < | ||
+ | linstor resource-group create BcacheG --storage-pool DfltStorPool --place-count 3 --layer-list drbd, | ||
+ | </ | ||
+ | |||
+ | ===== 5.set bcache for resource group ===== | ||
+ | |||
+ | < | ||
+ | linstor resource-group set-property BcacheG BCache/ | ||
+ | </ | ||
+ | |||
+ | ===== 6.configure bcache in LINBIT SDS (optional) | ||
+ | |||
+ | もしキャッシュのモードを変更する場合 | ||
+ | |||
+ | < | ||
+ | # linstor resource-group set-property BcacheG BCache/ | ||
+ | # linstor resource-group set-property BcacheG BCache/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== 7.Create Volume | ||
+ | |||
+ | < | ||
+ | linstor volume-group create BcacheG | ||
+ | linstor resource-group spawn BcacheG Volume001 10G | ||
+ | </ | ||
+ | |||
+ | ===== 8.確認 ===== | ||
+ | |||
+ | < | ||
+ | ## lsblk | ||
+ | |||
+ | zd0 230:0 | ||
+ | └─bcache0 | ||
+ | └─drbd1000 147: | ||
+ | zd16 | ||
+ | └─bcache0 | ||
+ | └─drbd1000 147: | ||
+ | </ | ||
{{tag> | {{tag> |