notes:proxmox
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| notes:proxmox [2024/04/02 06:53] – created Nikita Kipriyanov | notes:proxmox [2024/06/26 06:33] (current) – [ECC error notifications] Nikita Kipriyanov | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Proxmox virtualization cluster ====== | ||
| + | * LXC images collection: http:// | ||
| + | |||
| + | ===== Storage ===== | ||
| + | ===== Network structure ===== | ||
| + | |||
| + | ===== System configuration ===== | ||
| + | |||
| + | ==== Bootloader ==== | ||
| + | |||
| + | === Console redirection, | ||
| + | At least when installation was done using serial console, the Proxmox installer configures system in a very useful manner, so that bootloader and the kernel appear both on the serial and the VGA console: | ||
| + | |||
| + | <file - / | ||
| + | GRUB_TERMINAL_INPUT=" | ||
| + | GRUB_TERMINAL_OUTPUT=" | ||
| + | GRUB_SERIAL_COMMAND=" | ||
| + | GRUB_CMDLINE_LINUX=" | ||
| + | </ | ||
| + | |||
| + | This allows later convenient access to the system via IPMI Serial-over-LAN. The inconvenient part of this that it diverts kernel boot messages ('' | ||
| + | |||
| + | <file - / | ||
| + | GRUB_CMDLINE_LINUX=" | ||
| + | </ | ||
| + | |||
| + | I also don't like the default " | ||
| + | |||
| + | <file / | ||
| + | GRUB_CMDLINE_LINUX_DEFAULT="" | ||
| + | </ | ||
| + | |||
| + | In case of installation over Debian, where Proxmox installer did not run, all this setup needs to be replicated: | ||
| + | |||
| + | <file - / | ||
| + | GRUB_CMDLINE_LINUX_DEFAULT="" | ||
| + | GRUB_CMDLINE_LINUX=" | ||
| + | GRUB_TERMINAL=" | ||
| + | GRUB_SERIAL_COMMAND=" | ||
| + | </ | ||
| + | |||
| + | Other COM port is used with another speed here, just for illustration. Notice also, instead of separate '' | ||
| + | |||
| + | ==== Fast reboots with kexec ==== | ||
| + | FIXME this needs more work | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | ==== Time sync ==== | ||
| + | Proxmox recommends using '' | ||
| + | |||
| + | <code bash> | ||
| + | echo ' | ||
| + | echo ' | ||
| + | chronyc reload sources | ||
| + | </ | ||
| + | |||
| + | ==== ECC error notifications ==== | ||
| + | |||
| + | Install `rasdaemon` utility to receive reports from hardware via EDAC interface and get them into logs. | ||
| + | |||
| + | See [[https:// | ||
| + | |||
| + | ==== Backup ==== | ||
| + | Useful to set up using '' | ||
| + | |||
| + | < | ||
| + | compress: zstd | ||
| + | pigz: 0 | ||
| + | zstd: 0 | ||
| + | </ | ||
| + | |||
| + | '' | ||
| + | |||
| + | **Note:** it's possible to [[https:// | ||
| + | < | ||
| + | proxmox-backup-debug inspect file / | ||
| + | dd if=/ | ||
| + | </ | ||
| + | |||
| + | === Node backup === | ||
| + | Hosts may need backup, too. Theoretically we need " | ||
| + | |||
| + | It is useful to create a simple shell script and run it, say, mounthly: | ||
| + | |||
| + | <file bash / | ||
| + | # | ||
| + | export PBS_FINGERPRINT=< | ||
| + | export PBS_REPOSITORY=< | ||
| + | export PBS_PASSWORD=< | ||
| + | |||
| + | NS=< | ||
| + | NOTES=$(hostname -f) | ||
| + | |||
| + | TMP=$(mktemp -d -p /dev/shm) | ||
| + | |||
| + | if mountpoint -q / | ||
| + | then | ||
| + | # for modern UEFI boot | ||
| + | proxmox-backup-client backup --ns ${NS} root.pxar:/ pve.pxar:/ | ||
| + | else | ||
| + | # for legacy BIOS boot | ||
| + | proxmox-backup-client backup --ns ${NS} root.pxar:/ pve.pxar:/ | ||
| + | fi | ||
| + | |||
| + | SNAPSHOT=$(grep " | ||
| + | proxmox-backup-client snapshot upload-log --ns ${NS} ${SNAPSHOT} ${TMP}/ | ||
| + | rm -rf ${TMP} | ||
| + | proxmox-backup-client snapshot notes update --ns ${NS} ${SNAPSHOT} ${NOTES} | ||
| + | </ | ||
| + | |||
| + | This mathes the disk structure the Proxmox' | ||
| + | * the paritition table is GPT | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * ''/ | ||
| + | |||
| + | There is no need to backup other copies of ESP or '' | ||
| + | |||
| + | If the node installation was performed by converting Debian bookworm system, you need to adjust the backup command accordingly. | ||
| + | |||
| + | If you find this too wasteful, read this thread and invent your own backup script: https:// | ||
| + | |||
| ===== Debian repositories ===== | ===== Debian repositories ===== | ||
| Line 54: | Line 178: | ||
| On the HPE servers it's recommended to add their SDR MCP repository to access the useful tools to administer and monitor the hardware: https:// | On the HPE servers it's recommended to add their SDR MCP repository to access the useful tools to administer and monitor the hardware: https:// | ||
| - | **Don' | + | **Don' |
| <code bash> | <code bash> | ||
notes/proxmox.1712040832.txt.gz · Last modified: by Nikita Kipriyanov
