Skip to content

Instantly share code, notes, and snippets.

@candlerb
candlerb / gns3-web-ui-1125.gns3project.b64
Last active May 6, 2021 08:44
base64 encoding of gns3-web-ui-1125.gns3project
UEsDBBQACAAIAHRJplIAAAAAAAAAAAAAAAAMAAAAcHJvamVjdC5nbnMzzVdLk9wmEP4rU8o1
7KK3ND7lkGsqB6dySFwqxENDVgIF0I7HW/vf06DHaGfXTuzKwTMX0cBHP77uhqeITE43tNeW
R8eDIL3lPx5moR65upVZR4zbCZkhZ6m6pjOSNVZ+8iBJDhN7QekFigz+O+qUTdGZt2iSKI6T
PIK50ei/OHWNZH5FjPOE07pAjOMMZbmgqBY0QUyIKq8yKlKc+l2GP0ortdexhqGlXPHmxGV3
8hrGGONNepbMnbxqi/Ckz0HlnSVBJpXjRhDKm560vLe38z25cPNCqsjYgF9uwaZx7CU3IFJT
34PE6VH3uruA5Cmiehgnxz3QHx+uXtzGvVQPYfAUCdm7+cin52VmcVNKeJuIuEaU1BXKYlyj
iqQxanmCE8ITmvLCu0lpxhcwwsgIaI2ahjYo550RLA1qGe2Imx0avOQufQiZ0MohQQbZX46H
95eR/24kwLwLch9j7+07PI/PIQDHQ6t79g6074+HH3D4hRHSI6HSAVAMO7x+jn/08Yo49qOP
8JnG8OE9hWL8vFiwGE24KPOMx95ogjJW5KiiBUGYxRmL85bVqQiM0sbtzASU79x6Rdxmf4UX
+8vsxvyiqjNMqxYlnDGUtTVGbZzUSKSipHEmcEH5W+Z/CJy0kNAbS4Nsx42Fk8tBvaak90hU
@candlerb
candlerb / gist:b231ce074555b2619c18a0e86109e63f
Created February 15, 2021 11:49
linstor storage-pool list
root@node1:~# linstor storage-pool list
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮
┊ StoragePool ┊ Node ┊ Driver ┊ PoolName ┊ FreeCapacity ┊ TotalCapacity ┊ CanSnapshots ┊ State ┊
╞══════════════════════════════════════════════════════════════════════════════════════════════════════════╡
┊ DfltDisklessStorPool ┊ node1 ┊ DISKLESS ┊ ┊ ┊ ┊ False ┊ Ok ┊
┊ DfltDisklessStorPool ┊ node2 ┊ DISKLESS ┊ ┊ ┊ ┊ False ┊ Ok ┊
┊ DfltDisklessStorPool ┊ node3 ┊ DISKLESS ┊ ┊ ┊ ┊ False ┊ Ok ┊
┊ DfltDisklessStorPool ┊ node4 ┊ DISKLESS ┊ ┊ ┊ ┊ False ┊ Ok ┊
┊ pool_ssd ┊ node1 ┊ LVM ┊ vg_ssd ┊ 9.31 GiB ┊ 9.31 GiB ┊ False ┊ Ok ┊
┊ pool_ssd ┊ node2 ┊ LVM ┊ vg_ssd ┊ 9.31 GiB ┊ 9.31 GiB ┊ False ┊ Ok ┊
root@node1:~# linstor resource-definition modify --resource-group ssd_crit bar
SUCCESS:
...
root@node1:~# linstor resource list -r bar
╭───────────────────────────────────────────────────────────────────────────────╮
┊ ResourceName ┊ Node ┊ Port ┊ Usage ┊ Conns ┊ State ┊ CreatedOn ┊
╞═══════════════════════════════════════════════════════════════════════════════╡
┊ bar ┊ node1 ┊ 7002 ┊ Unused ┊ Ok ┊ UpToDate ┊ 2021-02-15 10:25:45 ┊
┊ bar ┊ node2 ┊ 7002 ┊ Unused ┊ Ok ┊ UpToDate ┊ 2021-02-15 10:25:45 ┊
╰───────────────────────────────────────────────────────────────────────────────╯
@candlerb
candlerb / gist:995a54bf2050a4287c1dd4ca0b39951b
Created February 15, 2021 10:28
linstor resource-group spawn-resources
root@node1:~# linstor resource list -r bar
╭─────────────────────────────────────────────────────────────────────────────────────────╮
┊ ResourceName ┊ Node ┊ Port ┊ Usage ┊ Conns ┊ State ┊ CreatedOn ┊
╞═════════════════════════════════════════════════════════════════════════════════════════╡
┊ bar ┊ node1 ┊ 7002 ┊ Unused ┊ Ok ┊ SyncTarget(12.66%) ┊ 2021-02-15 10:25:45 ┊
┊ bar ┊ node2 ┊ 7002 ┊ Unused ┊ Ok ┊ UpToDate ┊ 2021-02-15 10:25:45 ┊
╰─────────────────────────────────────────────────────────────────────────────────────────╯
root@node1:~# linstor volume list -r bar
╭────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
┊ Node ┊ Resource ┊ StoragePool ┊ VolNr ┊ MinorNr ┊ DeviceName ┊ Allocated ┊ InUse ┊ State ┊
@candlerb
candlerb / linstor_resources.txt
Created February 15, 2021 10:23
Creating linstor resources manually
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 ┊
@candlerb
candlerb / drbd_setup_status.txt
Created February 14, 2021 18:55
drbd setup status
root@node3:~# drbdsetup status --verbose
my_ssd_res node-id:0 role:Secondary suspended:no
volume:0 minor:1000 disk:UpToDate quorum:yes blocked:no
node1 node-id:2 connection:Connected role:Secondary congested:no ap-in-flight:0 rs-in-flight:0
volume:0 replication:Established peer-disk:Diskless peer-client:yes resync-suspended:no
node2 node-id:3 connection:Connected role:Secondary congested:no ap-in-flight:0 rs-in-flight:0
volume:0 replication:Established peer-disk:Diskless peer-client:yes resync-suspended:no
node4 node-id:1 connection:Connected role:Secondary congested:no ap-in-flight:0 rs-in-flight:0
volume:0 replication:Established peer-disk:UpToDate resync-suspended:no
@candlerb
candlerb / linstor_resource_list.txt
Created February 14, 2021 13:00
linstor resource list and volume list
root@node1:~# linstor resource list
╭───────────────────────────────────────────────────────────────────────────────╮
┊ ResourceName ┊ Node ┊ Port ┊ Usage ┊ Conns ┊ State ┊ CreatedOn ┊
╞═══════════════════════════════════════════════════════════════════════════════╡
┊ my_ssd_res ┊ node1 ┊ 7000 ┊ Unused ┊ Ok ┊ Diskless ┊ 2021-02-13 11:18:12 ┊
┊ my_ssd_res ┊ node2 ┊ 7000 ┊ Unused ┊ Ok ┊ Diskless ┊ 2021-02-13 17:04:50 ┊
┊ my_ssd_res ┊ node3 ┊ 7000 ┊ Unused ┊ Ok ┊ UpToDate ┊ 2021-02-13 11:18:13 ┊
┊ my_ssd_res ┊ node4 ┊ 7000 ┊ Unused ┊ Ok ┊ UpToDate ┊ 2021-02-13 11:18:13 ┊
╰───────────────────────────────────────────────────────────────────────────────╯
root@node1:~# linstor volume list
@candlerb
candlerb / screen.txt
Created January 30, 2021 20:12
Output from installLxdMosaic.sh
root@lxdmosaic:~# time ./installLxdMosaic.sh
Reading package lists... Done
Building dependency tree
Reading state information... Done
curl is already the newest version (7.68.0-1ubuntu2.4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
## Installing the NodeSource Node.js 10.x repo...
@candlerb
candlerb / iostat_output.txt
Created January 28, 2021 12:50
Example output from `iostat 5 -x`
avg-cpu: %user %nice %system %iowait %steal %idle
2.77 2.56 5.33 0.20 0.00 89.14
Device r/s w/s rkB/s wkB/s rrqm/s wrqm/s %rrqm %wrqm r_await w_await aqu-sz rareq-sz wareq-sz svctm %util
loop0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
loop1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
loop2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
loop3 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
loop4 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
loop5 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
@candlerb
candlerb / gist:5d12d05654dbccf238c2cde5ad98ed8d
Last active January 29, 2021 09:50
linstor volume list
root@node1:~# linstor volume list
╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
┊ Node ┊ Resource ┊ StoragePool ┊ VolNr ┊ MinorNr ┊ DeviceName ┊ Allocated ┊ InUse ┊ State ┊
╞═════════════════════════════════════════════════════════════════════════════════════════════════════════════╡
┊ node1 ┊ my_ssd_res ┊ pool_ssd ┊ 0 ┊ 1000 ┊ /dev/drbd1000 ┊ 2.00 GiB ┊ Unused ┊ UpToDate ┊
┊ node2 ┊ my_ssd_res ┊ pool_ssd ┊ 0 ┊ 1000 ┊ /dev/drbd1000 ┊ 2.00 GiB ┊ Unused ┊ UpToDate ┊
┊ node3 ┊ my_ssd_res ┊ DfltDisklessStorPool ┊ 0 ┊ 1000 ┊ /dev/drbd1000 ┊ ┊ Unused ┊ Diskless ┊
┊ node4 ┊ my_ssd_res ┊ DfltDisklessStorPool ┊ 0 ┊ 1000 ┊ /dev/drbd1000 ┊ ┊ Unused ┊ Diskless ┊
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯