Project

General

Profile

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'