Infrastructure Cheat Sheet
ProxmoxPermalink
UpdatePermalink
pveam update
Remove NodePermalink
pvecm delnode <node>
rm -r /etc/pve/nodes/<node>
Not sure why the folder needs to be deleted but you can refresh the web browser after and it’ll be gone!
LogsPermalink
JournalPermalink
journalctl
RebootPermalink
Trigger RebootPermalink
systemctl reboot
See Last RebootPermalink
See comment
last -x | head | tac
Reload Network StuffPermalink
ifreload -a
After Editing Grub FilePermalink
After you edit /etc/default/grub
you run the following and then reboot.
For Regular InstallsPermalink
update-grub
For ZFS InstallsPermalink
pve-efiboot-tool refresh
USBPermalink
See DrivesPermalink
lsblk
or
fdisk -l
Map one to a VMPermalink
Note sata1 here is the second sata drive to this VM. Can also use virtio1
or something.
sata1: /dev/sda2,size=953852M
ZFSPermalink
See IssuesPermalink
zpool status -v
Clear WarningsPermalink
zpool clear <poolname> <devicename>
zpool clear tank ata-ST20000NM004E-3HR103_ZX2119KV
CephPermalink
Archive crash warningsPermalink
These happen when I reboot.
ceph crash archive-all
Cluster infoPermalink
StatusPermalink
Overall status of the cluster.
ceph status || ceph -w
ConfigPermalink
ceph config dump
MonitorsPermalink
Get details about the monitors.
ceph mon dump
Ceph ServicesPermalink
See ServicesPermalink
ceph mgr services
Restart ServicePermalink
ceph mgr module disable dashboard
ceph mgr module enable dashboard