notes:proxmox
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| notes:proxmox [2024/04/02 13:09] – bootloader and time sync Nikita Kipriyanov | notes:proxmox [2024/06/26 06:33] (current) – [ECC error notifications] Nikita Kipriyanov | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Proxmox virtualization cluster ====== | ====== Proxmox virtualization cluster ====== | ||
| + | * LXC images collection: http:// | ||
| + | |||
| ===== Storage ===== | ===== Storage ===== | ||
| ===== Network structure ===== | ===== Network structure ===== | ||
| Line 6: | Line 8: | ||
| ==== Bootloader ==== | ==== Bootloader ==== | ||
| - | 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. This allows later convenient access to the system via IPMI Serial-over-LAN. To replicate this setup for Debian setups, one could use the following settings: | + | |
| + | === 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 - / | <file - / | ||
| Line 14: | Line 18: | ||
| GRUB_CMDLINE_LINUX=" | 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 ==== | ==== Time sync ==== | ||
| Line 23: | Line 55: | ||
| chronyc reload sources | 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 ==== | ==== Backup ==== | ||
| Line 34: | Line 72: | ||
| '' | '' | ||
| + | |||
| + | **Note:** it's possible to [[https:// | ||
| + | < | ||
| + | proxmox-backup-debug inspect file / | ||
| + | dd if=/ | ||
| + | </ | ||
| === Node backup === | === Node backup === | ||
| - | Hosts may need backup, too. Theoretically we need " | + | Hosts may need backup, too. Theoretically we need " |
| It is useful to create a simple shell script and run it, say, mounthly: | It is useful to create a simple shell script and run it, say, mounthly: | ||
| Line 45: | Line 89: | ||
| export PBS_REPOSITORY=< | export PBS_REPOSITORY=< | ||
| export PBS_PASSWORD=< | export PBS_PASSWORD=< | ||
| + | |||
| + | NS=< | ||
| + | NOTES=$(hostname -f) | ||
| + | |||
| + | TMP=$(mktemp -d -p /dev/shm) | ||
| if mountpoint -q / | if mountpoint -q / | ||
| then | then | ||
| # for modern UEFI boot | # for modern UEFI boot | ||
| - | proxmox-backup-client backup --ns < | + | proxmox-backup-client backup --ns ${NS} root.pxar:/ pve.pxar:/ |
| else | else | ||
| # for legacy BIOS boot | # for legacy BIOS boot | ||
| - | proxmox-backup-client backup --ns < | + | proxmox-backup-client backup --ns ${NS} root.pxar:/ pve.pxar:/ |
| fi | 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} | ||
| </ | </ | ||
notes/proxmox.1712063361.txt.gz · Last modified: by Nikita Kipriyanov
