Linstor Management¶
The following page provides some insight on managing Linstor.
Changing IP Address of Clusters¶
Stop the following services.¶
systemctl stop pve-cluster
systemctl stop corosync
systemctl stop linstor-controller.service
systemctl stop linstor-satellite.service
Modify Node IP addresses in /etc/corosync/corosync.conf¶
vi /etc/corosync/corosync.conf
Change IP Addresses of each node.
Modify Controller IP in /etc/pve/storage.cfg¶
vi /etc/pve/storage.cfg
Change IP to controller IP
Start Services¶
killall pmxcfs
systemctl start corosync
systemctl start pve-cluster
systemctl start linstor-controller.service
systemctl start linstor-satellite.service
Modify Node IP Address¶
linstor node interface modify --ip 192.168.2.200 pve-0 default
linstor node interface modify --ip 192.168.2.201 pve-1 default
linstor node interface modify --ip 192.168.2.202 pve-2 default
Verify Node Cluster¶
linstor node list
An output should display something like the following.
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Node โ NodeType โ Addresses โ State โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโก
โ pve-0 โ COMBINED โ 192.168.2.200:3366 (PLAIN) โ Online โ
โ pve-1 โ COMBINED โ 192.168.2.201:3366 (PLAIN) โ Online โ
โ pve-2 โ COMBINED โ 192.168.2.202:3366 (PLAIN) โ Online โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
When a node is EVICTED, as shown here, this usually means that the node was down and could not be joined with the cluster.
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Node โ NodeType โ Addresses โ State โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโก
โ pve-0 โ COMBINED โ 192.168.2.200:3366 (PLAIN) โ Online โ
โ pve-1 โ COMBINED โ 192.168.2.201:3366 (PLAIN) โ EVICTED โ
โ pve-2 โ COMBINED โ 192.168.2.202:3366 (PLAIN) โ Online โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Restore the node by running the "node restore" command. Here's an example of the command to bring back pve-1 back online.
sudo linstor node restore pve-1
List Resources¶
Use the following command to list resources.
linstor resource list
This command shows something like the following.
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ ResourceName โ Node โ Port โ Usage โ Conns โ State โ CreatedOn โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโก
โ pm-0c0e1528 โ pve-0 โ 7011 โ Unused โ Ok โ UpToDate โ 2024-09-18 10:37:42 โ
โ pm-0c0e1528 โ pve-1 โ 7011 โ Unused โ Ok โ UpToDate โ 2024-09-18 10:37:47 โ
โ pm-0c0e1528 โ pve-2 โ 7011 โ InUse โ Ok โ UpToDate โ 2024-09-18 10:37:47 โ
If a resource shows a property of SkipDisk as shown here,
โ pm-0c0e1528 โ pve-2 โ 7011 โ InUse โ Ok โ Diskless, SkipDisk (R) โ 2024-09-18 10:37:47 โ
This indicates an IO error on the affected resource(s). Remove this property (using 'linstor resource set-property $node $rsc DrbdOptions/SkipDisk') to instruct LINSTOR and DRBD to adjust (and recreate if necessary) the affected logical volumes again. For more information please visit: https://linbit.com/drbd-user-guide/linstor-guide-1_0-en/#s-linstor-drbd-skip-disk
Use the following one-liner to find all affected resource and remove this property.
linstor resource list | grep "SkipDisk (R)" | awk -F'|' '{print $2 $3}' | xargs -I{} bash -c 'set -- {}; linstor resource set-property $2 $1 DrbdOptions/SkipDisk'