Skip to content

Instantly share code, notes, and snippets.

View cjac's full-sized avatar

C.J. Collier cjac

View GitHub Profile
root@mini:~# ceph daemon mon.1 help
{
"add_bootstrap_peer_hint": "add peer address as potential bootstrap peer for cluster bringup",
"add_bootstrap_peer_hintv": "add peer address vector as potential bootstrap peer for cluster bringup",
"config diff": "dump diff of current config and default config",
"config diff get": "dump diff get <field>: dump diff of current and default config setting <field>",
"config get": "config get <field>: get the config value",
"config help": "get config setting schema and descriptions",
"config set": "config set <field> <val> [<val> ...]: set a config variable",
"config show": "dump current config settings",
root@mini:~# systemctl status ceph
● ceph.service - LSB: Start Ceph distributed file system daemons at boot time
Loaded: loaded (/etc/init.d/ceph; generated)
Active: active (exited) since Sat 2020-08-01 17:07:47 PDT; 35min ago
Docs: man:systemd-sysv-generator(8)
Tasks: 0 (limit: 4915)
Memory: 0B
CGroup: /system.slice/ceph.service
Aug 01 17:07:46 mini systemd[1]: Starting LSB: Start Ceph distributed file system daemons at boot time...
cjac@tiny:/tmp$ sudo dog vdi list
Name Id Size Used Shared Creation time VDI id Copies Tag
ad2 0 45 GB 43 GB 0.0 MB 2020-07-29 21:24 305afe 3
ns2 0 1.2 GB 1.2 GB 0.0 MB 2020-07-29 21:14 3e5fbc 3
ns1 0 1.2 GB 1.2 GB 0.0 MB 2020-07-29 21:13 3e64d5 3
mariadb_db 0 768 MB 660 MB 0.0 MB 2020-07-29 21:22 42fcd6 3
unifi 0 5.0 GB 4.9 GB 0.0 MB 2020-07-29 21:16 a992dc 3
mariadb 0 2.3 GB 2.0 GB 0.0 MB 2020-07-29 21:20 bf6d63 3
sh0 0 4.3 GB 4.3 GB 0.0 MB 2020-07-29 20:34 ea1b4a 3
cjac@mini:/tmp$ cat /tmp/sheep-pool.xml
<pool type="sheepdog">
<name>sheepdog0</name>
<source>
<name>sheepdog0</name>
<host name='localhost' port='7000'/>
</source>
</pool>
cjac@mini:/tmp$ sudo virsh pool-create /tmp/sheep-pool.xml
error: Failed to create pool from /tmp/sheep-pool.xml
[ 16.114050] qlcnic 0000:12:00.0: 2048KB memory map
[ 16.872332] qlcnic 0000:12:00.0: Default minidump capture mask 0x1f
[ 16.893075] qlcnic 0000:12:00.0: FW dump enabled
[ 16.908362] qlcnic 0000:12:00.0: Supports FW dump capability
[ 16.927088] qlcnic 0000:12:00.0: Driver v5.3.66, firmware v4.14.28
[ 16.981568] qlcnic: 8c:dc:d4:59:fb:00: NC523SFP 10Gb 2-port Server Adapter Board Chip rev 0x54
[ 17.432142] qlcnic 0000:12:00.0: using msi-x interrupts
[ 17.557431] qlcnic 0000:12:00.0: eth0: XGbE port initialized
[ 18.309528] qlcnic 0000:12:00.1: 2048KB memory map
[ 18.434493] qlcnic 0000:12:00.1: Default minidump capture mask 0x1f
auto ens2f0
iface ens2f0 inet manual
up ip link set up dev ${IFACE}
down ip link set down dev ${IFACE}
auto ens2f1
iface ens2f1 inet manual
up ip link set up dev ${IFACE}
down ip link set down dev ${IFACE}
# vlan tag 78 on bond0
auto sip0
iface sip0 inet manual
pre-up ip link set up dev bond0 > /dev/null 2>&1 || echo -n ''
pre-up ip link add name $IFACE link bond0 type vlan protocol 802.1q id 78
up ip link set up dev $IFACE
down ip link set down dev $IFACE
post-down ip link del dev $IFACE
# vlan tag 78 on bond1
auto eno1
iface eno1 inet manual
up ip link set up dev $IFACE
down ip link set down dev $IFACE
auto eno2
iface eno2 inet manual
up ip link set up dev $IFACE
down ip link set down dev $IFACE
cjac@server0:~$ sudo lldpctl ens2f1
-------------------------------------------------------------------------------
LLDP neighbors:
-------------------------------------------------------------------------------
Interface: ens2f1, via: LLDP, RID: 1, Time: 0 day, 00:00:23
Chassis:
ChassisID: mac 00:25:64:33:27:6f
Port:
PortID: ifname g9
TTL: 120
cjac@server0:~$ sudo ethtool ens2f1
Settings for ens2f1:
Supported ports: [ TP FIBRE ]
Supported link modes: 10000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes: 10000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: No