Created
February 15, 2021 10:23
-
-
Save candlerb/4c35708160c3828f0807250b76938ef7 to your computer and use it in GitHub Desktop.
Creating linstor resources manually
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@node1:~# linstor resource-definition create --resource-group ssd_std foo | |
SUCCESS: | |
Description: | |
New resource definition 'foo' created. | |
... | |
root@node1:~# linstor volume-definition list -r foo | |
╭──────────────────────────────────────────────────────────────╮ | |
┊ ResourceName ┊ VolumeNr ┊ VolumeMinor ┊ Size ┊ Gross ┊ State ┊ | |
╞══════════════════════════════════════════════════════════════╡ | |
╰──────────────────────────────────────────────────────────────╯ | |
root@node1:~# linstor volume-definition create --storage-pool pool_ssd foo 1G | |
SUCCESS: | |
Successfully set property key(s): StorPoolName | |
SUCCESS: | |
New volume definition with number '0' of resource definition 'foo' created. | |
root@node1:~# linstor resource create node1 foo | |
SUCCESS: | |
Description: | |
New resource 'foo' on node 'node1' registered. | |
... | |
root@node1:~# linstor resource create node2 foo | |
SUCCESS: | |
Successfully set property key(s): StorPoolName | |
INFO: | |
Tie breaker resource 'foo' created on DfltDisklessStorPool | |
INFO: | |
Resource-definition property 'DrbdOptions/Resource/quorum' updated from 'off' to 'majority' by auto-quorum | |
INFO: | |
Resource-definition property 'DrbdOptions/Resource/on-no-quorum' updated from 'off' to 'io-error' by auto-quorum | |
SUCCESS: | |
Description: | |
New resource 'foo' on node 'node2' registered. | |
... | |
root@node1:~# linstor resource list -r foo | |
╭────────────────────────────────────────────────────────────────────────────────────────╮ | |
┊ ResourceName ┊ Node ┊ Port ┊ Usage ┊ Conns ┊ State ┊ CreatedOn ┊ | |
╞════════════════════════════════════════════════════════════════════════════════════════╡ | |
┊ foo ┊ node1 ┊ 7001 ┊ Unused ┊ Ok ┊ UpToDate ┊ 2021-02-15 10:18:53 ┊ | |
┊ foo ┊ node2 ┊ 7001 ┊ Unused ┊ Ok ┊ SyncTarget(2.55%) ┊ 2021-02-15 10:18:57 ┊ | |
╰────────────────────────────────────────────────────────────────────────────────────────╯ | |
root@node1:~# linstor resource create node3 foo --diskless | |
SUCCESS: | |
Removed TIE_BREAKER flag from resource 'foo' on 'node3' | |
SUCCESS: | |
Update of resource 'foo' on node3 applied on node 'node2' | |
SUCCESS: | |
Update of resource 'foo' on node3 applied on node 'node1' | |
root@node1:~# linstor resource list -r foo | |
╭────────────────────────────────────────────────────────────────────────────────────────╮ | |
┊ ResourceName ┊ Node ┊ Port ┊ Usage ┊ Conns ┊ State ┊ CreatedOn ┊ | |
╞════════════════════════════════════════════════════════════════════════════════════════╡ | |
┊ foo ┊ node1 ┊ 7001 ┊ Unused ┊ Ok ┊ UpToDate ┊ 2021-02-15 10:18:53 ┊ | |
┊ foo ┊ node2 ┊ 7001 ┊ Unused ┊ Ok ┊ SyncTarget(5.61%) ┊ 2021-02-15 10:18:57 ┊ | |
┊ foo ┊ node3 ┊ 7001 ┊ Unused ┊ Ok ┊ Diskless ┊ 2021-02-15 10:18:56 ┊ | |
╰────────────────────────────────────────────────────────────────────────────────────────╯ | |
root@node1:~# linstor volume list -r foo | |
╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ | |
┊ Node ┊ Resource ┊ StoragePool ┊ VolNr ┊ MinorNr ┊ DeviceName ┊ Allocated ┊ InUse ┊ State ┊ | |
╞════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╡ | |
┊ node1 ┊ foo ┊ pool_ssd ┊ 0 ┊ 1001 ┊ /dev/drbd1001 ┊ 1.00 GiB ┊ Unused ┊ UpToDate ┊ | |
┊ node2 ┊ foo ┊ pool_ssd ┊ 0 ┊ 1001 ┊ /dev/drbd1001 ┊ 1.00 GiB ┊ Unused ┊ SyncTarget(8.07%) ┊ | |
┊ node3 ┊ foo ┊ DfltDisklessStorPool ┊ 0 ┊ 1001 ┊ /dev/drbd1001 ┊ ┊ Unused ┊ Diskless ┊ | |
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment