Skip to content

Instantly share code, notes, and snippets.

View Vicente-Cheng's full-sized avatar
🤙

freeze Vicente-Cheng

🤙
  • Taiwan
  • 06:22 (UTC +08:00)
View GitHub Profile
@Vicente-Cheng
Vicente-Cheng / rke2-commands.md
Created February 20, 2024 13:58 — forked from superseb/rke2-commands.md
RKE2 commands

RKE2 commands

Install

curl -sL https://get.rke2.io | sh
systemctl daemon-reload
systemctl start rke2-server
+ set -e
+ test -f src/ceph.in
++ which libtoolize
+ '[' /bin/libtoolize ']'
+ LIBTOOLIZE=libtoolize
+ test -d .git
++ git submodule usage
++ grep --quiet 'update.*--force'
++ echo --force
+ force=--force
# ceph-disk -v prepare --osd-uuid 0ce28232-6d5d-11e5-aec3-fa163e5c167b --journal-uuid 0ce28a16-6d5d-11e5-aec3-fa163e5c167b --dmcrypt /dev/vdb
DEBUG:ceph-disk:does /usr/bin/ceph-osd exists ?
DEBUG:ceph-disk:yes, /usr/bin/ceph-osd exists
INFO:ceph-disk:Running command: /usr/bin/ceph-osd --check-allows-journal -i 0 --cluster ceph
DEBUG:ceph-disk:does /usr/bin/ceph-osd exists ?
DEBUG:ceph-disk:yes, /usr/bin/ceph-osd exists
INFO:ceph-disk:Running command: /usr/bin/ceph-osd --check-wants-journal -i 0 --cluster ceph
DEBUG:ceph-disk:does /usr/bin/ceph-osd exists ?
DEBUG:ceph-disk:yes, /usr/bin/ceph-osd exists
INFO:ceph-disk:Running command: /usr/bin/ceph-osd --check-needs-journal -i 0 --cluster ceph
@Vicente-Cheng
Vicente-Cheng / gist:513f96c5f04330cea28a
Created October 12, 2015 10:30
centos7 udev debug log
version 208
device 0x7fe83cc529a0 has devpath '/devices/pci0000:00/0000:00:06.0/virtio3/block/vdb'
restoring old watch on '/dev/vdb'
adding watch on '/dev/vdb'
device 0x7fe83cc529a0 has devpath '/devices/pci0000:00/0000:00:06.0/virtio3/block/vdb'
restoring old watch on '/dev/vdb'
adding watch on '/dev/vdb'
device 0x7fe83cc529a0 has devpath '/devices/pci0000:00/0000:00:04.0/virtio1/block/vda'
restoring old watch on '/dev/vda'
adding watch on '/dev/vda'
@Vicente-Cheng
Vicente-Cheng / gist:2349857
Created April 10, 2012 09:40
log when make load (dtrace4linux)
4183 Apr 11 00:52:37 nova-network kernel: [ 155.632974] ------------[ cut here ]------------
4184 Apr 11 00:52:37 nova-network kernel: [ 155.632984] WARNING: at kernel/trace/ftrace.c:1484 ftrace_bug+0x28f/0x2e0()
4185 Apr 11 00:52:37 nova-network kernel: [ 155.632986] Hardware name: QSSC-98J
4186 Apr 11 00:52:37 nova-network kernel: [ 155.632988] Modules linked in: dtracedrv(P+) zfs(P) zcommon(P) znvpair(P) zavl(P) zunicode(P) splat spl zlib_def late 8021q garp bridge stp iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 iptable_filter ip_tables x_tables nfsd nfs lockd fscache aut h_rpcgss nfs_acl sunrpc psmouse i7core_edac serio_raw edac_core ioatdma joydev lp parport usbhid hid e1000e ahci libahci igb dca
4187 Apr 11 00:52:37 nova-network kernel: [ 155.633020] Pid: 1475, comm: insmod Tainted: P 3.1.10-st0315-1 #2
4188 Apr 11 00:52:37 nova-network kernel: [ 155.633023] Call Trace:
4189 Apr 11 00:52:37 nova-network kernel: [ 155.633030] [<ffffffff8106392f>] warn_slowp