LINSTOR

描述

环境

至少2个系统版本一致的Linux系统,以Ubuntu系统为例

安装

添加ppa源

add-apt-repository ppa:linbit/linbit-drbd9-stack

更新源

apt update

安装软件

apt install -y linstor-controller linstor-satellite linstor-client
apt install -y drbd-dkms drbd-utils lvm2

配置

选择一个作为controller节点

启动linstor服务并设置开机自启

systemctl enable linstor-controller.service
systemctl start linstor-controller.service
systemctl enable linstor-satellite.service
systemctl start linstor-satellite.service

查看系统hostname

stack@openst:~/devstack$ hostname
openst

创建节点

linstor node create hostname IP --node-type Combined

输入linstor node list可以看到已注册的节点


linstor n l

创建存储池

创建lvm vg或thin lv

sudo vgcreate VgName DeviceName
sudo lvcreate -L Size -T VGName/ThinLvName

创建LINSTOR存储池

linstor sp create lvm NodeName StoragePoolName VgName#使用vg创建
linstor sp create lvmthin NodeName StoragePoolName VgName/ThinLvName#使用thin lv创建

输入linstor sp l可以看到存储池


linstor storage-pool list

另外的节点作为satellite

启动linstor服务并设置开机自启

systemctl enable linstor-satellite.service
systemctl start linstor-satellite.service

satellite节点的controller不能enable,因为一个LINSTOR集群只能有一个active的controller

添加linstor-client.conf配置文件,用于联系controller

在/etc/linstor路径下创建linstor-client.conf文件(如果没有linstor路径,则创建)

cd /etc
mkdir linstor
cd linstor/
vi linstor-client.conf
#切换到输入模式,输入以下内容
[global]
controllers=Controller_IP
#保存退出

这个时候可以输入linstor n l,IP没错的话应该能看到刚刚创建的combined节点

创建Satellite节点

linstor node create hostname IP --node-type Satellite

创建存储池

创建资源

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容