mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-11-01 10:22:08 +00:00
Merge pull request #483 from jcastro/docs/review-help-info
docs: review command references in all seven translations
This commit is contained in:
@@ -0,0 +1,235 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Proxmox-Sicherungsbefehle — vzdump, qmrestore, pct restore | ProxMenux",
|
||||
"description": "Referenz der Sicherungs- und Wiederherstellungsbefehle von Proxmox VE: vzdump für VMs und LXC-Container, qmrestore für VMs, pct restore für Container, geplante Sicherungen in /etc/pve/jobs.cfg, Hook-Skripte und auszuschließende Pfade.",
|
||||
"ogTitle": "Proxmox-Sicherungsbefehle — vzdump, qmrestore, pct restore",
|
||||
"ogDescription": "Referenz der Befehle vzdump, qmrestore und pct restore zum Sichern und Wiederherstellen von Proxmox VMs und LXC Containern.",
|
||||
"twitterTitle": "Proxmox Backup Befehle | ProxMenux",
|
||||
"twitterDescription": "vzdump, qmrestore und pct restore Befehle zum Sichern und Wiederherstellen von Proxmox VMs und Containern."
|
||||
},
|
||||
"header": {
|
||||
"title": "Sicherung und Wiederherstellung",
|
||||
"description": "Kuratierte Referenz der Befehle vzdump, qmrestore und pct restore für Proxmox Backup-Workflows. Enthält Planung, erweiterte Optionen wie Hook-Skripte / Ausschlusspfade / I / O-Priorität und Backup-Dateiverwaltung.",
|
||||
"section": "Hilfe und Informationen"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Drei Backup-Modi",
|
||||
"body": "Bei VMs ist <strong>snapshot</strong> eine Live-Sicherung ohne Speicher-Snapshot-Anforderung. <strong>suspend</strong> pausiert die VM davor und verbessert die Konsistenz nicht unbedingt. <strong>stop</strong> fährt sie zunächst herunter; eine zuvor laufende VM kann nach Beginn der Sicherung weiterlaufen. Bei LXC ist es anders: snapshot benötigt Snapshot-fähigen Speicher, suspend nutzt zwei rsync-Durchläufe, und stop hält den Container während der gesamten Sicherung an."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "VM-Sicherung",
|
||||
"commands": [
|
||||
{
|
||||
"command": "vzdump <vmid>",
|
||||
"description": "Erstellen Sie ein Backup eines bestimmten VM/CT"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --storage <storage>",
|
||||
"description": "VM auf einen bestimmten Speicher sichern"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mode snapshot",
|
||||
"description": "Snapshot-Backup erstellen (für VMs)"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mode suspend",
|
||||
"description": "VM vor der Live-Sicherung pausieren, veralteter suspend-Modus"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mode stop",
|
||||
"description": "VM vor dem Start der Sicherung herunterfahren"
|
||||
},
|
||||
{
|
||||
"command": "vzdump --all",
|
||||
"description": "Backup aller VMs und Container"
|
||||
},
|
||||
{
|
||||
"command": "vzdump --all --exclude <vmid1>,<vmid2>",
|
||||
"description": "Backup aller außer spezifizierten VMs"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Backup-Optionen",
|
||||
"commands": [
|
||||
{
|
||||
"command": "vzdump <vmid> --compress zstd",
|
||||
"description": "Verwenden Sie zstd Kompression für Backup"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --compress gzip --pigz <threads>",
|
||||
"description": "Verwenden Sie pigz mit mehreren Threads"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --storage <storage> --notes-template <text>",
|
||||
"description": "Notizen zum Backup hinzufügen"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mailto <email>",
|
||||
"description": "Senden Sie Benachrichtigung E-Mail"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --prune-backups keep-last=<n>",
|
||||
"description": "Halten Sie nur n Backups pro VM"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --stdexcludes 0",
|
||||
"description": "Keine temporären Dateien ausschließen"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --quiet 1",
|
||||
"description": "Ausgabemeldungen unterdrücken"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Backups wiederherstellen",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qmrestore <backup-file> <vmid>",
|
||||
"description": "VM aus dem Backup wiederherstellen"
|
||||
},
|
||||
{
|
||||
"command": "qmrestore <backup-file> <vmid> --storage <storage>",
|
||||
"description": "Wiederherstellen zu einem bestimmten Speicher"
|
||||
},
|
||||
{
|
||||
"command": "qmrestore <backup-file> <vmid> --unique",
|
||||
"description": "VM mit neu erzeugten zufälligen MAC-Adressen wiederherstellen"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file>",
|
||||
"description": "Container aus dem Backup wiederherstellen"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file> --storage <storage>",
|
||||
"description": "Container auf einen bestimmten Speicher wiederherstellen"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file> --rootfs <storage>:<size-GiB>",
|
||||
"description": "Mit Root-Disk auf dem gewählten Speicher und in der gewählten Größe wiederherstellen"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file> --unprivileged 1",
|
||||
"description": "Wiederherstellen als unprivilegierte CT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Sicherungsverwaltung",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ls -la /var/lib/vz/dump/",
|
||||
"description": "Backups am Standardstandort auflisten"
|
||||
},
|
||||
{
|
||||
"command": "find /var/lib/vz/dump/ -name \"*.vma*\"",
|
||||
"description": "VM Backups finden"
|
||||
},
|
||||
{
|
||||
"command": "find /var/lib/vz/dump/ -name \"*.tar*\"",
|
||||
"description": "Container-Backups finden"
|
||||
},
|
||||
{
|
||||
"command": "pvesm list <storage> --content backup",
|
||||
"description": "Backups im spezifischen Speicher auflisten"
|
||||
},
|
||||
{
|
||||
"command": "rm /var/lib/vz/dump/<backup-file>",
|
||||
"description": "Löschen einer Backup-Datei"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/vzdump.conf",
|
||||
"description": "Backup Konfiguration anzeigen"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Geplante Backups",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/pve/jobs.cfg",
|
||||
"description": "Backup-Zeitplan anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "nano /etc/vzdump.conf",
|
||||
"description": "Backup-Konfiguration bearbeiten"
|
||||
},
|
||||
{
|
||||
"command": "systemctl list-timers",
|
||||
"description": "systemd-Timer auflisten"
|
||||
},
|
||||
{
|
||||
"command": "systemctl status cron",
|
||||
"description": "Status des cron-Dienstes prüfen"
|
||||
},
|
||||
{
|
||||
"command": "pvenode task list --typefilter vzdump",
|
||||
"description": "Abgeschlossene Sicherungsaufgaben auflisten"
|
||||
},
|
||||
{
|
||||
"command": "pvenode task log <upid>",
|
||||
"description": "Protokoll einer Sicherungsaufgabe anhand der UPID anzeigen"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Fortgeschrittene Operationen",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qmrestore <backup> <vmid> --force",
|
||||
"description": "Wiederherstellung erzwingen und vorhandene VM überschreiben"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --dumpdir <directory>",
|
||||
"description": "Benutzerdefiniertes Backup-Verzeichnis angeben"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --script <script>",
|
||||
"description": "Hook-Script während des Backups ausführen"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --exclude-path <path>",
|
||||
"description": "Bestimmte Pfade aus dem Backup ausschließen"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --ionice <priority>",
|
||||
"description": "I/O-Priorität für Backup-Prozess festlegen"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --lockwait <minutes>",
|
||||
"description": "Warten auf Sperre"
|
||||
},
|
||||
{
|
||||
"command": "qm importdisk <vmid> <disk-image> <storage>",
|
||||
"description": "Eine Datenträgerabbilddatei (zum Beispiel raw, qcow2 oder vmdk) als unbenutzten Datenträger importieren, kein vzdump-Sicherungsarchiv"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"testRestores": {
|
||||
"title": "Wiederherstellung testen",
|
||||
"bodyRich": "Stellen Sie regelmäßig eine Sicherung mit <code>qmrestore --unique</code> auf einer freien Test-VMID wieder her. Starten Sie die VM in einem isolierten Testnetz und prüfen Sie den Inhalt. unique erzeugt neue MAC-Adressen, ändert aber keine statischen IPs oder Anwendungseinstellungen. Testen Sie Container entsprechend mit <code>pct restore</code>."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Verwandte Themen",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/vm-ct-commands",
|
||||
"label": "VM- und CT-Verwaltung",
|
||||
"tail": " — qm- und pct-Befehle für den Lebenszyklus der Gäste."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"label": "Speicher und Datenträger",
|
||||
"tail": "- pvesm Storage Management."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Übersicht über Hilfe und Informationen",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Proxmox-Befehle für GPU-Passthrough — lspci, VFIO, IOMMU, qm set hostpci | ProxMenux",
|
||||
"description": "Referenz für GPU-Passthrough auf Proxmox VE: Geräteidentifikation mit lspci, VFIO-Module, IOMMU-Gruppen (intel_iommu / amd_iommu), GRUB- und initramfs-Updates, qm set hostpci0 sowie die Einrichtung von NVIDIA-, AMD- und Intel-GPUs.",
|
||||
"ogTitle": "Proxmox-Befehle für GPU-Passthrough — lspci, VFIO, IOMMU, qm set hostpci",
|
||||
"ogDescription": "Referenz zur Prüfung und Einrichtung von GPU-Passthrough auf Proxmox VE: PCI-Geräte, VFIO-Module, IOMMU-Gruppen, Kernel-Startparameter und qm set hostpci.",
|
||||
"twitterTitle": "Proxmox-Befehle für GPU-Passthrough | ProxMenux",
|
||||
"twitterDescription": "PCI-Geräte prüfen, VFIO und IOMMU konfigurieren und GPUs an VMs unter Proxmox VE durchreichen."
|
||||
},
|
||||
"header": {
|
||||
"title": "GPU-Passthrough",
|
||||
"description": "Referenz für GPU-/TPU-Passthrough auf Proxmox: Geräteidentifikation (lspci), Einrichtung der VFIO-Module, IOMMU-Prüfung, initramfs-/GRUB-Updates und Konfiguration je VM (qm set hostpci, machine q35, bios ovmf).",
|
||||
"section": "Hilfe und Informationen"
|
||||
},
|
||||
"intro": {
|
||||
"title": "IOMMU muss in BIOS / UEFI aktiviert sein",
|
||||
"body": "Aktivieren Sie IOMMU zuerst in der Firmware: Suchen Sie im BIOS/UEFI nach <em>VT-d</em>, <em>AMD-Vi</em> oder <em>IOMMU</em>. Unter Linux ist es bei AMD und bei Intel mit Proxmox-Kerneln ab 6.8 standardmäßig aktiv. Ältere Intel-Kernel benötigen gegebenenfalls <code>intel_iommu=on</code>. Die optionale Einstellung <code>iommu=pt</code> steuert den IOMMU-Passthrough-Modus und erfordert kein pauschales Abschalten des Host-Framebuffers."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Geräteidentifikation",
|
||||
"commands": [
|
||||
{
|
||||
"command": "lspci -nn | grep -i nvidia",
|
||||
"description": "Liste NVIDIA PCI-Geräte"
|
||||
},
|
||||
{
|
||||
"command": "lspci -nn | grep -i vga",
|
||||
"description": "Liste aller VGA-kompatiblen Geräte"
|
||||
},
|
||||
{
|
||||
"command": "lspci -nn | grep -i amd",
|
||||
"description": "Liste der AMD PCI-Geräte"
|
||||
},
|
||||
{
|
||||
"command": "lspci -nnk | grep -A3 VGA",
|
||||
"description": "VGA-Geräte mit Kerneltreibern auflisten"
|
||||
},
|
||||
{
|
||||
"command": "lspci -v -s <PCI_ID>",
|
||||
"description": "Detaillierte Informationen für ein bestimmtes PCI-Gerät anzeigen"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "VFIO Konfiguration",
|
||||
"commands": [
|
||||
{
|
||||
"command": "dmesg | grep -i vfio",
|
||||
"description": "VFIO-Modulmeldungen prüfen"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/modprobe.d/vfio.conf",
|
||||
"description": "VFIO-Passthrough-Konfiguration prüfen"
|
||||
},
|
||||
{
|
||||
"command": "ls -la /etc/modprobe.d/",
|
||||
"description": "Liste aller Modprobe-Konfigurationsdateien"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/modules",
|
||||
"description": "Beim Start geladene Module anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "lsmod | grep vfio",
|
||||
"description": "Überprüfen Sie, ob VFIO-Module geladen sind"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "IOMMU Konfiguration",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/default/grub",
|
||||
"description": "GRUB Optionen für IOMMU überprüfen"
|
||||
},
|
||||
{
|
||||
"command": "update-grub",
|
||||
"description": "GRUB-Änderungen anwenden"
|
||||
},
|
||||
{
|
||||
"command": "dmesg | grep -i iommu",
|
||||
"description": "IOMMU-Nachrichten im Kernelprotokoll überprüfen"
|
||||
},
|
||||
{
|
||||
"command": "dmesg | grep -e DMAR -e IOMMU",
|
||||
"description": "DMAR und IOMMU Nachrichten überprüfen"
|
||||
},
|
||||
{
|
||||
"command": "find /sys/kernel/iommu_groups/ -type l | sort -V",
|
||||
"description": "Liste der IOMMU-Gruppen"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Systemaktualisierungen",
|
||||
"commands": [
|
||||
{
|
||||
"command": "update-initramfs -u",
|
||||
"description": "Initramfs-Änderungen anwenden (VFIO)"
|
||||
},
|
||||
{
|
||||
"command": "update-initramfs -u -k all",
|
||||
"description": "Aktualisieren Sie Initramfs für alle Kernel"
|
||||
},
|
||||
{
|
||||
"command": "cat /proc/cmdline",
|
||||
"description": "Aktuelle Kernel-Boot-Parameter anzeigen"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "VM Konfiguration",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm config <vmid> | grep hostpci",
|
||||
"description": "PCI-Durchgangskonfiguration für eine VM anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -hostpci0 <PCI_ID>,pcie=1,x-vga=1",
|
||||
"description": "GPU-Passthrough zu einer VM hinzufügen"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "VM-Konfigurationsdatei anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -machine q35",
|
||||
"description": "Setzen Sie VM auf den Q35-Chipsatz (empfohlen für den Durchgang)"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -bios ovmf",
|
||||
"description": "VM auf UEFI/OVMF einstellen, empfohlen bei UEFI-fähigem GPU-ROM"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"afterChangesTip": {
|
||||
"title": "Nach dem Wechsel von GRUB- oder Modprobe-Konfigurationen",
|
||||
"bodyRich": "Auf Hosts mit GRUB übernehmen Sie Startparameter mit <code>update-grub</code>. Aktualisieren Sie Moduländerungen mit <code>update-initramfs -u -k all</code> und starten Sie neu. Andere Bootloader benötigen ihr eigenes Verfahren. Prüfen Sie mit <code>cat /proc/cmdline</code> die Kernelparameter, mit <code>dmesg | grep -i iommu</code> die IOMMU-Initialisierung und mit <code>find /sys/kernel/iommu_groups/ -type l | sort -V</code> die vorhandenen Gruppen."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Verwandte Themen",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/hardware/gpu-vm-passthrough",
|
||||
"label": "GPU zu VM hinzufügen (Passthrough)",
|
||||
"tail": "- interaktiver ProxMenux-Flow."
|
||||
},
|
||||
{
|
||||
"href": "/docs/hardware/igpu-acceleration-lxc",
|
||||
"label": "GPU zu LXC hinzufügen",
|
||||
"tail": " — Zugriff auf die GPU-Geräte des Hosts mit einem LXC-Container teilen."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Übersicht über Hilfe und Informationen",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Proxmox-Befehlsreferenz — qm, pct, vzdump, zpool, pveversion | ProxMenux",
|
||||
"description": "Ausgewählte wichtige Proxmox-VE- und Linux-Befehle nach Themen: Systemprüfung, VM- und LXC-Verwaltung (qm / pct), Speicher und Datenträger, Netzwerk, Updates, GPU-Passthrough, ZFS, Sicherung und Wiederherstellung sowie CLI-Werkzeuge für den Alltag.",
|
||||
"ogTitle": "Proxmox-Befehlsreferenz — qm, pct, vzdump, zpool",
|
||||
"ogDescription": "Ausgewählte hilfreiche Proxmox-VE- und Linux-Befehle nach Themen: System, VM/CT, Speicher, Netzwerk, Updates, GPU-Passthrough, ZFS, Sicherungen und CLI-Werkzeuge.",
|
||||
"twitterTitle": "Proxmox-Befehlsreferenz | ProxMenux",
|
||||
"twitterDescription": "Ausgewählte hilfreiche Proxmox-VE- und Linux-Befehle nach Themen."
|
||||
},
|
||||
"header": {
|
||||
"title": "Hilfe und Informationen",
|
||||
"description": "Ausgewählte nützliche Linux- und Proxmox-VE-Befehle nach Themen. Die neun Kategorien reichen von einer kurzen pveversion-Abfrage bis zu mehrzeiligen Abläufen mit zfs send/receive. Die Sammlung ergänzt die GPU-, Datenträger- und Freigabebereiche von ProxMenux als zentrale Referenz.",
|
||||
"section": "Hilfe und Informationen"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Was das ist",
|
||||
"body": "Ein nach Themen geordneter Katalog der Befehle für den Alltag auf einem Proxmox-Host. In ProxMenux können Sie einen Befehl direkt über seine Nummer starten oder einen eigenen an der Eingabeaufforderung einfügen. Auf dieser Website steht jede Kategorie als Tabelle zum Kopieren bereit."
|
||||
},
|
||||
"opening": {
|
||||
"heading": "Öffnen des Menüs",
|
||||
"body": "Im Hauptmenü von ProxMenux drücken Sie <kbd>h</kbd>. Sie werden sehen:",
|
||||
"imageAlt": "Hilfe- und Infomenü mit 9-Befehlskategorien"
|
||||
},
|
||||
"categories": {
|
||||
"heading": "Die neun Kategorien",
|
||||
"options": [
|
||||
{
|
||||
"icon": "Terminal",
|
||||
"href": "/docs/help-info/system-commands",
|
||||
"title": "Nützliche Systembefehle",
|
||||
"description": "pveversion, uptime, free, journalctl, hostnamectl, Informationen zum aktuellen Benutzer, lynis-Audit und fastfetch."
|
||||
},
|
||||
{
|
||||
"icon": "Cpu",
|
||||
"href": "/docs/help-info/vm-ct-commands",
|
||||
"title": "VM- und CT-Verwaltung",
|
||||
"description": "qm list / config / start / stop / migrate, pct list / config / enter, Snapshots und Klonen."
|
||||
},
|
||||
{
|
||||
"icon": "HardDrive",
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"title": "Speicher und Datenträger",
|
||||
"description": "lsblk, blkid, smartctl, Informationen zu Mounts, pvesm status und LVM-Befehle."
|
||||
},
|
||||
{
|
||||
"icon": "Network",
|
||||
"href": "/docs/help-info/network-commands",
|
||||
"title": "Netzwerkbefehle",
|
||||
"description": "ip / ss / nmcli, Prüfung von Netzwerkbrücken, ping / traceroute, DNS-Abfragen und fail2ban-client."
|
||||
},
|
||||
{
|
||||
"icon": "Package",
|
||||
"href": "/docs/help-info/update-commands",
|
||||
"title": "Updates und Pakete",
|
||||
"description": "apt update / dist-upgrade, apt-cache policy, dpkg-Abfragen und Prüfung der Repository-Dateien."
|
||||
},
|
||||
{
|
||||
"icon": "Cpu",
|
||||
"href": "/docs/help-info/gpu-commands",
|
||||
"title": "GPU-Passthrough",
|
||||
"description": "Prüfungen mit lspci / dmesg, Kontrolle der IOMMU-Aktivierung, Bindung an vfio-pci und GPU-Nutzung auf dem Host."
|
||||
},
|
||||
{
|
||||
"icon": "Database",
|
||||
"href": "/docs/help-info/zfs-commands",
|
||||
"title": "ZFS-Verwaltung",
|
||||
"description": "zpool / zfs für Status, Datasets, Snapshots, send/receive, ARC-Anpassung und TRIM."
|
||||
},
|
||||
{
|
||||
"icon": "Archive",
|
||||
"href": "/docs/help-info/backup-commands",
|
||||
"title": "Sicherung und Wiederherstellung",
|
||||
"description": "vzdump, qmrestore / pct restore, Hilfswerkzeuge für Proxmox Backup Server und Snapshot-Vorgänge."
|
||||
},
|
||||
{
|
||||
"icon": "Wrench",
|
||||
"href": "/docs/help-info/tools-commands",
|
||||
"title": "System-CLI-Tools",
|
||||
"description": "tmux, screen, htop / btop, ncdu, jq, dig, lsof, watch — Administrationswerkzeuge für den Alltag."
|
||||
}
|
||||
]
|
||||
},
|
||||
"tip": {
|
||||
"title": "Durchsuchbar aus der globalen Suche",
|
||||
"body": "Jeder Befehl auf diesen Seiten wird durch die Dokumentationssuche indiziert. Wenn Sie sich an ein Flag oder Fragment erinnern, aber nicht, auf welcher Seite es sich befindet, klicken Sie auf die Suchleiste oben - Sie landen direkt auf dem richtigen Eintrag."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,174 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Proxmox-Netzwerkbefehle — ip, ping, ss, pve-firewall, iptables | ProxMenux",
|
||||
"description": "Referenz für die Netzwerkkonfiguration auf Proxmox-VE-Hosts: ip / ip link / ip addr, ping, traceroute, mtr, ss, ethtool, dig und nslookup sowie pve-firewall, iptables und nftables für Paketfilter. Prüfung von Netzwerkbrücken, Bonds und VLANs.",
|
||||
"ogTitle": "Proxmox-Netzwerkbefehle — ip, ping, ss, pve-firewall, iptables",
|
||||
"ogDescription": "Netzwerkbefehle für Proxmox VE: Schnittstellenprüfung, Verbindungstests, Überwachung, Firewall (pve-firewall, iptables, nftables) und DNS-Abfragen.",
|
||||
"twitterTitle": "Proxmox-Netzwerkbefehle | ProxMenux",
|
||||
"twitterDescription": "Netzwerkinspektion, Test, Konfiguration und Firewall-Befehle für Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "Netzwerkbefehle",
|
||||
"description": "Ausgewählte Befehle für das Proxmox-Hostnetzwerk: Schnittstelleninformationen, Verbindungstests, Konfiguration, Verkehrsüberwachung und Firewall-Verwaltung. Enthält ip / ss / nmcli / ethtool / tcpdump / pve-firewall.",
|
||||
"section": "Hilfe und Informationen"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Schneller Überblick über die Schnittstellen",
|
||||
"body": "<code>ip a</code> zeigt jede Schnittstelle mit ihren IP-Adressen und ihrer MAC-Adresse. <code>ip r</code> zeigt die Routingtabelle. Zusammen beantworten sie in Sekunden die meisten Fragen dazu, ob eine Schnittstelle richtig konfiguriert ist."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Netzinformationen",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ip a",
|
||||
"description": "Netzwerkschnittstellen und IPs anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "ip r",
|
||||
"description": "Routing-Tabelle anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "ip -s link",
|
||||
"description": "Verkehrsstatistiken pro Schnittstelle anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "brctl show",
|
||||
"description": "Konfigurierte Netzwerkbrücken anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/network/interfaces",
|
||||
"description": "Rohe Netzwerkkonfiguration anzeigen"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Netzwerktests",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ping <host>",
|
||||
"description": "Überprüfen Sie die Konnektivität mit einem anderen Host"
|
||||
},
|
||||
{
|
||||
"command": "traceroute <host>",
|
||||
"description": "Route zu einem Host verfolgen"
|
||||
},
|
||||
{
|
||||
"command": "mtr <host>",
|
||||
"description": "Ping und Traceroute in Echtzeit kombinieren"
|
||||
},
|
||||
{
|
||||
"command": "dig <domain>",
|
||||
"description": "DNS-Suche nach einer Domain"
|
||||
},
|
||||
{
|
||||
"command": "nslookup <domain>",
|
||||
"description": "Alternative DNS-Abfrage"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Netzwerkkonfiguration",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ifreload -a",
|
||||
"description": "Netzwerkkonfiguration neu laden (ifupdown2)"
|
||||
},
|
||||
{
|
||||
"command": "ethtool <iface>",
|
||||
"description": "Informationen zum Ethernet-Gerät anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "resolvectl status",
|
||||
"description": "DNS-Auflösungsstatus anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "nmcli device show",
|
||||
"description": "Netzwerkgerätedetails anzeigen (wenn NetworkManager verwendet wird)"
|
||||
},
|
||||
{
|
||||
"command": "ip link set <iface> up",
|
||||
"description": "Netzwerkschnittstelle aktivieren"
|
||||
},
|
||||
{
|
||||
"command": "ip link set <iface> down",
|
||||
"description": "Netzwerkschnittstelle deaktivieren"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Netzüberwachung",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ss -tuln",
|
||||
"description": "Abhörports anzeigen (TCP/UDP)"
|
||||
},
|
||||
{
|
||||
"command": "netstat -tuln",
|
||||
"description": "Alternative Anzeige der lauschenden Ports"
|
||||
},
|
||||
{
|
||||
"command": "lsof -i",
|
||||
"description": "Liste offener Netzwerkdateien und Verbindungen"
|
||||
},
|
||||
{
|
||||
"command": "tcpdump -i <iface>",
|
||||
"description": "Pakete auf dem Interface erfassen"
|
||||
},
|
||||
{
|
||||
"command": "iftop -i <iface>",
|
||||
"description": "Überwachen der Bandbreitennutzung an der Schnittstelle"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Firewall-Verwaltung",
|
||||
"commands": [
|
||||
{
|
||||
"command": "iptables -L -n -v",
|
||||
"description": "Aktive Firewall-Regeln anzeigen (iptables)"
|
||||
},
|
||||
{
|
||||
"command": "nft list ruleset",
|
||||
"description": "Nftables-Regeln anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "pve-firewall status",
|
||||
"description": "Überprüfen Sie den Proxmox-Firewall-Status"
|
||||
},
|
||||
{
|
||||
"command": "pve-firewall compile",
|
||||
"description": "Firewall-Regeln für alle Knoten kompilieren"
|
||||
},
|
||||
{
|
||||
"command": "pve-firewall reload",
|
||||
"description": "Laden Sie die Proxmox-Firewallregeln neu"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"iptablesTip": {
|
||||
"title": "iptables vs nftables",
|
||||
"bodyRich": "Der klassische Dienst <code>pve-firewall</code> erzeugt iptables-Regeln. Der alternative Dienst proxmox-firewall verwendet <strong>nftables</strong>. Prüfen Sie das iptables-Backend mit <code>iptables -L -n -v</code> und das nftables-Backend mit <code>nft list ruleset</code>. Verwenden Sie die Werkzeuge des aktiven Backends; die Listen sind nicht austauschbar."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Verwandte Themen",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/network",
|
||||
"label": "Netzwerkmanagement",
|
||||
"tail": "— ProxMenux interaktive Netzwerktools (Brückenanalyse, persistente Namen, Überwachung)."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/tools-commands",
|
||||
"label": "System-CLI-Tools",
|
||||
"tail": " — weitere Werkzeuge zur Netzwerküberwachung."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Übersicht über Hilfe und Informationen",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,232 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Proxmox-Befehle für Speicher und Datenträger — lsblk, LVM, pvesm, qm importdisk | ProxMenux",
|
||||
"description": "Speicher- und Datenträgerbefehle auf Proxmox VE: lsblk, blkid, parted, lvdisplay, vgdisplay, pvs, mount, df, du, ncdu, pvesm status sowie qm importdisk und qemu-img convert für VM-Datenträger.",
|
||||
"ogTitle": "Proxmox-Befehle für Speicher und Datenträger — lsblk, LVM, pvesm, qm importdisk",
|
||||
"ogDescription": "Referenz von Speicher- und Festplattenbefehlen auf Proxmox VE — Festplatteninspektion, LVM, Mounts, Proxmox Storage Management, VM Festplattenimport und Bildkonvertierung.",
|
||||
"twitterTitle": "Proxmox Speicherbefehle | ProxMenux",
|
||||
"twitterDescription": "Festplatteninspektion, Mount-Info, LVM-Verwaltung, Proxmox-Speicher und VM-Festplattenimport- / -konvertierungsbefehle."
|
||||
},
|
||||
"header": {
|
||||
"title": "Speicher und Datenträger",
|
||||
"description": "Kuratierte Referenz für die Speicherinspektion auf Proxmox-Hosts: Blockgeräte, Partitionen, Mounts, LVM-Volumes, Proxmox-Speicherkonfiguration und einige VM-Festplattenoperationen (importdisk, qemu-img convert).",
|
||||
"section": "Hilfe und Informationen"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Schneller Überblick über die Datenträger",
|
||||
"body": "<code>lsblk</code> zeigt Blockgeräte und Partitionen als Baum. Prüfen Sie dauerhafte Kennungen mit <code>ls -lh /dev/disk/by-id/</code>: Sie bleiben für denselben Datenträger normalerweise über Neustarts und geänderte Gerätereihenfolgen hinweg stabil. Ein Plattentausch oder eine andere Identitätsdarstellung durch den Controller kann den by-id-Pfad ändern."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Laufwerksinformationen",
|
||||
"commands": [
|
||||
{
|
||||
"command": "lsblk",
|
||||
"description": "Blockgeräte und Partitionen auflisten"
|
||||
},
|
||||
{
|
||||
"command": "fdisk -l",
|
||||
"description": "Listen Sie Festplatten mit detaillierten Informationen auf"
|
||||
},
|
||||
{
|
||||
"command": "blkid",
|
||||
"description": "UUID und Dateisystemtyp von Blockgeräten anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "ls -lh /dev/disk/by-id/",
|
||||
"description": "Listen Sie persistente Festplattenkennungen auf"
|
||||
},
|
||||
{
|
||||
"command": "parted -l",
|
||||
"description": "Detailliertes Partitionslayout mit GPT-Informationen"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Speichernutzung",
|
||||
"commands": [
|
||||
{
|
||||
"command": "df -h",
|
||||
"description": "Festplattennutzung nach Einhängepunkt anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "du -sh /path",
|
||||
"description": "Größe eines Verzeichnisses anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "mount | grep ^/dev",
|
||||
"description": "Gemountete Speichergeräte anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "cat /proc/mounts",
|
||||
"description": "Zeigt alle aktiven Mounts vom Kernel an"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "LVM-Verwaltung",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pvdisplay",
|
||||
"description": "Physische Volumes (LVM) anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "vgdisplay",
|
||||
"description": "Volumengruppen anzeigen (LVM)"
|
||||
},
|
||||
{
|
||||
"command": "lvdisplay",
|
||||
"description": "Logische Volumes (LVM) anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "pvs",
|
||||
"description": "Übersichtliche Ausgabe physischer Datenträger"
|
||||
},
|
||||
{
|
||||
"command": "vgs",
|
||||
"description": "Übersichtliche Ausgabe von Volumengruppen"
|
||||
},
|
||||
{
|
||||
"command": "lvs",
|
||||
"description": "Übersichtliche Ausgabe logischer Volumes"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Proxmox-Speicher",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/pve/storage.cfg",
|
||||
"description": "Proxmox-Speicherkonfiguration anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "pvesm status",
|
||||
"description": "Status aller Speicherpools anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "pvesm status --enabled 1",
|
||||
"description": "Aktivierte konfigurierte Speicher auflisten"
|
||||
},
|
||||
{
|
||||
"command": "pvesm list <storage>",
|
||||
"description": "Listen Sie den Inhalt eines bestimmten Speichers auf"
|
||||
},
|
||||
{
|
||||
"command": "pvesm scan nfs <server>",
|
||||
"description": "NFS-Exporte eines Servers ermitteln"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Plattenaktionen",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm importdisk <vmid> <image_path> <storage>",
|
||||
"description": "Disk-Image als ungenutzten VM-Datenträger importieren und anschließend gesondert anschließen"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -<bus><index> <disk_path>",
|
||||
"description": "Weisen Sie die physische Festplatte VM zu (Durchgangsmodus)"
|
||||
},
|
||||
{
|
||||
"command": "qemu-img convert -O <format> <input> <output>",
|
||||
"description": "Format eines nicht aktiv verwendeten Disk-Images konvertieren"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "SMART-Zustand der Datenträger",
|
||||
"commands": [
|
||||
{
|
||||
"command": "smartctl --scan",
|
||||
"description": "Liste SMART-fähige Geräte auf dem Host"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -i /dev/<disk>",
|
||||
"description": "Grundlegende Geräteinformationen: Modell, Firmware und Seriennummer"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -H /dev/<disk>",
|
||||
"description": "Schneller Gesundheitscheck — insgesamt PASSED / FAILED"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -A /dev/<disk>",
|
||||
"description": "Nur SMART-Attribute (Rohwerte, Schwellenwerte)"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -a /dev/<disk>",
|
||||
"description": "Vollständige SMART-Informationen — Informationen + Attribute + Selbsttestprotokoll"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -t short /dev/<disk>",
|
||||
"description": "Starten Sie einen kurzen Selbsttest (~2 Minuten, läuft im Hintergrund)"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -t long /dev/<disk>",
|
||||
"description": "Starten Sie einen langen Selbsttest (Stunden, läuft im Hintergrund)"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -l selftest /dev/<disk>",
|
||||
"description": "Selbsttestprotokoll anzeigen (Ergebnisse vergangener Tests)"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -X /dev/<disk>",
|
||||
"description": "Abbruch des laufenden Selbsttests"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "NVMe-Datenträgerzustand",
|
||||
"commands": [
|
||||
{
|
||||
"command": "nvme list",
|
||||
"description": "Liste NVMe-Geräte, die für den Kernel sichtbar sind"
|
||||
},
|
||||
{
|
||||
"command": "nvme smart-log /dev/<nvme>",
|
||||
"description": "NVMe-spezifisches SMART-Log (Temperatur, Verschleiß, Fehler)"
|
||||
},
|
||||
{
|
||||
"command": "nvme id-ctrl /dev/<nvme>",
|
||||
"description": "Controller-Info (Modell, Firmware, Fähigkeiten)"
|
||||
},
|
||||
{
|
||||
"command": "nvme error-log /dev/<nvme>",
|
||||
"description": "Letzte NVMe-Fehlerprotokolleinträge"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"lvmTip": {
|
||||
"title": "LVM kurze vs lange Befehle",
|
||||
"bodyRich": "Beide Formen stehen zur Verfügung. <code>pvs</code> / <code>vgs</code> / <code>lvs</code> erzeugen kompakte Tabellen mit je einer Zeile pro physischem Volume, Volumengruppe beziehungsweise logischem Volume. <code>pvdisplay</code> / <code>vgdisplay</code> / <code>lvdisplay</code> liefern ausführlichere mehrzeilige Angaben. Für alltägliche Prüfungen sind die kurzen Formen praktisch."
|
||||
},
|
||||
"smartInfo": {
|
||||
"title": "SMART für SATA/SAS im Vergleich zu NVMe",
|
||||
"bodyRich": "<strong>SATA-/SAS-Datenträger einschließlich SSDs</strong> lassen sich mit <code>smartctl</code> aus <code>smartmontools</code> prüfen, das standardmäßig in Proxmox installiert ist. Geben Sie das Gerät an, etwa <code>/dev/sda</code> oder <code>/dev/sdb</code>. <strong>NVMe-Datenträger</strong> verwenden ein anderes natives Protokoll. Auch <code>smartctl</code> unterstützt sie. <code>nvme</code> aus <code>nvme-cli</code> bietet spezielle Abfragen für Controller, Namespaces und den NVMe-Zustand. Installieren Sie es bei Bedarf mit <code>apt install nvme-cli</code>."
|
||||
},
|
||||
"selfTestWarn": {
|
||||
"title": "Selbsttests laufen im Hintergrund",
|
||||
"bodyRich": "Auf unterstützten Laufwerken starten <code>smartctl -t short /dev/<disk></code> und <code>smartctl -t long /dev/<disk></code> Hintergrundtests und kehren sofort zurück. Prüfen Sie den Fortschritt mit <code>smartctl -a /dev/<disk></code> anhand von \"Self-test routine in progress\" oder lesen Sie nach Abschluss <code>smartctl -l selftest /dev/<disk></code>. Kurze Tests dauern oft etwa zwei Minuten, lange Tests mitunter Stunden. Das Laufwerk bleibt nutzbar, die I/O-Leistung kann jedoch sinken."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Verwandte Themen",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/zfs-commands",
|
||||
"label": "ZFS-Verwaltung",
|
||||
"tail": "- zpool / zfs-Befehle für ZFS-gestützten Speicher."
|
||||
},
|
||||
{
|
||||
"href": "/docs/disk-manager",
|
||||
"label": "Festplattenmanager",
|
||||
"tail": " — interaktive ProxMenux-Abläufe für Datenträgerdurchreichung, Import, Formatierung und SMART."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Übersicht über Hilfe und Informationen",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Proxmox-VE-Systembefehle — pveversion, uptime, journalctl, systemctl | ProxMenux",
|
||||
"description": "Proxmox-VE- und Linux-Systembefehle für Versionen, Betriebszeit, Speicher, Dienste, Protokolle und Benutzer sowie Audit- und Übersichtswerkzeuge. Enthält einen Dienstneustart; nicht alle Beispiele sind reine Lesezugriffe.",
|
||||
"ogTitle": "Proxmox-VE-Systembefehle — pveversion, uptime, journalctl, systemctl",
|
||||
"ogDescription": "Proxmox-VE- und Linux-Systembefehle für Version, Betriebszeit, Dienste, Protokolle und Benutzerinformationen, einschließlich Dienstverwaltung und Audit-Werkzeugen.",
|
||||
"twitterTitle": "Proxmox VE Systembefehle | ProxMenux",
|
||||
"twitterDescription": "Wesentliche Systeminspektionsbefehle für Proxmox VE — Version, Status, Dienste, Protokolle, Benutzerinformationen."
|
||||
},
|
||||
"header": {
|
||||
"title": "Nützliche Systembefehle",
|
||||
"description": "Befehle zur Prüfung des Proxmox-Hosts: Version, Kernel, Betriebszeit, Speicher, Status der Weboberfläche, aktuelle Protokolle und angemeldete Benutzer sowie Audit- und Übersichtswerkzeuge. Die meisten lesen den Zustand aus. systemctl restart pveproxy startet jedoch den Web-Proxy neu, und Audit-Werkzeuge können Berichte und Protokolle schreiben.",
|
||||
"section": "Hilfe und Informationen"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Was das ist",
|
||||
"body": "Dieselbe nummerierte Liste wie unter <em>Nützliche Systembefehle</em> in ProxMenux. Kopieren Sie einen Befehl über die Schaltfläche oder schlagen Sie die genaue Option nach."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Systeminformationen",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pveversion",
|
||||
"description": "Proxmox-Version anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "pveversion -v",
|
||||
"description": "Detaillierte Informationen zur Proxmox-Version"
|
||||
},
|
||||
{
|
||||
"command": "hostnamectl",
|
||||
"description": "System-Hostname und Kernel-Informationen"
|
||||
},
|
||||
{
|
||||
"command": "uname -a",
|
||||
"description": "Kernel- und Architekturinformationen"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/os-release",
|
||||
"description": "Details zur Betriebssystemversion"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Systemstatus",
|
||||
"commands": [
|
||||
{
|
||||
"command": "uptime",
|
||||
"description": "Betriebszeit des Systems"
|
||||
},
|
||||
{
|
||||
"command": "uptime -p",
|
||||
"description": "Betriebszeit in gut lesbarem Format"
|
||||
},
|
||||
{
|
||||
"command": "free -h",
|
||||
"description": "RAM- und Swap-Nutzung"
|
||||
},
|
||||
{
|
||||
"command": "who -b",
|
||||
"description": "Letzte Systemstartzeit"
|
||||
},
|
||||
{
|
||||
"command": "last -x | grep shutdown",
|
||||
"description": "Frühere Abschaltungen"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Dienstverwaltung",
|
||||
"commands": [
|
||||
{
|
||||
"command": "systemctl status pveproxy",
|
||||
"description": "Überprüfen Sie den Status der Proxmox-Web-Benutzeroberfläche"
|
||||
},
|
||||
{
|
||||
"command": "systemctl restart pveproxy",
|
||||
"description": "Starten Sie den Web-UI-Proxy neu"
|
||||
},
|
||||
{
|
||||
"command": "journalctl -xe",
|
||||
"description": "Systemfehler und Protokolle"
|
||||
},
|
||||
{
|
||||
"command": "dmesg -T | tail -n 50",
|
||||
"description": "Letzte 50 Kernel-Protokollzeilen"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Benutzerinformationen",
|
||||
"commands": [
|
||||
{
|
||||
"command": "whoami",
|
||||
"description": "Aktueller Benutzer"
|
||||
},
|
||||
{
|
||||
"command": "id",
|
||||
"description": "Aktuelle Benutzer-UID, GID und Gruppen"
|
||||
},
|
||||
{
|
||||
"command": "who",
|
||||
"description": "Angemeldete Benutzer"
|
||||
},
|
||||
{
|
||||
"command": "w",
|
||||
"description": "Benutzeraktivität und Betriebszeit"
|
||||
},
|
||||
{
|
||||
"command": "uptime && w",
|
||||
"description": "Betriebszeit und wer angemeldet ist"
|
||||
},
|
||||
{
|
||||
"command": "cut -d: -f1,3,4 /etc/passwd",
|
||||
"description": "Alle Benutzer mit UID und GID"
|
||||
},
|
||||
{
|
||||
"command": "getent passwd | column -t -s :",
|
||||
"description": "Lesbare Benutzertabelle (UID, Shell usw.)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Werkzeuge für Prüfungen und Zusammenfassungen",
|
||||
"commands": [
|
||||
{
|
||||
"command": "lynis audit system",
|
||||
"description": "Führen Sie ein vollständiges Systemsicherheitsaudit durch"
|
||||
},
|
||||
{
|
||||
"command": "fastfetch",
|
||||
"description": "Systemzusammenfassung im ASCII-Format anzeigen"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"related": {
|
||||
"heading": "Verwandte Themen",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/update-commands",
|
||||
"label": "Updates und Pakete",
|
||||
"tail": " — apt- und PVE-Upgrade-Befehle."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/tools-commands",
|
||||
"label": "System-CLI-Tools",
|
||||
"tail": " — htop, btop, ncdu und ähnliche Werkzeuge."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Übersicht über Hilfe und Informationen",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,276 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Linux-CLI-Werkzeuge für Proxmox — htop, iftop, journalctl, rsync, tmux | ProxMenux",
|
||||
"description": "Linux-CLI-Werkzeuge für die tägliche Proxmox-VE-Verwaltung: Überwachung (htop, atop, glances, iotop), Netzwerk (iftop, nmap, mtr, ss), Dateien und Text (find, grep, journalctl), Leistung (iostat, perf, strace), Sicherheit (fail2ban, lynis, lsof) und Fernverwaltung (ssh, rsync, tmux).",
|
||||
"ogTitle": "Linux-CLI-Werkzeuge für Proxmox — htop, iftop, journalctl, rsync, tmux",
|
||||
"ogDescription": "CLI-Tools für die Proxmox VE-Verwaltung, gruppiert nach Zweck: Überwachung, Netzwerk, Datei/Text, Leistung, Sicherheit und Remote-Admin.",
|
||||
"twitterTitle": "Linux-CLI-Werkzeuge für Proxmox | ProxMenux",
|
||||
"twitterDescription": "CLI-Werkzeuge für die tägliche Proxmox-VE-Verwaltung, nach Zweck gruppiert."
|
||||
},
|
||||
"header": {
|
||||
"title": "System-CLI-Tools",
|
||||
"description": "CLI-Werkzeuge für die tägliche Proxmox-Hostverwaltung nach Zweck: Überwachung, Netzwerk, Dateien und Text, Leistungsanalyse, Sicherheit, Fernverwaltung und Systemkonfiguration.",
|
||||
"section": "Hilfe und Informationen"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Die meisten werden nach der Installation eingerichtet",
|
||||
"body": "Wenn Sie das ProxMenux-Skript nach der Installation mit der Standardauswahl ausgeführt haben, sind die meisten Werkzeuge bereits vorhanden. Fehlende Werkzeuge bietet der <utilsLink>Installer für Systemwerkzeuge</utilsLink> in vordefinierten Gruppen an, etwa Basis, Entwicklung, Netzwerk und Analyse."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Systemüberwachung",
|
||||
"commands": [
|
||||
{
|
||||
"command": "htop",
|
||||
"description": "Interaktive Prozessanzeige mit CPU/Speichernutzung"
|
||||
},
|
||||
{
|
||||
"command": "top",
|
||||
"description": "Linux-Prozesse in Echtzeit anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "atop",
|
||||
"description": "Fortschrittlicher System- und Prozessmonitor"
|
||||
},
|
||||
{
|
||||
"command": "glances",
|
||||
"description": "Systemüberwachungstool mit Webinterface"
|
||||
},
|
||||
{
|
||||
"command": "nmon",
|
||||
"description": "Leistungsüberwachungsinstrument"
|
||||
},
|
||||
{
|
||||
"command": "iotop",
|
||||
"description": "Datenträger-I/O der Prozesse überwachen"
|
||||
},
|
||||
{
|
||||
"command": "vmstat 1",
|
||||
"description": "Virtuelle Speicherstatistiken jede Sekunde melden"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Netzwerk-Tools",
|
||||
"commands": [
|
||||
{
|
||||
"command": "iftop",
|
||||
"description": "Anzeige der Bandbreitennutzung auf einer Schnittstelle"
|
||||
},
|
||||
{
|
||||
"command": "nmap <host>",
|
||||
"description": "Netzwerkexploration und Sicherheitsscanning"
|
||||
},
|
||||
{
|
||||
"command": "tcpdump -i <interface>",
|
||||
"description": "Netzwerkverkehr mitschneiden"
|
||||
},
|
||||
{
|
||||
"command": "netstat -tuln",
|
||||
"description": "Netzwerkverbindungen anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "ss -tuln",
|
||||
"description": "Ein weiteres Dienstprogramm zur Untersuchung von Sockets"
|
||||
},
|
||||
{
|
||||
"command": "mtr <host>",
|
||||
"description": "Netzwerkdiagnose-Tool kombiniert Ping und Traceroute"
|
||||
},
|
||||
{
|
||||
"command": "iperf3 -s",
|
||||
"description": "Führen Sie iperf-Server für Bandbreitentests aus"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Datei- und Texttools",
|
||||
"commands": [
|
||||
{
|
||||
"command": "find / -name <filename>",
|
||||
"description": "Dateien nach Namen finden"
|
||||
},
|
||||
{
|
||||
"command": "grep -r 'pattern' /path",
|
||||
"description": "Suche nach Mustern in Dateien"
|
||||
},
|
||||
{
|
||||
"command": "sed -i 's/old/new/g' file",
|
||||
"description": "Text in Dateien ersetzen"
|
||||
},
|
||||
{
|
||||
"command": "awk '{print $1}' file",
|
||||
"description": "Textverarbeitungswerkzeug"
|
||||
},
|
||||
{
|
||||
"command": "tail -f /var/log/syslog",
|
||||
"description": "Log-Datei in Echtzeit verfolgen"
|
||||
},
|
||||
{
|
||||
"command": "less /var/log/messages",
|
||||
"description": "Datei ansehen mit Paginierung"
|
||||
},
|
||||
{
|
||||
"command": "journalctl -f",
|
||||
"description": "Folgen Sie systemd Journal Logs"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Leistungsanalyse",
|
||||
"commands": [
|
||||
{
|
||||
"command": "iostat -x 1",
|
||||
"description": "CPU- und I/O-Statistiken ausgeben"
|
||||
},
|
||||
{
|
||||
"command": "mpstat -P ALL 1",
|
||||
"description": "CPU-Auslastung ausgeben"
|
||||
},
|
||||
{
|
||||
"command": "perf top",
|
||||
"description": "Systemprofilierungstool"
|
||||
},
|
||||
{
|
||||
"command": "strace <command>",
|
||||
"description": "Systemaufrufe und Signale verfolgen"
|
||||
},
|
||||
{
|
||||
"command": "lsof",
|
||||
"description": "Offene Dateien auflisten"
|
||||
},
|
||||
{
|
||||
"command": "pstree",
|
||||
"description": "Prozessbaum anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "slabtop",
|
||||
"description": "Anzeige von Kernel-Slab-Cache-Informationen"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Sicherheits-Tools",
|
||||
"commands": [
|
||||
{
|
||||
"command": "fail2ban-client status",
|
||||
"description": "Fail2Ban-Status anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "chage -l <username>",
|
||||
"description": "Passwortverfallsinformationen anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "lastlog",
|
||||
"description": "Letztes Login aller Benutzer anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "last",
|
||||
"description": "Liste der zuletzt angemeldeten Benutzer"
|
||||
},
|
||||
{
|
||||
"command": "w",
|
||||
"description": "Zeigen Sie, wer angemeldet ist und was sie tun"
|
||||
},
|
||||
{
|
||||
"command": "lynis audit system",
|
||||
"description": "Sicherheitsaudit-Tool"
|
||||
},
|
||||
{
|
||||
"command": "openssl s_client -connect host:port",
|
||||
"description": "SSL/TLS-Verbindungen testen"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Fernverwaltung",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ssh <user>@<host>",
|
||||
"description": "Sichere Shell-Verbindung"
|
||||
},
|
||||
{
|
||||
"command": "scp <file> <user>@<host>:<path>",
|
||||
"description": "Dateien sicher kopieren"
|
||||
},
|
||||
{
|
||||
"command": "rsync -avz <src> <dest>",
|
||||
"description": "Dateien/Ordner synchronisieren"
|
||||
},
|
||||
{
|
||||
"command": "screen",
|
||||
"description": "Terminal-Multiplexer"
|
||||
},
|
||||
{
|
||||
"command": "tmux",
|
||||
"description": "Alternativer Terminal-Multiplexer"
|
||||
},
|
||||
{
|
||||
"command": "ssh-keygen -t rsa -b 4096",
|
||||
"description": "SSH-Schlüsselpaar erzeugen"
|
||||
},
|
||||
{
|
||||
"command": "ssh-copy-id <user>@<host>",
|
||||
"description": "Kopieren des SSH-Schlüssels zum Server"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Systemkonfiguration",
|
||||
"commands": [
|
||||
{
|
||||
"command": "systemctl status <service>",
|
||||
"description": "Dienststatus prüfen"
|
||||
},
|
||||
{
|
||||
"command": "journalctl -u <service>",
|
||||
"description": "Dienstprotokolle anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "timedatectl",
|
||||
"description": "Systemzeit und -datum verwalten"
|
||||
},
|
||||
{
|
||||
"command": "hostnamectl",
|
||||
"description": "Hostnamen verwalten"
|
||||
},
|
||||
{
|
||||
"command": "localectl",
|
||||
"description": "Gebietsschema und Tastatur des Systems verwalten"
|
||||
},
|
||||
{
|
||||
"command": "update-alternatives --config <name>",
|
||||
"description": "Systemalternativen konfigurieren"
|
||||
},
|
||||
{
|
||||
"command": "dpkg-reconfigure <package>",
|
||||
"description": "Rekonfigurieren eines installierten Pakets"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"tmuxTip": {
|
||||
"title": "Verwenden Sie tmux / screen für lang laufende Befehle",
|
||||
"bodyRich": "Führen Sie lange Aufgaben wie Sicherungen, größere Upgrades oder rsync-Übertragungen in <code>tmux</code> oder <code>screen</code> aus, damit ein SSH-Abbruch die Terminalsitzung nicht beendet. Verbinden Sie sich für eine tmux-Sitzung wieder mit demselben Host und Benutzer und führen Sie <code>tmux attach</code> aus. Screen-Sitzungen haben einen eigenen Befehl zum Wiederverbinden."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Verwandte Themen",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/utils/system-utils",
|
||||
"label": "Installationsprogramm für Systemdienstprogramme",
|
||||
"tail": " — fehlende Werkzeuge installieren."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/system-commands",
|
||||
"label": "Nützliche Systembefehle",
|
||||
"tail": " — Proxmox-spezifische Befehle zur Systemprüfung."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Übersicht über Hilfe und Informationen",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Proxmox-Befehle für Updates und Pakete — apt, pveupgrade, dpkg | ProxMenux",
|
||||
"description": "Update- und Paketbefehle für Proxmox VE: apt update, apt upgrade, apt dist-upgrade, pveupgrade, dpkg -l, Abfragen zu Paketen und Repository-Konfiguration in /etc/apt/sources.list.d/.",
|
||||
"ogTitle": "Proxmox-Befehle für Updates und Pakete — apt, pveupgrade, dpkg",
|
||||
"ogDescription": "Befehle apt, pveupgrade und dpkg, um Proxmox VE auf dem neuesten Stand zu halten — Systemupgrades, Paketverwaltung, Repository-Konfiguration.",
|
||||
"twitterTitle": "Proxmox-Update-Befehle | ProxMenux",
|
||||
"twitterDescription": "Befehle mit apt und pveupgrade zur Verwaltung von Updates und Paketen auf Proxmox-VE-Hosts."
|
||||
},
|
||||
"header": {
|
||||
"title": "Updates und Pakete",
|
||||
"description": "Ausgewählte Befehle mit apt und für Proxmox-Upgrades: Systemupdates, Installation, Entfernung und vollständige Bereinigung von Paketen, Paketabfragen mit apt-cache policy und dpkg -l sowie Prüfung der Repository-Konfiguration.",
|
||||
"section": "Hilfe und Informationen"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Aktualisieren Sie den Index immer zuerst",
|
||||
"body": "<code>apt update</code> aktualisiert den lokalen Paketindex aus den konfigurierten Repositorys. Ohne diesen Schritt kann <code>apt install</code> veraltete Versionen verwenden oder mit „Unable to locate package“ scheitern."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Systemaktualisierungen",
|
||||
"commands": [
|
||||
{
|
||||
"command": "apt update && apt upgrade -y",
|
||||
"description": "Paketlisten aktualisieren und installierte Pakete aktualisieren (apt upgrade)"
|
||||
},
|
||||
{
|
||||
"command": "apt dist-upgrade -y",
|
||||
"description": "Vollständiges System-Upgrade, einschließlich Abhängigkeiten"
|
||||
},
|
||||
{
|
||||
"command": "apt update",
|
||||
"description": "Nur Paketlisten aktualisieren"
|
||||
},
|
||||
{
|
||||
"command": "apt upgrade",
|
||||
"description": "Nur Pakete aktualisieren (interaktiv)"
|
||||
},
|
||||
{
|
||||
"command": "apt full-upgrade",
|
||||
"description": "Pakete mit Auflösung von Abhängigkeiten aktualisieren (interaktiv)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Proxmox-Aktualisierungen",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pveupdate",
|
||||
"description": "Proxmox-Paketlisten aktualisieren"
|
||||
},
|
||||
{
|
||||
"command": "pveupgrade",
|
||||
"description": "Interaktives Proxmox-Paketupgrade starten"
|
||||
},
|
||||
{
|
||||
"command": "pve8to9 --full",
|
||||
"description": "Bereitschaft für das Upgrade von PVE 8 auf 9 prüfen, ohne es durchzuführen"
|
||||
},
|
||||
{
|
||||
"command": "ceph versions",
|
||||
"description": "Ceph-Daemon-Versionen vor der Planung eines Ceph-Upgrades anzeigen"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Paketverwaltung",
|
||||
"commands": [
|
||||
{
|
||||
"command": "apt autoremove --purge",
|
||||
"description": "Entfernen Sie nicht verwendete Pakete und deren Konfiguration"
|
||||
},
|
||||
{
|
||||
"command": "apt clean",
|
||||
"description": "Löschen Sie das lokale Repository der abgerufenen Paketdateien"
|
||||
},
|
||||
{
|
||||
"command": "apt autoclean",
|
||||
"description": "Löschen Sie nur veraltete Paketdateien"
|
||||
},
|
||||
{
|
||||
"command": "apt install <package>",
|
||||
"description": "Installieren Sie ein bestimmtes Paket"
|
||||
},
|
||||
{
|
||||
"command": "apt remove <package>",
|
||||
"description": "Paket entfernen"
|
||||
},
|
||||
{
|
||||
"command": "apt purge <package>",
|
||||
"description": "Entfernen eines Pakets und seiner Konfigurationsdateien"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Paketinformationen",
|
||||
"commands": [
|
||||
{
|
||||
"command": "apt list --installed",
|
||||
"description": "Liste aller installierten Pakete"
|
||||
},
|
||||
{
|
||||
"command": "apt search <keyword>",
|
||||
"description": "Pakete nach Keyword suchen"
|
||||
},
|
||||
{
|
||||
"command": "apt show <package>",
|
||||
"description": "Detaillierte Informationen zu einem Paket anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "dpkg -l",
|
||||
"description": "Liste aller installierten Pakete (alternative)"
|
||||
},
|
||||
{
|
||||
"command": "dpkg -l | grep <keyword>",
|
||||
"description": "Installierte Pakete nach Keyword suchen"
|
||||
},
|
||||
{
|
||||
"command": "apt-cache policy <package>",
|
||||
"description": "Paketversionen und Prioritäten anzeigen"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Repository-Verwaltung",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/apt/sources.list",
|
||||
"description": "Haupt-APT-Repository-Quellen anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "ls -la /etc/apt/sources.list.d/",
|
||||
"description": "Liste zusätzlicher Repository-Quelldateien"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/apt/sources.list.d/pve-enterprise.list",
|
||||
"description": "Proxmox-Enterprise-Repository-Konfiguration in der .list-Datei von PVE 8 anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "apt-key list",
|
||||
"description": "Veraltete Repository-Signaturschlüssel auflisten, sofern apt-key verfügbar ist"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"backupWarn": {
|
||||
"title": "Machen Sie ein Backup vor größeren Upgrades",
|
||||
"bodyRich": "Für reguläre Updates empfiehlt Proxmox <code>apt update && apt full-upgrade</code>. Prüfen Sie die vorgeschlagenen Paketänderungen vor der Bestätigung. Für <strong>Upgrades auf eine neue Hauptversion</strong> (PVE 8 → 9) verwenden Sie den ProxMenux-Ablauf <upgradeLink>PVE 8 auf PVE 9 aktualisieren</upgradeLink>. Er ergänzt Vorabprüfungen, Repository-Migration und anschließende Validierung. Erstellen Sie zuvor eine Sicherung."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Verwandte Themen",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/utils/system-update",
|
||||
"label": "Proxmox System Update (interaktiv)",
|
||||
"tail": "- Wrapper, der all dies mit einem Bestätigungsdialog, einem automatischen DKMS-Wiederaufbau von ProxMenux-verwalteten Treibern bei der Installation eines neuen Kernels und einer Neustartaufforderung erledigt. Ebenfalls startbar über die Schaltfläche Jetzt aktualisieren des ProxMenux Monitor-Dashboards."
|
||||
},
|
||||
{
|
||||
"href": "/docs/utils/upgrade-pve8-pve9",
|
||||
"label": "Aktualisieren Sie PVE 8 auf PVE 9",
|
||||
"tail": "- für Major-Version-Upgrades."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Übersicht über Hilfe und Informationen",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Proxmox-Befehle qm und pct — VM- und LXC-Verwaltung | ProxMenux",
|
||||
"description": "Proxmox-VE-Befehle qm und pct für VMs und LXC-Container: list, config, start, stop, shutdown, reboot, destroy, clone, migrate, snapshot und resize sowie pct exec / enter / push / pull für Container.",
|
||||
"ogTitle": "Proxmox-Befehle qm und pct — VM- und LXC-Verwaltung",
|
||||
"ogDescription": "Referenz der Befehle Proxmox VE qm und pct — Verwalten von virtuellen Maschinen und LXC-Containern aus dem CLI: Starten, Stoppen, Konfigurieren, Snapshot, Migration, Klonen, Zerstören.",
|
||||
"twitterTitle": "Proxmox-Befehle qm / pct | ProxMenux",
|
||||
"twitterDescription": "Kuratierte qm / pct-Befehle zur Verwaltung virtueller Maschinen und LXC-Container in Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "VM- und CT-Verwaltung",
|
||||
"description": "Ausgewählte Befehle mit qm für VMs und pct für LXC-Container: Auflistung, Lebenszyklus (start / stop / shutdown / destroy), Konfigurationsprüfung und Container-Aktionen mit exec, enter, push und pull.",
|
||||
"section": "Hilfe und Informationen"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Finden Sie zuerst eine VMID oder CTID",
|
||||
"body": "Fast jeder Befehl benötigt eine numerische ID. Verwenden Sie <code>qm list</code> für VMs und <code>pct list</code> für Container. Ersetzen Sie <code><vmid></code> / <code><ctid></code> in den Snippets durch die tatsächliche ID, bevor Sie ausführen."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Auflistung und Informationen",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm list",
|
||||
"description": "Listen Sie alle virtuellen Maschinen auf"
|
||||
},
|
||||
{
|
||||
"command": "pct list",
|
||||
"description": "Alle LXC Container auflisten"
|
||||
},
|
||||
{
|
||||
"command": "qm config <vmid>",
|
||||
"description": "VM-Konfiguration über den Parser von qm anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "pct config <ctid>",
|
||||
"description": "Containerkonfiguration über den Parser von pct anzeigen"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Konfigurationsdateien (raw)",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Rohe VM-Konfigurationsdatei anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/pve/lxc/<ctid>.conf",
|
||||
"description": "Rohe CT-Konfigurationsdatei anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "nano /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Bearbeiten der VM-Konfigurationsdatei (nano)"
|
||||
},
|
||||
{
|
||||
"command": "nano /etc/pve/lxc/<ctid>.conf",
|
||||
"description": "Bearbeiten der CT-Konfigurationsdatei (nano)"
|
||||
},
|
||||
{
|
||||
"command": "vi /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Bearbeiten der VM-Rohkonfigurationsdatei (vi)"
|
||||
},
|
||||
{
|
||||
"command": "vi /etc/pve/lxc/<ctid>.conf",
|
||||
"description": "Bearbeiten der CT-Rohkonfigurationsdatei (vi)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "VM-Verwaltung",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm start <vmid>",
|
||||
"description": "Starten Sie eine virtuelle Maschine. Verwenden Sie die richtige <vmid>"
|
||||
},
|
||||
{
|
||||
"command": "qm stop <vmid>",
|
||||
"description": "Erzwingen Sie das Stoppen einer virtuellen Maschine. Verwenden Sie die richtige <vmid>"
|
||||
},
|
||||
{
|
||||
"command": "qm shutdown <vmid>",
|
||||
"description": "Virtuelle Maschine geordnet herunterfahren"
|
||||
},
|
||||
{
|
||||
"command": "qm reset <vmid>",
|
||||
"description": "Zurücksetzen einer virtuellen Maschine (Hard Reboot)"
|
||||
},
|
||||
{
|
||||
"command": "qm suspend <vmid>",
|
||||
"description": "Virtuelle Maschine pausieren"
|
||||
},
|
||||
{
|
||||
"command": "qm resume <vmid>",
|
||||
"description": "Wiederaufnahme einer suspendierten virtuellen Maschine"
|
||||
},
|
||||
{
|
||||
"command": "qm destroy <vmid>",
|
||||
"description": "Eine VM löschen (unwiderruflich). Verwenden Sie die richtige <vmid>"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Containermanagement",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pct start <ctid>",
|
||||
"description": "Starten Sie einen Container. Verwenden Sie die richtige <ctid>"
|
||||
},
|
||||
{
|
||||
"command": "pct stop <ctid>",
|
||||
"description": "Stoppen eines Containers erzwingen. Verwenden Sie die richtige <ctid>"
|
||||
},
|
||||
{
|
||||
"command": "pct shutdown <ctid>",
|
||||
"description": "Container geordnet herunterfahren"
|
||||
},
|
||||
{
|
||||
"command": "pct reboot <ctid>",
|
||||
"description": "Neustart eines Containers"
|
||||
},
|
||||
{
|
||||
"command": "pct destroy <ctid>",
|
||||
"description": "Eine CT löschen (irreversibel). Verwenden Sie die richtige <ctid>"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Containerbetrieb",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pct exec <ctid> -- getent passwd | column -t -s :",
|
||||
"description": "CT-Benutzer im Tabellenformat anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "pct exec <ctid> -- ps aux --sort=-%mem | head",
|
||||
"description": "Prozesse mit dem höchsten Speicherverbrauch im CT"
|
||||
},
|
||||
{
|
||||
"command": "pct enter <ctid>",
|
||||
"description": "Shell des Containers öffnen"
|
||||
},
|
||||
{
|
||||
"command": "pct push <ctid> <source> <dest>",
|
||||
"description": "Kopieren der Datei vom Host zum Container"
|
||||
},
|
||||
{
|
||||
"command": "pct pull <ctid> <source> <dest>",
|
||||
"description": "Kopieren der Datei vom Container zum Host"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"destroyWarn": {
|
||||
"title": "Zerstörung ist irreversibel",
|
||||
"bodyRich": "<code>qm destroy</code> und <code>pct destroy</code> entfernen die Gastkonfiguration und ihre verwalteten Datenträger-Volumes. Externe oder per Bind-Mount eingebundene Daten werden dadurch nicht zwangsläufig gelöscht. Die CLI fragt standardmäßig nicht nach. Sichern Sie benötigte Daten vorher; siehe <backupLink>Sicherung und Wiederherstellung</backupLink>."
|
||||
},
|
||||
"qmConfigTip": {
|
||||
"title": "qm config im Vergleich zur direkten Bearbeitung der .conf-Datei",
|
||||
"bodyRich": "<code>qm config <vmid></code> und <code>pct config <ctid></code> zeigen die Konfiguration über Proxmox-Parser an. Verwenden Sie für normale Änderungen <code>qm set</code> oder den entsprechenden pct-Befehl. Direkte Änderungen an <code>/etc/pve/qemu-server/<vmid>.conf</code> oder <code>/etc/pve/lxc/<ctid>.conf</code> umgehen Validierung und Sperren der Verwaltungsbefehle; die Datei muss weiterhin lesbar bleiben. Stoppen Sie den Gast und sichern Sie die Datei vor manuellen Reparaturen. <code>pmxcfs</code> synchronisiert die Konfiguration zwischen Clusterknoten, nicht die Datenträgerinhalte der Gäste."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Verwandte Themen",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/backup-commands",
|
||||
"label": "Sicherung und Wiederherstellung",
|
||||
"tail": " — vzdump und qmrestore / pct restore."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"label": "Speicher und Datenträger",
|
||||
"tail": " — qm importdisk und Datenträgerverwaltung."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Übersicht über Hilfe und Informationen",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,227 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "ZFS-Befehle auf Proxmox — zpool, zfs snapshot, send/receive, scrub | ProxMenux",
|
||||
"description": "ZFS-Verwaltungsbefehle auf Proxmox VE: zpool create / status / history, zfs list / get / set, Snapshots, clone, zfs send und receive, scrub, clear, replace, zpool iostat und ARC-Übersicht.",
|
||||
"ogTitle": "ZFS-Befehle auf Proxmox — zpool, zfs snapshot, send/receive, scrub",
|
||||
"ogDescription": "Referenz der Befehle zpool und zfs auf Proxmox VE — Pools, Datensätze, Snapshots, Replikation, Wartung.",
|
||||
"twitterTitle": "ZFS-Befehle auf Proxmox | ProxMenux",
|
||||
"twitterDescription": "zpool und zfs Befehle für Proxmox VE: Pools, Datensätze, Snapshots, Replikation, Wartung."
|
||||
},
|
||||
"header": {
|
||||
"title": "ZFS-Verwaltung",
|
||||
"description": "Ausgewählte zpool- und zfs-Befehle: Poolprüfung, Erstellen, Lesen, Ändern und Löschen von Datasets, Snapshots, clone und inkrementelles oder rekursives send/receive, Wartung mit scrub / clear / replace sowie I/O-Statistiken und ARC-Übersicht.",
|
||||
"section": "Hilfe und Informationen"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Zwei Kommandofamilien",
|
||||
"body": "<code>zpool *</code> verwaltet die Speicherpools (physische Schicht – Festplatten, vdevs, Redundanz). <code>zfs *</code> verwaltet die Datensätze und Snapshots, die sich in diesen Pools befinden (logische Schicht – Dateisysteme, Volumes, Snapshots, Eigenschaften)."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Poolinformationen",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zpool list",
|
||||
"description": "Alle ZFS Pools auflisten"
|
||||
},
|
||||
{
|
||||
"command": "zpool status",
|
||||
"description": "Detaillierter Poolstatus und Gesundheit anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "zpool status -v",
|
||||
"description": "Ausführlichen Poolstatus mit Fehlern anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "zpool history",
|
||||
"description": "Befehlshistorie für alle Pools anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "zpool history <pool>",
|
||||
"description": "Befehlshistorie für bestimmten Pool anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "zpool get all <pool>",
|
||||
"description": "Alle Eigenschaften eines Pools anzeigen"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Datensatzverwaltung",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zfs list",
|
||||
"description": "Alle ZFS-Datensätze auflisten"
|
||||
},
|
||||
{
|
||||
"command": "zfs list -r <pool>",
|
||||
"description": "Alle Datensätze in einem Pool rekursiv auflisten"
|
||||
},
|
||||
{
|
||||
"command": "zfs create <pool>/<dataset>",
|
||||
"description": "Erstellen eines neuen Datensatzes"
|
||||
},
|
||||
{
|
||||
"command": "zfs destroy <pool>/<dataset>",
|
||||
"description": "Zerstören Sie einen Datensatz"
|
||||
},
|
||||
{
|
||||
"command": "zfs rename <pool>/<dataset> <pool>/<new-name>",
|
||||
"description": "Umbenennen eines Datasets"
|
||||
},
|
||||
{
|
||||
"command": "zfs get all <pool>/<dataset>",
|
||||
"description": "Alle Eigenschaften eines Datasets anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "zfs set compression=on <pool>/<dataset>",
|
||||
"description": "Komprimierung in einem Dataset ermöglichen"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Snapshot-Verwaltung",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zfs list -t snapshot",
|
||||
"description": "Alle Snapshots auflisten"
|
||||
},
|
||||
{
|
||||
"command": "zfs list -t snapshot -r <pool>",
|
||||
"description": "Liste alle Snapshots in einem Pool"
|
||||
},
|
||||
{
|
||||
"command": "zfs snapshot <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Erstellen Sie einen Snapshot"
|
||||
},
|
||||
{
|
||||
"command": "zfs destroy <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Löschen eines Snapshots"
|
||||
},
|
||||
{
|
||||
"command": "zfs rollback <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Rollback zu einem Snapshot"
|
||||
},
|
||||
{
|
||||
"command": "zfs hold <tag> <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Snapshot mit einem Hold vor dem Löschen schützen"
|
||||
},
|
||||
{
|
||||
"command": "zfs release <tag> <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Hold-Schutz eines Snapshots aufheben"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Klonen und Send/Receive",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zfs clone <pool>/<dataset>@<snapshot> <pool>/<clone-name>",
|
||||
"description": "Erstellen Sie einen Klon aus einem Snapshot"
|
||||
},
|
||||
{
|
||||
"command": "zfs send <pool>/<dataset>@<snapshot> > backup.zfs",
|
||||
"description": "Schnappschuss an eine Datei senden"
|
||||
},
|
||||
{
|
||||
"command": "zfs receive <pool>/<dataset> < backup.zfs",
|
||||
"description": "Erhalten Sie einen Snapshot aus einer Datei"
|
||||
},
|
||||
{
|
||||
"command": "zfs send -i <pool>/<dataset>@<snap1> <pool>/<dataset>@<snap2> > incr.zfs",
|
||||
"description": "Senden Sie inkrementellen Snapshot"
|
||||
},
|
||||
{
|
||||
"command": "zfs send -R <pool>/<dataset>@<snapshot> > full-recursive.zfs",
|
||||
"description": "Rekursive Snapshots senden"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Wartung und Reparatur",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zpool scrub <pool>",
|
||||
"description": "Scrub-Prüfung eines Pools starten"
|
||||
},
|
||||
{
|
||||
"command": "zpool scrub -s <pool>",
|
||||
"description": "Laufenden Scrub stoppen"
|
||||
},
|
||||
{
|
||||
"command": "zpool clear <pool>",
|
||||
"description": "Fehlerzähler eines Pools zurücksetzen"
|
||||
},
|
||||
{
|
||||
"command": "zpool clear <pool> <device>",
|
||||
"description": "Fehlerzähler eines bestimmten Geräts zurücksetzen"
|
||||
},
|
||||
{
|
||||
"command": "zpool replace <pool> <old-device> <new-device>",
|
||||
"description": "Ein ausgefallenes Gerät ersetzen"
|
||||
},
|
||||
{
|
||||
"command": "zpool offline <pool> <device>",
|
||||
"description": "Nehmen Sie ein Gerät offline"
|
||||
},
|
||||
{
|
||||
"command": "zpool online <pool> <device>",
|
||||
"description": "Bringen Sie ein Gerät online"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Leistung und Überwachung",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zpool iostat",
|
||||
"description": "I/O-Statistiken für Pools anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "zpool iostat -v",
|
||||
"description": "Detaillierte I/O-Statistiken anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "zpool iostat 5",
|
||||
"description": "I/O Statistiken alle 5 Sekunden anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "arc_summary",
|
||||
"description": "ARC-Statistik anzeigen (falls installiert)"
|
||||
},
|
||||
{
|
||||
"command": "zfs get compressratio <pool>/<dataset>",
|
||||
"description": "Komprimierungsverhältnis anzeigen"
|
||||
},
|
||||
{
|
||||
"command": "zfs get used,available,referenced <pool>/<dataset>",
|
||||
"description": "Speicherplatznutzung anzeigen"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"bestPractices": {
|
||||
"title": "Best Practices für den Betrieb",
|
||||
"bodyRich": "Planen Sie regelmäßig <code>zpool scrub</code> zur Prüfsummenprüfung ein und kontrollieren Sie das Ergebnis. Halten Sie Kapazität frei: Die Auswirkungen eines fast vollen Pools hängen von Last und Aufbau ab. Verwenden Sie <code>zpool replace</code> für ausgefallene Geräte und das Verfahren für den jeweiligen vdev-Typ. Detach + add ist kein gleichwertiger Austausch und kann die Topologie verändern oder Redundanz aufheben."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Verwandte Themen",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"label": "Speicher und Datenträger",
|
||||
"tail": " — allgemeine Blockgeräte- und LVM-Befehle."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/backup-commands",
|
||||
"label": "Sicherung und Wiederherstellung",
|
||||
"tail": " — vzdump, qmrestore."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Übersicht über Hilfe und Informationen",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,7 @@
|
||||
},
|
||||
"intro": {
|
||||
"title": "Three backup modes",
|
||||
"body": "<strong>snapshot</strong> uses a live snapshot — guest stays running, briefly pauses I/O. <strong>suspend</strong> freezes the VM during backup (safer than snapshot for non-snapshot-aware FS). <strong>stop</strong> shuts down the VM, backs up cold, restarts. Pick by guest tolerance and storage capability."
|
||||
"body": "For VMs, <strong>snapshot</strong> is a live backup and does not require storage snapshots. <strong>suspend</strong> pauses the VM before the live backup and does not necessarily improve consistency. <strong>stop</strong> shuts the VM down first; a previously running VM can resume once backup has started. LXC differs: snapshot mode requires snapshot-capable storage, suspend uses two rsync passes, and stop keeps the container stopped during backup."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
@@ -34,18 +34,18 @@
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mode suspend",
|
||||
"description": "Suspend VM during backup"
|
||||
"description": "Pause VM before the live backup (legacy suspend mode)"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mode stop",
|
||||
"description": "Stop VM during backup"
|
||||
"description": "Shut down VM before starting the backup"
|
||||
},
|
||||
{
|
||||
"command": "vzdump --all",
|
||||
"description": "Backup all VMs and containers"
|
||||
},
|
||||
{
|
||||
"command": "vzdump --exclude <vmid1>,<vmid2>",
|
||||
"command": "vzdump --all --exclude <vmid1>,<vmid2>",
|
||||
"description": "Backup all except specified VMs"
|
||||
}
|
||||
]
|
||||
@@ -58,11 +58,11 @@
|
||||
"description": "Use zstd compression for backup"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --pigz <threads>",
|
||||
"command": "vzdump <vmid> --compress gzip --pigz <threads>",
|
||||
"description": "Use pigz with multiple threads"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --notes <text>",
|
||||
"command": "vzdump <vmid> --storage <storage> --notes-template <text>",
|
||||
"description": "Add notes to backup"
|
||||
},
|
||||
{
|
||||
@@ -70,7 +70,7 @@
|
||||
"description": "Send notification email"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --maxfiles <n>",
|
||||
"command": "vzdump <vmid> --prune-backups keep-last=<n>",
|
||||
"description": "Keep only n backups per VM"
|
||||
},
|
||||
{
|
||||
@@ -96,7 +96,7 @@
|
||||
},
|
||||
{
|
||||
"command": "qmrestore <backup-file> <vmid> --unique",
|
||||
"description": "Create a VM with unique ID"
|
||||
"description": "Restore VM with newly generated random MAC addresses"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file>",
|
||||
@@ -107,8 +107,8 @@
|
||||
"description": "Restore container to specific storage"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file> --rootfs <storage>",
|
||||
"description": "Restore to specific rootfs"
|
||||
"command": "pct restore <vmid> <backup-file> --rootfs <storage>:<size-GiB>",
|
||||
"description": "Restore with a root disk allocated on the chosen storage and size"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file> --unprivileged 1",
|
||||
@@ -132,7 +132,7 @@
|
||||
"description": "Find container backups"
|
||||
},
|
||||
{
|
||||
"command": "pvesm list <storage>",
|
||||
"command": "pvesm list <storage> --content backup",
|
||||
"description": "List backups in specific storage"
|
||||
},
|
||||
{
|
||||
@@ -149,7 +149,7 @@
|
||||
"title": "Scheduled Backups",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/cron.d/vzdump",
|
||||
"command": "cat /etc/pve/jobs.cfg",
|
||||
"description": "Show backup schedule"
|
||||
},
|
||||
{
|
||||
@@ -158,19 +158,19 @@
|
||||
},
|
||||
{
|
||||
"command": "systemctl list-timers",
|
||||
"description": "List all scheduled tasks"
|
||||
"description": "List systemd timers"
|
||||
},
|
||||
{
|
||||
"command": "systemctl status cron",
|
||||
"description": "Check cron service status"
|
||||
},
|
||||
{
|
||||
"command": "grep vzdump /var/log/syslog",
|
||||
"description": "Check backup logs in syslog"
|
||||
"command": "pvenode task list --typefilter vzdump",
|
||||
"description": "List completed backup tasks"
|
||||
},
|
||||
{
|
||||
"command": "tail -f /var/log/vzdump.log",
|
||||
"description": "Monitor backup log in real-time"
|
||||
"command": "pvenode task log <upid>",
|
||||
"description": "Show the log for a backup task UPID"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -202,15 +202,15 @@
|
||||
"description": "Wait for lock"
|
||||
},
|
||||
{
|
||||
"command": "qm importdisk <vmid> <backup> <storage>",
|
||||
"description": "Import disk from backup"
|
||||
"command": "qm importdisk <vmid> <disk-image> <storage>",
|
||||
"description": "Import a disk image file (for example raw, qcow2 or vmdk) as an unused disk, not a vzdump backup archive"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"testRestores": {
|
||||
"title": "Test your restores",
|
||||
"bodyRich": "A backup you've never restored isn't a backup. Periodically pick a backup, restore it to a test VMID with <code>qmrestore --unique</code>, boot the resulting VM and confirm the contents are intact. Same idea for containers via <code>pct restore</code>."
|
||||
"bodyRich": "Periodically restore a backup to an unused test VMID with <code>qmrestore --unique</code>, start the VM on an isolated test network and check its contents. The unique option generates new MAC addresses; it does not change static IPs or application settings. Test container restores with <code>pct restore</code> in the same way."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Related",
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
},
|
||||
"intro": {
|
||||
"title": "IOMMU must be enabled in BIOS / UEFI",
|
||||
"body": "Before any of these commands matter, IOMMU has to be enabled at the firmware level (look for <em>VT-d</em>, <em>AMD-Vi</em> or <em>IOMMU</em> in BIOS / UEFI). Common GRUB parameters to enable it on the Linux side: <code>intel_iommu=on</code> (Intel) or <code>amd_iommu=on</code> (AMD), often combined with <code>iommu=pt video=efifb:off video=vesa:off</code>."
|
||||
"body": "Enable IOMMU in firmware first: look for <em>VT-d</em>, <em>AMD-Vi</em> or <em>IOMMU</em> in BIOS/UEFI. AMD enables IOMMU by default on the Linux side, as do Intel systems with Proxmox kernels 6.8 and newer. Older Intel kernels may need <code>intel_iommu=on</code>. The optional <code>iommu=pt</code> setting controls IOMMU passthrough mode; it is not a reason to disable the host framebuffer indiscriminately."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
@@ -130,14 +130,14 @@
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -bios ovmf",
|
||||
"description": "Set VM to use UEFI/OVMF (required for GPU passthrough)"
|
||||
"description": "Set VM to UEFI/OVMF (recommended when the GPU ROM supports UEFI)"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"afterChangesTip": {
|
||||
"title": "After changing GRUB or modprobe configs",
|
||||
"bodyRich": "Run <code>update-grub</code> + <code>update-initramfs -u</code>, then reboot. Verify with <code>cat /proc/cmdline</code> (kernel parameters), <code>dmesg | grep -i iommu</code> (IOMMU initialised) and <code>find /sys/kernel/iommu_groups/ -type l | sort -V</code> (groups present)."
|
||||
"bodyRich": "On hosts using GRUB, apply boot-option changes with <code>update-grub</code>. Refresh module changes with <code>update-initramfs -u -k all</code>, then reboot. Other bootloaders require their own configuration procedure. Verify with <code>cat /proc/cmdline</code> (kernel parameters), <code>dmesg | grep -i iommu</code> (IOMMU initialised) and <code>find /sys/kernel/iommu_groups/ -type l | sort -V</code> (groups present)."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Related",
|
||||
@@ -150,7 +150,7 @@
|
||||
{
|
||||
"href": "/docs/hardware/igpu-acceleration-lxc",
|
||||
"label": "Add GPU to LXC",
|
||||
"tail": " — passthrough to a container instead of a VM."
|
||||
"tail": " — share host GPU device access with an LXC container."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
|
||||
@@ -149,7 +149,7 @@
|
||||
],
|
||||
"iptablesTip": {
|
||||
"title": "iptables vs nftables",
|
||||
"bodyRich": "Modern Debian / Proxmox uses <strong>nftables</strong> as the underlying firewall engine. The classic <code>iptables -L -n -v</code> command still works as a translation layer, but the source of truth is <code>nft list ruleset</code>. <code>pve-firewall</code> commands are Proxmox's wrapper that emits nftables rules from the cluster firewall config."
|
||||
"bodyRich": "The classic <code>pve-firewall</code> service generates iptables rules. The alternative proxmox-firewall service uses <strong>nftables</strong>. Inspect the iptables-based backend with <code>iptables -L -n -v</code> and the nftables backend with <code>nft list ruleset</code>. Use the tools for the enabled backend; do not assume these listings are interchangeable."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Related",
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
},
|
||||
"intro": {
|
||||
"title": "Quick disk inventory",
|
||||
"body": "<code>lsblk</code> is the fastest way to see all block devices and their partitions in a tree view. For persistent identifiers (which survive between boots and hardware changes) use <code>ls -lh /dev/disk/by-id/</code>."
|
||||
"body": "<code>lsblk</code> shows block devices and partitions in a tree. Inspect persistent identifiers with <code>ls -lh /dev/disk/by-id/</code>: these normally remain stable across reboots and device reordering for the same disk. Replacing a disk or changing the way a controller exposes its identity can change its by-id path."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
@@ -104,16 +104,16 @@
|
||||
"description": "Show status of all storage pools"
|
||||
},
|
||||
{
|
||||
"command": "pvesm list",
|
||||
"description": "List all available storage"
|
||||
"command": "pvesm status --enabled 1",
|
||||
"description": "List enabled configured storage"
|
||||
},
|
||||
{
|
||||
"command": "pvesm list <storage>",
|
||||
"description": "List content of specific storage"
|
||||
},
|
||||
{
|
||||
"command": "pvesm scan <storage>",
|
||||
"description": "Scan storage for new content"
|
||||
"command": "pvesm scan nfs <server>",
|
||||
"description": "Discover NFS exports on a server"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -122,7 +122,7 @@
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm importdisk <vmid> <image_path> <storage>",
|
||||
"description": "Attach disk image to VM"
|
||||
"description": "Import disk image as an unused disk for the VM; attach it separately"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -<bus><index> <disk_path>",
|
||||
@@ -130,7 +130,7 @@
|
||||
},
|
||||
{
|
||||
"command": "qemu-img convert -O <format> <input> <output>",
|
||||
"description": "Convert disk image format"
|
||||
"description": "Convert an offline disk image format"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -199,15 +199,15 @@
|
||||
],
|
||||
"lvmTip": {
|
||||
"title": "LVM short vs long commands",
|
||||
"bodyRich": "Both forms exist for compatibility. <code>pvs</code> / <code>vgs</code> / <code>lvs</code> give a clean single-line-per-volume table; <code>pvdisplay</code> / <code>vgdisplay</code> / <code>lvdisplay</code> give a verbose multi-line dump per volume. For day-to-day use prefer the short versions."
|
||||
"bodyRich": "Both forms are available. <code>pvs</code> / <code>vgs</code> / <code>lvs</code> produce compact tables with one row per physical volume, volume group or logical volume respectively. <code>pvdisplay</code> / <code>vgdisplay</code> / <code>lvdisplay</code> provide more detailed multi-line output. The short forms are convenient for everyday checks."
|
||||
},
|
||||
"smartInfo": {
|
||||
"title": "SMART for spinning disks vs NVMe",
|
||||
"bodyRich": "<strong>Spinning / SATA / SAS disks</strong> use the <code>smartctl</code> family from <code>smartmontools</code> (installed by default on Proxmox). Pass the device as <code>/dev/sda</code>, <code>/dev/sdb</code>, etc. <strong>NVMe disks</strong> have their own native protocol — <code>smartctl</code> works against them (passes most data through), but the <code>nvme</code> tool from <code>nvme-cli</code> reports more NVMe-specific fields (wear levelling, media errors, namespace info). Install with <code>apt install nvme-cli</code> if not present."
|
||||
"title": "SMART for SATA/SAS vs NVMe",
|
||||
"bodyRich": "<strong>SATA / SAS disks, including SSDs,</strong> can be inspected with <code>smartctl</code> from <code>smartmontools</code> (installed by default on Proxmox). Specify the device, for example <code>/dev/sda</code> or <code>/dev/sdb</code>. <strong>NVMe disks</strong> use a different native protocol. <code>smartctl</code> also supports them, while <code>nvme</code> from <code>nvme-cli</code> provides NVMe-specific controller, namespace and health queries. Install it with <code>apt install nvme-cli</code> if absent."
|
||||
},
|
||||
"selfTestWarn": {
|
||||
"title": "Self-tests run in the background",
|
||||
"bodyRich": "<code>smartctl -t short</code> and <code>-t long</code> return immediately — the disk runs the test on its own. Check progress with <code>smartctl -a /dev/<disk></code> (look for the \"Self-test routine in progress\" line) or wait for completion and read <code>smartctl -l selftest /dev/<disk></code>. Short tests take ~2 min; long tests can take hours on large spinners. The disk stays usable during the test, but I/O performance drops."
|
||||
"bodyRich": "On supported drives, <code>smartctl -t short /dev/<disk></code> and <code>smartctl -t long /dev/<disk></code> start background tests and return immediately. Check progress with <code>smartctl -a /dev/<disk></code> (look for \"Self-test routine in progress\") or wait and read <code>smartctl -l selftest /dev/<disk></code>. Short tests commonly take about two minutes; long tests can take hours. The disk remains usable, but testing can reduce I/O performance."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Related",
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Proxmox VE System Commands — pveversion, uptime, journalctl, systemctl | ProxMenux",
|
||||
"description": "Reference of essential Proxmox VE and Linux system commands: pveversion, pveperf, uptime, journalctl, systemctl, lscpu, lsblk, df, free, last, who. All read-only and safe to run on any host.",
|
||||
"description": "Proxmox VE and Linux system commands for versions, uptime, memory, services, logs and users, plus auditing and summary tools. Includes a service restart command; not every example is read-only.",
|
||||
"ogTitle": "Proxmox VE System Commands — pveversion, uptime, journalctl, systemctl",
|
||||
"ogDescription": "Reference of essential Proxmox VE and Linux system commands — version, uptime, services, logs, user info, hardware probes. All read-only.",
|
||||
"ogDescription": "Proxmox VE and Linux system commands for version, uptime, services, logs and user information, including service management and auditing tools.",
|
||||
"twitterTitle": "Proxmox VE System Commands | ProxMenux",
|
||||
"twitterDescription": "Essential system inspection commands for Proxmox VE — version, status, services, logs, user info."
|
||||
},
|
||||
"header": {
|
||||
"title": "Useful System Commands",
|
||||
"description": "Read-only commands to look at the Proxmox host: version, kernel, uptime, memory, web UI status, recent log lines, who's logged in, and a couple of audit / summary tools. None of them modifies the system.",
|
||||
"description": "Commands for inspecting the Proxmox host: version, kernel, uptime, memory, web UI status, recent logs and logged-in users, plus auditing and summary tools. Most inspect state, but systemctl restart pveproxy restarts the web UI proxy, and audit tools can write reports and logs.",
|
||||
"section": "Help and Info"
|
||||
},
|
||||
"intro": {
|
||||
|
||||
@@ -251,7 +251,7 @@
|
||||
],
|
||||
"tmuxTip": {
|
||||
"title": "Use tmux / screen for long-running commands",
|
||||
"bodyRich": "Anything that takes longer than a coffee break — a backup, a long upgrade, a big rsync — should run inside <code>tmux</code> or <code>screen</code>. SSH disconnects don't kill the session, and you can re-attach from anywhere with <code>tmux attach</code>."
|
||||
"bodyRich": "Long-running work — a backup, a lengthy upgrade or a large rsync transfer — should run inside <code>tmux</code> or <code>screen</code> so an SSH disconnect does not end the terminal session. For a tmux session, reconnect to the same host as the same user and run <code>tmux attach</code>. Screen sessions use their own reattachment command."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Related",
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"commands": [
|
||||
{
|
||||
"command": "apt update && apt upgrade -y",
|
||||
"description": "Update and upgrade all system packages"
|
||||
"description": "Refresh package lists and upgrade installed packages (apt upgrade)"
|
||||
},
|
||||
{
|
||||
"command": "apt dist-upgrade -y",
|
||||
@@ -51,15 +51,15 @@
|
||||
},
|
||||
{
|
||||
"command": "pveupgrade",
|
||||
"description": "Show available Proxmox upgrades"
|
||||
"description": "Start the interactive Proxmox package upgrade"
|
||||
},
|
||||
{
|
||||
"command": "pve-upgrade",
|
||||
"description": "Perform Proxmox VE upgrade"
|
||||
"command": "pve8to9 --full",
|
||||
"description": "Check readiness for the PVE 8 to 9 upgrade (does not perform it)"
|
||||
},
|
||||
{
|
||||
"command": "pveceph upgrade",
|
||||
"description": "Upgrade Ceph packages (if Ceph is installed)"
|
||||
"command": "ceph versions",
|
||||
"description": "Show Ceph daemon versions before planning a Ceph upgrade"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -134,18 +134,18 @@
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/apt/sources.list.d/pve-enterprise.list",
|
||||
"description": "Show Proxmox Enterprise repo config"
|
||||
"description": "Show Proxmox Enterprise repository configuration in the PVE 8 .list file"
|
||||
},
|
||||
{
|
||||
"command": "apt-key list",
|
||||
"description": "List repository signing keys"
|
||||
"description": "List legacy repository signing keys where apt-key is available"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"backupWarn": {
|
||||
"title": "Take a backup before major upgrades",
|
||||
"bodyRich": "For point releases (8.4.1 → 8.4.5) the standard <code>apt update && apt upgrade</code> is safe. For <strong>major version upgrades</strong> (PVE 8 → 9) use the dedicated ProxMenux flow: <upgradeLink>Upgrade PVE 8 to PVE 9</upgradeLink> — it adds pre-flight checks, repository migration and post-upgrade validation."
|
||||
"bodyRich": "For routine updates, Proxmox recommends <code>apt update && apt full-upgrade</code>; review the proposed package changes before confirming. For <strong>major version upgrades</strong> (PVE 8 → 9), use the dedicated ProxMenux flow: <upgradeLink>Upgrade PVE 8 to PVE 9</upgradeLink>. It adds readiness checks, repository migration and post-upgrade validation. Back up first."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Related",
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
"description": "Gracefully shutdown a container"
|
||||
},
|
||||
{
|
||||
"command": "pct restart <ctid>",
|
||||
"command": "pct reboot <ctid>",
|
||||
"description": "Restart a container"
|
||||
},
|
||||
{
|
||||
@@ -153,11 +153,11 @@
|
||||
],
|
||||
"destroyWarn": {
|
||||
"title": "Destroy is irreversible",
|
||||
"bodyRich": "<code>qm destroy</code> and <code>pct destroy</code> delete the VM / CT and all its disks. There is no confirmation prompt by default. Take a backup first if there's any chance you might want the data back — see <backupLink>Backup and Restore</backupLink>."
|
||||
"bodyRich": "<code>qm destroy</code> and <code>pct destroy</code> remove the guest configuration and its managed disk volumes. Do not assume that external or bind-mounted data is deleted. The CLI has no confirmation prompt by default. Back up any data you may need before running it; see <backupLink>Backup and Restore</backupLink>."
|
||||
},
|
||||
"qmConfigTip": {
|
||||
"title": "qm config vs editing the .conf file directly",
|
||||
"bodyRich": "<code>qm config <vmid></code> and <code>pct config <ctid></code> read the file through Proxmox's own parser — output is normalised, comments stripped, pending changes shown separately. Editing <code>/etc/pve/qemu-server/<vmid>.conf</code> or <code>/etc/pve/lxc/<ctid>.conf</code> directly bypasses the parser. Useful for fixing a corrupted config or applying a setting <code>qm set</code> won't accept, but stop the guest first to avoid races. The cluster filesystem (<code>pmxcfs</code>) takes care of propagating the change to other nodes."
|
||||
"bodyRich": "<code>qm config <vmid></code> and <code>pct config <ctid></code> display configuration through Proxmox’s parsers. For normal changes, prefer <code>qm set</code> or the corresponding pct setter. Direct edits to <code>/etc/pve/qemu-server/<vmid>.conf</code> or <code>/etc/pve/lxc/<ctid>.conf</code> bypass the validation and locking in management commands; the file must still remain parseable. Stop the guest and keep a copy before manual repair. <code>pmxcfs</code> synchronises configuration across cluster nodes, not guest disk contents."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Related",
|
||||
|
||||
@@ -202,7 +202,7 @@
|
||||
],
|
||||
"bestPractices": {
|
||||
"title": "Operational best practices",
|
||||
"bodyRich": "Run <code>zpool scrub</code> weekly or monthly to detect silent corruption. Keep at least 10-15% of pool space free — ZFS performance degrades sharply over 80% full. Always replace failed devices with <code>zpool replace</code> (in-place) rather than detach + add (which loses redundancy temporarily)."
|
||||
"bodyRich": "Schedule <code>zpool scrub</code> regularly to verify checksums and inspect its results. Keep free capacity: the impact of a nearly full pool depends on workload and layout. Use <code>zpool replace</code> for a failed device and follow the procedure for its vdev type. Detach + add is not an equivalent replacement procedure and can alter topology or remove redundancy."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Related",
|
||||
|
||||
@@ -9,12 +9,12 @@
|
||||
},
|
||||
"header": {
|
||||
"title": "Backup y restauración",
|
||||
"description": "Referencia curada de comandos vzdump, qmrestore y pct restore para los flujos de backup de Proxmox. Incluye programación, opciones avanzadas como hook scripts / rutas excluidas / prioridad de E/S, y gestión de ficheros de backup.",
|
||||
"description": "Selección de comandos vzdump, qmrestore y pct restore para backups en Proxmox. Incluye programación, opciones avanzadas como hooks, rutas excluidas y prioridad de E/S, y gestión de archivos de copia.",
|
||||
"section": "Ayuda e información"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Tres modos de backup",
|
||||
"body": "<strong>snapshot</strong> usa un snapshot en vivo — el guest sigue funcionando, pausa brevemente la E/S. <strong>suspend</strong> congela la VM durante el backup (más seguro que snapshot para FS que no soportan snapshots). <strong>stop</strong> apaga la VM, hace el backup en frío y la vuelve a arrancar. Elige según la tolerancia del guest y la capacidad del almacenamiento."
|
||||
"body": "En VM, <strong>snapshot</strong> realiza una copia en vivo y no necesita snapshots del almacenamiento. <strong>suspend</strong> pausa la VM antes de la copia y no mejora necesariamente la consistencia. <strong>stop</strong> la apaga primero; si estaba encendida, puede reanudarse una vez iniciada la copia. En LXC es distinto: snapshot requiere almacenamiento con snapshots, suspend usa dos pasadas de rsync y stop mantiene el contenedor parado durante toda la copia."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
@@ -34,18 +34,18 @@
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mode suspend",
|
||||
"description": "Suspender la VM durante el backup"
|
||||
"description": "Pausar la VM antes de la copia en vivo, modo suspend heredado"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mode stop",
|
||||
"description": "Apagar la VM durante el backup"
|
||||
"description": "Apagar la VM antes de iniciar la copia"
|
||||
},
|
||||
{
|
||||
"command": "vzdump --all",
|
||||
"description": "Backup de todas las VMs y contenedores"
|
||||
},
|
||||
{
|
||||
"command": "vzdump --exclude <vmid1>,<vmid2>",
|
||||
"command": "vzdump --all --exclude <vmid1>,<vmid2>",
|
||||
"description": "Backup de todas excepto las VMs especificadas"
|
||||
}
|
||||
]
|
||||
@@ -58,11 +58,11 @@
|
||||
"description": "Usar compresión zstd para el backup"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --pigz <threads>",
|
||||
"command": "vzdump <vmid> --compress gzip --pigz <threads>",
|
||||
"description": "Usar pigz con varios hilos"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --notes <text>",
|
||||
"command": "vzdump <vmid> --storage <storage> --notes-template <text>",
|
||||
"description": "Añadir notas al backup"
|
||||
},
|
||||
{
|
||||
@@ -70,7 +70,7 @@
|
||||
"description": "Enviar email de notificación"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --maxfiles <n>",
|
||||
"command": "vzdump <vmid> --prune-backups keep-last=<n>",
|
||||
"description": "Conservar solo n backups por VM"
|
||||
},
|
||||
{
|
||||
@@ -96,7 +96,7 @@
|
||||
},
|
||||
{
|
||||
"command": "qmrestore <backup-file> <vmid> --unique",
|
||||
"description": "Crear una VM con ID único"
|
||||
"description": "Restaurar la VM generando nuevas direcciones MAC aleatorias"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file>",
|
||||
@@ -107,8 +107,8 @@
|
||||
"description": "Restaurar contenedor a un almacenamiento concreto"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file> --rootfs <storage>",
|
||||
"description": "Restaurar a un rootfs concreto"
|
||||
"command": "pct restore <vmid> <backup-file> --rootfs <storage>:<size-GiB>",
|
||||
"description": "Restaurar asignando el disco raíz al almacenamiento y tamaño elegidos"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file> --unprivileged 1",
|
||||
@@ -132,7 +132,7 @@
|
||||
"description": "Buscar backups de contenedor"
|
||||
},
|
||||
{
|
||||
"command": "pvesm list <storage>",
|
||||
"command": "pvesm list <storage> --content backup",
|
||||
"description": "Listar backups en un almacenamiento concreto"
|
||||
},
|
||||
{
|
||||
@@ -149,7 +149,7 @@
|
||||
"title": "Backups programados",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/cron.d/vzdump",
|
||||
"command": "cat /etc/pve/jobs.cfg",
|
||||
"description": "Mostrar la programación de backups"
|
||||
},
|
||||
{
|
||||
@@ -158,19 +158,19 @@
|
||||
},
|
||||
{
|
||||
"command": "systemctl list-timers",
|
||||
"description": "Listar todas las tareas programadas"
|
||||
"description": "Listar temporizadores de systemd"
|
||||
},
|
||||
{
|
||||
"command": "systemctl status cron",
|
||||
"description": "Comprobar el estado del servicio cron"
|
||||
},
|
||||
{
|
||||
"command": "grep vzdump /var/log/syslog",
|
||||
"description": "Buscar logs de backup en syslog"
|
||||
"command": "pvenode task list --typefilter vzdump",
|
||||
"description": "Listar tareas de backup finalizadas"
|
||||
},
|
||||
{
|
||||
"command": "tail -f /var/log/vzdump.log",
|
||||
"description": "Seguir el log de backup en tiempo real"
|
||||
"command": "pvenode task log <upid>",
|
||||
"description": "Mostrar el registro de una tarea de copia mediante su UPID"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -202,15 +202,15 @@
|
||||
"description": "Esperar al lock"
|
||||
},
|
||||
{
|
||||
"command": "qm importdisk <vmid> <backup> <storage>",
|
||||
"description": "Importar un disco desde un backup"
|
||||
"command": "qm importdisk <vmid> <disk-image> <storage>",
|
||||
"description": "Importar un archivo de imagen de disco (por ejemplo raw, qcow2 o vmdk) como disco sin usar, no un archivo de backup de vzdump"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"testRestores": {
|
||||
"title": "Prueba tus restauraciones",
|
||||
"bodyRich": "Un backup que nunca has restaurado no es un backup. Periódicamente coge un backup, restáuralo a un VMID de prueba con <code>qmrestore --unique</code>, arranca la VM resultante y confirma que el contenido está intacto. La misma idea para contenedores con <code>pct restore</code>."
|
||||
"bodyRich": "Restaura periódicamente una copia en un VMID de prueba libre con <code>qmrestore --unique</code>, arranca la VM en una red aislada y comprueba su contenido. La opción unique genera nuevas direcciones MAC; no cambia las IP estáticas ni la configuración de las aplicaciones. Prueba igual los contenedores con <code>pct restore</code>."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relacionado",
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
},
|
||||
"intro": {
|
||||
"title": "IOMMU debe estar activado en BIOS / UEFI",
|
||||
"body": "Antes de que ninguno de estos comandos importe, IOMMU tiene que estar activado a nivel de firmware (busca <em>VT-d</em>, <em>AMD-Vi</em> o <em>IOMMU</em> en BIOS / UEFI). Parámetros habituales de GRUB para activarlo del lado de Linux: <code>intel_iommu=on</code> (Intel) o <code>amd_iommu=on</code> (AMD), a menudo combinados con <code>iommu=pt video=efifb:off video=vesa:off</code>."
|
||||
"body": "Activa primero IOMMU en el firmware: busca <em>VT-d</em>, <em>AMD-Vi</em> o <em>IOMMU</em> en BIOS/UEFI. En Linux está activado por defecto en AMD y en Intel con kernels Proxmox 6.8 o posteriores. Los kernels Intel anteriores pueden necesitar <code>intel_iommu=on</code>. La opción <code>iommu=pt</code> controla el modo passthrough de IOMMU; no justifica desactivar indiscriminadamente el framebuffer del host."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
@@ -130,14 +130,14 @@
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -bios ovmf",
|
||||
"description": "Hacer que la VM use UEFI/OVMF (necesario para passthrough de GPU)"
|
||||
"description": "Configurar UEFI/OVMF en la VM, recomendado si la ROM de la GPU admite UEFI"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"afterChangesTip": {
|
||||
"title": "Después de cambiar GRUB o configs de modprobe",
|
||||
"bodyRich": "Ejecuta <code>update-grub</code> + <code>update-initramfs -u</code> y reinicia. Verifica con <code>cat /proc/cmdline</code> (parámetros del kernel), <code>dmesg | grep -i iommu</code> (IOMMU inicializado) y <code>find /sys/kernel/iommu_groups/ -type l | sort -V</code> (grupos presentes)."
|
||||
"bodyRich": "En hosts que usan GRUB, aplica los cambios de arranque con <code>update-grub</code>. Actualiza los módulos con <code>update-initramfs -u -k all</code> y reinicia. Otros cargadores de arranque requieren su propio procedimiento. Comprueba <code>cat /proc/cmdline</code> (parámetros del kernel), <code>dmesg | grep -i iommu</code> (IOMMU inicializado) y <code>find /sys/kernel/iommu_groups/ -type l | sort -V</code> (grupos presentes)."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relacionado",
|
||||
@@ -150,7 +150,7 @@
|
||||
{
|
||||
"href": "/docs/hardware/igpu-acceleration-lxc",
|
||||
"label": "Añadir GPU a LXC",
|
||||
"tail": " — passthrough a un contenedor en lugar de a una VM."
|
||||
"tail": " — compartir acceso a los dispositivos GPU del host con un contenedor LXC."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Referencia de comandos de Proxmox — qm, pct, vzdump, zpool, pveversion | ProxMenux",
|
||||
"description": "Referencia curada de comandos esenciales de Proxmox VE y Linux organizados por tema: inspección del sistema, gestión de VMs y LXC (qm / pct), almacenamiento y discos, red, actualizaciones, passthrough de GPU, ZFS, backup y restauración, y herramientas CLI del día a día.",
|
||||
"description": "Selección de comandos esenciales de Proxmox VE y Linux por tema: inspección del sistema, gestión de VM y LXC (qm / pct), almacenamiento y discos, red, actualizaciones, passthrough de GPU, ZFS, backup y restauración, y herramientas de terminal para el día a día.",
|
||||
"ogTitle": "Referencia de comandos de Proxmox — qm, pct, vzdump, zpool",
|
||||
"ogDescription": "Referencia curada de los comandos más útiles de Proxmox VE y Linux, agrupados por tema — sistema, VM/CT, almacenamiento, red, actualizaciones, passthrough de GPU, ZFS, backup y herramientas CLI.",
|
||||
"ogDescription": "Selección de comandos útiles de Proxmox VE y Linux por tema: sistema, VM/CT, almacenamiento, red, actualizaciones, passthrough de GPU, ZFS, backups y herramientas CLI.",
|
||||
"twitterTitle": "Referencia de comandos de Proxmox | ProxMenux",
|
||||
"twitterDescription": "Referencia curada de los comandos más útiles de Proxmox VE y Linux, agrupados por tema."
|
||||
"twitterDescription": "Selección de comandos útiles de Proxmox VE y Linux, agrupados por tema."
|
||||
},
|
||||
"header": {
|
||||
"title": "Ayuda e información",
|
||||
"description": "Compendio curado de comandos útiles de Linux y Proxmox VE organizados por tema. Nueve categorías — cubre desde una comprobación rápida con pveversion hasta un zfs send/receive multilínea — pensado para convivir con las secciones de GPU, disco y compartición de ProxMenux como una referencia única.",
|
||||
"description": "Selección de comandos útiles de Linux y Proxmox VE organizados por tema. Las nueve categorías abarcan desde una consulta rápida con pveversion hasta una secuencia de zfs send/receive en varias líneas. Sirve de referencia junto a las secciones de GPU, discos y recursos compartidos de ProxMenux.",
|
||||
"section": "Ayuda e información"
|
||||
},
|
||||
"intro": {
|
||||
@@ -27,14 +27,14 @@
|
||||
{
|
||||
"icon": "Terminal",
|
||||
"href": "/docs/help-info/system-commands",
|
||||
"title": "Comandos de sistema útiles",
|
||||
"description": "pveversion, uptime, free, journalctl, hostnamectl, información del usuario actual, auditoría de lynis, fastfetch."
|
||||
"title": "Comandos útiles del sistema",
|
||||
"description": "pveversion, uptime, free, journalctl, hostnamectl, información del usuario actual, auditoría con lynis y fastfetch."
|
||||
},
|
||||
{
|
||||
"icon": "Cpu",
|
||||
"href": "/docs/help-info/vm-ct-commands",
|
||||
"title": "Gestión de VM y CT",
|
||||
"description": "qm list / config / start / stop / migrate, pct list / config / enter, snapshots, clonación."
|
||||
"description": "qm list / config / start / stop / migrate, pct list / config / enter, snapshots y clonación."
|
||||
},
|
||||
{
|
||||
"icon": "HardDrive",
|
||||
@@ -46,25 +46,25 @@
|
||||
"icon": "Network",
|
||||
"href": "/docs/help-info/network-commands",
|
||||
"title": "Comandos de red",
|
||||
"description": "ip / ss / nmcli, inspección de bridges, ping / traceroute, consultas DNS, fail2ban-client."
|
||||
"description": "ip / ss / nmcli, inspección de bridges, ping / traceroute, consultas DNS y fail2ban-client."
|
||||
},
|
||||
{
|
||||
"icon": "Package",
|
||||
"href": "/docs/help-info/update-commands",
|
||||
"title": "Actualizaciones y paquetes",
|
||||
"description": "apt update / dist-upgrade, apt-cache policy, consultas dpkg, comprobación de ficheros de repositorio."
|
||||
"description": "apt update / dist-upgrade, apt-cache policy, consultas con dpkg y revisión de archivos de repositorios."
|
||||
},
|
||||
{
|
||||
"icon": "Cpu",
|
||||
"href": "/docs/help-info/gpu-commands",
|
||||
"title": "Passthrough de GPU",
|
||||
"description": "comprobaciones con lspci / dmesg, verificación de IOMMU, binding de vfio-pci, uso de GPU desde el host."
|
||||
"description": "Comprobaciones con lspci / dmesg, verificación de IOMMU, vinculación a vfio-pci y uso de GPU desde el host."
|
||||
},
|
||||
{
|
||||
"icon": "Database",
|
||||
"href": "/docs/help-info/zfs-commands",
|
||||
"title": "Gestión de ZFS",
|
||||
"description": "comandos zpool / zfs para estado, datasets, snapshots, send/receive, ajuste de ARC, trimming."
|
||||
"description": "Comandos zpool / zfs para estado, datasets, snapshots, send/receive, ajuste de ARC y TRIM."
|
||||
},
|
||||
{
|
||||
"icon": "Archive",
|
||||
@@ -76,7 +76,7 @@
|
||||
"icon": "Wrench",
|
||||
"href": "/docs/help-info/tools-commands",
|
||||
"title": "Herramientas CLI del sistema",
|
||||
"description": "tmux, screen, htop / btop, ncdu, jq, dig, lsof, watch — herramientas de administración del día a día."
|
||||
"description": "tmux, screen, htop / btop, ncdu, jq, dig, lsof, watch: herramientas de administración para el día a día."
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
},
|
||||
"header": {
|
||||
"title": "Comandos de red",
|
||||
"description": "Referencia curada para la red del host Proxmox: información de interfaces, pruebas de conectividad, configuración, monitorización de tráfico y gestión del firewall. Combina ip / ss / nmcli / ethtool / tcpdump / pve-firewall.",
|
||||
"description": "Selección de comandos de red para el host Proxmox: información de interfaces, pruebas de conectividad, configuración, monitorización de tráfico y gestión del firewall. Incluye ip / ss / nmcli / ethtool / tcpdump / pve-firewall.",
|
||||
"section": "Ayuda e información"
|
||||
},
|
||||
"intro": {
|
||||
@@ -88,11 +88,11 @@
|
||||
},
|
||||
{
|
||||
"command": "ip link set <iface> up",
|
||||
"description": "Levantar una interfaz de red"
|
||||
"description": "Activar una interfaz de red"
|
||||
},
|
||||
{
|
||||
"command": "ip link set <iface> down",
|
||||
"description": "Bajar una interfaz de red"
|
||||
"description": "Desactivar una interfaz de red"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -149,7 +149,7 @@
|
||||
],
|
||||
"iptablesTip": {
|
||||
"title": "iptables vs nftables",
|
||||
"bodyRich": "Debian / Proxmox modernos usan <strong>nftables</strong> como motor de firewall subyacente. El clásico <code>iptables -L -n -v</code> sigue funcionando como capa de traducción, pero la fuente de verdad es <code>nft list ruleset</code>. Los comandos <code>pve-firewall</code> son el wrapper de Proxmox que emite reglas nftables a partir de la configuración del firewall del clúster."
|
||||
"bodyRich": "El servicio clásico <code>pve-firewall</code> genera reglas de iptables. El servicio alternativo proxmox-firewall usa <strong>nftables</strong>. Consulta el backend iptables con <code>iptables -L -n -v</code> y el backend nftables con <code>nft list ruleset</code>. Usa las herramientas del backend activado; estos listados no son intercambiables."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relacionado",
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Comandos de almacenamiento y disco en Proxmox — lsblk, LVM, pvesm, qm importdisk | ProxMenux",
|
||||
"title": "Comandos de almacenamiento y discos de Proxmox — lsblk, LVM, pvesm, qm importdisk | ProxMenux",
|
||||
"description": "Referencia de comandos de almacenamiento y disco en Proxmox VE: lsblk, blkid, parted, lvdisplay, vgdisplay, pvs, mount, df, du, ncdu, pvesm status, qm importdisk y qemu-img convert para operaciones de disco de VM.",
|
||||
"ogTitle": "Comandos de almacenamiento y disco en Proxmox — lsblk, LVM, pvesm, qm importdisk",
|
||||
"ogTitle": "Comandos de almacenamiento y discos de Proxmox — lsblk, LVM, pvesm, qm importdisk",
|
||||
"ogDescription": "Referencia de comandos de almacenamiento y disco en Proxmox VE — inspección de discos, LVM, montajes, gestión de almacenamiento de Proxmox, importación de disco de VM y conversión de imágenes.",
|
||||
"twitterTitle": "Comandos de almacenamiento de Proxmox | ProxMenux",
|
||||
"twitterDescription": "Inspección de discos, información de montajes, gestión LVM, almacenamiento de Proxmox y comandos de importación / conversión de discos de VM."
|
||||
},
|
||||
"header": {
|
||||
"title": "Almacenamiento y discos",
|
||||
"description": "Referencia curada para inspección de almacenamiento en hosts Proxmox: dispositivos de bloque, particiones, montajes, volúmenes LVM, configuración de almacenamiento de Proxmox y algunas operaciones de disco de VM (importdisk, qemu-img convert).",
|
||||
"description": "Selección de comandos para inspeccionar el almacenamiento de hosts Proxmox: dispositivos de bloque, particiones, montajes, volúmenes LVM, configuración de Proxmox y operaciones con discos de VM (importdisk, qemu-img convert).",
|
||||
"section": "Ayuda e información"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Inventario rápido de discos",
|
||||
"body": "<code>lsblk</code> es la forma más rápida de ver todos los dispositivos de bloque y sus particiones en árbol. Para identificadores persistentes (que sobreviven entre reinicios y cambios de hardware) usa <code>ls -lh /dev/disk/by-id/</code>."
|
||||
"body": "<code>lsblk</code> muestra los dispositivos de bloque y sus particiones en árbol. Consulta los identificadores persistentes con <code>ls -lh /dev/disk/by-id/</code>: para un mismo disco suelen mantenerse tras reinicios o cambios en el orden de detección de los dispositivos. Sustituir el disco o cambiar cómo la controladora expone su identidad puede modificar su ruta by-id."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
@@ -104,16 +104,16 @@
|
||||
"description": "Mostrar el estado de todos los pools de almacenamiento"
|
||||
},
|
||||
{
|
||||
"command": "pvesm list",
|
||||
"description": "Listar todo el almacenamiento disponible"
|
||||
"command": "pvesm status --enabled 1",
|
||||
"description": "Listar los almacenamientos configurados y habilitados"
|
||||
},
|
||||
{
|
||||
"command": "pvesm list <storage>",
|
||||
"description": "Listar el contenido de un almacenamiento concreto"
|
||||
},
|
||||
{
|
||||
"command": "pvesm scan <storage>",
|
||||
"description": "Escanear el almacenamiento en busca de contenido nuevo"
|
||||
"command": "pvesm scan nfs <server>",
|
||||
"description": "Descubrir las exportaciones NFS de un servidor"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -122,7 +122,7 @@
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm importdisk <vmid> <image_path> <storage>",
|
||||
"description": "Adjuntar una imagen de disco a una VM"
|
||||
"description": "Importar la imagen como disco sin usar de la VM; hay que conectarlo después"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -<bus><index> <disk_path>",
|
||||
@@ -130,7 +130,7 @@
|
||||
},
|
||||
{
|
||||
"command": "qemu-img convert -O <format> <input> <output>",
|
||||
"description": "Convertir el formato de una imagen de disco"
|
||||
"description": "Convertir el formato de una imagen de disco sin uso activo"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -199,15 +199,15 @@
|
||||
],
|
||||
"lvmTip": {
|
||||
"title": "LVM: comandos cortos vs largos",
|
||||
"bodyRich": "Existen ambas formas por compatibilidad. <code>pvs</code> / <code>vgs</code> / <code>lvs</code> dan una tabla limpia de una línea por volumen; <code>pvdisplay</code> / <code>vgdisplay</code> / <code>lvdisplay</code> dan un volcado verboso de varias líneas por volumen. Para el día a día prefiere las versiones cortas."
|
||||
"bodyRich": "Existen ambas formas. <code>pvs</code> / <code>vgs</code> / <code>lvs</code> muestran tablas compactas con una fila por volumen físico, grupo de volúmenes o volumen lógico, respectivamente. <code>pvdisplay</code> / <code>vgdisplay</code> / <code>lvdisplay</code> ofrecen más detalle en varias líneas. Las formas cortas resultan prácticas para las consultas habituales."
|
||||
},
|
||||
"smartInfo": {
|
||||
"title": "SMART para discos mecánicos vs NVMe",
|
||||
"bodyRich": "<strong>Discos mecánicos / SATA / SAS</strong> usan la familia <code>smartctl</code> de <code>smartmontools</code> (instalada por defecto en Proxmox). Pasa el dispositivo como <code>/dev/sda</code>, <code>/dev/sdb</code>, etc. <strong>Los discos NVMe</strong> tienen su propio protocolo nativo — <code>smartctl</code> funciona contra ellos (pasa la mayoría de datos), pero la herramienta <code>nvme</code> de <code>nvme-cli</code> reporta más campos específicos de NVMe (wear levelling, errores de medio, info de namespace). Instala con <code>apt install nvme-cli</code> si no está."
|
||||
"title": "SMART en SATA/SAS frente a NVMe",
|
||||
"bodyRich": "<strong>Los discos SATA / SAS, incluidos los SSD,</strong> se pueden consultar con <code>smartctl</code> de <code>smartmontools</code>, instalado por defecto en Proxmox. Indica el dispositivo, por ejemplo <code>/dev/sda</code> o <code>/dev/sdb</code>. <strong>Los discos NVMe</strong> usan otro protocolo nativo. <code>smartctl</code> también los admite, mientras que <code>nvme</code> de <code>nvme-cli</code> ofrece consultas específicas de controladoras, namespaces y salud NVMe. Instálalo con <code>apt install nvme-cli</code> si falta."
|
||||
},
|
||||
"selfTestWarn": {
|
||||
"title": "Los self-tests se ejecutan en segundo plano",
|
||||
"bodyRich": "<code>smartctl -t short</code> y <code>-t long</code> retornan inmediatamente — el disco ejecuta el test por su cuenta. Comprueba el progreso con <code>smartctl -a /dev/<disk></code> (busca la línea \"Self-test routine in progress\") o espera a que termine y lee <code>smartctl -l selftest /dev/<disk></code>. Los tests cortos tardan ~2 min; los largos pueden tardar horas en mecánicos grandes. El disco sigue usable durante la prueba, pero el rendimiento de E/S baja."
|
||||
"bodyRich": "En discos compatibles, <code>smartctl -t short /dev/<disk></code> y <code>smartctl -t long /dev/<disk></code> inician pruebas en segundo plano y devuelven el control enseguida. Consulta el progreso con <code>smartctl -a /dev/<disk></code>, buscando \"Self-test routine in progress\", o espera y lee <code>smartctl -l selftest /dev/<disk></code>. Las cortas suelen tardar unos dos minutos; las largas pueden durar horas. El disco sigue disponible, aunque puede bajar el rendimiento de E/S."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relacionado",
|
||||
@@ -219,7 +219,7 @@
|
||||
},
|
||||
{
|
||||
"href": "/docs/disk-manager",
|
||||
"label": "Disk Manager",
|
||||
"label": "Administrador de discos",
|
||||
"tail": " — flujos interactivos de ProxMenux para passthrough de disco, importación, formateo y SMART."
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Comandos de sistema de Proxmox VE — pveversion, uptime, journalctl, systemctl | ProxMenux",
|
||||
"description": "Referencia de comandos esenciales de Proxmox VE y Linux: pveversion, pveperf, uptime, journalctl, systemctl, lscpu, lsblk, df, free, last, who. Todos son de solo lectura y seguros de ejecutar en cualquier host.",
|
||||
"description": "Comandos de Proxmox VE y Linux para versiones, tiempo de actividad, memoria, servicios, registros y usuarios, además de herramientas de auditoría y resumen. Incluye un comando de reinicio de servicio; los ejemplos no son todos de solo lectura.",
|
||||
"ogTitle": "Comandos de sistema de Proxmox VE — pveversion, uptime, journalctl, systemctl",
|
||||
"ogDescription": "Referencia de comandos esenciales de Proxmox VE y Linux — versión, uptime, servicios, logs, información de usuarios, exploración de hardware. Todos de solo lectura.",
|
||||
"ogDescription": "Comandos de Proxmox VE y Linux para versión, tiempo de actividad, servicios, registros y usuarios, con gestión de servicios y herramientas de auditoría.",
|
||||
"twitterTitle": "Comandos de sistema de Proxmox VE | ProxMenux",
|
||||
"twitterDescription": "Comandos esenciales de inspección del sistema para Proxmox VE — versión, estado, servicios, logs, información de usuarios."
|
||||
},
|
||||
"header": {
|
||||
"title": "Comandos de sistema útiles",
|
||||
"description": "Comandos de solo lectura para inspeccionar el host Proxmox: versión, kernel, uptime, memoria, estado de la interfaz web, últimas líneas de log, usuarios conectados y un par de herramientas de auditoría y resumen. Ninguno modifica el sistema.",
|
||||
"title": "Comandos útiles del sistema",
|
||||
"description": "Comandos para inspeccionar el host Proxmox: versión, kernel, tiempo de actividad, memoria, estado de la interfaz web, registros recientes y usuarios conectados, además de herramientas de auditoría y resumen. La mayoría consultan el estado, pero systemctl restart pveproxy reinicia el proxy web y las auditorías pueden escribir informes y registros.",
|
||||
"section": "Ayuda e información"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Qué es esto",
|
||||
"body": "La misma lista numerada que ProxMenux muestra cuando eliges <em>Comandos de sistema útiles</em>. Usa el botón Copiar para llevarte cualquier comando, o consúltalo para recordar el flag exacto."
|
||||
"body": "Es la misma lista numerada que ProxMenux muestra al elegir <em>Comandos útiles del sistema</em>. Usa el botón Copiar para copiar un comando o consulta la lista para recordar la opción exacta."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
@@ -141,12 +141,12 @@
|
||||
{
|
||||
"href": "/docs/help-info/update-commands",
|
||||
"label": "Actualizaciones y paquetes",
|
||||
"tail": " — comandos de apt y de actualización de pve."
|
||||
"tail": " — comandos de apt y de actualización de PVE."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/tools-commands",
|
||||
"label": "Herramientas CLI del sistema",
|
||||
"tail": " — htop, btop, ncdu y similares."
|
||||
"tail": " — htop, btop, ncdu y herramientas similares."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
},
|
||||
{
|
||||
"command": "tcpdump -i <interface>",
|
||||
"description": "Volcar tráfico de red"
|
||||
"description": "Capturar tráfico de red"
|
||||
},
|
||||
{
|
||||
"command": "netstat -tuln",
|
||||
@@ -191,7 +191,7 @@
|
||||
},
|
||||
{
|
||||
"command": "scp <file> <user>@<host>:<path>",
|
||||
"description": "Copiar ficheros de forma segura"
|
||||
"description": "Copiar archivos de forma segura"
|
||||
},
|
||||
{
|
||||
"command": "rsync -avz <src> <dest>",
|
||||
@@ -228,15 +228,15 @@
|
||||
},
|
||||
{
|
||||
"command": "timedatectl",
|
||||
"description": "Controlar la hora y fecha del sistema"
|
||||
"description": "Gestionar la hora y la fecha del sistema"
|
||||
},
|
||||
{
|
||||
"command": "hostnamectl",
|
||||
"description": "Controlar el hostname del sistema"
|
||||
"description": "Gestionar el nombre del host"
|
||||
},
|
||||
{
|
||||
"command": "localectl",
|
||||
"description": "Controlar el locale y el teclado del sistema"
|
||||
"description": "Gestionar la configuración regional y el teclado del sistema"
|
||||
},
|
||||
{
|
||||
"command": "update-alternatives --config <name>",
|
||||
@@ -251,7 +251,7 @@
|
||||
],
|
||||
"tmuxTip": {
|
||||
"title": "Usa tmux / screen para comandos de larga duración",
|
||||
"bodyRich": "Cualquier cosa que tarde más que un café — un backup, una actualización larga, un rsync grande — debería correr dentro de <code>tmux</code> o <code>screen</code>. Las desconexiones SSH no matan la sesión, y puedes reengancharte desde cualquier sitio con <code>tmux attach</code>."
|
||||
"bodyRich": "Ejecuta las tareas largas, como un backup, una actualización o una transferencia grande con rsync, dentro de <code>tmux</code> o <code>screen</code> para que una desconexión SSH no termine la sesión del terminal. En una sesión tmux, vuelve a conectarte al mismo host con el mismo usuario y ejecuta <code>tmux attach</code>. Las sesiones screen tienen su propio comando de reconexión."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relacionado",
|
||||
@@ -263,7 +263,7 @@
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/system-commands",
|
||||
"label": "Comandos de sistema útiles",
|
||||
"label": "Comandos útiles del sistema",
|
||||
"tail": " — comandos de inspección específicos de Proxmox."
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Comandos de actualización y paquetes en Proxmox — apt, pveupgrade, dpkg | ProxMenux",
|
||||
"title": "Comandos de actualización y paquetes de Proxmox — apt, pveupgrade, dpkg | ProxMenux",
|
||||
"description": "Referencia de comandos de actualización y paquetes para Proxmox VE: apt update, apt upgrade, apt dist-upgrade, pveupgrade, dpkg -l, consultas de información de paquetes y configuración de repositorios en /etc/apt/sources.list.d/.",
|
||||
"ogTitle": "Comandos de actualización y paquetes en Proxmox — apt, pveupgrade, dpkg",
|
||||
"ogTitle": "Comandos de actualización y paquetes de Proxmox — apt, pveupgrade, dpkg",
|
||||
"ogDescription": "Comandos apt, pveupgrade y dpkg para mantener Proxmox VE al día — actualizaciones del sistema, gestión de paquetes, configuración de repositorios.",
|
||||
"twitterTitle": "Comandos de actualización de Proxmox | ProxMenux",
|
||||
"twitterDescription": "Comandos apt y pveupgrade para gestionar actualizaciones y paquetes en hosts Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "Actualizaciones y paquetes",
|
||||
"description": "Referencia curada de comandos apt y de actualización específicos de Proxmox: actualizaciones del sistema, instalación / eliminación / purga de paquetes, consultas (apt-cache policy, dpkg -l) e inspección de la configuración de repositorios.",
|
||||
"description": "Selección de comandos apt y específicos de Proxmox: actualización del sistema, instalación, eliminación y purga de paquetes, consultas con apt-cache policy y dpkg -l, y revisión de repositorios.",
|
||||
"section": "Ayuda e información"
|
||||
},
|
||||
"intro": {
|
||||
@@ -22,7 +22,7 @@
|
||||
"commands": [
|
||||
{
|
||||
"command": "apt update && apt upgrade -y",
|
||||
"description": "Actualizar y mejorar todos los paquetes del sistema"
|
||||
"description": "Actualizar las listas y los paquetes instalados (apt upgrade)"
|
||||
},
|
||||
{
|
||||
"command": "apt dist-upgrade -y",
|
||||
@@ -51,15 +51,15 @@
|
||||
},
|
||||
{
|
||||
"command": "pveupgrade",
|
||||
"description": "Mostrar las actualizaciones disponibles de Proxmox"
|
||||
"description": "Iniciar la actualización interactiva de paquetes de Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "pve-upgrade",
|
||||
"description": "Realizar la actualización de Proxmox VE"
|
||||
"command": "pve8to9 --full",
|
||||
"description": "Comprobar si está preparado para pasar de PVE 8 a 9, sin realizar la actualización"
|
||||
},
|
||||
{
|
||||
"command": "pveceph upgrade",
|
||||
"description": "Actualizar los paquetes de Ceph (si Ceph está instalado)"
|
||||
"command": "ceph versions",
|
||||
"description": "Mostrar versiones de los demonios de Ceph antes de planificar su actualización"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -134,18 +134,18 @@
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/apt/sources.list.d/pve-enterprise.list",
|
||||
"description": "Mostrar la configuración del repo Proxmox Enterprise"
|
||||
"description": "Mostrar la configuración de Proxmox Enterprise del archivo .list de PVE 8"
|
||||
},
|
||||
{
|
||||
"command": "apt-key list",
|
||||
"description": "Listar las claves de firma de los repositorios"
|
||||
"description": "Listar claves de repositorios del sistema antiguo donde esté disponible apt-key"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"backupWarn": {
|
||||
"title": "Haz un backup antes de actualizaciones mayores",
|
||||
"bodyRich": "Para releases puntuales (8.4.1 → 8.4.5) el clásico <code>apt update && apt upgrade</code> es seguro. Para <strong>actualizaciones de versión mayor</strong> (PVE 8 → 9) usa el flujo dedicado de ProxMenux: <upgradeLink>Actualizar PVE 8 a PVE 9</upgradeLink> — añade comprobaciones previas, migración de repositorios y validación post-actualización."
|
||||
"title": "Haz un backup antes de las actualizaciones mayores",
|
||||
"bodyRich": "Para las actualizaciones habituales, Proxmox recomienda <code>apt update && apt full-upgrade</code>; revisa los cambios de paquetes antes de confirmar. Para <strong>actualizaciones de versión mayor</strong> (PVE 8 → 9), usa el procedimiento específico de ProxMenux: <upgradeLink>Actualizar PVE 8 a PVE 9</upgradeLink>. Añade comprobaciones previas, migración de repositorios y validación posterior. Haz un backup antes."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relacionado",
|
||||
@@ -153,7 +153,7 @@
|
||||
{
|
||||
"href": "/docs/utils/system-update",
|
||||
"label": "Actualización del sistema Proxmox (interactivo)",
|
||||
"tail": " — wrapper que hace todo esto con un diálogo de confirmación, una recompilación DKMS automática de los drivers gestionados por ProxMenux cuando se instala un kernel nuevo y un prompt de reinicio. También lanzable desde el botón Update Now del dashboard de ProxMenux Monitor."
|
||||
"tail": " — realiza estas tareas con confirmación, recompila mediante DKMS los controladores gestionados por ProxMenux cuando se instala un kernel nuevo y propone reiniciar. También se puede abrir desde Actualizar ahora en el panel de ProxMenux Monitor."
|
||||
},
|
||||
{
|
||||
"href": "/docs/utils/upgrade-pve8-pve9",
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
"ogTitle": "Comandos qm y pct de Proxmox — gestión de VM y contenedores LXC",
|
||||
"ogDescription": "Referencia de comandos qm y pct de Proxmox VE — gestiona máquinas virtuales y contenedores LXC desde la CLI: arrancar, parar, configurar, snapshot, migrar, clonar, destruir.",
|
||||
"twitterTitle": "Comandos qm / pct de Proxmox | ProxMenux",
|
||||
"twitterDescription": "Comandos qm / pct curados para gestionar máquinas virtuales y contenedores LXC en Proxmox VE."
|
||||
"twitterDescription": "Selección de comandos qm / pct para gestionar VM y contenedores LXC en Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "Gestión de VM y CT",
|
||||
"description": "Referencia curada de los comandos qm (VMs) y pct (contenedores LXC). Listado, ciclo de vida (start / stop / shutdown / destroy), inspección de configuración y operaciones específicas de contenedor como exec, enter, push y pull.",
|
||||
"description": "Selección de comandos qm para VM y pct para contenedores LXC. Listados, ciclo de vida (start / stop / shutdown / destroy), consulta de configuración y operaciones de contenedor como exec, enter, push y pull.",
|
||||
"section": "Ayuda e información"
|
||||
},
|
||||
"intro": {
|
||||
@@ -30,11 +30,11 @@
|
||||
},
|
||||
{
|
||||
"command": "qm config <vmid>",
|
||||
"description": "Mostrar la configuración de la VM (parseada por qm)"
|
||||
"description": "Mostrar la configuración de la VM interpretada por qm"
|
||||
},
|
||||
{
|
||||
"command": "pct config <ctid>",
|
||||
"description": "Mostrar la configuración del contenedor (parseada por pct)"
|
||||
"description": "Mostrar la configuración del contenedor interpretada por pct"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -84,7 +84,7 @@
|
||||
},
|
||||
{
|
||||
"command": "qm reset <vmid>",
|
||||
"description": "Resetear una máquina virtual (reinicio en caliente)"
|
||||
"description": "Forzar un reinicio de la máquina virtual (reset)"
|
||||
},
|
||||
{
|
||||
"command": "qm suspend <vmid>",
|
||||
@@ -116,7 +116,7 @@
|
||||
"description": "Apagar un contenedor de forma ordenada"
|
||||
},
|
||||
{
|
||||
"command": "pct restart <ctid>",
|
||||
"command": "pct reboot <ctid>",
|
||||
"description": "Reiniciar un contenedor"
|
||||
},
|
||||
{
|
||||
@@ -153,18 +153,18 @@
|
||||
],
|
||||
"destroyWarn": {
|
||||
"title": "Destroy es irreversible",
|
||||
"bodyRich": "<code>qm destroy</code> y <code>pct destroy</code> eliminan la VM / CT y todos sus discos. No hay confirmación por defecto. Haz un backup primero si hay alguna posibilidad de que quieras recuperar los datos — ver <backupLink>Backup y restauración</backupLink>."
|
||||
"bodyRich": "<code>qm destroy</code> y <code>pct destroy</code> eliminan la configuración del guest y sus volúmenes de disco gestionados. No supongas que borran los datos externos o montados por bind mount. La CLI no pide confirmación por defecto. Guarda antes cualquier dato que puedas necesitar; consulta <backupLink>Backup & Restore</backupLink>."
|
||||
},
|
||||
"qmConfigTip": {
|
||||
"title": "qm config vs editar el fichero .conf directamente",
|
||||
"bodyRich": "<code>qm config <vmid></code> y <code>pct config <ctid></code> leen el fichero a través del parser de Proxmox — la salida está normalizada, sin comentarios, y los cambios pendientes se muestran aparte. Editar <code>/etc/pve/qemu-server/<vmid>.conf</code> o <code>/etc/pve/lxc/<ctid>.conf</code> directamente salta el parser. Útil para arreglar una config corrupta o aplicar un ajuste que <code>qm set</code> no acepte, pero detén antes el guest para evitar races. El sistema de ficheros del clúster (<code>pmxcfs</code>) se encarga de propagar el cambio a los demás nodos."
|
||||
"title": "qm config frente a editar directamente el archivo .conf",
|
||||
"bodyRich": "<code>qm config <vmid></code> y <code>pct config <ctid></code> muestran la configuración mediante los analizadores de Proxmox. Para cambios normales, usa <code>qm set</code> o su equivalente de pct. Editar directamente <code>/etc/pve/qemu-server/<vmid>.conf</code> o <code>/etc/pve/lxc/<ctid>.conf</code> evita la validación y los bloqueos de los comandos de gestión; el archivo debe seguir siendo válido. Detén el guest y guarda una copia antes de repararlo a mano. <code>pmxcfs</code> sincroniza la configuración entre nodos del clúster, no el contenido de sus discos."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relacionado",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/backup-commands",
|
||||
"label": "Backup y restauración",
|
||||
"label": "Backup & Restore",
|
||||
"tail": " — vzdump y qmrestore / pct restore."
|
||||
},
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
},
|
||||
"header": {
|
||||
"title": "Gestión de ZFS",
|
||||
"description": "Referencia curada de comandos zpool y zfs: inspección de pools, CRUD de datasets, snapshots, clone y send/receive (incremental y recursivo), scrub / clear / replace para mantenimiento, además de estadísticas de E/S y resumen de ARC.",
|
||||
"description": "Selección de comandos zpool y zfs: consulta de pools, creación, lectura, modificación y borrado de datasets, snapshots, clone y send/receive incremental y recursivo, mantenimiento con scrub / clear / replace, estadísticas de E/S y resumen de ARC.",
|
||||
"section": "Ayuda e información"
|
||||
},
|
||||
"intro": {
|
||||
@@ -104,16 +104,16 @@
|
||||
},
|
||||
{
|
||||
"command": "zfs hold <tag> <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Poner un hold en un snapshot"
|
||||
"description": "Proteger un snapshot del borrado mediante un hold"
|
||||
},
|
||||
{
|
||||
"command": "zfs release <tag> <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Liberar un hold en un snapshot"
|
||||
"description": "Liberar la protección hold de un snapshot"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Clone y send/receive",
|
||||
"title": "Clonación y send/receive",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zfs clone <pool>/<dataset>@<snapshot> <pool>/<clone-name>",
|
||||
@@ -142,15 +142,15 @@
|
||||
"commands": [
|
||||
{
|
||||
"command": "zpool scrub <pool>",
|
||||
"description": "Iniciar un scrub sobre un pool"
|
||||
"description": "Iniciar una comprobación scrub del pool"
|
||||
},
|
||||
{
|
||||
"command": "zpool scrub -s <pool>",
|
||||
"description": "Parar un scrub en curso"
|
||||
"description": "Detener el scrub en curso"
|
||||
},
|
||||
{
|
||||
"command": "zpool clear <pool>",
|
||||
"description": "Limpiar los contadores de error de un pool"
|
||||
"description": "Reiniciar los contadores de errores del pool"
|
||||
},
|
||||
{
|
||||
"command": "zpool clear <pool> <device>",
|
||||
@@ -202,7 +202,7 @@
|
||||
],
|
||||
"bestPractices": {
|
||||
"title": "Buenas prácticas operativas",
|
||||
"bodyRich": "Ejecuta <code>zpool scrub</code> semanal o mensualmente para detectar corrupción silenciosa. Mantén al menos un 10-15% del pool libre — el rendimiento de ZFS cae con fuerza por encima del 80% lleno. Reemplaza siempre los dispositivos fallidos con <code>zpool replace</code> (in-place) en lugar de detach + add (que pierde la redundancia temporalmente)."
|
||||
"bodyRich": "Programa <code>zpool scrub</code> periódicamente para verificar las sumas de comprobación y revisa el resultado. Mantén espacio libre: el impacto de llenar el pool depende de la carga y la distribución. Usa <code>zpool replace</code> para sustituir un dispositivo fallido y sigue el procedimiento de su tipo de vdev. Detach + add no equivale a sustituirlo y puede cambiar la topología o eliminar redundancia."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relacionado",
|
||||
@@ -214,7 +214,7 @@
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/backup-commands",
|
||||
"label": "Backup y restauración",
|
||||
"label": "Backup & Restore",
|
||||
"tail": " — vzdump, qmrestore."
|
||||
},
|
||||
{
|
||||
|
||||
@@ -0,0 +1,235 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Commandes de sauvegarde Proxmox — vzdump, qmrestore, pct restore | ProxMenux",
|
||||
"description": "Référence des commandes de sauvegarde et de restauration Proxmox VE : vzdump pour les VM et les conteneurs LXC, qmrestore pour les VM, pct restore pour les conteneurs, sauvegardes planifiées dans /etc/pve/jobs.cfg, scripts de hook et chemins à exclure.",
|
||||
"ogTitle": "Commandes de sauvegarde Proxmox — vzdump, qmrestore, pct restore",
|
||||
"ogDescription": "Référence des commandes vzdump, qmrestore et pct restore pour sauvegarder et restaurer les VM et conteneurs LXC de Proxmox.",
|
||||
"twitterTitle": "Commandes de sauvegarde Proxmox | ProxMenux",
|
||||
"twitterDescription": "Commandes vzdump, qmrestore et pct restore pour sauvegarder et restaurer les VM et conteneurs Proxmox."
|
||||
},
|
||||
"header": {
|
||||
"title": "Sauvegarde et restauration",
|
||||
"description": "Référence commentée des commandes vzdump, qmrestore et pct restore pour les sauvegardes Proxmox. Comprend la planification, les options avancées comme les hook scripts, les chemins à exclure et la priorité des E/S, ainsi que la gestion des fichiers de sauvegarde.",
|
||||
"section": "Aide et informations"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Trois modes de sauvegarde",
|
||||
"body": "Pour les VM, <strong>snapshot</strong> effectue une sauvegarde à chaud sans nécessiter d’instantanés du stockage. <strong>suspend</strong> suspend la VM auparavant, sans nécessairement améliorer la cohérence. <strong>stop</strong> l’arrête d’abord ; une VM auparavant active peut reprendre après le début de la sauvegarde. Pour LXC, snapshot exige un stockage compatible avec les instantanés, suspend utilise deux passes rsync et stop maintient le conteneur arrêté pendant toute la sauvegarde."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Sauvegarde VM",
|
||||
"commands": [
|
||||
{
|
||||
"command": "vzdump <vmid>",
|
||||
"description": "Créer une sauvegarde d’une VM ou d’un CT donné"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --storage <storage>",
|
||||
"description": "Sauvegarder la VM vers un stockage donné"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mode snapshot",
|
||||
"description": "Créer une sauvegarde instantané (pour les VM)"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mode suspend",
|
||||
"description": "Suspendre la VM avant la sauvegarde à chaud, ancien mode suspend"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mode stop",
|
||||
"description": "Arrêter la VM avant de lancer la sauvegarde"
|
||||
},
|
||||
{
|
||||
"command": "vzdump --all",
|
||||
"description": "Sauvegarder toutes les VM et tous les conteneurs"
|
||||
},
|
||||
{
|
||||
"command": "vzdump --all --exclude <vmid1>,<vmid2>",
|
||||
"description": "Sauvegarde tous sauf les VM spécifiés"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Options de sauvegarde",
|
||||
"commands": [
|
||||
{
|
||||
"command": "vzdump <vmid> --compress zstd",
|
||||
"description": "Utiliser la compression zstd pour la sauvegarde"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --compress gzip --pigz <threads>",
|
||||
"description": "Utiliser pigz avec plusieurs threads"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --storage <storage> --notes-template <text>",
|
||||
"description": "Ajouter des notes à la sauvegarde"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mailto <email>",
|
||||
"description": "Envoyer un courriel de notification"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --prune-backups keep-last=<n>",
|
||||
"description": "Conserver seulement n sauvegardes par VM"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --stdexcludes 0",
|
||||
"description": "N'excluez pas les fichiers temporaires"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --quiet 1",
|
||||
"description": "Suppression des messages de sortie"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Restaurer les sauvegardes",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qmrestore <backup-file> <vmid>",
|
||||
"description": "Restaurer VM depuis la sauvegarde"
|
||||
},
|
||||
{
|
||||
"command": "qmrestore <backup-file> <vmid> --storage <storage>",
|
||||
"description": "Restaurer vers un stockage donné"
|
||||
},
|
||||
{
|
||||
"command": "qmrestore <backup-file> <vmid> --unique",
|
||||
"description": "Restaurer la VM avec de nouvelles adresses MAC aléatoires"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file>",
|
||||
"description": "Restaurer le conteneur de la sauvegarde"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file> --storage <storage>",
|
||||
"description": "Restaurer le conteneur vers un stockage donné"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file> --rootfs <storage>:<size-GiB>",
|
||||
"description": "Restaurer avec un disque racine alloué sur le stockage et avec la taille choisis"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file> --unprivileged 1",
|
||||
"description": "Restaurer en tant que CT non privilégié"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestion des sauvegardes",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ls -la /var/lib/vz/dump/",
|
||||
"description": "Lister les sauvegardes dans l'emplacement par défaut"
|
||||
},
|
||||
{
|
||||
"command": "find /var/lib/vz/dump/ -name \"*.vma*\"",
|
||||
"description": "Trouver des sauvegardes VM"
|
||||
},
|
||||
{
|
||||
"command": "find /var/lib/vz/dump/ -name \"*.tar*\"",
|
||||
"description": "Trouver des sauvegardes de conteneurs"
|
||||
},
|
||||
{
|
||||
"command": "pvesm list <storage> --content backup",
|
||||
"description": "Lister les sauvegardes dans le stockage spécifique"
|
||||
},
|
||||
{
|
||||
"command": "rm /var/lib/vz/dump/<backup-file>",
|
||||
"description": "Supprimer un fichier de sauvegarde"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/vzdump.conf",
|
||||
"description": "Afficher la configuration de sauvegarde"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Sauvegardes programmées",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/pve/jobs.cfg",
|
||||
"description": "Afficher le calendrier de sauvegarde"
|
||||
},
|
||||
{
|
||||
"command": "nano /etc/vzdump.conf",
|
||||
"description": "Modifier la configuration de sauvegarde"
|
||||
},
|
||||
{
|
||||
"command": "systemctl list-timers",
|
||||
"description": "Lister les minuteurs systemd"
|
||||
},
|
||||
{
|
||||
"command": "systemctl status cron",
|
||||
"description": "Vérifier l'état du service cron"
|
||||
},
|
||||
{
|
||||
"command": "pvenode task list --typefilter vzdump",
|
||||
"description": "Lister les tâches de sauvegarde terminées"
|
||||
},
|
||||
{
|
||||
"command": "pvenode task log <upid>",
|
||||
"description": "Afficher le journal d’une tâche de sauvegarde à partir de son UPID"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Opérations avancées",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qmrestore <backup> <vmid> --force",
|
||||
"description": "Forcer la restauration en écrasant la VM existante"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --dumpdir <directory>",
|
||||
"description": "Spécifier le répertoire de sauvegarde personnalisé"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --script <script>",
|
||||
"description": "Exécuter un script de hook pendant la sauvegarde"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --exclude-path <path>",
|
||||
"description": "Exclure les chemins spécifiques de la sauvegarde"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --ionice <priority>",
|
||||
"description": "Définir la priorité E/S pour le processus de sauvegarde"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --lockwait <minutes>",
|
||||
"description": "Attendez le verrou"
|
||||
},
|
||||
{
|
||||
"command": "qm importdisk <vmid> <disk-image> <storage>",
|
||||
"description": "Importer un fichier image disque (par exemple raw, qcow2 ou vmdk) comme disque inutilisé, pas une archive de sauvegarde vzdump"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"testRestores": {
|
||||
"title": "Testez vos restaurations",
|
||||
"bodyRich": "Restaurez régulièrement une sauvegarde vers un VMID de test libre avec <code>qmrestore --unique</code>, démarrez la VM dans un réseau de test isolé et vérifiez son contenu. L’option unique génère de nouvelles adresses MAC ; elle ne change ni les IP statiques ni les paramètres des applications. Testez les conteneurs de même avec <code>pct restore</code>."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Rubriques connexes",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/vm-ct-commands",
|
||||
"label": "Gestion VM et CT",
|
||||
"tail": "— commandes du cycle de vie qm et pct."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"label": "Stockage et disques",
|
||||
"tail": "— gestion du stockage pvesm."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Vue d’ensemble de l’aide et des informations",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Commandes de passthrough GPU dans Proxmox — lspci, VFIO, IOMMU, qm set hostpci | ProxMenux",
|
||||
"description": "Référence du passthrough GPU sur Proxmox VE : identification des périphériques avec lspci, modules VFIO, groupes IOMMU (intel_iommu / amd_iommu), mises à jour GRUB et initramfs, qm set hostpci0 et configuration NVIDIA / AMD / Intel.",
|
||||
"ogTitle": "Commandes de passthrough GPU dans Proxmox — lspci, VFIO, IOMMU, qm set hostpci",
|
||||
"ogDescription": "Référence pour inspecter et configurer le passthrough GPU dans Proxmox VE : périphériques PCI, modules VFIO, groupes IOMMU, paramètres de démarrage du noyau et qm set hostpci.",
|
||||
"twitterTitle": "Commandes de passthrough GPU dans Proxmox | ProxMenux",
|
||||
"twitterDescription": "Inspectez les périphériques PCI, configurez VFIO et IOMMU et attachez des GPU aux VM sur Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "Passthrough GPU",
|
||||
"description": "Référence pour l'inspection et la configuration de GPU / TPU passthrough sur Proxmox: identification du périphérique (lspci), configuration du module VFIO, validation IOMMU, mises à jour initramfs / GRUB et config passthrough par VM (qm set hostpci, machine q35, bios ovmf).",
|
||||
"section": "Aide et informations"
|
||||
},
|
||||
"intro": {
|
||||
"title": "IOMMU doit être activé en BIOS / UEFI",
|
||||
"body": "Activez d’abord IOMMU dans le firmware : cherchez <em>VT-d</em>, <em>AMD-Vi</em> ou <em>IOMMU</em> dans le BIOS/UEFI. Sous Linux, il est activé par défaut sur AMD et sur Intel avec les noyaux Proxmox 6.8 et ultérieurs. Les anciens noyaux Intel peuvent nécessiter <code>intel_iommu=on</code>. L’option <code>iommu=pt</code> contrôle le mode passthrough d’IOMMU ; elle ne justifie pas de désactiver systématiquement le framebuffer de l’hôte."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Identification du périphérique",
|
||||
"commands": [
|
||||
{
|
||||
"command": "lspci -nn | grep -i nvidia",
|
||||
"description": "Liste des périphériques NVIDIA PCI"
|
||||
},
|
||||
{
|
||||
"command": "lspci -nn | grep -i vga",
|
||||
"description": "Lister tous les appareils compatibles VGA"
|
||||
},
|
||||
{
|
||||
"command": "lspci -nn | grep -i amd",
|
||||
"description": "Liste des périphériques AMD PCI"
|
||||
},
|
||||
{
|
||||
"command": "lspci -nnk | grep -A3 VGA",
|
||||
"description": "Lister les périphériques VGA avec les pilotes du noyau"
|
||||
},
|
||||
{
|
||||
"command": "lspci -v -s <PCI_ID>",
|
||||
"description": "Afficher les informations détaillées pour un appareil PCI spécifique"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Configuration VFIO",
|
||||
"commands": [
|
||||
{
|
||||
"command": "dmesg | grep -i vfio",
|
||||
"description": "Vérifiez les messages du module VFIO"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/modprobe.d/vfio.conf",
|
||||
"description": "Consultez la configuration de passage VFIO"
|
||||
},
|
||||
{
|
||||
"command": "ls -la /etc/modprobe.d/",
|
||||
"description": "Liste tous les fichiers de configuration modprobe"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/modules",
|
||||
"description": "Afficher les modules chargés au démarrage"
|
||||
},
|
||||
{
|
||||
"command": "lsmod | grep vfio",
|
||||
"description": "Vérifier si les modules VFIO sont chargés"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Configuration IOMMU",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/default/grub",
|
||||
"description": "Vérifier les options GRUB pour IOMMU"
|
||||
},
|
||||
{
|
||||
"command": "update-grub",
|
||||
"description": "Appliquer les modifications GRUB"
|
||||
},
|
||||
{
|
||||
"command": "dmesg | grep -i iommu",
|
||||
"description": "Vérifiez les messages IOMMU dans le journal du noyau"
|
||||
},
|
||||
{
|
||||
"command": "dmesg | grep -e DMAR -e IOMMU",
|
||||
"description": "Vérifier les messages DMAR et IOMMU"
|
||||
},
|
||||
{
|
||||
"command": "find /sys/kernel/iommu_groups/ -type l | sort -V",
|
||||
"description": "Liste des groupes IOMMU"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Mises à jour du système",
|
||||
"commands": [
|
||||
{
|
||||
"command": "update-initramfs -u",
|
||||
"description": "Appliquer les modifications d'initramfs (VFIO)"
|
||||
},
|
||||
{
|
||||
"command": "update-initramfs -u -k all",
|
||||
"description": "Mettre à jour initramfs pour tous les noyaux"
|
||||
},
|
||||
{
|
||||
"command": "cat /proc/cmdline",
|
||||
"description": "Afficher les paramètres actuels de démarrage du noyau"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Configuration VM",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm config <vmid> | grep hostpci",
|
||||
"description": "Afficher la configuration de passthrough PCI d’une VM"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -hostpci0 <PCI_ID>,pcie=1,x-vga=1",
|
||||
"description": "Ajouter un passthrough GPU à une VM"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Afficher le fichier de configuration VM"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -machine q35",
|
||||
"description": "Définissez VM pour utiliser le jeu de puces Q35 (recommandé pour passer)"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -bios ovmf",
|
||||
"description": "Configurer la VM en UEFI/OVMF, recommandé si la ROM du GPU prend en charge UEFI"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"afterChangesTip": {
|
||||
"title": "Après modification des configurations GRUB ou modprobe",
|
||||
"bodyRich": "Sur les hôtes utilisant GRUB, appliquez les paramètres de démarrage avec <code>update-grub</code>. Actualisez les modules avec <code>update-initramfs -u -k all</code>, puis redémarrez. Les autres chargeurs d’amorçage ont leur propre procédure. Vérifiez <code>cat /proc/cmdline</code> (paramètres du noyau), <code>dmesg | grep -i iommu</code> (IOMMU initialisé) et <code>find /sys/kernel/iommu_groups/ -type l | sort -V</code> (groupes présents)."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Rubriques connexes",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/hardware/gpu-vm-passthrough",
|
||||
"label": "Ajouter GPU à VM (Passthrough)",
|
||||
"tail": "— flux interactif ProxMenux."
|
||||
},
|
||||
{
|
||||
"href": "/docs/hardware/igpu-acceleration-lxc",
|
||||
"label": "Ajouter un GPU à LXC",
|
||||
"tail": " — partager l’accès aux périphériques GPU de l’hôte avec un conteneur LXC."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Vue d’ensemble de l’aide et des informations",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Référence des commandes Proxmox — qm, pct, vzdump, zpool, pveversion | ProxMenux",
|
||||
"description": "Sélection de commandes essentielles de Proxmox VE et Linux, classées par thème : inspection du système, gestion des VM et LXC (qm / pct), stockage et disques, réseau, mises à jour, passthrough GPU, ZFS, sauvegarde et restauration, et outils de terminal au quotidien.",
|
||||
"ogTitle": "Référence des commandes Proxmox — qm, pct, vzdump, zpool",
|
||||
"ogDescription": "Sélection de commandes utiles de Proxmox VE et Linux par thème : système, VM/CT, stockage, réseau, mises à jour, passthrough GPU, ZFS, sauvegarde et outils CLI.",
|
||||
"twitterTitle": "Référence des commandes Proxmox | ProxMenux",
|
||||
"twitterDescription": "Sélection de commandes utiles de Proxmox VE et Linux, regroupées par thème."
|
||||
},
|
||||
"header": {
|
||||
"title": "Aide et informations",
|
||||
"description": "Sélection de commandes utiles de Linux et Proxmox VE par thème. Les neuf catégories vont d’une simple vérification avec pveversion à une séquence multiligne de zfs send/receive. Cette référence complète les sections GPU, disques et partages de ProxMenux.",
|
||||
"section": "Aide et informations"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Ce que c'est",
|
||||
"body": "Un catalogue des commandes utilisées au quotidien sur un hôte Proxmox, regroupées par thème. Dans ProxMenux, choisissez un numéro pour exécuter directement une commande ou collez la vôtre à l’invite. Sur ce site, chaque catégorie est présentée dans un tableau prêt à copier."
|
||||
},
|
||||
"opening": {
|
||||
"heading": "Ouverture du menu",
|
||||
"body": "À partir du menu principal de ProxMenux, appuyez sur <kbd>h</kbd>. Vous verrez ceci :",
|
||||
"imageAlt": "Menu Aide et informations avec neuf catégories de commandes"
|
||||
},
|
||||
"categories": {
|
||||
"heading": "Les neuf catégories",
|
||||
"options": [
|
||||
{
|
||||
"icon": "Terminal",
|
||||
"href": "/docs/help-info/system-commands",
|
||||
"title": "Commandes système utiles",
|
||||
"description": "pveversion, uptime, free, journalctl, hostnamectl, informations sur l’utilisateur courant, audit lynis et fastfetch."
|
||||
},
|
||||
{
|
||||
"icon": "Cpu",
|
||||
"href": "/docs/help-info/vm-ct-commands",
|
||||
"title": "Gestion VM et CT",
|
||||
"description": "qm list / config / start / stop / migrate, pct list / config / enter, instantanés et clonage."
|
||||
},
|
||||
{
|
||||
"icon": "HardDrive",
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"title": "Stockage et disques",
|
||||
"description": "lsblk, blkid, smartctl, informations sur les montages, pvesm status et commandes LVM."
|
||||
},
|
||||
{
|
||||
"icon": "Network",
|
||||
"href": "/docs/help-info/network-commands",
|
||||
"title": "Commandes réseau",
|
||||
"description": "ip / ss / nmcli, inspection des ponts réseau, ping / traceroute, requêtes DNS et fail2ban-client."
|
||||
},
|
||||
{
|
||||
"icon": "Package",
|
||||
"href": "/docs/help-info/update-commands",
|
||||
"title": "Mises à jour et paquets",
|
||||
"description": "apt update / dist-upgrade, apt-cache policy, requêtes dpkg et vérification des fichiers de dépôts."
|
||||
},
|
||||
{
|
||||
"icon": "Cpu",
|
||||
"href": "/docs/help-info/gpu-commands",
|
||||
"title": "Passthrough GPU",
|
||||
"description": "Vérifications avec lspci / dmesg, contrôle de l’activation d’IOMMU, liaison à vfio-pci et utilisation du GPU depuis l’hôte."
|
||||
},
|
||||
{
|
||||
"icon": "Database",
|
||||
"href": "/docs/help-info/zfs-commands",
|
||||
"title": "Gestion ZFS",
|
||||
"description": "Commandes zpool / zfs pour l’état, les datasets, les instantanés, send/receive, le réglage d’ARC et TRIM."
|
||||
},
|
||||
{
|
||||
"icon": "Archive",
|
||||
"href": "/docs/help-info/backup-commands",
|
||||
"title": "Sauvegarde et restauration",
|
||||
"description": "vzdump, qmrestore / pct restore, outils pour Proxmox Backup Server et opérations sur les instantanés."
|
||||
},
|
||||
{
|
||||
"icon": "Wrench",
|
||||
"href": "/docs/help-info/tools-commands",
|
||||
"title": "Outils CLI système",
|
||||
"description": "tmux, screen, htop / btop, ncdu, jq, dig, lsof, watch — outils d’administration au quotidien."
|
||||
}
|
||||
]
|
||||
},
|
||||
"tip": {
|
||||
"title": "Recherche à partir de la recherche globale",
|
||||
"body": "Toutes les commandes de ces pages sont indexées par la recherche de la documentation. Si vous vous souvenez d’une option ou d’un fragment, mais pas de la page, utilisez la barre de recherche en haut pour retrouver directement la bonne entrée."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,174 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Commandes réseau Proxmox — ip, ping, ss, pve-firewall, iptables | ProxMenux",
|
||||
"description": "Référence des commandes réseau de l’hôte Proxmox VE : ip / ip link / ip addr, ping, traceroute, mtr, ss, ethtool, dig, nslookup, ainsi que pve-firewall, iptables et nftables pour le filtrage. Inspection des ponts, des agrégations de liens et des VLAN.",
|
||||
"ogTitle": "Commandes réseau Proxmox — ip, ping, ss, pve-firewall, iptables",
|
||||
"ogDescription": "Commandes réseau pour Proxmox VE : inspection des interfaces, tests de connectivité, surveillance, pare-feu (pve-firewall, iptables, nftables) et requêtes DNS.",
|
||||
"twitterTitle": "Commandes réseau Proxmox | ProxMenux",
|
||||
"twitterDescription": "Commandes d'inspection, de test, de configuration et de pare-feu réseau pour Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "Commandes réseau",
|
||||
"description": "Sélection de commandes réseau pour l’hôte Proxmox : informations sur les interfaces, tests de connectivité, configuration, surveillance du trafic et gestion du pare-feu. Inclut ip / ss / nmcli / ethtool / tcpdump / pve-firewall.",
|
||||
"section": "Aide et informations"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Inventaire rapide des interfaces",
|
||||
"body": "<code>ip a</code> affiche chaque interface avec ses IP et MAC. <code>ip r</code> affiche la table de routage. Ensemble, ils répondent à la plupart des questions « cette interface est-elle configurée correctement ? » en quelques secondes."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Information réseau",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ip a",
|
||||
"description": "Afficher les interfaces réseau et les adresses IP"
|
||||
},
|
||||
{
|
||||
"command": "ip r",
|
||||
"description": "Afficher la table de routage"
|
||||
},
|
||||
{
|
||||
"command": "ip -s link",
|
||||
"description": "Afficher les statistiques de trafic par interface"
|
||||
},
|
||||
{
|
||||
"command": "brctl show",
|
||||
"description": "Afficher les ponts réseau configurés"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/network/interfaces",
|
||||
"description": "Afficher la configuration réseau brute"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Essais en réseau",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ping <host>",
|
||||
"description": "Vérifiez la connectivité avec un autre hôte"
|
||||
},
|
||||
{
|
||||
"command": "traceroute <host>",
|
||||
"description": "Tracer la route vers un hôte"
|
||||
},
|
||||
{
|
||||
"command": "mtr <host>",
|
||||
"description": "Combiner ping et traceroute en temps réel"
|
||||
},
|
||||
{
|
||||
"command": "dig <domain>",
|
||||
"description": "Recherche DNS pour un domaine"
|
||||
},
|
||||
{
|
||||
"command": "nslookup <domain>",
|
||||
"description": "Autre recherche DNS"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Configuration réseau",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ifreload -a",
|
||||
"description": "Recharger la configuration réseau (ifupdown2)"
|
||||
},
|
||||
{
|
||||
"command": "ethtool <iface>",
|
||||
"description": "Afficher les informations sur le périphérique Ethernet"
|
||||
},
|
||||
{
|
||||
"command": "resolvectl status",
|
||||
"description": "Afficher l'état de la résolution DNS"
|
||||
},
|
||||
{
|
||||
"command": "nmcli device show",
|
||||
"description": "Afficher les détails du périphérique réseau (si NetworkManager est utilisé)"
|
||||
},
|
||||
{
|
||||
"command": "ip link set <iface> up",
|
||||
"description": "Activer une interface réseau"
|
||||
},
|
||||
{
|
||||
"command": "ip link set <iface> down",
|
||||
"description": "Désactiver une interface réseau"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Surveillance des réseaux",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ss -tuln",
|
||||
"description": "Afficher les ports d'écoute (TCP/UDP)"
|
||||
},
|
||||
{
|
||||
"command": "netstat -tuln",
|
||||
"description": "Autre commande pour afficher les ports en écoute"
|
||||
},
|
||||
{
|
||||
"command": "lsof -i",
|
||||
"description": "Liste des fichiers et connexions réseau ouverts"
|
||||
},
|
||||
{
|
||||
"command": "tcpdump -i <iface>",
|
||||
"description": "Capturer les paquets sur l'interface"
|
||||
},
|
||||
{
|
||||
"command": "iftop -i <iface>",
|
||||
"description": "Surveiller l'utilisation de la bande passante sur l'interface"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestion du pare-feu",
|
||||
"commands": [
|
||||
{
|
||||
"command": "iptables -L -n -v",
|
||||
"description": "Afficher les règles de pare-feu actives (iptables)"
|
||||
},
|
||||
{
|
||||
"command": "nft list ruleset",
|
||||
"description": "Afficher les règles nftables"
|
||||
},
|
||||
{
|
||||
"command": "pve-firewall status",
|
||||
"description": "Vérifier l'état du pare-feu Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "pve-firewall compile",
|
||||
"description": "Compiler les règles de pare-feu pour tous les nœuds"
|
||||
},
|
||||
{
|
||||
"command": "pve-firewall reload",
|
||||
"description": "Recharger les règles du pare-feu Proxmox"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"iptablesTip": {
|
||||
"title": "iptables vs nftables",
|
||||
"bodyRich": "Le service classique <code>pve-firewall</code> génère des règles iptables. Le service alternatif proxmox-firewall utilise <strong>nftables</strong>. Inspectez le moteur iptables avec <code>iptables -L -n -v</code> et le moteur nftables avec <code>nft list ruleset</code>. Utilisez les outils du moteur activé : ces listes ne sont pas interchangeables."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Rubriques connexes",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/network",
|
||||
"label": "Gestion du réseau",
|
||||
"tail": "— outils de réseau interactifs ProxMenux (analyse des ponts, noms persistants, surveillance)."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/tools-commands",
|
||||
"label": "Outils CLI système",
|
||||
"tail": "— davantage d'outils de surveillance des réseaux."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Vue d’ensemble de l’aide et des informations",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,232 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Commandes de stockage et de disques Proxmox — lsblk, LVM, pvesm, qm importdisk | ProxMenux",
|
||||
"description": "Référence des commandes de stockage et de disque sous Proxmox VE : lsblk, blkid, parted, lvdisplay, vgdisplay, pvs, mount, df, du, ncdu et pvesm status, ainsi que qm importdisk et qemu-img convert pour les disques de VM.",
|
||||
"ogTitle": "Commandes de stockage et de disques Proxmox — lsblk, LVM, pvesm, qm importdisk",
|
||||
"ogDescription": "Référence des commandes de stockage et de disque sur Proxmox VE — inspection du disque, LVM, montages, gestion du stockage Proxmox, importation de disque VM et conversion d'image.",
|
||||
"twitterTitle": "Commandes de stockage Proxmox | ProxMenux",
|
||||
"twitterDescription": "Inspection de disque, informations de montage, gestion LVM, stockage Proxmox et commandes d'importation / conversion de disque VM."
|
||||
},
|
||||
"header": {
|
||||
"title": "Stockage et disques",
|
||||
"description": "Sélection de commandes pour inspecter le stockage des hôtes Proxmox : périphériques blocs, partitions, montages, volumes LVM, configuration du stockage et opérations sur les disques VM (importdisk, qemu-img convert).",
|
||||
"section": "Aide et informations"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Inventaire rapide du disque",
|
||||
"body": "<code>lsblk</code> affiche les périphériques blocs et leurs partitions en arborescence. Consultez leurs identifiants persistants avec <code>ls -lh /dev/disk/by-id/</code> : pour un même disque, ils restent généralement stables après un redémarrage ou un changement d’ordre des périphériques. Remplacer le disque ou modifier la façon dont le contrôleur expose son identité peut changer le chemin by-id."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Informations sur le disque",
|
||||
"commands": [
|
||||
{
|
||||
"command": "lsblk",
|
||||
"description": "Lister les périphériques blocs et les partitions"
|
||||
},
|
||||
{
|
||||
"command": "fdisk -l",
|
||||
"description": "Répertorier les disques avec des informations détaillées"
|
||||
},
|
||||
{
|
||||
"command": "blkid",
|
||||
"description": "Afficher l'UUID et le type de système de fichiers des périphériques de bloc"
|
||||
},
|
||||
{
|
||||
"command": "ls -lh /dev/disk/by-id/",
|
||||
"description": "Répertorier les identifiants persistants du disque"
|
||||
},
|
||||
{
|
||||
"command": "parted -l",
|
||||
"description": "Disposition détaillée des partitions avec informations GPT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Utilisation du stockage",
|
||||
"commands": [
|
||||
{
|
||||
"command": "df -h",
|
||||
"description": "Afficher l'utilisation du disque par point de montage"
|
||||
},
|
||||
{
|
||||
"command": "du -sh /path",
|
||||
"description": "Afficher la taille d'un répertoire"
|
||||
},
|
||||
{
|
||||
"command": "mount | grep ^/dev",
|
||||
"description": "Afficher les périphériques de stockage montés"
|
||||
},
|
||||
{
|
||||
"command": "cat /proc/mounts",
|
||||
"description": "Afficher tous les montages actifs du noyau"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestion de LVM",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pvdisplay",
|
||||
"description": "Afficher les volumes physiques (LVM)"
|
||||
},
|
||||
{
|
||||
"command": "vgdisplay",
|
||||
"description": "Afficher les groupes de volumes (LVM)"
|
||||
},
|
||||
{
|
||||
"command": "lvdisplay",
|
||||
"description": "Afficher les volumes logiques (LVM)"
|
||||
},
|
||||
{
|
||||
"command": "pvs",
|
||||
"description": "Sortie concise des volumes physiques"
|
||||
},
|
||||
{
|
||||
"command": "vgs",
|
||||
"description": "Sortie concise des groupes de volumes"
|
||||
},
|
||||
{
|
||||
"command": "lvs",
|
||||
"description": "Sortie concise des volumes logiques"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Stockage Proxmox",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/pve/storage.cfg",
|
||||
"description": "Afficher la configuration du stockage Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "pvesm status",
|
||||
"description": "Afficher l'état de tous les pools de stockage"
|
||||
},
|
||||
{
|
||||
"command": "pvesm status --enabled 1",
|
||||
"description": "Lister les stockages configurés et activés"
|
||||
},
|
||||
{
|
||||
"command": "pvesm list <storage>",
|
||||
"description": "Répertorier le contenu d'un stockage spécifique"
|
||||
},
|
||||
{
|
||||
"command": "pvesm scan nfs <server>",
|
||||
"description": "Découvrir les exports NFS d’un serveur"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Actions du disque",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm importdisk <vmid> <image_path> <storage>",
|
||||
"description": "Importer l’image comme disque inutilisé de la VM, puis l’attacher séparément"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -<bus><index> <disk_path>",
|
||||
"description": "Attribuer le disque physique au VM (mode passant)"
|
||||
},
|
||||
{
|
||||
"command": "qemu-img convert -O <format> <input> <output>",
|
||||
"description": "Convertir le format d’une image disque hors ligne"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Santé des disques SMART",
|
||||
"commands": [
|
||||
{
|
||||
"command": "smartctl --scan",
|
||||
"description": "Liste des périphériques compatibles SMART sur l'hôte"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -i /dev/<disk>",
|
||||
"description": "Informations de base sur l'appareil (modèle, firmware, série)"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -H /dev/<disk>",
|
||||
"description": "Vérification rapide de l’état général : PASSED / FAILED"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -A /dev/<disk>",
|
||||
"description": "Attributs SMART uniquement (valeurs brutes, seuils)"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -a /dev/<disk>",
|
||||
"description": "Informations SMART complètes : appareil, attributs et journal des autotests"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -t short /dev/<disk>",
|
||||
"description": "Lancer un autotest court, environ deux minutes en arrière-plan"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -t long /dev/<disk>",
|
||||
"description": "Lancer un autotest long, plusieurs heures en arrière-plan"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -l selftest /dev/<disk>",
|
||||
"description": "Voir le journal d'auto-essai (résultats des tests passés)"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -X /dev/<disk>",
|
||||
"description": "Interrompre l’autotest en cours"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Santé des disques NVMe",
|
||||
"commands": [
|
||||
{
|
||||
"command": "nvme list",
|
||||
"description": "Liste des dispositifs NVMe visibles au noyau"
|
||||
},
|
||||
{
|
||||
"command": "nvme smart-log /dev/<nvme>",
|
||||
"description": "NVMe-spécifique SMART log (température, usure, erreurs)"
|
||||
},
|
||||
{
|
||||
"command": "nvme id-ctrl /dev/<nvme>",
|
||||
"description": "Informations de contrôleur (modèle, firmware, capacités)"
|
||||
},
|
||||
{
|
||||
"command": "nvme error-log /dev/<nvme>",
|
||||
"description": "Entrées récentes du journal des erreurs NVMe"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"lvmTip": {
|
||||
"title": "LVM commandes courtes vs longues",
|
||||
"bodyRich": "Les deux formes sont disponibles. <code>pvs</code> / <code>vgs</code> / <code>lvs</code> produisent des tableaux compacts avec une ligne par volume physique, groupe de volumes ou volume logique, respectivement. <code>pvdisplay</code> / <code>vgdisplay</code> / <code>lvdisplay</code> fournissent davantage de détails sur plusieurs lignes. Les formes courtes sont pratiques au quotidien."
|
||||
},
|
||||
"smartInfo": {
|
||||
"title": "SMART pour SATA/SAS et NVMe",
|
||||
"bodyRich": "<strong>Les disques SATA / SAS, y compris les SSD,</strong> peuvent être inspectés avec <code>smartctl</code> de <code>smartmontools</code>, installé par défaut sur Proxmox. Indiquez le périphérique, par exemple <code>/dev/sda</code> ou <code>/dev/sdb</code>. <strong>Les disques NVMe</strong> utilisent un autre protocole natif. <code>smartctl</code> les prend aussi en charge ; <code>nvme</code> de <code>nvme-cli</code> fournit des requêtes propres aux contrôleurs, espaces de noms et informations de santé NVMe. Installez-le avec <code>apt install nvme-cli</code> s’il manque."
|
||||
},
|
||||
"selfTestWarn": {
|
||||
"title": "Les auto-tests se déroulent en arrière-plan",
|
||||
"bodyRich": "Sur les disques compatibles, <code>smartctl -t short /dev/<disk></code> et <code>smartctl -t long /dev/<disk></code> lancent des tests en arrière-plan et rendent immédiatement la main. Vérifiez la progression avec <code>smartctl -a /dev/<disk></code>, en cherchant \"Self-test routine in progress\", ou attendez et lisez <code>smartctl -l selftest /dev/<disk></code>. Les tests courts durent souvent deux minutes, les longs peuvent prendre des heures. Le disque reste utilisable, avec une baisse possible des performances d’E/S."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Rubriques connexes",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/zfs-commands",
|
||||
"label": "Gestion ZFS",
|
||||
"tail": "— commandes zpool / zfs pour le stockage soutenu par ZFS."
|
||||
},
|
||||
{
|
||||
"href": "/docs/disk-manager",
|
||||
"label": "Gestionnaire de disque",
|
||||
"tail": "— flux interactifs ProxMenux pour la transmission du disque, l'importation, le formatage, SMART."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Vue d’ensemble de l’aide et des informations",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Commandes système Proxmox VE — pveversion, uptime, journalctl, systemctl | ProxMenux",
|
||||
"description": "Commandes système Proxmox VE et Linux pour les versions, la durée de fonctionnement, la mémoire, les services, les journaux et les utilisateurs, avec des outils d’audit et de synthèse. Une commande redémarre un service : tous les exemples ne sont pas en lecture seule.",
|
||||
"ogTitle": "Commandes système Proxmox VE — pveversion, uptime, journalctl, systemctl",
|
||||
"ogDescription": "Commandes système Proxmox VE et Linux pour la version, la durée de fonctionnement, les services, les journaux et les utilisateurs, avec gestion des services et outils d’audit.",
|
||||
"twitterTitle": "Commandes système Proxmox VE | ProxMenux",
|
||||
"twitterDescription": "Commandes essentielles d'inspection du système pour Proxmox VE — version, état, services, journaux, informations utilisateur."
|
||||
},
|
||||
"header": {
|
||||
"title": "Commandes système utiles",
|
||||
"description": "Commandes d’inspection de l’hôte Proxmox : version, noyau, durée de fonctionnement, mémoire, état de l’interface web, journaux récents et utilisateurs connectés, avec des outils d’audit et de synthèse. La plupart consultent l’état, mais systemctl restart pveproxy redémarre le proxy web et les audits peuvent écrire des rapports et des journaux.",
|
||||
"section": "Aide et informations"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Ce que c'est",
|
||||
"body": "La même liste numérotée que dans <em>Commandes système utiles</em> dans ProxMenux. Utilisez le bouton Copier pour récupérer une commande ou consultez la liste pour retrouver l’option exacte."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Informations système",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pveversion",
|
||||
"description": "Afficher la version de Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "pveversion -v",
|
||||
"description": "Informations détaillées sur la version Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "hostnamectl",
|
||||
"description": "Nom d'hôte du système et informations sur le noyau"
|
||||
},
|
||||
{
|
||||
"command": "uname -a",
|
||||
"description": "Informations sur le noyau et l'architecture"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/os-release",
|
||||
"description": "Détails de la version du système d'exploitation"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "État du système",
|
||||
"commands": [
|
||||
{
|
||||
"command": "uptime",
|
||||
"description": "Durée de fonctionnement du système"
|
||||
},
|
||||
{
|
||||
"command": "uptime -p",
|
||||
"description": "Durée de fonctionnement dans un format lisible"
|
||||
},
|
||||
{
|
||||
"command": "free -h",
|
||||
"description": "Utilisation de la RAM et du swap"
|
||||
},
|
||||
{
|
||||
"command": "who -b",
|
||||
"description": "Heure du dernier démarrage du système"
|
||||
},
|
||||
{
|
||||
"command": "last -x | grep shutdown",
|
||||
"description": "Arrêts précédents"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestion des services",
|
||||
"commands": [
|
||||
{
|
||||
"command": "systemctl status pveproxy",
|
||||
"description": "Vérifier l'état de l'interface utilisateur Web de Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "systemctl restart pveproxy",
|
||||
"description": "Redémarrer le proxy de l'interface utilisateur Web"
|
||||
},
|
||||
{
|
||||
"command": "journalctl -xe",
|
||||
"description": "Erreurs système et journaux"
|
||||
},
|
||||
{
|
||||
"command": "dmesg -T | tail -n 50",
|
||||
"description": "50 dernières lignes de journal du noyau"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Informations utilisateur",
|
||||
"commands": [
|
||||
{
|
||||
"command": "whoami",
|
||||
"description": "Utilisateur actuel"
|
||||
},
|
||||
{
|
||||
"command": "id",
|
||||
"description": "UID, GID et groupes de l'utilisateur actuel"
|
||||
},
|
||||
{
|
||||
"command": "who",
|
||||
"description": "Utilisateurs connectés"
|
||||
},
|
||||
{
|
||||
"command": "w",
|
||||
"description": "Activité des utilisateurs et durée de fonctionnement"
|
||||
},
|
||||
{
|
||||
"command": "uptime && w",
|
||||
"description": "Durée de fonctionnement et utilisateurs connectés"
|
||||
},
|
||||
{
|
||||
"command": "cut -d: -f1,3,4 /etc/passwd",
|
||||
"description": "Tous les utilisateurs avec UID et GID"
|
||||
},
|
||||
{
|
||||
"command": "getent passwd | column -t -s :",
|
||||
"description": "Table utilisateur lisible (UID, shell, etc.)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Outils de vérification et de résumé",
|
||||
"commands": [
|
||||
{
|
||||
"command": "lynis audit system",
|
||||
"description": "Exécuter un audit complet de la sécurité du système"
|
||||
},
|
||||
{
|
||||
"command": "fastfetch",
|
||||
"description": "Afficher le résumé du système au format ASCII"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"related": {
|
||||
"heading": "Rubriques connexes",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/update-commands",
|
||||
"label": "Mises à jour et paquets",
|
||||
"tail": " — commandes apt et de mise à niveau de PVE."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/tools-commands",
|
||||
"label": "Outils CLI système",
|
||||
"tail": " — htop, btop, ncdu et outils similaires."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Vue d’ensemble de l’aide et des informations",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,276 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Outils CLI Linux pour Proxmox — htop, iftop, journalctl, rsync, tmux | ProxMenux",
|
||||
"description": "Outils CLI Linux pour administrer Proxmox VE au quotidien : surveillance (htop, atop, glances, iotop), réseau (iftop, nmap, mtr, ss), fichiers et texte (find, grep, journalctl), performances (iostat, perf, strace), sécurité (fail2ban, lynis, lsof) et administration à distance (ssh, rsync, tmux).",
|
||||
"ogTitle": "Outils CLI Linux pour Proxmox — htop, iftop, journalctl, rsync, tmux",
|
||||
"ogDescription": "Outils quotidiens CLI pour l'administration Proxmox VE regroupés par fonction : surveillance, réseau, fichier/texte, performance, sécurité et administration à distance.",
|
||||
"twitterTitle": "Outils CLI Linux pour Proxmox | ProxMenux",
|
||||
"twitterDescription": "Outils CLI pour administrer Proxmox VE au quotidien, regroupés par fonction."
|
||||
},
|
||||
"header": {
|
||||
"title": "Outils CLI système",
|
||||
"description": "Outils CLI pour administrer l’hôte Proxmox au quotidien, classés par fonction : surveillance, réseau, fichiers et texte, analyse des performances, sécurité, administration à distance et configuration du système.",
|
||||
"section": "Aide et informations"
|
||||
},
|
||||
"intro": {
|
||||
"title": "La plupart sont installés par le script de post-installation",
|
||||
"body": "Si vous avez exécuté le script de post-installation avec les choix par défaut, la plupart de ces outils sont déjà installés. Pour les outils manquants, l’<utilsLink>installateur d’utilitaires système</utilsLink> de ProxMenux propose des groupes prédéfinis : base, développement, réseau, analyse, etc."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Surveillance du système",
|
||||
"commands": [
|
||||
{
|
||||
"command": "htop",
|
||||
"description": "Visualiseur interactif des processus avec utilisation du CPU et de la mémoire"
|
||||
},
|
||||
{
|
||||
"command": "top",
|
||||
"description": "Afficher les processus Linux en temps réel"
|
||||
},
|
||||
{
|
||||
"command": "atop",
|
||||
"description": "Moniteur avancé du système et des processus"
|
||||
},
|
||||
{
|
||||
"command": "glances",
|
||||
"description": "Outil de surveillance du système avec interface web"
|
||||
},
|
||||
{
|
||||
"command": "nmon",
|
||||
"description": "Outil de surveillance des performances"
|
||||
},
|
||||
{
|
||||
"command": "iotop",
|
||||
"description": "Surveiller les entrées-sorties disque des processus"
|
||||
},
|
||||
{
|
||||
"command": "vmstat 1",
|
||||
"description": "Signaler des statistiques de mémoire virtuelle chaque seconde"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Outils réseau",
|
||||
"commands": [
|
||||
{
|
||||
"command": "iftop",
|
||||
"description": "Affichage de l'utilisation de la bande passante sur une interface"
|
||||
},
|
||||
{
|
||||
"command": "nmap <host>",
|
||||
"description": "Exploration du réseau et balayage de sécurité"
|
||||
},
|
||||
{
|
||||
"command": "tcpdump -i <interface>",
|
||||
"description": "Capturer le trafic réseau"
|
||||
},
|
||||
{
|
||||
"command": "netstat -tuln",
|
||||
"description": "Afficher les connexions réseau"
|
||||
},
|
||||
{
|
||||
"command": "ss -tuln",
|
||||
"description": "Autre utilitaire pour étudier les sockets"
|
||||
},
|
||||
{
|
||||
"command": "mtr <host>",
|
||||
"description": "Outil de diagnostic réseau combinant ping et traceroute"
|
||||
},
|
||||
{
|
||||
"command": "iperf3 -s",
|
||||
"description": "Lancer le serveur iperf pour tester la bande passante"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Outils de fichiers et de texte",
|
||||
"commands": [
|
||||
{
|
||||
"command": "find / -name <filename>",
|
||||
"description": "Rechercher des fichiers par nom"
|
||||
},
|
||||
{
|
||||
"command": "grep -r 'pattern' /path",
|
||||
"description": "Rechercher le modèle dans les fichiers"
|
||||
},
|
||||
{
|
||||
"command": "sed -i 's/old/new/g' file",
|
||||
"description": "Remplacer le texte dans les fichiers"
|
||||
},
|
||||
{
|
||||
"command": "awk '{print $1}' file",
|
||||
"description": "Outil de traitement de texte"
|
||||
},
|
||||
{
|
||||
"command": "tail -f /var/log/syslog",
|
||||
"description": "Suivre le fichier journal en temps réel"
|
||||
},
|
||||
{
|
||||
"command": "less /var/log/messages",
|
||||
"description": "Afficher le fichier avec pagination"
|
||||
},
|
||||
{
|
||||
"command": "journalctl -f",
|
||||
"description": "Suivre les journaux de systemd"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Analyse des performances",
|
||||
"commands": [
|
||||
{
|
||||
"command": "iostat -x 1",
|
||||
"description": "Rapports statistiques CPU et E/S"
|
||||
},
|
||||
{
|
||||
"command": "mpstat -P ALL 1",
|
||||
"description": "Rapport sur l'utilisation des CPU"
|
||||
},
|
||||
{
|
||||
"command": "perf top",
|
||||
"description": "Outil de profilage du système"
|
||||
},
|
||||
{
|
||||
"command": "strace <command>",
|
||||
"description": "Tracez les appels et signaux du système"
|
||||
},
|
||||
{
|
||||
"command": "lsof",
|
||||
"description": "Liste des fichiers ouverts"
|
||||
},
|
||||
{
|
||||
"command": "pstree",
|
||||
"description": "Affichage de l'arborescence du processus"
|
||||
},
|
||||
{
|
||||
"command": "slabtop",
|
||||
"description": "Afficher les informations du cache slab du noyau"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Outils de sécurité",
|
||||
"commands": [
|
||||
{
|
||||
"command": "fail2ban-client status",
|
||||
"description": "Afficher le statut de fail2ban"
|
||||
},
|
||||
{
|
||||
"command": "chage -l <username>",
|
||||
"description": "Afficher les informations d'expiration du mot de passe"
|
||||
},
|
||||
{
|
||||
"command": "lastlog",
|
||||
"description": "Afficher la dernière connexion de tous les utilisateurs"
|
||||
},
|
||||
{
|
||||
"command": "last",
|
||||
"description": "Afficher la liste des derniers utilisateurs connectés"
|
||||
},
|
||||
{
|
||||
"command": "w",
|
||||
"description": "Afficher qui est connecté et ce qu'ils font"
|
||||
},
|
||||
{
|
||||
"command": "lynis audit system",
|
||||
"description": "Outil de vérification de sécurité"
|
||||
},
|
||||
{
|
||||
"command": "openssl s_client -connect host:port",
|
||||
"description": "Tester les connexions SSL/TLS"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Administration à distance",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ssh <user>@<host>",
|
||||
"description": "Connexion shell sécurisée"
|
||||
},
|
||||
{
|
||||
"command": "scp <file> <user>@<host>:<path>",
|
||||
"description": "Copier des fichiers de manière sécurisée"
|
||||
},
|
||||
{
|
||||
"command": "rsync -avz <src> <dest>",
|
||||
"description": "Synchroniser les fichiers/dossiers"
|
||||
},
|
||||
{
|
||||
"command": "screen",
|
||||
"description": "Multiplexeur terminal"
|
||||
},
|
||||
{
|
||||
"command": "tmux",
|
||||
"description": "Autre multiplexeur de terminal"
|
||||
},
|
||||
{
|
||||
"command": "ssh-keygen -t rsa -b 4096",
|
||||
"description": "Générer une paire de clés SSH"
|
||||
},
|
||||
{
|
||||
"command": "ssh-copy-id <user>@<host>",
|
||||
"description": "Copier la clé SSH sur le serveur"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Configuration du système",
|
||||
"commands": [
|
||||
{
|
||||
"command": "systemctl status <service>",
|
||||
"description": "Vérifier l'état du service"
|
||||
},
|
||||
{
|
||||
"command": "journalctl -u <service>",
|
||||
"description": "Consulter les journaux de service"
|
||||
},
|
||||
{
|
||||
"command": "timedatectl",
|
||||
"description": "Gérer la date et l’heure du système"
|
||||
},
|
||||
{
|
||||
"command": "hostnamectl",
|
||||
"description": "Gérer le nom d’hôte du système"
|
||||
},
|
||||
{
|
||||
"command": "localectl",
|
||||
"description": "Gérer les paramètres régionaux et le clavier du système"
|
||||
},
|
||||
{
|
||||
"command": "update-alternatives --config <name>",
|
||||
"description": "Configuration des solutions de remplacement du système"
|
||||
},
|
||||
{
|
||||
"command": "dpkg-reconfigure <package>",
|
||||
"description": "Reconfigurer un paquet installé"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"tmuxTip": {
|
||||
"title": "Utiliser tmux / screen pour les commandes longues",
|
||||
"bodyRich": "Exécutez les tâches longues, comme une sauvegarde, une mise à niveau ou un gros transfert rsync, dans <code>tmux</code> ou <code>screen</code> afin qu’une déconnexion SSH ne termine pas la session du terminal. Pour une session tmux, reconnectez-vous au même hôte avec le même utilisateur, puis lancez <code>tmux attach</code>. Les sessions screen ont leur propre commande de rattachement."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Rubriques connexes",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/utils/system-utils",
|
||||
"label": "Installateur des utilitaires système",
|
||||
"tail": "— installer tous ces outils manquants."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/system-commands",
|
||||
"label": "Commandes système utiles",
|
||||
"tail": "— commandes d'inspection spécifiques à Proxmox."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Vue d’ensemble de l’aide et des informations",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Commandes de mise à jour et de gestion des paquets Proxmox — apt, pveupgrade, dpkg | ProxMenux",
|
||||
"description": "Commandes de mise à jour et de gestion des paquets Proxmox VE : apt update, apt upgrade, apt dist-upgrade, pveupgrade, dpkg -l, informations sur les paquets et configuration des dépôts dans /etc/apt/sources.list.d/.",
|
||||
"ogTitle": "Commandes de mise à jour et de gestion des paquets Proxmox — apt, pveupgrade, dpkg",
|
||||
"ogDescription": "commandes apt, pveupgrade et dpkg pour garder Proxmox VE à jour — mises à jour du système, gestion des paquets, configuration du dépôt.",
|
||||
"twitterTitle": "Commandes de mise à jour Proxmox | ProxMenux",
|
||||
"twitterDescription": "Commandes apt et pveupgrade pour gérer les mises à jour et les paquets sur les hôtes Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "Mises à jour et paquets",
|
||||
"description": "Sélection de commandes apt et de mise à niveau Proxmox : mises à jour du système, installation, suppression et purge des paquets, requêtes avec apt-cache policy et dpkg -l, et inspection des dépôts.",
|
||||
"section": "Aide et informations"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Toujours mettre à jour l'index en premier",
|
||||
"body": "<code>apt update</code> actualise l’index local des paquets depuis les dépôts configurés. Sans cette étape, <code>apt install</code> peut utiliser des versions obsolètes ou échouer avec « Unable to locate package »."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Mises à jour du système",
|
||||
"commands": [
|
||||
{
|
||||
"command": "apt update && apt upgrade -y",
|
||||
"description": "Actualiser les listes et mettre à jour les paquets installés (apt upgrade)"
|
||||
},
|
||||
{
|
||||
"command": "apt dist-upgrade -y",
|
||||
"description": "Mise à niveau complète du système, y compris les dépendances"
|
||||
},
|
||||
{
|
||||
"command": "apt update",
|
||||
"description": "Mettre à jour uniquement les listes de paquets"
|
||||
},
|
||||
{
|
||||
"command": "apt upgrade",
|
||||
"description": "Mettre à jour uniquement les paquets (interactifs)"
|
||||
},
|
||||
{
|
||||
"command": "apt full-upgrade",
|
||||
"description": "Mettre à niveau les paquets avec la gestion de la dépendance (interactive)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Mises à jour de Proxmox",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pveupdate",
|
||||
"description": "Mettre à jour les listes de packages Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "pveupgrade",
|
||||
"description": "Lancer la mise à niveau interactive des paquets Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "pve8to9 --full",
|
||||
"description": "Vérifier la préparation au passage de PVE 8 à 9, sans effectuer la mise à niveau"
|
||||
},
|
||||
{
|
||||
"command": "ceph versions",
|
||||
"description": "Afficher les versions des démons Ceph avant de planifier une mise à niveau"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestion des paquets",
|
||||
"commands": [
|
||||
{
|
||||
"command": "apt autoremove --purge",
|
||||
"description": "Supprimer les packages inutilisés et leur configuration"
|
||||
},
|
||||
{
|
||||
"command": "apt clean",
|
||||
"description": "Effacer le dépôt local des fichiers de paquets récupérés"
|
||||
},
|
||||
{
|
||||
"command": "apt autoclean",
|
||||
"description": "Effacer uniquement les fichiers de paquets périmés"
|
||||
},
|
||||
{
|
||||
"command": "apt install <package>",
|
||||
"description": "Installer un paquet spécifique"
|
||||
},
|
||||
{
|
||||
"command": "apt remove <package>",
|
||||
"description": "Supprimer un package"
|
||||
},
|
||||
{
|
||||
"command": "apt purge <package>",
|
||||
"description": "Supprimer un paquet et ses fichiers de configuration"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Informations sur les paquets",
|
||||
"commands": [
|
||||
{
|
||||
"command": "apt list --installed",
|
||||
"description": "Liste de tous les paquets installés"
|
||||
},
|
||||
{
|
||||
"command": "apt search <keyword>",
|
||||
"description": "Rechercher les paquets par mot-clé"
|
||||
},
|
||||
{
|
||||
"command": "apt show <package>",
|
||||
"description": "Afficher les informations détaillées sur un paquet"
|
||||
},
|
||||
{
|
||||
"command": "dpkg -l",
|
||||
"description": "Liste de tous les paquets installés (alternative)"
|
||||
},
|
||||
{
|
||||
"command": "dpkg -l | grep <keyword>",
|
||||
"description": "Rechercher les paquets installés par mot-clé"
|
||||
},
|
||||
{
|
||||
"command": "apt-cache policy <package>",
|
||||
"description": "Afficher les versions et les priorités des paquets"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestion des dépôts",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/apt/sources.list",
|
||||
"description": "Afficher les principales sources de dépôt APT"
|
||||
},
|
||||
{
|
||||
"command": "ls -la /etc/apt/sources.list.d/",
|
||||
"description": "Liste des fichiers sources supplémentaires du dépôt"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/apt/sources.list.d/pve-enterprise.list",
|
||||
"description": "Afficher la configuration du dépôt Proxmox Enterprise dans le fichier .list de PVE 8"
|
||||
},
|
||||
{
|
||||
"command": "apt-key list",
|
||||
"description": "Lister les anciennes clés de signature des dépôts si apt-key est disponible"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"backupWarn": {
|
||||
"title": "Créer une sauvegarde avant les mises à niveau majeures",
|
||||
"bodyRich": "Pour les mises à jour courantes, Proxmox recommande <code>apt update && apt full-upgrade</code> ; examinez les changements de paquets avant de confirmer. Pour les <strong>mises à niveau majeures</strong> (PVE 8 → 9), utilisez la procédure ProxMenux <upgradeLink>Mettre à niveau PVE 8 vers PVE 9</upgradeLink>. Elle ajoute des vérifications préalables, la migration des dépôts et une validation finale. Créez d’abord une sauvegarde."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Rubriques connexes",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/utils/system-update",
|
||||
"label": "Mise à jour du système Proxmox (interactive)",
|
||||
"tail": "— wrapper qui fait tout cela avec une boîte de dialogue de confirmation, une reconstruction automatique de DKMS des pilotes gérés par ProxMenux lorsqu'un nouveau noyau est installé, et une invite de redémarrage. Également disponible à partir du bouton Mettre à jour maintenant du tableau de bord ProxMenux Monitor."
|
||||
},
|
||||
{
|
||||
"href": "/docs/utils/upgrade-pve8-pve9",
|
||||
"label": "Mettre à niveau le PVE 8 vers le PVE 9",
|
||||
"tail": "— pour les mises à niveau en version majeure."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Vue d’ensemble de l’aide et des informations",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Commandes qm et pct de Proxmox — gestion des VM et des conteneurs LXC | ProxMenux",
|
||||
"description": "Commandes qm et pct de Proxmox VE pour les VM et conteneurs LXC : list, config, start, stop, shutdown, reboot, destroy, clone, migrate, snapshot, resize, ainsi que pct exec / enter / push / pull pour les conteneurs.",
|
||||
"ogTitle": "Commandes qm et pct de Proxmox — gestion des VM et des conteneurs LXC",
|
||||
"ogDescription": "Commandes qm et pct de Proxmox VE pour gérer les machines virtuelles et conteneurs LXC en ligne de commande : démarrage, arrêt, configuration, instantanés, migration, clonage et suppression.",
|
||||
"twitterTitle": "Commandes qm / pct de Proxmox | ProxMenux",
|
||||
"twitterDescription": "Sélection de commandes qm / pct pour gérer les machines virtuelles et conteneurs LXC dans Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "Gestion VM et CT",
|
||||
"description": "Sélection de commandes qm pour les VM et pct pour les conteneurs LXC : listes, cycle de vie (start / stop / shutdown / destroy), inspection de configuration et opérations de conteneur avec exec, enter, push et pull.",
|
||||
"section": "Aide et informations"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Trouver d'abord un VMID ou un CTID",
|
||||
"body": "Presque chaque commande demande un identifiant numérique. Utilisez <code>qm list</code> pour les VM et <code>pct list</code> pour les conteneurs. Remplacez <code><vmid></code> / <code><ctid></code> dans les exemples par l’identifiant réel avant de les exécuter."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Liste et renseignements",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm list",
|
||||
"description": "Lister toutes les machines virtuelles"
|
||||
},
|
||||
{
|
||||
"command": "pct list",
|
||||
"description": "Lister tous les conteneurs LXC"
|
||||
},
|
||||
{
|
||||
"command": "qm config <vmid>",
|
||||
"description": "Afficher la configuration de la VM interprétée par qm"
|
||||
},
|
||||
{
|
||||
"command": "pct config <ctid>",
|
||||
"description": "Afficher la configuration du conteneur interprétée par pct"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Fichiers de configuration (brut)",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Afficher le fichier de configuration brut de la VM"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/pve/lxc/<ctid>.conf",
|
||||
"description": "Afficher le fichier de configuration CT brut"
|
||||
},
|
||||
{
|
||||
"command": "nano /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Modifier le fichier de configuration brut VM (nano)"
|
||||
},
|
||||
{
|
||||
"command": "nano /etc/pve/lxc/<ctid>.conf",
|
||||
"description": "Modifier le fichier de configuration brut CT (nano)"
|
||||
},
|
||||
{
|
||||
"command": "vi /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Modifier le fichier de configuration brut VM (vi)"
|
||||
},
|
||||
{
|
||||
"command": "vi /etc/pve/lxc/<ctid>.conf",
|
||||
"description": "Modifier le fichier de configuration brut CT (vi)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestion VM",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm start <vmid>",
|
||||
"description": "Démarrez une machine virtuelle. Utilisez le bon <vmid>"
|
||||
},
|
||||
{
|
||||
"command": "qm stop <vmid>",
|
||||
"description": "Forcer l'arrêt d'une machine virtuelle. Utilisez le bon <vmid>"
|
||||
},
|
||||
{
|
||||
"command": "qm shutdown <vmid>",
|
||||
"description": "Arrêter proprement une machine virtuelle"
|
||||
},
|
||||
{
|
||||
"command": "qm reset <vmid>",
|
||||
"description": "Réinitialiser une machine virtuelle (redémarrage dur)"
|
||||
},
|
||||
{
|
||||
"command": "qm suspend <vmid>",
|
||||
"description": "Suspendre une machine virtuelle"
|
||||
},
|
||||
{
|
||||
"command": "qm resume <vmid>",
|
||||
"description": "Reprendre une machine virtuelle suspendue"
|
||||
},
|
||||
{
|
||||
"command": "qm destroy <vmid>",
|
||||
"description": "Supprimer une VM (irréversible). Utilisez le bon <vmid>"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestion des conteneurs",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pct start <ctid>",
|
||||
"description": "Démarrez un conteneur. Utilisez le bon <ctid>"
|
||||
},
|
||||
{
|
||||
"command": "pct stop <ctid>",
|
||||
"description": "Forcer l'arrêt d'un conteneur. Utilisez le bon <ctid>"
|
||||
},
|
||||
{
|
||||
"command": "pct shutdown <ctid>",
|
||||
"description": "Arrêter proprement un conteneur"
|
||||
},
|
||||
{
|
||||
"command": "pct reboot <ctid>",
|
||||
"description": "Redémarrer un conteneur"
|
||||
},
|
||||
{
|
||||
"command": "pct destroy <ctid>",
|
||||
"description": "Supprimer un CT (irréversible). Utilisez le bon <ctid>"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Exploitation des conteneurs",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pct exec <ctid> -- getent passwd | column -t -s :",
|
||||
"description": "Afficher les utilisateurs CT sous forme de tableau"
|
||||
},
|
||||
{
|
||||
"command": "pct exec <ctid> -- ps aux --sort=-%mem | head",
|
||||
"description": "Processus consommant le plus de mémoire dans le CT"
|
||||
},
|
||||
{
|
||||
"command": "pct enter <ctid>",
|
||||
"description": "Ouvrir le shell du conteneur"
|
||||
},
|
||||
{
|
||||
"command": "pct push <ctid> <source> <dest>",
|
||||
"description": "Copier le fichier de l'hôte vers le conteneur"
|
||||
},
|
||||
{
|
||||
"command": "pct pull <ctid> <source> <dest>",
|
||||
"description": "Copier le fichier du conteneur vers l'hôte"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"destroyWarn": {
|
||||
"title": "La destruction est irréversible",
|
||||
"bodyRich": "<code>qm destroy</code> et <code>pct destroy</code> suppriment la configuration de l’invité et ses volumes de disque gérés. Ne supposez pas que les données externes ou montées par bind mount sont effacées. La CLI ne demande pas confirmation par défaut. Sauvegardez d’abord les données utiles ; voir <backupLink>Sauvegarde et restauration</backupLink>."
|
||||
},
|
||||
"qmConfigTip": {
|
||||
"title": "qm config ou modification directe du fichier .conf",
|
||||
"bodyRich": "<code>qm config <vmid></code> et <code>pct config <ctid></code> affichent la configuration via les analyseurs Proxmox. Pour les modifications courantes, préférez <code>qm set</code> ou l’équivalent pct. Modifier directement <code>/etc/pve/qemu-server/<vmid>.conf</code> ou <code>/etc/pve/lxc/<ctid>.conf</code> contourne les validations et verrous des commandes de gestion ; le fichier doit rester interprétable. Arrêtez l’invité et gardez une copie avant une réparation manuelle. <code>pmxcfs</code> synchronise les configurations entre les nœuds du cluster, pas les données des disques invités."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Rubriques connexes",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/backup-commands",
|
||||
"label": "Sauvegarde et restauration",
|
||||
"tail": " — vzdump et qmrestore / pct restore."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"label": "Stockage et disques",
|
||||
"tail": "— qm importdisk et gestion du disque."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Vue d’ensemble de l’aide et des informations",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,227 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Commandes ZFS sur Proxmox — zpool, zfs snapshot, send/receive, scrub | ProxMenux",
|
||||
"description": "Commandes de gestion ZFS sur Proxmox VE : zpool create / status / history, zfs list / get / set, instantanés, clone, zfs send et receive, scrub, clear, replace, zpool iostat et résumé d’ARC.",
|
||||
"ogTitle": "Commandes ZFS sur Proxmox — zpool, zfs snapshot, send/receive, scrub",
|
||||
"ogDescription": "Référence des commandes zpool et zfs sur Proxmox VE — pools, ensembles de données, instantanés, réplication, maintenance.",
|
||||
"twitterTitle": "Commandes ZFS sur Proxmox | ProxMenux",
|
||||
"twitterDescription": "commandes zpool et zfs pour Proxmox VE : pools, datasets, snapshots, réplication, maintenance."
|
||||
},
|
||||
"header": {
|
||||
"title": "Gestion ZFS",
|
||||
"description": "Sélection de commandes zpool et zfs : inspection des pools, création, lecture, modification et suppression de datasets, instantanés, clone et send/receive incrémental ou récursif, maintenance avec scrub / clear / replace, statistiques d’E/S et résumé d’ARC.",
|
||||
"section": "Aide et informations"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Deux familles de commandes",
|
||||
"body": "<code>zpool *</code> gère les pools de stockage, la couche physique : disques, vdevs et redondance. <code>zfs *</code> gère les datasets et les instantanés de ces pools, la couche logique : systèmes de fichiers, volumes, instantanés et propriétés."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Informations sur le pool",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zpool list",
|
||||
"description": "Lister tous les pools ZFS"
|
||||
},
|
||||
{
|
||||
"command": "zpool status",
|
||||
"description": "Afficher l'état et la santé du pool détaillé"
|
||||
},
|
||||
{
|
||||
"command": "zpool status -v",
|
||||
"description": "Afficher l'état du pool avec les erreurs"
|
||||
},
|
||||
{
|
||||
"command": "zpool history",
|
||||
"description": "Afficher l'historique des commandes pour tous les pools"
|
||||
},
|
||||
{
|
||||
"command": "zpool history <pool>",
|
||||
"description": "Afficher l'historique des commandes pour un pool spécifique"
|
||||
},
|
||||
{
|
||||
"command": "zpool get all <pool>",
|
||||
"description": "Afficher toutes les propriétés d'un pool"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestion des datasets",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zfs list",
|
||||
"description": "Lister tous les ensembles de données ZFS"
|
||||
},
|
||||
{
|
||||
"command": "zfs list -r <pool>",
|
||||
"description": "Lister tous les ensembles de données dans un pool récursivement"
|
||||
},
|
||||
{
|
||||
"command": "zfs create <pool>/<dataset>",
|
||||
"description": "Créer un nouvel ensemble de données"
|
||||
},
|
||||
{
|
||||
"command": "zfs destroy <pool>/<dataset>",
|
||||
"description": "Détruire un ensemble de données"
|
||||
},
|
||||
{
|
||||
"command": "zfs rename <pool>/<dataset> <pool>/<new-name>",
|
||||
"description": "Renommer un ensemble de données"
|
||||
},
|
||||
{
|
||||
"command": "zfs get all <pool>/<dataset>",
|
||||
"description": "Afficher toutes les propriétés d'un ensemble de données"
|
||||
},
|
||||
{
|
||||
"command": "zfs set compression=on <pool>/<dataset>",
|
||||
"description": "Activer la compression sur un jeu de données"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestion des instantanés",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zfs list -t snapshot",
|
||||
"description": "Liste de tous les instantanés"
|
||||
},
|
||||
{
|
||||
"command": "zfs list -t snapshot -r <pool>",
|
||||
"description": "Liste tous les instantanés dans un pool"
|
||||
},
|
||||
{
|
||||
"command": "zfs snapshot <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Créer un instantané"
|
||||
},
|
||||
{
|
||||
"command": "zfs destroy <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Supprimer un instantané"
|
||||
},
|
||||
{
|
||||
"command": "zfs rollback <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Retour à un instantané"
|
||||
},
|
||||
{
|
||||
"command": "zfs hold <tag> <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Protéger un instantané contre la suppression avec un hold"
|
||||
},
|
||||
{
|
||||
"command": "zfs release <tag> <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Lever la protection hold d’un instantané"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Clone et envoi/réception",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zfs clone <pool>/<dataset>@<snapshot> <pool>/<clone-name>",
|
||||
"description": "Créer un clone à partir d'un instantané"
|
||||
},
|
||||
{
|
||||
"command": "zfs send <pool>/<dataset>@<snapshot> > backup.zfs",
|
||||
"description": "Envoyer un instantané dans un fichier"
|
||||
},
|
||||
{
|
||||
"command": "zfs receive <pool>/<dataset> < backup.zfs",
|
||||
"description": "Recevez un instantané à partir d'un fichier"
|
||||
},
|
||||
{
|
||||
"command": "zfs send -i <pool>/<dataset>@<snap1> <pool>/<dataset>@<snap2> > incr.zfs",
|
||||
"description": "Envoyer un instantané incrémental"
|
||||
},
|
||||
{
|
||||
"command": "zfs send -R <pool>/<dataset>@<snapshot> > full-recursive.zfs",
|
||||
"description": "Envoyer un instantané récursif"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Entretien et réparation",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zpool scrub <pool>",
|
||||
"description": "Lancer une vérification scrub d’un pool"
|
||||
},
|
||||
{
|
||||
"command": "zpool scrub -s <pool>",
|
||||
"description": "Arrêter le scrub en cours"
|
||||
},
|
||||
{
|
||||
"command": "zpool clear <pool>",
|
||||
"description": "Réinitialiser les compteurs d’erreurs d’un pool"
|
||||
},
|
||||
{
|
||||
"command": "zpool clear <pool> <device>",
|
||||
"description": "Effacer les erreurs sur un périphérique spécifique"
|
||||
},
|
||||
{
|
||||
"command": "zpool replace <pool> <old-device> <new-device>",
|
||||
"description": "Remplacer un dispositif défectueux"
|
||||
},
|
||||
{
|
||||
"command": "zpool offline <pool> <device>",
|
||||
"description": "Prenez un appareil hors ligne"
|
||||
},
|
||||
{
|
||||
"command": "zpool online <pool> <device>",
|
||||
"description": "Apportez un appareil en ligne"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Performances et surveillance",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zpool iostat",
|
||||
"description": "Afficher les statistiques E/S pour les pools"
|
||||
},
|
||||
{
|
||||
"command": "zpool iostat -v",
|
||||
"description": "Afficher les statistiques détaillées des E/S"
|
||||
},
|
||||
{
|
||||
"command": "zpool iostat 5",
|
||||
"description": "Afficher les statistiques d'E/S toutes les 5 secondes"
|
||||
},
|
||||
{
|
||||
"command": "arc_summary",
|
||||
"description": "Afficher les statistiques ARC (si installé)"
|
||||
},
|
||||
{
|
||||
"command": "zfs get compressratio <pool>/<dataset>",
|
||||
"description": "Afficher le rapport de compression"
|
||||
},
|
||||
{
|
||||
"command": "zfs get used,available,referenced <pool>/<dataset>",
|
||||
"description": "Afficher l'utilisation de l'espace"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"bestPractices": {
|
||||
"title": "Meilleures pratiques opérationnelles",
|
||||
"bodyRich": "Planifiez régulièrement <code>zpool scrub</code> pour vérifier les sommes de contrôle et examinez le résultat. Gardez de l’espace libre : l’effet d’un pool presque plein dépend de la charge et de sa structure. Utilisez <code>zpool replace</code> pour remplacer un périphérique défaillant, en suivant la procédure de son type de vdev. Detach + add n’est pas équivalent et peut modifier la topologie ou supprimer la redondance."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Rubriques connexes",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"label": "Stockage et disques",
|
||||
"tail": "— commandes génériques de block-device et LVM."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/backup-commands",
|
||||
"label": "Sauvegarde et restauration",
|
||||
"tail": " — vzdump, qmrestore."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Vue d’ensemble de l’aide et des informations",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,235 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Comandi di backup Proxmox — vzdump, qmrestore, pct restore | ProxMenux",
|
||||
"description": "Riferimento dei comandi di backup e ripristino Proxmox VE: vzdump per VM e container LXC, qmrestore per VM, pct restore per container, backup pianificati in /etc/pve/jobs.cfg, hook script e percorsi da escludere.",
|
||||
"ogTitle": "Comandi di backup Proxmox — vzdump, qmrestore, pct restore",
|
||||
"ogDescription": "Riferimento dei comandi vzdump, qmrestore e pct restore per salvare e ripristinare VM e container LXC Proxmox.",
|
||||
"twitterTitle": "Comandi di backup Proxmox | ProxMenux",
|
||||
"twitterDescription": "Comandi vzdump, qmrestore e pct restore per salvare e ripristinare VM e container Proxmox."
|
||||
},
|
||||
"header": {
|
||||
"title": "Backup e ripristino",
|
||||
"description": "Riferimento ragionato dei comandi vzdump, qmrestore e pct restore per i backup Proxmox. Include pianificazione, opzioni avanzate come hook script, percorsi da escludere e priorità I/O, oltre alla gestione dei file di backup.",
|
||||
"section": "Aiuto e informazioni"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Tre modalità di backup",
|
||||
"body": "Per le VM, <strong>snapshot</strong> esegue un backup a caldo senza richiedere snapshot dello storage. <strong>suspend</strong> sospende prima la VM, senza necessariamente migliorare la coerenza. <strong>stop</strong> la spegne prima; se era attiva, può riprendere dopo l’inizio del backup. In LXC è diverso: snapshot richiede uno storage con snapshot, suspend usa due passaggi rsync e stop mantiene il container fermo per tutto il backup."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Backup VM",
|
||||
"commands": [
|
||||
{
|
||||
"command": "vzdump <vmid>",
|
||||
"description": "Creare un backup di una specifica VM/CT"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --storage <storage>",
|
||||
"description": "Backup VM per lo storage specifico"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mode snapshot",
|
||||
"description": "Crea backup snapshot (per VM)"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mode suspend",
|
||||
"description": "Sospendi la VM prima del backup a caldo, modalità suspend precedente"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mode stop",
|
||||
"description": "Spegni la VM prima di iniziare il backup"
|
||||
},
|
||||
{
|
||||
"command": "vzdump --all",
|
||||
"description": "Backup di tutte le VM e contenitori"
|
||||
},
|
||||
{
|
||||
"command": "vzdump --all --exclude <vmid1>,<vmid2>",
|
||||
"description": "Backup tutti tranne VM specificate"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Opzioni di backup",
|
||||
"commands": [
|
||||
{
|
||||
"command": "vzdump <vmid> --compress zstd",
|
||||
"description": "Utilizzare la compressione zstd per il backup"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --compress gzip --pigz <threads>",
|
||||
"description": "Usa pigz con più thread"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --storage <storage> --notes-template <text>",
|
||||
"description": "Aggiungi note al backup"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mailto <email>",
|
||||
"description": "Invia email di notifica"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --prune-backups keep-last=<n>",
|
||||
"description": "Mantenere solo n backup per VM"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --stdexcludes 0",
|
||||
"description": "Non escludere i file temporanei"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --quiet 1",
|
||||
"description": "Sopprimi i messaggi di output"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Ripristinare i backup",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qmrestore <backup-file> <vmid>",
|
||||
"description": "Ripristinare VM da backup"
|
||||
},
|
||||
{
|
||||
"command": "qmrestore <backup-file> <vmid> --storage <storage>",
|
||||
"description": "Ripristinare lo storage specifico"
|
||||
},
|
||||
{
|
||||
"command": "qmrestore <backup-file> <vmid> --unique",
|
||||
"description": "Ripristina la VM generando nuovi indirizzi MAC casuali"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file>",
|
||||
"description": "Ripristinare container da backup"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file> --storage <storage>",
|
||||
"description": "Ripristina il container su uno storage specifico"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file> --rootfs <storage>:<size-GiB>",
|
||||
"description": "Ripristina allocando il disco radice sullo storage e con la dimensione scelti"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file> --unprivileged 1",
|
||||
"description": "Ripristina come container non privilegiato"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestione dei backup",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ls -la /var/lib/vz/dump/",
|
||||
"description": "Elenca i backup nella posizione predefinita"
|
||||
},
|
||||
{
|
||||
"command": "find /var/lib/vz/dump/ -name \"*.vma*\"",
|
||||
"description": "Trova i backup VM"
|
||||
},
|
||||
{
|
||||
"command": "find /var/lib/vz/dump/ -name \"*.tar*\"",
|
||||
"description": "Trova i backup dei container"
|
||||
},
|
||||
{
|
||||
"command": "pvesm list <storage> --content backup",
|
||||
"description": "Elenca i backup in archiviazione specifica"
|
||||
},
|
||||
{
|
||||
"command": "rm /var/lib/vz/dump/<backup-file>",
|
||||
"description": "Eliminare un file di backup"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/vzdump.conf",
|
||||
"description": "Mostra configurazione di backup"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Backup programmati",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/pve/jobs.cfg",
|
||||
"description": "Mostra gli orari di backup"
|
||||
},
|
||||
{
|
||||
"command": "nano /etc/vzdump.conf",
|
||||
"description": "Modifica della configurazione di backup"
|
||||
},
|
||||
{
|
||||
"command": "systemctl list-timers",
|
||||
"description": "Elenca i timer systemd"
|
||||
},
|
||||
{
|
||||
"command": "systemctl status cron",
|
||||
"description": "Controlla lo stato del servizio cron"
|
||||
},
|
||||
{
|
||||
"command": "pvenode task list --typefilter vzdump",
|
||||
"description": "Elenca le attività di backup completate"
|
||||
},
|
||||
{
|
||||
"command": "pvenode task log <upid>",
|
||||
"description": "Mostra il log di un’attività di backup tramite il suo UPID"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Operazioni avanzate",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qmrestore <backup> <vmid> --force",
|
||||
"description": "Forza il ripristino sovrascrivendo la VM esistente"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --dumpdir <directory>",
|
||||
"description": "Specificare la directory di backup personalizzata"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --script <script>",
|
||||
"description": "Esegui uno script hook durante il backup"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --exclude-path <path>",
|
||||
"description": "Escludere percorsi specifici da backup"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --ionice <priority>",
|
||||
"description": "Impostare la priorità I/O per il processo di backup"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --lockwait <minutes>",
|
||||
"description": "Attendi il rilascio del blocco"
|
||||
},
|
||||
{
|
||||
"command": "qm importdisk <vmid> <disk-image> <storage>",
|
||||
"description": "Importare un file immagine disco (ad esempio raw, qcow2 o vmdk) come disco non utilizzato, non un archivio di backup vzdump"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"testRestores": {
|
||||
"title": "Verifica i ripristini",
|
||||
"bodyRich": "Ripristina periodicamente un backup su un VMID di prova libero con <code>qmrestore --unique</code>, avvia la VM su una rete isolata e controllane il contenuto. L’opzione unique genera nuovi indirizzi MAC, ma non cambia gli IP statici o le impostazioni delle applicazioni. Verifica allo stesso modo i container con <code>pct restore</code>."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Correlati",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/vm-ct-commands",
|
||||
"label": "Gestione VM e CT",
|
||||
"tail": "— comandi del ciclo di vita qm e pct."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"label": "Archiviazione e dischi",
|
||||
"tail": "— gestione dello storage pvesm."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Panoramica degli aiuti e delle informazioni",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Comandi per il passthrough GPU in Proxmox — lspci, VFIO, IOMMU, qm set hostpci | ProxMenux",
|
||||
"description": "Riferimento per il passthrough GPU in Proxmox VE: identificazione dei dispositivi con lspci, moduli VFIO, gruppi IOMMU (intel_iommu / amd_iommu), aggiornamenti GRUB e initramfs, qm set hostpci0 e configurazione NVIDIA / AMD / Intel.",
|
||||
"ogTitle": "Comandi per il passthrough GPU in Proxmox — lspci, VFIO, IOMMU, qm set hostpci",
|
||||
"ogDescription": "Riferimento per ispezionare e configurare il passthrough GPU su Proxmox VE — dispositivi PCI, moduli VFIO, gruppi IOMMU, param di avvio del kernel, qm set hostpci.",
|
||||
"twitterTitle": "Comandi per il passthrough GPU in Proxmox | ProxMenux",
|
||||
"twitterDescription": "Ispezionare i dispositivi PCI, configurare VFIO e IOMMU e collegare GPU alle VM su Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "Passthrough GPU",
|
||||
"description": "Riferimento per controllare e configurare il passthrough GPU / TPU in Proxmox: identificazione dei dispositivi (lspci), moduli VFIO, verifica di IOMMU, aggiornamenti initramfs / GRUB e configurazione per VM (qm set hostpci, machine q35, bios ovmf).",
|
||||
"section": "Aiuto e informazioni"
|
||||
},
|
||||
"intro": {
|
||||
"title": "IOMMU deve essere abilitato in BIOS / UEFI",
|
||||
"body": "Abilita prima IOMMU nel firmware: cerca <em>VT-d</em>, <em>AMD-Vi</em> o <em>IOMMU</em> nel BIOS/UEFI. In Linux è attivo per impostazione predefinita su AMD e su Intel con kernel Proxmox 6.8 o successivi. I kernel Intel precedenti possono richiedere <code>intel_iommu=on</code>. L’opzione <code>iommu=pt</code> controlla la modalità passthrough di IOMMU e non richiede di disabilitare indiscriminatamente il framebuffer dell’host."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Identificazione del dispositivo",
|
||||
"commands": [
|
||||
{
|
||||
"command": "lspci -nn | grep -i nvidia",
|
||||
"description": "Elenco dispositivi NVIDIA PCI"
|
||||
},
|
||||
{
|
||||
"command": "lspci -nn | grep -i vga",
|
||||
"description": "Elenca tutti i dispositivi compatibili VGA"
|
||||
},
|
||||
{
|
||||
"command": "lspci -nn | grep -i amd",
|
||||
"description": "Elenco dispositivi PCI AMD"
|
||||
},
|
||||
{
|
||||
"command": "lspci -nnk | grep -A3 VGA",
|
||||
"description": "Elenca dispositivi VGA con driver kernel"
|
||||
},
|
||||
{
|
||||
"command": "lspci -v -s <PCI_ID>",
|
||||
"description": "Mostra informazioni dettagliate per dispositivo PCI specifico"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Configurazione VFIO",
|
||||
"commands": [
|
||||
{
|
||||
"command": "dmesg | grep -i vfio",
|
||||
"description": "Controllare i messaggi del modulo VFIO"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/modprobe.d/vfio.conf",
|
||||
"description": "Controlla la configurazione del passthrough VFIO"
|
||||
},
|
||||
{
|
||||
"command": "ls -la /etc/modprobe.d/",
|
||||
"description": "Elenca tutti i file di configurazione modprobe"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/modules",
|
||||
"description": "Mostra i moduli caricati al boot time"
|
||||
},
|
||||
{
|
||||
"command": "lsmod | grep vfio",
|
||||
"description": "Controlla se i moduli VFIO sono caricati"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Configurazione IOMMU",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/default/grub",
|
||||
"description": "Controlla le opzioni GRUB per IOMMU"
|
||||
},
|
||||
{
|
||||
"command": "update-grub",
|
||||
"description": "Applicare le modifiche GRUB"
|
||||
},
|
||||
{
|
||||
"command": "dmesg | grep -i iommu",
|
||||
"description": "Controlla i messaggi IOMMU nel registro del kernel"
|
||||
},
|
||||
{
|
||||
"command": "dmesg | grep -e DMAR -e IOMMU",
|
||||
"description": "Controlla i messaggi DMAR e IOMMU"
|
||||
},
|
||||
{
|
||||
"command": "find /sys/kernel/iommu_groups/ -type l | sort -V",
|
||||
"description": "Elenco gruppi IOMMU"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Aggiornamenti di sistema",
|
||||
"commands": [
|
||||
{
|
||||
"command": "update-initramfs -u",
|
||||
"description": "Applicare i cambiamenti initramfs (VFIO)"
|
||||
},
|
||||
{
|
||||
"command": "update-initramfs -u -k all",
|
||||
"description": "Aggiorna initramfs per tutti i kernel"
|
||||
},
|
||||
{
|
||||
"command": "cat /proc/cmdline",
|
||||
"description": "Mostra i parametri di avvio del kernel attuali"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Configurazione VM",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm config <vmid> | grep hostpci",
|
||||
"description": "Mostra la configurazione del passthrough PCI di una VM"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -hostpci0 <PCI_ID>,pcie=1,x-vga=1",
|
||||
"description": "Aggiungi il passthrough GPU a una VM"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Visualizza il file di configurazione VM"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -machine q35",
|
||||
"description": "Impostare VM per utilizzare il chipset Q35 (consigliato per il passaggio)"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -bios ovmf",
|
||||
"description": "Imposta la VM su UEFI/OVMF, consigliato se la ROM della GPU supporta UEFI"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"afterChangesTip": {
|
||||
"title": "Dopo aver modificato le configurazioni GRUB o modprobe",
|
||||
"bodyRich": "Sugli host con GRUB, applica i parametri di avvio con <code>update-grub</code>. Aggiorna i moduli con <code>update-initramfs -u -k all</code>, poi riavvia. Gli altri bootloader richiedono la propria procedura. Verifica <code>cat /proc/cmdline</code> (parametri del kernel), <code>dmesg | grep -i iommu</code> (IOMMU inizializzato) e <code>find /sys/kernel/iommu_groups/ -type l | sort -V</code> (gruppi presenti)."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Correlati",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/hardware/gpu-vm-passthrough",
|
||||
"label": "Aggiungi GPU a VM (Passthrough)",
|
||||
"tail": "— flusso ProxMenux interattivo."
|
||||
},
|
||||
{
|
||||
"href": "/docs/hardware/igpu-acceleration-lxc",
|
||||
"label": "Aggiungi GPU a LXC",
|
||||
"tail": " — condividere l’accesso ai dispositivi GPU dell’host con un container LXC."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Panoramica degli aiuti e delle informazioni",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Riferimento dei comandi Proxmox — qm, pct, vzdump, zpool, pveversion | ProxMenux",
|
||||
"description": "Selezione di comandi essenziali di Proxmox VE e Linux per argomento: controllo del sistema, gestione di VM e LXC (qm / pct), archiviazione e dischi, rete, aggiornamenti, passthrough GPU, ZFS, backup e ripristino e strumenti da terminale per l’uso quotidiano.",
|
||||
"ogTitle": "Riferimento dei comandi Proxmox — qm, pct, vzdump, zpool",
|
||||
"ogDescription": "Selezione di comandi utili di Proxmox VE e Linux per argomento: sistema, VM/CT, archiviazione, rete, aggiornamenti, passthrough GPU, ZFS, backup e strumenti CLI.",
|
||||
"twitterTitle": "Riferimento dei comandi Proxmox | ProxMenux",
|
||||
"twitterDescription": "Selezione di comandi utili di Proxmox VE e Linux, raggruppati per argomento."
|
||||
},
|
||||
"header": {
|
||||
"title": "Aiuto e informazioni",
|
||||
"description": "Selezione di comandi utili di Linux e Proxmox VE per argomento. Le nove categorie vanno da un rapido controllo con pveversion a sequenze su più righe con zfs send/receive. È un riferimento unico da affiancare alle sezioni GPU, dischi e condivisioni di ProxMenux.",
|
||||
"section": "Aiuto e informazioni"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Che cosa è questo",
|
||||
"body": "Un catalogo di riferimento dei comandi che si utilizzano effettivamente su un host Proxmox, raggruppati per argomento. All'interno di ProxMenux è possibile selezionare un numero per eseguire un comando direttamente o incollare il proprio al prompt; su questo sito ogni categoria è una tabella di copia-incolla."
|
||||
},
|
||||
"opening": {
|
||||
"heading": "Apertura del menu",
|
||||
"body": "Dal menu principale di ProxMenux, premi <kbd>h</kbd>. Vedrai questo:",
|
||||
"imageAlt": "Menu Aiuto e informazioni con nove categorie di comandi"
|
||||
},
|
||||
"categories": {
|
||||
"heading": "Le nove categorie",
|
||||
"options": [
|
||||
{
|
||||
"icon": "Terminal",
|
||||
"href": "/docs/help-info/system-commands",
|
||||
"title": "Comandi di sistema utili",
|
||||
"description": "pveversion, uptime, free, journalctl, hostnamectl, informazioni sull’utente corrente, audit con lynis e fastfetch."
|
||||
},
|
||||
{
|
||||
"icon": "Cpu",
|
||||
"href": "/docs/help-info/vm-ct-commands",
|
||||
"title": "Gestione VM e CT",
|
||||
"description": "qm list / config / start / stop / migrate, pct list / config / enter, snapshot e clonazione."
|
||||
},
|
||||
{
|
||||
"icon": "HardDrive",
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"title": "Archiviazione e dischi",
|
||||
"description": "lsblk, blkid, smartctl, informazioni sui montaggi, pvesm status e comandi LVM."
|
||||
},
|
||||
{
|
||||
"icon": "Network",
|
||||
"href": "/docs/help-info/network-commands",
|
||||
"title": "Comandi rete",
|
||||
"description": "ip / ss / nmcli, controllo dei bridge, ping / traceroute, query DNS e fail2ban-client."
|
||||
},
|
||||
{
|
||||
"icon": "Package",
|
||||
"href": "/docs/help-info/update-commands",
|
||||
"title": "Aggiornamenti e pacchetti",
|
||||
"description": "apt update / dist-upgrade, apt-cache policy, query dpkg e verifica dei file dei repository."
|
||||
},
|
||||
{
|
||||
"icon": "Cpu",
|
||||
"href": "/docs/help-info/gpu-commands",
|
||||
"title": "Passthrough GPU",
|
||||
"description": "Controlli con lspci / dmesg, verifica dell’attivazione di IOMMU, associazione a vfio-pci e uso della GPU dall’host."
|
||||
},
|
||||
{
|
||||
"icon": "Database",
|
||||
"href": "/docs/help-info/zfs-commands",
|
||||
"title": "Gestione ZFS",
|
||||
"description": "Comandi zpool / zfs per stato, dataset, snapshot, send/receive, regolazione di ARC e TRIM."
|
||||
},
|
||||
{
|
||||
"icon": "Archive",
|
||||
"href": "/docs/help-info/backup-commands",
|
||||
"title": "Backup e ripristino",
|
||||
"description": "vzdump, qmrestore / pct restore, strumenti Proxmox Backup Server e operazioni sugli snapshot."
|
||||
},
|
||||
{
|
||||
"icon": "Wrench",
|
||||
"href": "/docs/help-info/tools-commands",
|
||||
"title": "Strumenti CLI di sistema",
|
||||
"description": "tmux, screen, htop / btop, ncdu, jq, dig, lsof, watch — strumenti di amministrazione quotidiana."
|
||||
}
|
||||
]
|
||||
},
|
||||
"tip": {
|
||||
"title": "Ricercabile dalla ricerca globale",
|
||||
"body": "La ricerca della documentazione indicizza tutti i comandi di queste pagine. Se ricordi un’opzione o un frammento ma non la pagina, usa la barra di ricerca in alto per raggiungere direttamente la voce giusta."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,174 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Comandi di rete Proxmox — ip, ping, ss, pve-firewall, iptables | ProxMenux",
|
||||
"description": "Riferimento dei comandi di rete dell’host Proxmox VE: ip / ip link / ip addr, ping, traceroute, mtr, ss, ethtool, dig, nslookup, oltre a pve-firewall, iptables e nftables per il filtraggio. Controllo di bridge, bond e VLAN.",
|
||||
"ogTitle": "Comandi di rete Proxmox — ip, ping, ss, pve-firewall, iptables",
|
||||
"ogDescription": "Comandi di rete per Proxmox VE: controllo delle interfacce, test di connettività, monitoraggio, firewall (pve-firewall, iptables, nftables) e query DNS.",
|
||||
"twitterTitle": "Comandi di rete Proxmox | ProxMenux",
|
||||
"twitterDescription": "Controlli di rete, test, configurazione e firewall per Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "Comandi rete",
|
||||
"description": "Referenza curata per la rete host Proxmox: informazioni sull'interfaccia, test di connettività, configurazione, monitoraggio del traffico e gestione del firewall. Combina ip / ss / nmcli / ethtool / tcpdump / pve-firewall.",
|
||||
"section": "Aiuto e informazioni"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Inventario rapido delle interfacce",
|
||||
"body": "<code>ip a</code> mostra ogni interfaccia con i relativi indirizzi IP e MAC. <code>ip r</code> mostra la tabella di routing. Insieme permettono di verificare in pochi secondi gran parte della configurazione di un’interfaccia."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Informazioni sulla rete",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ip a",
|
||||
"description": "Mostra interfacce di rete e IP"
|
||||
},
|
||||
{
|
||||
"command": "ip r",
|
||||
"description": "Mostra tabella di routing"
|
||||
},
|
||||
{
|
||||
"command": "ip -s link",
|
||||
"description": "Mostra statistiche traffico per interfaccia"
|
||||
},
|
||||
{
|
||||
"command": "brctl show",
|
||||
"description": "Mostra i bridge di rete configurati"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/network/interfaces",
|
||||
"description": "Mostra la configurazione di rete grezza"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Test di rete",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ping <host>",
|
||||
"description": "Controlla la connettività con un altro host"
|
||||
},
|
||||
{
|
||||
"command": "traceroute <host>",
|
||||
"description": "Tracciare il percorso verso un host"
|
||||
},
|
||||
{
|
||||
"command": "mtr <host>",
|
||||
"description": "Combina ping e traceroute in tempo reale"
|
||||
},
|
||||
{
|
||||
"command": "dig <domain>",
|
||||
"description": "Ricerca DNS per un dominio"
|
||||
},
|
||||
{
|
||||
"command": "nslookup <domain>",
|
||||
"description": "Ricerca alternativa DNS"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Configurazione rete",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ifreload -a",
|
||||
"description": "Ricarica la configurazione di rete (ifupdown2)"
|
||||
},
|
||||
{
|
||||
"command": "ethtool <iface>",
|
||||
"description": "Mostra informazioni dispositivo Ethernet"
|
||||
},
|
||||
{
|
||||
"command": "resolvectl status",
|
||||
"description": "Mostra stato risoluzione DNS"
|
||||
},
|
||||
{
|
||||
"command": "nmcli device show",
|
||||
"description": "Mostra i dettagli del dispositivo di rete (se viene utilizzato NetworkManager)"
|
||||
},
|
||||
{
|
||||
"command": "ip link set <iface> up",
|
||||
"description": "Attiva un’interfaccia di rete"
|
||||
},
|
||||
{
|
||||
"command": "ip link set <iface> down",
|
||||
"description": "Disattiva un’interfaccia di rete"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Monitoraggio della rete",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ss -tuln",
|
||||
"description": "Mostra porte di ascolto (TCP/UDP)"
|
||||
},
|
||||
{
|
||||
"command": "netstat -tuln",
|
||||
"description": "Alternativa per mostrare le porte di ascolto"
|
||||
},
|
||||
{
|
||||
"command": "lsof -i",
|
||||
"description": "Elenca i file di rete aperti e le connessioni"
|
||||
},
|
||||
{
|
||||
"command": "tcpdump -i <iface>",
|
||||
"description": "Cattura i pacchetti sull'interfaccia"
|
||||
},
|
||||
{
|
||||
"command": "iftop -i <iface>",
|
||||
"description": "Monitorare l'utilizzo della larghezza di banda sull'interfaccia"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestione del firewall",
|
||||
"commands": [
|
||||
{
|
||||
"command": "iptables -L -n -v",
|
||||
"description": "Mostra regole firewall attive (iptables)"
|
||||
},
|
||||
{
|
||||
"command": "nft list ruleset",
|
||||
"description": "Mostra regole nftables"
|
||||
},
|
||||
{
|
||||
"command": "pve-firewall status",
|
||||
"description": "Controlla stato firewall Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "pve-firewall compile",
|
||||
"description": "Compila le regole firewall per tutti i nodi"
|
||||
},
|
||||
{
|
||||
"command": "pve-firewall reload",
|
||||
"description": "Ricarica regole firewall Proxmox"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"iptablesTip": {
|
||||
"title": "iptables vs nftables",
|
||||
"bodyRich": "Il servizio classico <code>pve-firewall</code> genera regole iptables. Il servizio alternativo proxmox-firewall usa <strong>nftables</strong>. Controlla il backend iptables con <code>iptables -L -n -v</code> e quello nftables con <code>nft list ruleset</code>. Usa gli strumenti del backend attivo: gli elenchi non sono intercambiabili."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Correlati",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/network",
|
||||
"label": "Gestione rete",
|
||||
"tail": "— strumenti di rete interattivi ProxMenux (analisi del ponte, nomi persistenti, monitoraggio)."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/tools-commands",
|
||||
"label": "Strumenti CLI di sistema",
|
||||
"tail": "— più strumenti di monitoraggio della rete."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Panoramica degli aiuti e delle informazioni",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,232 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Comandi per storage e dischi Proxmox — lsblk, LVM, pvesm, qm importdisk | ProxMenux",
|
||||
"description": "Riferimento dei comandi per storage e dischi in Proxmox VE: lsblk, blkid, parted, lvdisplay, vgdisplay, pvs, mount, df, du, ncdu e pvesm status, oltre a qm importdisk e qemu-img convert per i dischi delle VM.",
|
||||
"ogTitle": "Comandi per storage e dischi Proxmox — lsblk, LVM, pvesm, qm importdisk",
|
||||
"ogDescription": "Comandi per storage e dischi Proxmox VE: controllo dei dischi, LVM, filesystem montati, gestione dello storage Proxmox, importazione dei dischi VM e conversione delle immagini.",
|
||||
"twitterTitle": "Comandi di stoccaggio Proxmox | ProxMenux",
|
||||
"twitterDescription": "ispezione disco, informazioni di montaggio, gestione LVM, archiviazione Proxmox e comandi di importazione/conversione del disco VM."
|
||||
},
|
||||
"header": {
|
||||
"title": "Archiviazione e dischi",
|
||||
"description": "Riferimento ragionato per controllare lo storage sugli host Proxmox: dispositivi a blocchi, partizioni, filesystem montati, volumi LVM, configurazione dello storage Proxmox e alcune operazioni sui dischi delle VM (importdisk, qemu-img convert).",
|
||||
"section": "Aiuto e informazioni"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Inventario rapido dei dischi",
|
||||
"body": "<code>lsblk</code> mostra i dispositivi a blocchi e le partizioni ad albero. Controlla gli identificatori persistenti con <code>ls -lh /dev/disk/by-id/</code>: per lo stesso disco restano normalmente stabili dopo riavvii o cambi nell’ordine dei dispositivi. Sostituire il disco o cambiare il modo in cui il controller ne espone l’identità può modificare il percorso by-id."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Informazioni disco",
|
||||
"commands": [
|
||||
{
|
||||
"command": "lsblk",
|
||||
"description": "Elenca i dispositivi a blocchi e le partizioni"
|
||||
},
|
||||
{
|
||||
"command": "fdisk -l",
|
||||
"description": "Elenca i dischi con informazioni dettagliate"
|
||||
},
|
||||
{
|
||||
"command": "blkid",
|
||||
"description": "Mostra l'UUID e il tipo di file system dei dispositivi a blocchi"
|
||||
},
|
||||
{
|
||||
"command": "ls -lh /dev/disk/by-id/",
|
||||
"description": "Elenca gli identificatori persistenti del disco"
|
||||
},
|
||||
{
|
||||
"command": "parted -l",
|
||||
"description": "Layout dettagliato delle partizioni con dati GPT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Utilizzo dello storage",
|
||||
"commands": [
|
||||
{
|
||||
"command": "df -h",
|
||||
"description": "Mostra utilizzo disco per punto di montaggio"
|
||||
},
|
||||
{
|
||||
"command": "du -sh /path",
|
||||
"description": "Mostra dimensione directory"
|
||||
},
|
||||
{
|
||||
"command": "mount | grep ^/dev",
|
||||
"description": "Mostra dispositivi di storage montati"
|
||||
},
|
||||
{
|
||||
"command": "cat /proc/mounts",
|
||||
"description": "Mostra tutti i montaggi attivi dal kernel"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestione LVM",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pvdisplay",
|
||||
"description": "Visualizza volumi fisici (LVM)"
|
||||
},
|
||||
{
|
||||
"command": "vgdisplay",
|
||||
"description": "Visualizza gruppi di volumi (LVM)"
|
||||
},
|
||||
{
|
||||
"command": "lvdisplay",
|
||||
"description": "Visualizza volumi logici (LVM)"
|
||||
},
|
||||
{
|
||||
"command": "pvs",
|
||||
"description": "Output conciso di volumi fisici"
|
||||
},
|
||||
{
|
||||
"command": "vgs",
|
||||
"description": "Output conciso dei gruppi di volumi"
|
||||
},
|
||||
{
|
||||
"command": "lvs",
|
||||
"description": "Output conciso di volumi logici"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Storage Proxmox",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/pve/storage.cfg",
|
||||
"description": "Mostra configurazione storage Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "pvesm status",
|
||||
"description": "Mostra lo stato di tutti gli storage pool"
|
||||
},
|
||||
{
|
||||
"command": "pvesm status --enabled 1",
|
||||
"description": "Elenca gli storage configurati e abilitati"
|
||||
},
|
||||
{
|
||||
"command": "pvesm list <storage>",
|
||||
"description": "Elenca il contenuto di uno storage specifico"
|
||||
},
|
||||
{
|
||||
"command": "pvesm scan nfs <server>",
|
||||
"description": "Rileva le esportazioni NFS di un server"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Azioni disco",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm importdisk <vmid> <image_path> <storage>",
|
||||
"description": "Importa l’immagine come disco inutilizzato della VM, da collegare in seguito"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -<bus><index> <disk_path>",
|
||||
"description": "Assegnare disco fisico a VM (modalità passante)"
|
||||
},
|
||||
{
|
||||
"command": "qemu-img convert -O <format> <input> <output>",
|
||||
"description": "Converti il formato di un’immagine disco non in uso"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Salute del disco SMART",
|
||||
"commands": [
|
||||
{
|
||||
"command": "smartctl --scan",
|
||||
"description": "Elenca dispositivi SMART-capable sull'host"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -i /dev/<disk>",
|
||||
"description": "Informazioni di base del dispositivo (modello, firmware, seriale)"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -H /dev/<disk>",
|
||||
"description": "Controllo rapido della salute — complessivamente PASSED / FAILED"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -A /dev/<disk>",
|
||||
"description": "Solo attributi SMART: valori grezzi e soglie"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -a /dev/<disk>",
|
||||
"description": "Informazioni complete SMART — info + attributi + log autotest"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -t short /dev/<disk>",
|
||||
"description": "Avviare breve auto-test (~2 minuti, funziona in background)"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -t long /dev/<disk>",
|
||||
"description": "Avvia un autotest lungo, anche di ore, in background"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -l selftest /dev/<disk>",
|
||||
"description": "Visualizza il registro di prova (risultati dei test precedenti)"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -X /dev/<disk>",
|
||||
"description": "Interrompi l'autotest in esecuzione"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Salute del disco NVMe",
|
||||
"commands": [
|
||||
{
|
||||
"command": "nvme list",
|
||||
"description": "Elenca dispositivi NVMe visibili al kernel"
|
||||
},
|
||||
{
|
||||
"command": "nvme smart-log /dev/<nvme>",
|
||||
"description": "log NVMe-specific SMART (temperatura, usura, errori)"
|
||||
},
|
||||
{
|
||||
"command": "nvme id-ctrl /dev/<nvme>",
|
||||
"description": "Controller info (modello, firmware, funzionalità)"
|
||||
},
|
||||
{
|
||||
"command": "nvme error-log /dev/<nvme>",
|
||||
"description": "Ultime entrate del registro di errore NVMe"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"lvmTip": {
|
||||
"title": "LVM comandi brevi e lunghi",
|
||||
"bodyRich": "Entrambe le forme sono disponibili. <code>pvs</code> / <code>vgs</code> / <code>lvs</code> producono tabelle compatte con una riga per volume fisico, gruppo di volumi o volume logico, rispettivamente. <code>pvdisplay</code> / <code>vgdisplay</code> / <code>lvdisplay</code> forniscono più dettagli su diverse righe. Le forme brevi sono pratiche per i controlli quotidiani."
|
||||
},
|
||||
"smartInfo": {
|
||||
"title": "SMART per SATA/SAS e NVMe",
|
||||
"bodyRich": "<strong>I dischi SATA / SAS, inclusi gli SSD,</strong> si possono controllare con <code>smartctl</code> di <code>smartmontools</code>, installato di serie in Proxmox. Specifica il dispositivo, per esempio <code>/dev/sda</code> o <code>/dev/sdb</code>. <strong>I dischi NVMe</strong> usano un protocollo nativo diverso. Anche <code>smartctl</code> li supporta, mentre <code>nvme</code> di <code>nvme-cli</code> offre query specifiche su controller, namespace e stato NVMe. Installalo con <code>apt install nvme-cli</code> se manca."
|
||||
},
|
||||
"selfTestWarn": {
|
||||
"title": "Le auto-test funzionano in background",
|
||||
"bodyRich": "Sui dischi supportati, <code>smartctl -t short /dev/<disk></code> e <code>smartctl -t long /dev/<disk></code> avviano test in background e restituiscono subito il controllo. Verifica l’avanzamento con <code>smartctl -a /dev/<disk></code>, cercando \"Self-test routine in progress\", oppure attendi e leggi <code>smartctl -l selftest /dev/<disk></code>. I test brevi durano spesso circa due minuti; quelli lunghi possono richiedere ore. Il disco resta utilizzabile, ma le prestazioni I/O possono diminuire."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Correlati",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/zfs-commands",
|
||||
"label": "Gestione ZFS",
|
||||
"tail": "— comandi zpool / zfs per lo storage supportato da ZFS."
|
||||
},
|
||||
{
|
||||
"href": "/docs/disk-manager",
|
||||
"label": "Gestione disco",
|
||||
"tail": "— flussi interattivi ProxMenux per il passaggio del disco, l'importazione, la formattazione, SMART."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Panoramica degli aiuti e delle informazioni",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Comandi di sistema Proxmox VE — pveversion, uptime, journalctl, systemctl | ProxMenux",
|
||||
"description": "Comandi di sistema Proxmox VE e Linux per versioni, tempo di attività, memoria, servizi, log e utenti, con strumenti di audit e riepilogo. È incluso il riavvio di un servizio: non tutti gli esempi sono di sola lettura.",
|
||||
"ogTitle": "Comandi di sistema Proxmox VE — pveversion, uptime, journalctl, systemctl",
|
||||
"ogDescription": "Comandi di sistema Proxmox VE e Linux per versione, tempo di attività, servizi, log e informazioni sugli utenti, con gestione dei servizi e strumenti di audit.",
|
||||
"twitterTitle": "Comandi di sistema Proxmox VE | ProxMenux",
|
||||
"twitterDescription": "Comandi di ispezione di sistema essenziali per Proxmox VE — versione, stato, servizi, registri, informazioni utente."
|
||||
},
|
||||
"header": {
|
||||
"title": "Comandi di sistema utili",
|
||||
"description": "Comandi per controllare l’host Proxmox: versione, kernel, tempo di attività, memoria, stato dell’interfaccia web, log recenti e utenti connessi, con strumenti di audit e riepilogo. La maggior parte consulta lo stato, ma systemctl restart pveproxy riavvia il proxy web e gli strumenti di audit possono scrivere rapporti e log.",
|
||||
"section": "Aiuto e informazioni"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Che cosa è questo",
|
||||
"body": "Lo stesso elenco numerato mostrato da ProxMenux in <em>Comandi di sistema utili</em>. Usa il pulsante Copia per copiare un comando o consulta l’elenco per ricordare l’opzione esatta."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Informazioni sistema",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pveversion",
|
||||
"description": "Mostra versione Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "pveversion -v",
|
||||
"description": "Informazioni dettagliate sulla versione Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "hostnamectl",
|
||||
"description": "Nome host e informazioni kernel"
|
||||
},
|
||||
{
|
||||
"command": "uname -a",
|
||||
"description": "Informazioni kernel e architettura"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/os-release",
|
||||
"description": "Dettagli versione sistema operativo"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Stato di sistema",
|
||||
"commands": [
|
||||
{
|
||||
"command": "uptime",
|
||||
"description": "Tempo di attività sistema"
|
||||
},
|
||||
{
|
||||
"command": "uptime -p",
|
||||
"description": "Formato leggibile del tempo di attività"
|
||||
},
|
||||
{
|
||||
"command": "free -h",
|
||||
"description": "Utilizzo RAM e swap"
|
||||
},
|
||||
{
|
||||
"command": "who -b",
|
||||
"description": "Ora ultimo avvio sistema"
|
||||
},
|
||||
{
|
||||
"command": "last -x | grep shutdown",
|
||||
"description": "Arresti precedenti"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestione dei servizi",
|
||||
"commands": [
|
||||
{
|
||||
"command": "systemctl status pveproxy",
|
||||
"description": "Controlla stato interfaccia web Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "systemctl restart pveproxy",
|
||||
"description": "Riavvia proxy interfaccia web"
|
||||
},
|
||||
{
|
||||
"command": "journalctl -xe",
|
||||
"description": "Errori e registri di sistema"
|
||||
},
|
||||
{
|
||||
"command": "dmesg -T | tail -n 50",
|
||||
"description": "Ultime 50 righe del registro kernel"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Informazioni utente",
|
||||
"commands": [
|
||||
{
|
||||
"command": "whoami",
|
||||
"description": "Utente attuale"
|
||||
},
|
||||
{
|
||||
"command": "id",
|
||||
"description": "UID, GID e gruppi dell'utente corrente"
|
||||
},
|
||||
{
|
||||
"command": "who",
|
||||
"description": "Utenti connessi"
|
||||
},
|
||||
{
|
||||
"command": "w",
|
||||
"description": "Attività utenti e tempo di attività"
|
||||
},
|
||||
{
|
||||
"command": "uptime && w",
|
||||
"description": "Tempo di attività e utenti connessi"
|
||||
},
|
||||
{
|
||||
"command": "cut -d: -f1,3,4 /etc/passwd",
|
||||
"description": "Tutti gli utenti con UID e GID"
|
||||
},
|
||||
{
|
||||
"command": "getent passwd | column -t -s :",
|
||||
"description": "Tabella utenti leggibile (UID, shell, ecc.)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Strumenti di controllo e di sintesi",
|
||||
"commands": [
|
||||
{
|
||||
"command": "lynis audit system",
|
||||
"description": "Eseguire un controllo completo della sicurezza del sistema"
|
||||
},
|
||||
{
|
||||
"command": "fastfetch",
|
||||
"description": "Visualizza il riepilogo del sistema in formato ASCII"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"related": {
|
||||
"heading": "Correlati",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/update-commands",
|
||||
"label": "Aggiornamenti e pacchetti",
|
||||
"tail": " — comandi apt e di aggiornamento di PVE."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/tools-commands",
|
||||
"label": "Strumenti CLI di sistema",
|
||||
"tail": " — htop, btop, ncdu e strumenti simili."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Panoramica degli aiuti e delle informazioni",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,276 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Strumenti CLI Linux per Proxmox — htop, iftop, journalctl, rsync, tmux | ProxMenux",
|
||||
"description": "Strumenti CLI Linux per amministrare Proxmox VE ogni giorno: monitoraggio (htop, atop, glances, iotop), rete (iftop, nmap, mtr, ss), file e testo (find, grep, journalctl), prestazioni (iostat, perf, strace), sicurezza (fail2ban, lynis, lsof) e amministrazione remota (ssh, rsync, tmux).",
|
||||
"ogTitle": "Strumenti CLI Linux per Proxmox — htop, iftop, journalctl, rsync, tmux",
|
||||
"ogDescription": "Strumenti CLI per l’amministrazione quotidiana di Proxmox VE, suddivisi per funzione: monitoraggio, rete, file e testo, prestazioni, sicurezza e amministrazione remota.",
|
||||
"twitterTitle": "Strumenti CLI Linux per Proxmox | ProxMenux",
|
||||
"twitterDescription": "Strumenti quotidiani CLI per l'amministrazione Proxmox VE raggruppati per scopo."
|
||||
},
|
||||
"header": {
|
||||
"title": "Strumenti CLI di sistema",
|
||||
"description": "Strumenti quotidiani CLI per l'amministrazione degli host Proxmox, raggruppati per scopo: monitoraggio, rete, file e testo, analisi delle prestazioni, sicurezza, amministrazione remota e configurazione di sistema.",
|
||||
"section": "Aiuto e informazioni"
|
||||
},
|
||||
"intro": {
|
||||
"title": "La maggior parte viene installata dopo l’installazione",
|
||||
"body": "Se hai eseguito lo script di post-installazione con le scelte predefinite, la maggior parte degli strumenti è già installata. Per quelli mancanti, l’<utilsLink>installazione delle utilità di sistema</utilsLink> di ProxMenux offre gruppi predefiniti: base, sviluppo, rete, analisi e altri."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Monitoraggio del sistema",
|
||||
"commands": [
|
||||
{
|
||||
"command": "htop",
|
||||
"description": "Visualizzatore interattivo dei processi con uso di CPU e memoria"
|
||||
},
|
||||
{
|
||||
"command": "top",
|
||||
"description": "Visualizzazione di processi Linux in tempo reale"
|
||||
},
|
||||
{
|
||||
"command": "atop",
|
||||
"description": "Monitor avanzato del sistema e dei processi"
|
||||
},
|
||||
{
|
||||
"command": "glances",
|
||||
"description": "Strumento di monitoraggio del sistema con interfaccia web"
|
||||
},
|
||||
{
|
||||
"command": "nmon",
|
||||
"description": "Strumento di monitoraggio delle prestazioni"
|
||||
},
|
||||
{
|
||||
"command": "iotop",
|
||||
"description": "Monitorare l'utilizzo del disco I/O da processi"
|
||||
},
|
||||
{
|
||||
"command": "vmstat 1",
|
||||
"description": "Segnala le statistiche della memoria virtuale ogni secondo"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Strumenti rete",
|
||||
"commands": [
|
||||
{
|
||||
"command": "iftop",
|
||||
"description": "Visualizzazione dell'utilizzo della larghezza di banda su un'interfaccia"
|
||||
},
|
||||
{
|
||||
"command": "nmap <host>",
|
||||
"description": "esplorazione della rete e scansione della sicurezza"
|
||||
},
|
||||
{
|
||||
"command": "tcpdump -i <interface>",
|
||||
"description": "Cattura il traffico di rete"
|
||||
},
|
||||
{
|
||||
"command": "netstat -tuln",
|
||||
"description": "Visualizza le connessioni di rete"
|
||||
},
|
||||
{
|
||||
"command": "ss -tuln",
|
||||
"description": "Un’altra utilità per esaminare i socket di rete"
|
||||
},
|
||||
{
|
||||
"command": "mtr <host>",
|
||||
"description": "Strumento diagnostico di rete che combina ping e traceroute"
|
||||
},
|
||||
{
|
||||
"command": "iperf3 -s",
|
||||
"description": "Eseguire server iperf per test di larghezza di banda"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Strumenti di file e testo",
|
||||
"commands": [
|
||||
{
|
||||
"command": "find / -name <filename>",
|
||||
"description": "Trova file per nome"
|
||||
},
|
||||
{
|
||||
"command": "grep -r 'pattern' /path",
|
||||
"description": "Ricerca di modello in file"
|
||||
},
|
||||
{
|
||||
"command": "sed -i 's/old/new/g' file",
|
||||
"description": "Sostituire il testo nei file"
|
||||
},
|
||||
{
|
||||
"command": "awk '{print $1}' file",
|
||||
"description": "Strumento di elaborazione testi"
|
||||
},
|
||||
{
|
||||
"command": "tail -f /var/log/syslog",
|
||||
"description": "Seguire il file di log in tempo reale"
|
||||
},
|
||||
{
|
||||
"command": "less /var/log/messages",
|
||||
"description": "Visualizza file con paginazione"
|
||||
},
|
||||
{
|
||||
"command": "journalctl -f",
|
||||
"description": "Segui i log del journal di systemd"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Analisi delle prestazioni",
|
||||
"commands": [
|
||||
{
|
||||
"command": "iostat -x 1",
|
||||
"description": "Mostra statistiche di CPU e I/O"
|
||||
},
|
||||
{
|
||||
"command": "mpstat -P ALL 1",
|
||||
"description": "Mostra l’utilizzo della CPU"
|
||||
},
|
||||
{
|
||||
"command": "perf top",
|
||||
"description": "Strumento di profilazione del sistema"
|
||||
},
|
||||
{
|
||||
"command": "strace <command>",
|
||||
"description": "Tracciare chiamate e segnali di sistema"
|
||||
},
|
||||
{
|
||||
"command": "lsof",
|
||||
"description": "Elenca i file aperti"
|
||||
},
|
||||
{
|
||||
"command": "pstree",
|
||||
"description": "Mostra l’albero dei processi"
|
||||
},
|
||||
{
|
||||
"command": "slabtop",
|
||||
"description": "Mostra informazioni sulla cache slab del kernel"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Strumenti di sicurezza",
|
||||
"commands": [
|
||||
{
|
||||
"command": "fail2ban-client status",
|
||||
"description": "Mostra lo stato fail2ban"
|
||||
},
|
||||
{
|
||||
"command": "chage -l <username>",
|
||||
"description": "Mostra informazioni sulla scadenza della password"
|
||||
},
|
||||
{
|
||||
"command": "lastlog",
|
||||
"description": "Mostra ultimo login di tutti gli utenti"
|
||||
},
|
||||
{
|
||||
"command": "last",
|
||||
"description": "Mostra l’elenco degli ultimi utenti che hanno effettuato l’accesso"
|
||||
},
|
||||
{
|
||||
"command": "w",
|
||||
"description": "Mostra chi è collegato e cosa stanno facendo"
|
||||
},
|
||||
{
|
||||
"command": "lynis audit system",
|
||||
"description": "Strumento di controllo della sicurezza"
|
||||
},
|
||||
{
|
||||
"command": "openssl s_client -connect host:port",
|
||||
"description": "Test connessioni SSL/TLS"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Amministrazione remota",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ssh <user>@<host>",
|
||||
"description": "Collegamento sicuro della shell"
|
||||
},
|
||||
{
|
||||
"command": "scp <file> <user>@<host>:<path>",
|
||||
"description": "Copia i file in modo sicuro"
|
||||
},
|
||||
{
|
||||
"command": "rsync -avz <src> <dest>",
|
||||
"description": "Sincronizza file/cartelle"
|
||||
},
|
||||
{
|
||||
"command": "screen",
|
||||
"description": "Multiplexer del terminale"
|
||||
},
|
||||
{
|
||||
"command": "tmux",
|
||||
"description": "Multiplexer di terminale alternativo"
|
||||
},
|
||||
{
|
||||
"command": "ssh-keygen -t rsa -b 4096",
|
||||
"description": "Generare coppia chiave SSH"
|
||||
},
|
||||
{
|
||||
"command": "ssh-copy-id <user>@<host>",
|
||||
"description": "Copia chiave SSH per server"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Configurazione del sistema",
|
||||
"commands": [
|
||||
{
|
||||
"command": "systemctl status <service>",
|
||||
"description": "Controlla stato servizio"
|
||||
},
|
||||
{
|
||||
"command": "journalctl -u <service>",
|
||||
"description": "Visualizza i registri dei servizi"
|
||||
},
|
||||
{
|
||||
"command": "timedatectl",
|
||||
"description": "Gestisci data e ora del sistema"
|
||||
},
|
||||
{
|
||||
"command": "hostnamectl",
|
||||
"description": "Gestisci il nome host del sistema"
|
||||
},
|
||||
{
|
||||
"command": "localectl",
|
||||
"description": "Gestisci le impostazioni locali e la tastiera del sistema"
|
||||
},
|
||||
{
|
||||
"command": "update-alternatives --config <name>",
|
||||
"description": "Configurare alternative di sistema"
|
||||
},
|
||||
{
|
||||
"command": "dpkg-reconfigure <package>",
|
||||
"description": "Riconfigurare un pacchetto installato"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"tmuxTip": {
|
||||
"title": "Usa tmux / screen per i comandi di lunga durata",
|
||||
"bodyRich": "Esegui le attività lunghe, come backup, aggiornamenti o grandi trasferimenti rsync, in <code>tmux</code> o <code>screen</code>, così una disconnessione SSH non termina la sessione del terminale. Per una sessione tmux, riconnettiti allo stesso host con lo stesso utente ed esegui <code>tmux attach</code>. Le sessioni screen hanno un proprio comando di riconnessione."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Correlati",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/utils/system-utils",
|
||||
"label": "Installazione utilità di sistema",
|
||||
"tail": "— installare uno di questi strumenti mancanti."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/system-commands",
|
||||
"label": "Comandi di sistema utili",
|
||||
"tail": "— Comandi di ispezione specifici di Proxmox."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Panoramica degli aiuti e delle informazioni",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Comandi per aggiornamenti e pacchetti Proxmox — apt, pveupgrade, dpkg | ProxMenux",
|
||||
"description": "Comandi di aggiornamento e gestione dei pacchetti Proxmox VE: apt update, apt upgrade, apt dist-upgrade, pveupgrade, dpkg -l, informazioni sui pacchetti e configurazione dei repository in /etc/apt/sources.list.d/.",
|
||||
"ogTitle": "Comandi per aggiornamenti e pacchetti Proxmox — apt, pveupgrade, dpkg",
|
||||
"ogDescription": "Comandi apt, pveupgrade e dpkg per mantenere aggiornato Proxmox VE: aggiornamenti di sistema, gestione dei pacchetti e configurazione dei repository.",
|
||||
"twitterTitle": "Comandi di aggiornamento Proxmox | ProxMenux",
|
||||
"twitterDescription": "Comandi apt e pveupgrade per gestire aggiornamenti e pacchetti sugli host Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "Aggiornamenti e pacchetti",
|
||||
"description": "Selezione di comandi apt e di aggiornamento Proxmox: aggiornamenti del sistema, installazione, rimozione e rimozione completa dei pacchetti, query con apt-cache policy e dpkg -l e controllo dei repository.",
|
||||
"section": "Aiuto e informazioni"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Aggiorna sempre l'indice prima",
|
||||
"body": "<code>apt update</code> aggiorna l’indice locale dei pacchetti dai repository configurati. Senza questo passaggio, <code>apt install</code> può usare versioni obsolete o fallire con \"Unable to locate package\"."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Aggiornamenti di sistema",
|
||||
"commands": [
|
||||
{
|
||||
"command": "apt update && apt upgrade -y",
|
||||
"description": "Aggiorna gli elenchi e i pacchetti installati (apt upgrade)"
|
||||
},
|
||||
{
|
||||
"command": "apt dist-upgrade -y",
|
||||
"description": "Aggiornamento completo del sistema, comprese le dipendenze"
|
||||
},
|
||||
{
|
||||
"command": "apt update",
|
||||
"description": "Aggiorna solo gli elenchi dei pacchetti"
|
||||
},
|
||||
{
|
||||
"command": "apt upgrade",
|
||||
"description": "Aggiorna solo i pacchetti (interattivo)"
|
||||
},
|
||||
{
|
||||
"command": "apt full-upgrade",
|
||||
"description": "Aggiorna i pacchetti gestendo le dipendenze (interattivo)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Aggiornamenti Proxmox",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pveupdate",
|
||||
"description": "Aggiorna elenchi pacchetti Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "pveupgrade",
|
||||
"description": "Avvia l’aggiornamento interattivo dei pacchetti Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "pve8to9 --full",
|
||||
"description": "Verifica la preparazione al passaggio da PVE 8 a 9, senza eseguire l’aggiornamento"
|
||||
},
|
||||
{
|
||||
"command": "ceph versions",
|
||||
"description": "Mostra le versioni dei demoni Ceph prima di pianificare un aggiornamento"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestione dei pacchetti",
|
||||
"commands": [
|
||||
{
|
||||
"command": "apt autoremove --purge",
|
||||
"description": "Rimuovi i pacchetti non utilizzati e la loro configurazione"
|
||||
},
|
||||
{
|
||||
"command": "apt clean",
|
||||
"description": "Cancellare il repository locale di file di pacchetto recuperati"
|
||||
},
|
||||
{
|
||||
"command": "apt autoclean",
|
||||
"description": "Cancellare solo i file di pacchetto obsoleti"
|
||||
},
|
||||
{
|
||||
"command": "apt install <package>",
|
||||
"description": "Installare un pacchetto specifico"
|
||||
},
|
||||
{
|
||||
"command": "apt remove <package>",
|
||||
"description": "Rimuovi un pacchetto"
|
||||
},
|
||||
{
|
||||
"command": "apt purge <package>",
|
||||
"description": "Rimuovere un pacchetto e i suoi file di configurazione"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Informazioni sul pacchetto",
|
||||
"commands": [
|
||||
{
|
||||
"command": "apt list --installed",
|
||||
"description": "Elenca tutti i pacchetti installati"
|
||||
},
|
||||
{
|
||||
"command": "apt search <keyword>",
|
||||
"description": "Ricerca di pacchetti per parola chiave"
|
||||
},
|
||||
{
|
||||
"command": "apt show <package>",
|
||||
"description": "Mostra informazioni dettagliate su un pacchetto"
|
||||
},
|
||||
{
|
||||
"command": "dpkg -l",
|
||||
"description": "Elenca tutti i pacchetti installati (alternativo)"
|
||||
},
|
||||
{
|
||||
"command": "dpkg -l | grep <keyword>",
|
||||
"description": "Cerca pacchetti installati per parola chiave"
|
||||
},
|
||||
{
|
||||
"command": "apt-cache policy <package>",
|
||||
"description": "Mostra le versioni e le priorità dei pacchetti"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestione dei repository",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/apt/sources.list",
|
||||
"description": "Visualizza principali fonti di repository APT"
|
||||
},
|
||||
{
|
||||
"command": "ls -la /etc/apt/sources.list.d/",
|
||||
"description": "Elenca altri file sorgente repository"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/apt/sources.list.d/pve-enterprise.list",
|
||||
"description": "Mostra la configurazione del repository Proxmox Enterprise nel file .list di PVE 8"
|
||||
},
|
||||
{
|
||||
"command": "apt-key list",
|
||||
"description": "Elenca le vecchie chiavi di firma dei repository, se apt-key è disponibile"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"backupWarn": {
|
||||
"title": "Crea un backup prima degli aggiornamenti principali",
|
||||
"bodyRich": "Per gli aggiornamenti ordinari, Proxmox raccomanda <code>apt update && apt full-upgrade</code>: controlla le modifiche ai pacchetti prima di confermare. Per gli <strong>aggiornamenti a una nuova versione principale</strong> (PVE 8 → 9), usa la procedura ProxMenux <upgradeLink>Aggiorna PVE 8 a PVE 9</upgradeLink>. Include controlli preliminari, migrazione dei repository e verifica finale. Crea prima un backup."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Correlati",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/utils/system-update",
|
||||
"label": "Aggiornamento del sistema Proxmox (interattivo)",
|
||||
"tail": "— wrapper che fa tutto questo con una finestra di dialogo di conferma, una ricostruzione automatica DKMS di driver gestiti da ProxMenux quando viene installato un nuovo kernel e un prompt di riavvio. Avviabile anche dal pulsante Update Now della dashboard ProxMenux Monitor."
|
||||
},
|
||||
{
|
||||
"href": "/docs/utils/upgrade-pve8-pve9",
|
||||
"label": "Aggiorna PVE 8 a PVE 9",
|
||||
"tail": " — per gli aggiornamenti a una nuova versione principale."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Panoramica degli aiuti e delle informazioni",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Comandi qm e pct di Proxmox — gestione di VM e container LXC | ProxMenux",
|
||||
"description": "Comandi qm e pct di Proxmox VE per VM e container LXC: list, config, start, stop, shutdown, reboot, destroy, clone, migrate, snapshot, resize, oltre a pct exec / enter / push / pull per i container.",
|
||||
"ogTitle": "Comandi qm e pct di Proxmox — gestione di VM e container LXC",
|
||||
"ogDescription": "Riferimento dei comandi Proxmox VE qm e pct — gestire macchine virtuali e contenitori LXC dal CLI: avviare, arrestare, configurare, snapshot, migrare, clone, distruggere.",
|
||||
"twitterTitle": "Comandi qm / pct di Proxmox | ProxMenux",
|
||||
"twitterDescription": "Comandi qm / pct per la gestione di macchine virtuali e contenitori LXC in Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "Gestione VM e CT",
|
||||
"description": "Selezione di comandi qm per le VM e pct per i container LXC: elenchi, ciclo di vita (start / stop / shutdown / destroy), controllo della configurazione e operazioni sui container come exec, enter, push e pull.",
|
||||
"section": "Aiuto e informazioni"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Trova prima un VMID o un CTID",
|
||||
"body": "Quasi ogni comando ha bisogno di un ID numerico. Utilizzare <code>qm list</code> per VM e <code>pct list</code> per contenitori. Sostituisci <code><vmid></code> / <code><ctid></code> nei frammenti con l'ID effettivo prima di eseguire."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Elenco e Informazioni",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm list",
|
||||
"description": "Elenca tutte le VM"
|
||||
},
|
||||
{
|
||||
"command": "pct list",
|
||||
"description": "Elenca tutti i container LXC"
|
||||
},
|
||||
{
|
||||
"command": "qm config <vmid>",
|
||||
"description": "Mostra la configurazione della VM interpretata da qm"
|
||||
},
|
||||
{
|
||||
"command": "pct config <ctid>",
|
||||
"description": "Mostra la configurazione del container interpretata da pct"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "File di configurazione (raw)",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Visualizza file configurazione VM non elaborato"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/pve/lxc/<ctid>.conf",
|
||||
"description": "Visualizza file configurazione CT non elaborato"
|
||||
},
|
||||
{
|
||||
"command": "nano /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Modifica file di configurazione VM grezzo (nano)"
|
||||
},
|
||||
{
|
||||
"command": "nano /etc/pve/lxc/<ctid>.conf",
|
||||
"description": "Modifica file di configurazione CT grezzo (nano)"
|
||||
},
|
||||
{
|
||||
"command": "vi /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Modifica file di configurazione VM grezzo (vi)"
|
||||
},
|
||||
{
|
||||
"command": "vi /etc/pve/lxc/<ctid>.conf",
|
||||
"description": "Modifica file di configurazione CT grezzo (vi)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestione VM",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm start <vmid>",
|
||||
"description": "Avvia una VM. Usa il <vmid> corretto"
|
||||
},
|
||||
{
|
||||
"command": "qm stop <vmid>",
|
||||
"description": "Forza l'arresto di una macchina virtuale. Usa il <vmid> corretto"
|
||||
},
|
||||
{
|
||||
"command": "qm shutdown <vmid>",
|
||||
"description": "Spegni una macchina virtuale in modo ordinato"
|
||||
},
|
||||
{
|
||||
"command": "qm reset <vmid>",
|
||||
"description": "Reimpostare una macchina virtuale (hard reboot)"
|
||||
},
|
||||
{
|
||||
"command": "qm suspend <vmid>",
|
||||
"description": "Sospendere una macchina virtuale"
|
||||
},
|
||||
{
|
||||
"command": "qm resume <vmid>",
|
||||
"description": "Riprendi una macchina virtuale sospesa"
|
||||
},
|
||||
{
|
||||
"command": "qm destroy <vmid>",
|
||||
"description": "Elimina una VM (irreversibile). Usa il <vmid> corretto"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestione del contenitore",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pct start <ctid>",
|
||||
"description": "Avvia un container. Usa il <ctid> corretto"
|
||||
},
|
||||
{
|
||||
"command": "pct stop <ctid>",
|
||||
"description": "Forza l’arresto di un container. Usa il <ctid> corretto"
|
||||
},
|
||||
{
|
||||
"command": "pct shutdown <ctid>",
|
||||
"description": "Arresta un container in modo ordinato"
|
||||
},
|
||||
{
|
||||
"command": "pct reboot <ctid>",
|
||||
"description": "Riavviare un contenitore"
|
||||
},
|
||||
{
|
||||
"command": "pct destroy <ctid>",
|
||||
"description": "Elimina un CT (irreversibile). Usa il <ctid> corretto"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Operazioni del contenitore",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pct exec <ctid> -- getent passwd | column -t -s :",
|
||||
"description": "Mostra utenti CT in tabella"
|
||||
},
|
||||
{
|
||||
"command": "pct exec <ctid> -- ps aux --sort=-%mem | head",
|
||||
"description": "Processi CT con maggior consumo memoria"
|
||||
},
|
||||
{
|
||||
"command": "pct enter <ctid>",
|
||||
"description": "Entra nella shell del container"
|
||||
},
|
||||
{
|
||||
"command": "pct push <ctid> <source> <dest>",
|
||||
"description": "Copia file da host a container"
|
||||
},
|
||||
{
|
||||
"command": "pct pull <ctid> <source> <dest>",
|
||||
"description": "Copia file da contenitore per host"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"destroyWarn": {
|
||||
"title": "La distruzione è irreversibile",
|
||||
"bodyRich": "<code>qm destroy</code> e <code>pct destroy</code> rimuovono la configurazione del guest e i volumi disco gestiti. Non presumere che eliminino anche i dati esterni o montati tramite bind mount. La CLI non chiede conferma per impostazione predefinita. Salva prima i dati utili: <backupLink>Backup e ripristino</backupLink>."
|
||||
},
|
||||
"qmConfigTip": {
|
||||
"title": "qm config e modifica diretta del file .conf",
|
||||
"bodyRich": "<code>qm config <vmid></code> e <code>pct config <ctid></code> mostrano la configurazione tramite i parser di Proxmox. Per le modifiche ordinarie, preferisci <code>qm set</code> o il comando pct equivalente. Le modifiche dirette a <code>/etc/pve/qemu-server/<vmid>.conf</code> o <code>/etc/pve/lxc/<ctid>.conf</code> saltano convalida e blocchi dei comandi di gestione; il file deve restare interpretabile. Ferma il guest e conserva una copia prima delle riparazioni manuali. <code>pmxcfs</code> sincronizza le configurazioni tra nodi, non i dati dei dischi guest."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Correlati",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/backup-commands",
|
||||
"label": "Backup e ripristino",
|
||||
"tail": " — vzdump e qmrestore / pct restore."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"label": "Archiviazione e dischi",
|
||||
"tail": "— qm importdisk e gestione del disco."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Panoramica degli aiuti e delle informazioni",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,227 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Comandi ZFS in Proxmox — zpool, zfs snapshot, send/receive, scrub | ProxMenux",
|
||||
"description": "Comandi di gestione ZFS in Proxmox VE: zpool create / status / history, zfs list / get / set, snapshot, clone, zfs send e receive, scrub, clear, replace, zpool iostat e riepilogo ARC.",
|
||||
"ogTitle": "Comandi ZFS in Proxmox — zpool, zfs snapshot, send/receive, scrub",
|
||||
"ogDescription": "Riferimento dei comandi zpool e zfs su Proxmox VE — pool, dataset, snapshot, replica, manutenzione.",
|
||||
"twitterTitle": "Comandi ZFS in Proxmox | ProxMenux",
|
||||
"twitterDescription": "comandi zpool e zfs per Proxmox VE: pool, dataset, snapshot, replica, manutenzione."
|
||||
},
|
||||
"header": {
|
||||
"title": "Gestione ZFS",
|
||||
"description": "Selezione di comandi zpool e zfs: controllo dei pool, creazione, lettura, modifica ed eliminazione dei dataset, snapshot, clone e send/receive incrementale o ricorsivo, manutenzione con scrub / clear / replace, statistiche I/O e riepilogo ARC.",
|
||||
"section": "Aiuto e informazioni"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Due famiglie di comando",
|
||||
"body": "<code>zpool *</code> gestisce i pool di archiviazione (strato fisico — dischi, vdevs, ridondanza). <code>zfs *</code> gestisce i dataset e le istantanee che vivono all'interno di tali pool (strato logico — filesystems, volumi, snapshot, proprietà)."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Informazioni sui pool",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zpool list",
|
||||
"description": "Elenca tutti i pool ZFS"
|
||||
},
|
||||
{
|
||||
"command": "zpool status",
|
||||
"description": "Mostra lo stato e la salute del pool in dettaglio"
|
||||
},
|
||||
{
|
||||
"command": "zpool status -v",
|
||||
"description": "Mostra lo stato dettagliato del pool con gli errori"
|
||||
},
|
||||
{
|
||||
"command": "zpool history",
|
||||
"description": "Mostra cronologia dei comandi per tutti pools"
|
||||
},
|
||||
{
|
||||
"command": "zpool history <pool>",
|
||||
"description": "Mostra cronologia dei comandi per specifiche pool"
|
||||
},
|
||||
{
|
||||
"command": "zpool get all <pool>",
|
||||
"description": "Mostra tutte le proprietà di un pool"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestione dei dataset",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zfs list",
|
||||
"description": "Elenca tutti i set di dati ZFS"
|
||||
},
|
||||
{
|
||||
"command": "zfs list -r <pool>",
|
||||
"description": "Elenca tutti i set di dati in un pool ricorsivamente"
|
||||
},
|
||||
{
|
||||
"command": "zfs create <pool>/<dataset>",
|
||||
"description": "Crea un nuovo set di dati"
|
||||
},
|
||||
{
|
||||
"command": "zfs destroy <pool>/<dataset>",
|
||||
"description": "Distruggere un set di dati"
|
||||
},
|
||||
{
|
||||
"command": "zfs rename <pool>/<dataset> <pool>/<new-name>",
|
||||
"description": "Rinominare un set di dati"
|
||||
},
|
||||
{
|
||||
"command": "zfs get all <pool>/<dataset>",
|
||||
"description": "Mostra tutte le proprietà di un set di dati"
|
||||
},
|
||||
{
|
||||
"command": "zfs set compression=on <pool>/<dataset>",
|
||||
"description": "Abilitare la compressione su un set di dati"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestione snapshot",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zfs list -t snapshot",
|
||||
"description": "Elenca tutte le snapshot"
|
||||
},
|
||||
{
|
||||
"command": "zfs list -t snapshot -r <pool>",
|
||||
"description": "Elenca tutte le istantanee in un pool"
|
||||
},
|
||||
{
|
||||
"command": "zfs snapshot <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Creare una snapshot"
|
||||
},
|
||||
{
|
||||
"command": "zfs destroy <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Eliminare un'istantanea"
|
||||
},
|
||||
{
|
||||
"command": "zfs rollback <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Rollback a una snapshot"
|
||||
},
|
||||
{
|
||||
"command": "zfs hold <tag> <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Proteggi uno snapshot dall’eliminazione con un hold"
|
||||
},
|
||||
{
|
||||
"command": "zfs release <tag> <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Rimuovi la protezione hold da uno snapshot"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Clone e Invia/Riceve",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zfs clone <pool>/<dataset>@<snapshot> <pool>/<clone-name>",
|
||||
"description": "Creare un clone da una snapshot"
|
||||
},
|
||||
{
|
||||
"command": "zfs send <pool>/<dataset>@<snapshot> > backup.zfs",
|
||||
"description": "Invia una snapshot a un file"
|
||||
},
|
||||
{
|
||||
"command": "zfs receive <pool>/<dataset> < backup.zfs",
|
||||
"description": "Ricevi un'istantanea da un file"
|
||||
},
|
||||
{
|
||||
"command": "zfs send -i <pool>/<dataset>@<snap1> <pool>/<dataset>@<snap2> > incr.zfs",
|
||||
"description": "Invia istantanee incrementali"
|
||||
},
|
||||
{
|
||||
"command": "zfs send -R <pool>/<dataset>@<snapshot> > full-recursive.zfs",
|
||||
"description": "Invia istantanee ricorsive"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Manutenzione e riparazione",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zpool scrub <pool>",
|
||||
"description": "Avvia una verifica scrub del pool"
|
||||
},
|
||||
{
|
||||
"command": "zpool scrub -s <pool>",
|
||||
"description": "Interrompi lo scrub in corso"
|
||||
},
|
||||
{
|
||||
"command": "zpool clear <pool>",
|
||||
"description": "Azzera i contatori degli errori del pool"
|
||||
},
|
||||
{
|
||||
"command": "zpool clear <pool> <device>",
|
||||
"description": "Azzera gli errori di un dispositivo specifico"
|
||||
},
|
||||
{
|
||||
"command": "zpool replace <pool> <old-device> <new-device>",
|
||||
"description": "Sostituire un dispositivo fallito"
|
||||
},
|
||||
{
|
||||
"command": "zpool offline <pool> <device>",
|
||||
"description": "Prendere un dispositivo offline"
|
||||
},
|
||||
{
|
||||
"command": "zpool online <pool> <device>",
|
||||
"description": "Portare un dispositivo online"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Performance e monitoraggio",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zpool iostat",
|
||||
"description": "Mostra le statistiche I/O dei pool"
|
||||
},
|
||||
{
|
||||
"command": "zpool iostat -v",
|
||||
"description": "Visualizza statistiche dettagliate I/O"
|
||||
},
|
||||
{
|
||||
"command": "zpool iostat 5",
|
||||
"description": "Mostra statistiche I/O ogni 5 secondi"
|
||||
},
|
||||
{
|
||||
"command": "arc_summary",
|
||||
"description": "Mostra statistiche ARC (se installato)"
|
||||
},
|
||||
{
|
||||
"command": "zfs get compressratio <pool>/<dataset>",
|
||||
"description": "Mostra rapporto di compressione"
|
||||
},
|
||||
{
|
||||
"command": "zfs get used,available,referenced <pool>/<dataset>",
|
||||
"description": "Mostra l'uso dello spazio"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"bestPractices": {
|
||||
"title": "Migliori pratiche operative",
|
||||
"bodyRich": "Pianifica regolarmente <code>zpool scrub</code> per verificare le checksum e controlla i risultati. Mantieni spazio libero: l’effetto di un pool quasi pieno dipende dal carico e dalla struttura. Usa <code>zpool replace</code> per un dispositivo guasto e segui la procedura del relativo tipo di vdev. Detach + add non è una sostituzione equivalente e può cambiare la topologia o eliminare la ridondanza."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Correlati",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"label": "Archiviazione e dischi",
|
||||
"tail": "— comandi generici block-device e LVM."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/backup-commands",
|
||||
"label": "Backup e ripristino",
|
||||
"tail": " — vzdump, qmrestore."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Panoramica degli aiuti e delle informazioni",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,235 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Comandos de cópia de segurança Proxmox — vzdump, qmrestore, pct restore | ProxMenux",
|
||||
"description": "Referência dos comandos de cópia de segurança e restauro do Proxmox VE: vzdump para VM e contentores LXC, qmrestore para VM, pct restore para contentores, cópias agendadas em /etc/pve/jobs.cfg, scripts de hook e caminhos a excluir.",
|
||||
"ogTitle": "Comandos de cópia de segurança Proxmox — vzdump, qmrestore, pct restore",
|
||||
"ogDescription": "Referência dos comandos vzdump, qmrestore e pct restore para criar e restaurar cópias de VM e contentores LXC Proxmox.",
|
||||
"twitterTitle": "Comandos de cópia de segurança Proxmox | ProxMenux",
|
||||
"twitterDescription": "Comandos vzdump, qmrestore e pct restore para criar e restaurar cópias de VM e contentores Proxmox."
|
||||
},
|
||||
"header": {
|
||||
"title": "Cópias de segurança e restauro",
|
||||
"description": "Referência comentada dos comandos vzdump, qmrestore e pct restore para as cópias de segurança Proxmox. Inclui agendamento, opções avançadas como scripts de hook, caminhos a excluir e prioridade de E/S, além da gestão dos ficheiros de cópia.",
|
||||
"section": "Ajuda e informações"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Três modos de backup",
|
||||
"body": "Nas VM, <strong>snapshot</strong> faz uma cópia em funcionamento sem exigir snapshots do armazenamento. <strong>suspend</strong> suspende primeiro a VM, sem necessariamente melhorar a consistência. <strong>stop</strong> desliga-a primeiro; se estava em execução, pode retomar após o início da cópia. Em LXC é diferente: snapshot exige armazenamento com snapshots, suspend usa duas passagens rsync e stop mantém o contentor parado durante toda a cópia."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Cópia de segurança de VM",
|
||||
"commands": [
|
||||
{
|
||||
"command": "vzdump <vmid>",
|
||||
"description": "Criar uma cópia de segurança de uma VM ou de um CT específico"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --storage <storage>",
|
||||
"description": "Backup VM para armazenamento específico"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mode snapshot",
|
||||
"description": "Criar cópia de segurança de instantâneo (para VMs)"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mode suspend",
|
||||
"description": "Suspender a VM antes da cópia em funcionamento, modo suspend antigo"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mode stop",
|
||||
"description": "Desligar a VM antes de iniciar a cópia"
|
||||
},
|
||||
{
|
||||
"command": "vzdump --all",
|
||||
"description": "Backup de todas as VMs e contentores"
|
||||
},
|
||||
{
|
||||
"command": "vzdump --all --exclude <vmid1>,<vmid2>",
|
||||
"description": "Cópia de segurança de todos, exceto VMs especificadas"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Opções de Cópia de Segurança",
|
||||
"commands": [
|
||||
{
|
||||
"command": "vzdump <vmid> --compress zstd",
|
||||
"description": "Usar compressão zstd para backup"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --compress gzip --pigz <threads>",
|
||||
"description": "Usar pigz com várias threads"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --storage <storage> --notes-template <text>",
|
||||
"description": "Adicionar notas ao backup"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mailto <email>",
|
||||
"description": "Enviar um e- mail de notificação"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --prune-backups keep-last=<n>",
|
||||
"description": "Manter apenas n cópias de segurança por VM"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --stdexcludes 0",
|
||||
"description": "Não excluir arquivos temporários"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --quiet 1",
|
||||
"description": "Suprimir as mensagens de saída"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Restaurar backups",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qmrestore <backup-file> <vmid>",
|
||||
"description": "Restaurar VM de backup"
|
||||
},
|
||||
{
|
||||
"command": "qmrestore <backup-file> <vmid> --storage <storage>",
|
||||
"description": "Restaurar para armazenamento específico"
|
||||
},
|
||||
{
|
||||
"command": "qmrestore <backup-file> <vmid> --unique",
|
||||
"description": "Restaurar a VM com novos endereços MAC aleatórios"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file>",
|
||||
"description": "Restaurar um contentor a partir de uma cópia de segurança"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file> --storage <storage>",
|
||||
"description": "Restaurar o contentor para um armazenamento específico"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file> --rootfs <storage>:<size-GiB>",
|
||||
"description": "Restaurar com o disco raiz no armazenamento e tamanho escolhidos"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file> --unprivileged 1",
|
||||
"description": "Restaurar como CT sem privilégios"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestão de cópias de segurança",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ls -la /var/lib/vz/dump/",
|
||||
"description": "Listar as cópias de segurança na localização padrão"
|
||||
},
|
||||
{
|
||||
"command": "find /var/lib/vz/dump/ -name \"*.vma*\"",
|
||||
"description": "Encontrar cópias de segurança de VM"
|
||||
},
|
||||
{
|
||||
"command": "find /var/lib/vz/dump/ -name \"*.tar*\"",
|
||||
"description": "Procurar backups de contentores"
|
||||
},
|
||||
{
|
||||
"command": "pvesm list <storage> --content backup",
|
||||
"description": "Lista de backups em armazenamento específico"
|
||||
},
|
||||
{
|
||||
"command": "rm /var/lib/vz/dump/<backup-file>",
|
||||
"description": "Apagar um ficheiro de cópia de segurança"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/vzdump.conf",
|
||||
"description": "Mostrar configuração de backup"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Cópias de segurança agendadas",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/pve/jobs.cfg",
|
||||
"description": "Mostrar agendamento de backup"
|
||||
},
|
||||
{
|
||||
"command": "nano /etc/vzdump.conf",
|
||||
"description": "Editar configuração de backup"
|
||||
},
|
||||
{
|
||||
"command": "systemctl list-timers",
|
||||
"description": "Listar temporizadores do systemd"
|
||||
},
|
||||
{
|
||||
"command": "systemctl status cron",
|
||||
"description": "Verificar o estado do serviço cron"
|
||||
},
|
||||
{
|
||||
"command": "pvenode task list --typefilter vzdump",
|
||||
"description": "Listar tarefas de cópia de segurança concluídas"
|
||||
},
|
||||
{
|
||||
"command": "pvenode task log <upid>",
|
||||
"description": "Mostrar o registo de uma tarefa de cópia pelo respetivo UPID"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Operações Avançadas",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qmrestore <backup> <vmid> --force",
|
||||
"description": "Forçar o restauro, substituindo a VM existente"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --dumpdir <directory>",
|
||||
"description": "Especificar diretório de backup personalizado"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --script <script>",
|
||||
"description": "Executar um script de hook durante a cópia de segurança"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --exclude-path <path>",
|
||||
"description": "Excluir caminhos específicos da cópia de segurança"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --ionice <priority>",
|
||||
"description": "Definir a prioridade de E/ S para o processo de backup"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --lockwait <minutes>",
|
||||
"description": "Esperar pelo bloqueio"
|
||||
},
|
||||
{
|
||||
"command": "qm importdisk <vmid> <disk-image> <storage>",
|
||||
"description": "Importar um ficheiro de imagem de disco (por exemplo raw, qcow2 ou vmdk) como disco não utilizado, não um arquivo de backup vzdump"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"testRestores": {
|
||||
"title": "Teste suas restaurações",
|
||||
"bodyRich": "Restaure periodicamente uma cópia para um VMID de teste livre com <code>qmrestore --unique</code>, inicie a VM numa rede isolada e verifique o conteúdo. A opção unique gera novos endereços MAC, mas não altera IP estáticos nem definições de aplicações. Teste os contentores da mesma forma com <code>pct restore</code>."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relacionado",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/vm-ct-commands",
|
||||
"label": "Gestão de VM e CT",
|
||||
"tail": " — comandos de ciclo de vida qm e pct."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"label": "Armazenamento e Discos",
|
||||
"tail": " — gestão de armazenamento de pvesm."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Visão geral de ajuda e informações",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Comandos de passthrough de GPU no Proxmox — lspci, VFIO, IOMMU, qm set hostpci | ProxMenux",
|
||||
"description": "Referência para passthrough de GPU no Proxmox VE: identificação de dispositivos com lspci, módulos VFIO, grupos IOMMU (intel_iommu / amd_iommu), atualizações de GRUB e initramfs, qm set hostpci0 e configuração de GPUs NVIDIA, AMD e Intel.",
|
||||
"ogTitle": "Comandos de passthrough de GPU no Proxmox — lspci, VFIO, IOMMU, qm set hostpci",
|
||||
"ogDescription": "Referência para inspecionar e configurar a passagem de GPU em Proxmox VE — dispositivos PCI, módulos VFIO, grupos IOMMU, parâmetros de inicialização do kernel, qm set hostpci.",
|
||||
"twitterTitle": "Comandos de passthrough de GPU no Proxmox | ProxMenux",
|
||||
"twitterDescription": "Inspecione dispositivos PCI, configure VFIO e IOMMU e anexe GPUs a VMs em Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "Passagem de GPU",
|
||||
"description": "Referência para inspecionar e configurar passthrough de GPU / TPU no Proxmox: identificação de dispositivos (lspci), módulos VFIO, validação de IOMMU, atualizações initramfs / GRUB e configuração por VM (qm set hostpci, machine q35, bios ovmf).",
|
||||
"section": "Ajuda e informações"
|
||||
},
|
||||
"intro": {
|
||||
"title": "IOMMU deve estar activado em BIOS / UEFI",
|
||||
"body": "Ative primeiro IOMMU no firmware: procure <em>VT-d</em>, <em>AMD-Vi</em> ou <em>IOMMU</em> na BIOS/UEFI. No Linux, está ativo por predefinição em AMD e em Intel com kernels Proxmox 6.8 ou posteriores. Os kernels Intel anteriores podem precisar de <code>intel_iommu=on</code>. A opção <code>iommu=pt</code> controla o modo passthrough de IOMMU e não justifica desativar indiscriminadamente o framebuffer do anfitrião."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Identificação do Dispositivo",
|
||||
"commands": [
|
||||
{
|
||||
"command": "lspci -nn | grep -i nvidia",
|
||||
"description": "Listar dispositivos PCI NVIDIA"
|
||||
},
|
||||
{
|
||||
"command": "lspci -nn | grep -i vga",
|
||||
"description": "Listar todos os dispositivos compatíveis com VGA"
|
||||
},
|
||||
{
|
||||
"command": "lspci -nn | grep -i amd",
|
||||
"description": "Listar os dispositivos PCI AMD"
|
||||
},
|
||||
{
|
||||
"command": "lspci -nnk | grep -A3 VGA",
|
||||
"description": "Listar dispositivos VGA com drivers do kernel"
|
||||
},
|
||||
{
|
||||
"command": "lspci -v -s <PCI_ID>",
|
||||
"description": "Mostrar informações detalhadas para um dispositivo PCI específico"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Configuração do VFIO",
|
||||
"commands": [
|
||||
{
|
||||
"command": "dmesg | grep -i vfio",
|
||||
"description": "Verificar as mensagens do módulo VFIO"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/modprobe.d/vfio.conf",
|
||||
"description": "Reveja a configuração de passagem do VFIO"
|
||||
},
|
||||
{
|
||||
"command": "ls -la /etc/modprobe.d/",
|
||||
"description": "Listar todos os arquivos de configuração de modprobe"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/modules",
|
||||
"description": "Mostrar os módulos carregados na hora de arranque"
|
||||
},
|
||||
{
|
||||
"command": "lsmod | grep vfio",
|
||||
"description": "Verificar se os módulos VFIO estão carregados"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Configuração do IOMMU",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/default/grub",
|
||||
"description": "Reveja as opções GRUB para IOMMU"
|
||||
},
|
||||
{
|
||||
"command": "update-grub",
|
||||
"description": "Aplicar as alterações do GRUB"
|
||||
},
|
||||
{
|
||||
"command": "dmesg | grep -i iommu",
|
||||
"description": "Verificar as mensagens IOMMU no registo do kernel"
|
||||
},
|
||||
{
|
||||
"command": "dmesg | grep -e DMAR -e IOMMU",
|
||||
"description": "Verificar as mensagens DMAR e IOMMU"
|
||||
},
|
||||
{
|
||||
"command": "find /sys/kernel/iommu_groups/ -type l | sort -V",
|
||||
"description": "Listar grupos IOMMU"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Atualizações do sistema",
|
||||
"commands": [
|
||||
{
|
||||
"command": "update-initramfs -u",
|
||||
"description": "Aplicar alterações no initramfs (VFIO)"
|
||||
},
|
||||
{
|
||||
"command": "update-initramfs -u -k all",
|
||||
"description": "Atualizar initramfs para todos os kernels"
|
||||
},
|
||||
{
|
||||
"command": "cat /proc/cmdline",
|
||||
"description": "Mostrar os parâmetros de arranque do kernel actuais"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Configuração da VM",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm config <vmid> | grep hostpci",
|
||||
"description": "Mostrar a configuração de passthrough PCI de uma VM"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -hostpci0 <PCI_ID>,pcie=1,x-vga=1",
|
||||
"description": "Adicionar passthrough de GPU a uma VM"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Ver o ficheiro de configuração VM"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -machine q35",
|
||||
"description": "Configurar a VM para usar o chipset Q35, recomendado para passthrough"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -bios ovmf",
|
||||
"description": "Configurar a VM com UEFI/OVMF, recomendado se a ROM da GPU suportar UEFI"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"afterChangesTip": {
|
||||
"title": "Após alterar as configurações GRUB ou modprobe",
|
||||
"bodyRich": "Em anfitriões com GRUB, aplique os parâmetros de arranque com <code>update-grub</code>. Atualize os módulos com <code>update-initramfs -u -k all</code> e reinicie. Outros gestores de arranque requerem o seu próprio procedimento. Verifique <code>cat /proc/cmdline</code> (parâmetros do kernel), <code>dmesg | grep -i iommu</code> (IOMMU inicializado) e <code>find /sys/kernel/iommu_groups/ -type l | sort -V</code> (grupos presentes)."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relacionado",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/hardware/gpu-vm-passthrough",
|
||||
"label": "Adicionar GPU à VM (passthrough)",
|
||||
"tail": " — fluxo interactivo de ProxMenux."
|
||||
},
|
||||
{
|
||||
"href": "/docs/hardware/igpu-acceleration-lxc",
|
||||
"label": "Adicionar GPU ao LXC",
|
||||
"tail": " — partilhar o acesso aos dispositivos GPU do anfitrião com um contentor LXC."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Visão geral de ajuda e informações",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Referência de comandos Proxmox — qm, pct, vzdump, zpool, pveversion | ProxMenux",
|
||||
"description": "Seleção de comandos essenciais do Proxmox VE e Linux por tema: inspeção do sistema, gestão de VM e LXC (qm / pct), armazenamento e discos, rede, atualizações, passthrough de GPU, ZFS, cópias de segurança e restauro, e ferramentas de terminal para o dia a dia.",
|
||||
"ogTitle": "Referência de comandos Proxmox — qm, pct, vzdump, zpool",
|
||||
"ogDescription": "Seleção de comandos úteis do Proxmox VE e Linux por tema: sistema, VM/CT, armazenamento, rede, atualizações, passthrough de GPU, ZFS, cópias de segurança e ferramentas CLI.",
|
||||
"twitterTitle": "Referência de comandos Proxmox | ProxMenux",
|
||||
"twitterDescription": "Seleção de comandos úteis do Proxmox VE e Linux, agrupados por tema."
|
||||
},
|
||||
"header": {
|
||||
"title": "Ajuda e informações",
|
||||
"description": "Seleção de comandos úteis do Linux e Proxmox VE por tema. As nove categorias abrangem desde uma consulta rápida com pveversion até sequências de zfs send/receive com várias linhas. É uma referência central que complementa as secções de GPU, discos e partilhas do ProxMenux.",
|
||||
"section": "Ajuda e informações"
|
||||
},
|
||||
"intro": {
|
||||
"title": "O que é isto?",
|
||||
"body": "Um catálogo de referência dos comandos que você realmente usa em um host Proxmox, agrupados por tópico. Dentro do ProxMenux você pode escolher um número para executar um comando diretamente ou colar o seu próprio no prompt; neste site cada categoria é uma tabela de copy-paste."
|
||||
},
|
||||
"opening": {
|
||||
"heading": "Abrir o menu",
|
||||
"body": "Do menu principal do ProxMenux, pressione <kbd>h</kbd>. Você verá isto:",
|
||||
"imageAlt": "Menu de ajuda e informação com 9 categorias de comandos"
|
||||
},
|
||||
"categories": {
|
||||
"heading": "As nove categorias",
|
||||
"options": [
|
||||
{
|
||||
"icon": "Terminal",
|
||||
"href": "/docs/help-info/system-commands",
|
||||
"title": "Comandos úteis do sistema",
|
||||
"description": "pveversion, uptime, free, journalctl, hostnamectl, informações do utilizador atual, auditoria com lynis e fastfetch."
|
||||
},
|
||||
{
|
||||
"icon": "Cpu",
|
||||
"href": "/docs/help-info/vm-ct-commands",
|
||||
"title": "Gestão de VM e CT",
|
||||
"description": "qm list / config / start / stop / migrate, pct list / config / enter, snapshots e clonagem."
|
||||
},
|
||||
{
|
||||
"icon": "HardDrive",
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"title": "Armazenamento e Discos",
|
||||
"description": "lsblk, blkid, smartctl, informações de montagem, pvesm status e comandos LVM."
|
||||
},
|
||||
{
|
||||
"icon": "Network",
|
||||
"href": "/docs/help-info/network-commands",
|
||||
"title": "Comandos de rede",
|
||||
"description": "ip / ss / nmcli, inspeção de bridges, ping / traceroute, consultas DNS e fail2ban-client."
|
||||
},
|
||||
{
|
||||
"icon": "Package",
|
||||
"href": "/docs/help-info/update-commands",
|
||||
"title": "Atualizações e pacotes",
|
||||
"description": "apt update / dist-upgrade, apt-cache policy, consultas dpkg e verificação dos ficheiros de repositórios."
|
||||
},
|
||||
{
|
||||
"icon": "Cpu",
|
||||
"href": "/docs/help-info/gpu-commands",
|
||||
"title": "Passagem de GPU",
|
||||
"description": "Verificações com lspci / dmesg, confirmação da ativação de IOMMU, associação a vfio-pci e uso da GPU pelo anfitrião."
|
||||
},
|
||||
{
|
||||
"icon": "Database",
|
||||
"href": "/docs/help-info/zfs-commands",
|
||||
"title": "Gestão de ZFS",
|
||||
"description": "Comandos zpool / zfs para estado, datasets, snapshots, send/receive, ajuste de ARC e TRIM."
|
||||
},
|
||||
{
|
||||
"icon": "Archive",
|
||||
"href": "/docs/help-info/backup-commands",
|
||||
"title": "Cópias de segurança e restauro",
|
||||
"description": "vzdump, qmrestore / pct restore, ferramentas do Proxmox Backup Server e operações com snapshots."
|
||||
},
|
||||
{
|
||||
"icon": "Wrench",
|
||||
"href": "/docs/help-info/tools-commands",
|
||||
"title": "Ferramentas CLI do sistema",
|
||||
"description": "tmux, screen, htop / btop, ncdu, jq, dig, lsof, watch — ferramentas de administração para o dia a dia."
|
||||
}
|
||||
]
|
||||
},
|
||||
"tip": {
|
||||
"title": "Pesquisada a partir da pesquisa global",
|
||||
"body": "A pesquisa da documentação indexa todos os comandos destas páginas. Se recordar uma opção ou fragmento, mas não a página, use a barra de pesquisa no topo para encontrar diretamente a entrada certa."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,174 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Comandos de rede Proxmox — ip, ping, ss, pve-firewall, iptables | ProxMenux",
|
||||
"description": "Referência de comandos de rede do anfitrião Proxmox VE: ip / ip link / ip addr, ping, traceroute, mtr, ss, ethtool, dig, nslookup, além de pve-firewall, iptables e nftables para filtragem. Inspeção de bridges, agregações de ligações e VLAN.",
|
||||
"ogTitle": "Comandos de rede Proxmox — ip, ping, ss, pve-firewall, iptables",
|
||||
"ogDescription": "Referência de comandos de rede para Proxmox VE — inspeção de interface, testes de conectividade, monitoramento, firewall (pve-firewall, iptables, nftables) e pesquisas de DNS.",
|
||||
"twitterTitle": "Comandos de rede Proxmox | ProxMenux",
|
||||
"twitterDescription": "Comandos de inspeção, teste, configuração e firewall de rede para Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "Comandos de rede",
|
||||
"description": "Referência para a rede de host Proxmox: informações de interface, testes de conectividade, configuração, monitoramento de tráfego e gerenciamento de firewall. Combina ip / ss / nmcli / ethtool / tcpdump / pve-firewall.",
|
||||
"section": "Ajuda e informações"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Inventário rápido da interface",
|
||||
"body": "<code>ip a</code> mostra cada interface com os respetivos endereços IP e MAC. <code>ip r</code> mostra a tabela de encaminhamento. Em conjunto, respondem em segundos à maioria das dúvidas sobre a configuração de uma interface."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Informação da Rede",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ip a",
|
||||
"description": "Mostrar interfaces de rede e IPs"
|
||||
},
|
||||
{
|
||||
"command": "ip r",
|
||||
"description": "Mostrar tabela de roteamento"
|
||||
},
|
||||
{
|
||||
"command": "ip -s link",
|
||||
"description": "Mostrar estatísticas de tráfego por interface"
|
||||
},
|
||||
{
|
||||
"command": "brctl show",
|
||||
"description": "Mostrar pontes de rede configuradas"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/network/interfaces",
|
||||
"description": "Mostrar configuração de rede bruta"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Testes em Rede",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ping <host>",
|
||||
"description": "Verifique a conectividade com outro host"
|
||||
},
|
||||
{
|
||||
"command": "traceroute <host>",
|
||||
"description": "Rastrear a rota para uma máquina"
|
||||
},
|
||||
{
|
||||
"command": "mtr <host>",
|
||||
"description": "Combine ping e traceroute em tempo real"
|
||||
},
|
||||
{
|
||||
"command": "dig <domain>",
|
||||
"description": "Pesquisa de DNS para um domínio"
|
||||
},
|
||||
{
|
||||
"command": "nslookup <domain>",
|
||||
"description": "Pesquisa alternativa DNS"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Configuração de rede",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ifreload -a",
|
||||
"description": "Recarregar configuração de rede (ifupdown2)"
|
||||
},
|
||||
{
|
||||
"command": "ethtool <iface>",
|
||||
"description": "Mostrar informações do dispositivo Ethernet"
|
||||
},
|
||||
{
|
||||
"command": "resolvectl status",
|
||||
"description": "Mostrar status de resolução DNS"
|
||||
},
|
||||
{
|
||||
"command": "nmcli device show",
|
||||
"description": "Mostrar os detalhes do dispositivo de rede (se for usado o NetworkManager)"
|
||||
},
|
||||
{
|
||||
"command": "ip link set <iface> up",
|
||||
"description": "Ativar uma interface de rede"
|
||||
},
|
||||
{
|
||||
"command": "ip link set <iface> down",
|
||||
"description": "Desativar uma interface de rede"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Monitorização da rede",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ss -tuln",
|
||||
"description": "Mostrar portas de escuta (TCP/UDP)"
|
||||
},
|
||||
{
|
||||
"command": "netstat -tuln",
|
||||
"description": "Alternativa para mostrar portas de escuta"
|
||||
},
|
||||
{
|
||||
"command": "lsof -i",
|
||||
"description": "Listar arquivos de rede abertos e conexões"
|
||||
},
|
||||
{
|
||||
"command": "tcpdump -i <iface>",
|
||||
"description": "Capturar pacotes na interface"
|
||||
},
|
||||
{
|
||||
"command": "iftop -i <iface>",
|
||||
"description": "Monitorar a utilização da largura de banda na interface"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestão da firewall",
|
||||
"commands": [
|
||||
{
|
||||
"command": "iptables -L -n -v",
|
||||
"description": "Mostrar regras de firewall ativas (iptables)"
|
||||
},
|
||||
{
|
||||
"command": "nft list ruleset",
|
||||
"description": "Mostrar regras nftables"
|
||||
},
|
||||
{
|
||||
"command": "pve-firewall status",
|
||||
"description": "Verifique o status do firewall Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "pve-firewall compile",
|
||||
"description": "Compilar regras de firewall para todos os nós"
|
||||
},
|
||||
{
|
||||
"command": "pve-firewall reload",
|
||||
"description": "Recarregar regras de firewall Proxmox"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"iptablesTip": {
|
||||
"title": "iptables vs nftables",
|
||||
"bodyRich": "O serviço clássico <code>pve-firewall</code> gera regras iptables. O serviço alternativo proxmox-firewall usa <strong>nftables</strong>. Inspecione o backend iptables com <code>iptables -L -n -v</code> e o backend nftables com <code>nft list ruleset</code>. Use as ferramentas do backend ativo; estas listagens não são intercambiáveis."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relacionado",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/network",
|
||||
"label": "Gerenciamento de rede",
|
||||
"tail": " — ferramentas de rede interactivas ProxMenux (análise de ponte, nomes persistentes, monitorização)."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/tools-commands",
|
||||
"label": "Ferramentas CLI do sistema",
|
||||
"tail": " — mais instrumentos de monitorização da rede."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Visão geral de ajuda e informações",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,232 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Comandos de armazenamento e discos Proxmox — lsblk, LVM, pvesm, qm importdisk | ProxMenux",
|
||||
"description": "Comandos de armazenamento e discos no Proxmox VE: lsblk, blkid, parted, lvdisplay, vgdisplay, pvs, mount, df, du, ncdu, pvesm status, qm importdisk e qemu-img convert para operações em discos de VM.",
|
||||
"ogTitle": "Comandos de armazenamento e discos Proxmox — lsblk, LVM, pvesm, qm importdisk",
|
||||
"ogDescription": "Referência de comandos de armazenamento e disco em Proxmox VE — inspeção de disco, LVM, montagens, gerenciamento de armazenamento Proxmox, importação de disco VM e conversão de imagem.",
|
||||
"twitterTitle": "Comandos de armazenamento Proxmox | ProxMenux",
|
||||
"twitterDescription": "Inspeção de disco, informações de montagem, gerenciamento LVM, armazenamento Proxmox e comandos de importação / conversão de disco VM."
|
||||
},
|
||||
"header": {
|
||||
"title": "Armazenamento e Discos",
|
||||
"description": "Referência para inspeção de armazenamento em hosts Proxmox: dispositivos de bloco, partições, montagens, volumes LVM, configuração de armazenamento Proxmox e algumas operações de disco VM (importdisk, qemu-img convert).",
|
||||
"section": "Ajuda e informações"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Inventário rápido do disco",
|
||||
"body": "<code>lsblk</code> mostra os dispositivos de bloco e partições em árvore. Consulte os identificadores persistentes com <code>ls -lh /dev/disk/by-id/</code>: no mesmo disco, mantêm-se normalmente após reinícios ou alterações na ordem dos dispositivos. Substituir o disco ou alterar como o controlador expõe a identidade pode mudar o caminho by-id."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Informações do disco",
|
||||
"commands": [
|
||||
{
|
||||
"command": "lsblk",
|
||||
"description": "Listar dispositivos e partições de bloco"
|
||||
},
|
||||
{
|
||||
"command": "fdisk -l",
|
||||
"description": "Listar discos com informações detalhadas"
|
||||
},
|
||||
{
|
||||
"command": "blkid",
|
||||
"description": "Mostrar UUID e tipo de sistema de arquivos de dispositivos de bloco"
|
||||
},
|
||||
{
|
||||
"command": "ls -lh /dev/disk/by-id/",
|
||||
"description": "Listar identificadores persistentes de disco"
|
||||
},
|
||||
{
|
||||
"command": "parted -l",
|
||||
"description": "Layout detalhado da partição com informações GPT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Utilização do Armazenamento",
|
||||
"commands": [
|
||||
{
|
||||
"command": "df -h",
|
||||
"description": "Mostrar o uso do disco por ponto de montagem"
|
||||
},
|
||||
{
|
||||
"command": "du -sh /path",
|
||||
"description": "Mostrar tamanho de um diretório"
|
||||
},
|
||||
{
|
||||
"command": "mount | grep ^/dev",
|
||||
"description": "Mostrar dispositivos de armazenamento montados"
|
||||
},
|
||||
{
|
||||
"command": "cat /proc/mounts",
|
||||
"description": "Mostrar todas as montagens ativas do kernel"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestão de LVM",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pvdisplay",
|
||||
"description": "Exibir volumes físicos (LVM)"
|
||||
},
|
||||
{
|
||||
"command": "vgdisplay",
|
||||
"description": "Exibir grupos de volumes (LVM)"
|
||||
},
|
||||
{
|
||||
"command": "lvdisplay",
|
||||
"description": "Exibir volumes lógicos (LVM)"
|
||||
},
|
||||
{
|
||||
"command": "pvs",
|
||||
"description": "Saída concisa de volumes físicos"
|
||||
},
|
||||
{
|
||||
"command": "vgs",
|
||||
"description": "Saída concisa de grupos de volumes"
|
||||
},
|
||||
{
|
||||
"command": "lvs",
|
||||
"description": "Saída concisa de volumes lógicos"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Armazenamento Proxmox",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/pve/storage.cfg",
|
||||
"description": "Mostrar configuração de armazenamento Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "pvesm status",
|
||||
"description": "Mostrar o status de todos os pools de armazenamento"
|
||||
},
|
||||
{
|
||||
"command": "pvesm status --enabled 1",
|
||||
"description": "Listar armazenamentos configurados e ativos"
|
||||
},
|
||||
{
|
||||
"command": "pvesm list <storage>",
|
||||
"description": "Listar o conteúdo do armazenamento específico"
|
||||
},
|
||||
{
|
||||
"command": "pvesm scan nfs <server>",
|
||||
"description": "Descobrir as exportações NFS de um servidor"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Acções do Disco",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm importdisk <vmid> <image_path> <storage>",
|
||||
"description": "Importar a imagem como disco não utilizado da VM e ligá-lo depois"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -<bus><index> <disk_path>",
|
||||
"description": "Atribuir disco físico ao VM (modo de passagem)"
|
||||
},
|
||||
{
|
||||
"command": "qemu-img convert -O <format> <input> <output>",
|
||||
"description": "Converter o formato de uma imagem de disco sem uso ativo"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Estado SMART do disco",
|
||||
"commands": [
|
||||
{
|
||||
"command": "smartctl --scan",
|
||||
"description": "Listar os dispositivos com capacidade SMART na máquina"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -i /dev/<disk>",
|
||||
"description": "Informações básicas do dispositivo (modelo, firmware, série)"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -H /dev/<disk>",
|
||||
"description": "Verificação rápida do estado geral: PASSED / FAILED"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -A /dev/<disk>",
|
||||
"description": "Apenas atributos SMART (valores brutos, limiares)"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -a /dev/<disk>",
|
||||
"description": "Informação SMART completa — info + atributos + log de auto-teste"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -t short /dev/<disk>",
|
||||
"description": "Iniciar o auto-teste curto (~2 minutos, é executado em segundo plano)"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -t long /dev/<disk>",
|
||||
"description": "Iniciar um autoteste longo, que pode demorar horas em segundo plano"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -l selftest /dev/<disk>",
|
||||
"description": "Ver log de auto-teste (resultados de testes anteriores)"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -X /dev/<disk>",
|
||||
"description": "Interromper o auto-teste em execução"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Estado do disco NVMe",
|
||||
"commands": [
|
||||
{
|
||||
"command": "nvme list",
|
||||
"description": "Listar os dispositivos NVMe visíveis para o kernel"
|
||||
},
|
||||
{
|
||||
"command": "nvme smart-log /dev/<nvme>",
|
||||
"description": "Log NVMe específico para SMART (temperatura, desgaste, erros)"
|
||||
},
|
||||
{
|
||||
"command": "nvme id-ctrl /dev/<nvme>",
|
||||
"description": "Informação do controlador (modelo, firmware, capacidades)"
|
||||
},
|
||||
{
|
||||
"command": "nvme error-log /dev/<nvme>",
|
||||
"description": "Registro de erro recente do NVMe"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"lvmTip": {
|
||||
"title": "LVM comandos curtos vs longos",
|
||||
"bodyRich": "Ambas as formas estão disponíveis. <code>pvs</code> / <code>vgs</code> / <code>lvs</code> apresentam tabelas compactas com uma linha por volume físico, grupo de volumes ou volume lógico, respetivamente. <code>pvdisplay</code> / <code>vgdisplay</code> / <code>lvdisplay</code> mostram mais detalhes em várias linhas. As formas curtas são práticas nas consultas diárias."
|
||||
},
|
||||
"smartInfo": {
|
||||
"title": "SMART em SATA/SAS e NVMe",
|
||||
"bodyRich": "<strong>Os discos SATA / SAS, incluindo SSD,</strong> podem ser inspecionados com <code>smartctl</code> de <code>smartmontools</code>, instalado por predefinição no Proxmox. Indique o dispositivo, por exemplo <code>/dev/sda</code> ou <code>/dev/sdb</code>. <strong>Os discos NVMe</strong> usam outro protocolo nativo. O <code>smartctl</code> também os suporta; o <code>nvme</code> de <code>nvme-cli</code> oferece consultas específicas a controladores, namespaces e estado NVMe. Instale-o com <code>apt install nvme-cli</code> se faltar."
|
||||
},
|
||||
"selfTestWarn": {
|
||||
"title": "Auto-testes executados em segundo plano",
|
||||
"bodyRich": "Em discos compatíveis, <code>smartctl -t short /dev/<disk></code> e <code>smartctl -t long /dev/<disk></code> iniciam testes em segundo plano e devolvem logo o controlo. Verifique o progresso com <code>smartctl -a /dev/<disk></code>, procurando \"Self-test routine in progress\", ou aguarde e leia <code>smartctl -l selftest /dev/<disk></code>. Os testes curtos costumam demorar dois minutos; os longos podem levar horas. O disco permanece utilizável, mas o desempenho de E/S pode diminuir."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relacionado",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/zfs-commands",
|
||||
"label": "Gestão de ZFS",
|
||||
"tail": " — comandos zpool / zfs para armazenamento com suporte ZFS."
|
||||
},
|
||||
{
|
||||
"href": "/docs/disk-manager",
|
||||
"label": "Gerenciador de disco",
|
||||
"tail": " — fluxos interativos ProxMenux para passagem de disco, importação, formatação, SMART."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Visão geral de ajuda e informações",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Comandos de sistema Proxmox VE — pveversion, uptime, journalctl, systemctl | ProxMenux",
|
||||
"description": "Comandos de sistema do Proxmox VE e Linux para versões, tempo de atividade, memória, serviços, registos e utilizadores, além de ferramentas de auditoria e resumo. Inclui o reinício de um serviço; nem todos os exemplos são apenas de leitura.",
|
||||
"ogTitle": "Comandos de sistema Proxmox VE — pveversion, uptime, journalctl, systemctl",
|
||||
"ogDescription": "Comandos de sistema Proxmox VE e Linux para versão, tempo de atividade, serviços, registos e utilizadores, incluindo gestão de serviços e ferramentas de auditoria.",
|
||||
"twitterTitle": "Comandos de sistema Proxmox VE | ProxMenux",
|
||||
"twitterDescription": "Comandos essenciais de inspeção do sistema para Proxmox VE — versão, estado, serviços, logs, informações do usuário."
|
||||
},
|
||||
"header": {
|
||||
"title": "Comandos úteis do sistema",
|
||||
"description": "Comandos para inspecionar o anfitrião Proxmox: versão, kernel, tempo de atividade, memória, estado da interface web, registos recentes e utilizadores ligados, além de ferramentas de auditoria e resumo. A maioria consulta o estado, mas systemctl restart pveproxy reinicia o proxy web e as auditorias podem escrever relatórios e registos.",
|
||||
"section": "Ajuda e informações"
|
||||
},
|
||||
"intro": {
|
||||
"title": "O que é isto?",
|
||||
"body": "A mesma lista numerada apresentada pelo ProxMenux em <em>Comandos úteis do sistema</em>. Use o botão Copiar para copiar um comando ou consulte a lista para recordar a opção exata."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Informações do sistema",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pveversion",
|
||||
"description": "Mostrar versão do Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "pveversion -v",
|
||||
"description": "Informações detalhadas da versão do Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "hostnamectl",
|
||||
"description": "Nome do host do sistema e informações do kernel"
|
||||
},
|
||||
{
|
||||
"command": "uname -a",
|
||||
"description": "Informações sobre kernel e arquitetura"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/os-release",
|
||||
"description": "Detalhes da versão do sistema operacional"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Estado do sistema",
|
||||
"commands": [
|
||||
{
|
||||
"command": "uptime",
|
||||
"description": "Tempo de atividade do sistema"
|
||||
},
|
||||
{
|
||||
"command": "uptime -p",
|
||||
"description": "Tempo de atividade num formato legível"
|
||||
},
|
||||
{
|
||||
"command": "free -h",
|
||||
"description": "RAM e uso de swap"
|
||||
},
|
||||
{
|
||||
"command": "who -b",
|
||||
"description": "Hora da última inicialização do sistema"
|
||||
},
|
||||
{
|
||||
"command": "last -x | grep shutdown",
|
||||
"description": "Encerramentos anteriores"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestão de Serviços",
|
||||
"commands": [
|
||||
{
|
||||
"command": "systemctl status pveproxy",
|
||||
"description": "Verifique o status da interface da Web do Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "systemctl restart pveproxy",
|
||||
"description": "Reinicie o proxy da IU da Web"
|
||||
},
|
||||
{
|
||||
"command": "journalctl -xe",
|
||||
"description": "Erros e registros do sistema"
|
||||
},
|
||||
{
|
||||
"command": "dmesg -T | tail -n 50",
|
||||
"description": "Últimas 50 linhas de log do kernel"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Informação do Utilizador",
|
||||
"commands": [
|
||||
{
|
||||
"command": "whoami",
|
||||
"description": "Usuário atual"
|
||||
},
|
||||
{
|
||||
"command": "id",
|
||||
"description": "UID, GID e grupos do usuário atual"
|
||||
},
|
||||
{
|
||||
"command": "who",
|
||||
"description": "Usuários logados"
|
||||
},
|
||||
{
|
||||
"command": "w",
|
||||
"description": "Atividade do usuário e tempo de atividade"
|
||||
},
|
||||
{
|
||||
"command": "uptime && w",
|
||||
"description": "Tempo de atividade e quem está logado"
|
||||
},
|
||||
{
|
||||
"command": "cut -d: -f1,3,4 /etc/passwd",
|
||||
"description": "Todos os usuários com UID e GID"
|
||||
},
|
||||
{
|
||||
"command": "getent passwd | column -t -s :",
|
||||
"description": "Tabela de usuário legível (UID, shell, etc.)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Ferramentas de Auditoria e Resumo",
|
||||
"commands": [
|
||||
{
|
||||
"command": "lynis audit system",
|
||||
"description": "Execute uma auditoria completa de segurança do sistema"
|
||||
},
|
||||
{
|
||||
"command": "fastfetch",
|
||||
"description": "Exibir resumo do sistema em formato ASCII"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"related": {
|
||||
"heading": "Relacionado",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/update-commands",
|
||||
"label": "Atualizações e pacotes",
|
||||
"tail": " — comandos apt e de atualização do PVE."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/tools-commands",
|
||||
"label": "Ferramentas CLI do sistema",
|
||||
"tail": " — htop, btop, ncdu e ferramentas semelhantes."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Visão geral de ajuda e informações",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,276 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Ferramentas CLI Linux para Proxmox — htop, iftop, journalctl, rsync, tmux | ProxMenux",
|
||||
"description": "Ferramentas CLI Linux para administrar o Proxmox VE no dia a dia: monitorização (htop, atop, glances, iotop), rede (iftop, nmap, mtr, ss), ficheiros e texto (find, grep, journalctl), desempenho (iostat, perf, strace), segurança (fail2ban, lynis, lsof) e administração remota (ssh, rsync, tmux).",
|
||||
"ogTitle": "Ferramentas CLI Linux para Proxmox — htop, iftop, journalctl, rsync, tmux",
|
||||
"ogDescription": "Ferramentas CLI para administrar o Proxmox VE no dia a dia, agrupadas por função: monitorização, rede, ficheiros e texto, desempenho, segurança e administração remota.",
|
||||
"twitterTitle": "Ferramentas CLI Linux para Proxmox | ProxMenux",
|
||||
"twitterDescription": "Ferramentas CLI para a administração diária do Proxmox VE, agrupadas por função."
|
||||
},
|
||||
"header": {
|
||||
"title": "Ferramentas CLI do sistema",
|
||||
"description": "Ferramentas CLI para administrar o anfitrião Proxmox no dia a dia, agrupadas por função: monitorização, rede, ficheiros e texto, análise de desempenho, segurança, administração remota e configuração do sistema.",
|
||||
"section": "Ajuda e informações"
|
||||
},
|
||||
"intro": {
|
||||
"title": "A maioria é instalada pelo script de pós-instalação",
|
||||
"body": "Se executou o script de pós-instalação com as opções predefinidas, a maioria destas ferramentas já está instalada. Para as que faltarem, o <utilsLink>instalador de utilitários de sistema</utilsLink> do ProxMenux oferece grupos predefinidos: base, desenvolvimento, rede, análise, entre outros."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Monitorização do sistema",
|
||||
"commands": [
|
||||
{
|
||||
"command": "htop",
|
||||
"description": "Visualizador de processo interativo com CPU/uso de memória"
|
||||
},
|
||||
{
|
||||
"command": "top",
|
||||
"description": "Mostrar processos Linux em tempo real"
|
||||
},
|
||||
{
|
||||
"command": "atop",
|
||||
"description": "Monitor avançado de sistema e processo"
|
||||
},
|
||||
{
|
||||
"command": "glances",
|
||||
"description": "Ferramenta de monitoramento de sistema com interface web"
|
||||
},
|
||||
{
|
||||
"command": "nmon",
|
||||
"description": "Ferramenta de monitorização do desempenho"
|
||||
},
|
||||
{
|
||||
"command": "iotop",
|
||||
"description": "Monitorar o uso de E/S do disco por processos"
|
||||
},
|
||||
{
|
||||
"command": "vmstat 1",
|
||||
"description": "Reportar estatísticas de memória virtual a cada segundo"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Ferramentas de rede",
|
||||
"commands": [
|
||||
{
|
||||
"command": "iftop",
|
||||
"description": "Mostrar a utilização da largura de banda numa interface"
|
||||
},
|
||||
{
|
||||
"command": "nmap <host>",
|
||||
"description": "Exploração de rede e verificação de segurança"
|
||||
},
|
||||
{
|
||||
"command": "tcpdump -i <interface>",
|
||||
"description": "Capturar tráfego de rede"
|
||||
},
|
||||
{
|
||||
"command": "netstat -tuln",
|
||||
"description": "Exibir conexões de rede"
|
||||
},
|
||||
{
|
||||
"command": "ss -tuln",
|
||||
"description": "Outro utilitário para investigar soquetes"
|
||||
},
|
||||
{
|
||||
"command": "mtr <host>",
|
||||
"description": "Ferramenta de diagnóstico de rede combinando ping e traceroute"
|
||||
},
|
||||
{
|
||||
"command": "iperf3 -s",
|
||||
"description": "Executar o servidor iperf para testes de largura de banda"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Ferramentas de Arquivo e Texto",
|
||||
"commands": [
|
||||
{
|
||||
"command": "find / -name <filename>",
|
||||
"description": "Procurar os ficheiros pelo nome"
|
||||
},
|
||||
{
|
||||
"command": "grep -r 'pattern' /path",
|
||||
"description": "Procurar o padrão nos arquivos"
|
||||
},
|
||||
{
|
||||
"command": "sed -i 's/old/new/g' file",
|
||||
"description": "Substituir o texto nos ficheiros"
|
||||
},
|
||||
{
|
||||
"command": "awk '{print $1}' file",
|
||||
"description": "Ferramenta de processamento de texto"
|
||||
},
|
||||
{
|
||||
"command": "tail -f /var/log/syslog",
|
||||
"description": "Seguir o ficheiro de registo em tempo real"
|
||||
},
|
||||
{
|
||||
"command": "less /var/log/messages",
|
||||
"description": "Ver o ficheiro com paginação"
|
||||
},
|
||||
{
|
||||
"command": "journalctl -f",
|
||||
"description": "Acompanhar os registos do journal do systemd"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Análise de desempenho",
|
||||
"commands": [
|
||||
{
|
||||
"command": "iostat -x 1",
|
||||
"description": "Apresentar estatísticas de CPU e E/S"
|
||||
},
|
||||
{
|
||||
"command": "mpstat -P ALL 1",
|
||||
"description": "Relatório sobre a utilização do CPU"
|
||||
},
|
||||
{
|
||||
"command": "perf top",
|
||||
"description": "Ferramenta de perfil do sistema"
|
||||
},
|
||||
{
|
||||
"command": "strace <command>",
|
||||
"description": "Rastrear chamadas e sinais do sistema"
|
||||
},
|
||||
{
|
||||
"command": "lsof",
|
||||
"description": "Listar os ficheiros abertos"
|
||||
},
|
||||
{
|
||||
"command": "pstree",
|
||||
"description": "Exibir árvore de processo"
|
||||
},
|
||||
{
|
||||
"command": "slabtop",
|
||||
"description": "Mostrar informações da cache slab do kernel"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Ferramentas de Segurança",
|
||||
"commands": [
|
||||
{
|
||||
"command": "fail2ban-client status",
|
||||
"description": "Mostrar o estado do fail2ban"
|
||||
},
|
||||
{
|
||||
"command": "chage -l <username>",
|
||||
"description": "Mostrar a informação de validade da senha"
|
||||
},
|
||||
{
|
||||
"command": "lastlog",
|
||||
"description": "Mostrar o último login de todos os usuários"
|
||||
},
|
||||
{
|
||||
"command": "last",
|
||||
"description": "Mostrar a lista dos últimos utilizadores que iniciaram sessão"
|
||||
},
|
||||
{
|
||||
"command": "w",
|
||||
"description": "Mostrar quem está ligado e o que está a fazer"
|
||||
},
|
||||
{
|
||||
"command": "lynis audit system",
|
||||
"description": "Ferramenta de auditoria de segurança"
|
||||
},
|
||||
{
|
||||
"command": "openssl s_client -connect host:port",
|
||||
"description": "Testar conexões SSL/TLS"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Administração remota",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ssh <user>@<host>",
|
||||
"description": "Conexão de shell segura"
|
||||
},
|
||||
{
|
||||
"command": "scp <file> <user>@<host>:<path>",
|
||||
"description": "Copiar ficheiros em segurança"
|
||||
},
|
||||
{
|
||||
"command": "rsync -avz <src> <dest>",
|
||||
"description": "Sincronizar arquivos/pastas"
|
||||
},
|
||||
{
|
||||
"command": "screen",
|
||||
"description": "Multiplexador de terminal"
|
||||
},
|
||||
{
|
||||
"command": "tmux",
|
||||
"description": "Alternativa de multiplexador de terminal"
|
||||
},
|
||||
{
|
||||
"command": "ssh-keygen -t rsa -b 4096",
|
||||
"description": "Gerar par de chaves SSH"
|
||||
},
|
||||
{
|
||||
"command": "ssh-copy-id <user>@<host>",
|
||||
"description": "Copiar a chave SSH para o servidor"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Configuração do Sistema",
|
||||
"commands": [
|
||||
{
|
||||
"command": "systemctl status <service>",
|
||||
"description": "Verificar o estado do serviço"
|
||||
},
|
||||
{
|
||||
"command": "journalctl -u <service>",
|
||||
"description": "Ver os registos de serviços"
|
||||
},
|
||||
{
|
||||
"command": "timedatectl",
|
||||
"description": "Gerir a data e a hora do sistema"
|
||||
},
|
||||
{
|
||||
"command": "hostnamectl",
|
||||
"description": "Gerir o nome do anfitrião"
|
||||
},
|
||||
{
|
||||
"command": "localectl",
|
||||
"description": "Gerir as definições regionais e o teclado do sistema"
|
||||
},
|
||||
{
|
||||
"command": "update-alternatives --config <name>",
|
||||
"description": "Configurar alternativas de sistema"
|
||||
},
|
||||
{
|
||||
"command": "dpkg-reconfigure <package>",
|
||||
"description": "Reconfigurar um pacote instalado"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"tmuxTip": {
|
||||
"title": "Usar tmux / screen para comandos demorados",
|
||||
"bodyRich": "Execute tarefas demoradas, como cópias de segurança, atualizações ou grandes transferências rsync, em <code>tmux</code> ou <code>screen</code> para uma desconexão SSH não terminar a sessão do terminal. Numa sessão tmux, volte a ligar-se ao mesmo anfitrião com o mesmo utilizador e execute <code>tmux attach</code>. As sessões screen usam o seu próprio comando de reconexão."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relacionado",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/utils/system-utils",
|
||||
"label": "Instalador de utilitários de sistema",
|
||||
"tail": " — instalar qualquer uma destas ferramentas em falta."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/system-commands",
|
||||
"label": "Comandos úteis do sistema",
|
||||
"tail": " — Comandos de inspecção específicos do proxmox."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Visão geral de ajuda e informações",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Comandos de atualização e pacotes Proxmox — apt, pveupgrade, dpkg | ProxMenux",
|
||||
"description": "Comandos de atualização e gestão de pacotes Proxmox VE: apt update, apt upgrade, apt dist-upgrade, pveupgrade, dpkg -l, informações sobre pacotes e configuração de repositórios em /etc/apt/sources.list.d/.",
|
||||
"ogTitle": "Comandos de atualização e pacotes Proxmox — apt, pveupgrade, dpkg",
|
||||
"ogDescription": "comandos apt, pveupgrade e dpkg para manter o Proxmox VE atualizado — atualizações do sistema, gerenciamento de pacotes, configuração do repositório.",
|
||||
"twitterTitle": "Comandos de atualização Proxmox | ProxMenux",
|
||||
"twitterDescription": "Comandos apt e pveupgrade para gerir atualizações e pacotes em anfitriões Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "Atualizações e pacotes",
|
||||
"description": "Seleção de comandos apt e de atualização Proxmox: atualizações do sistema, instalação, remoção e eliminação completa de pacotes, consultas com apt-cache policy e dpkg -l e inspeção dos repositórios.",
|
||||
"section": "Ajuda e informações"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Atualizar sempre o índice primeiro",
|
||||
"body": "O <code>apt update</code> atualiza o índice de pacotes local dos repositórios configurados. Sem ele, <code>apt install</code> pode puxar versões antigas ou falhar com \"Não é possível localizar o pacote\"."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Atualizações do sistema",
|
||||
"commands": [
|
||||
{
|
||||
"command": "apt update && apt upgrade -y",
|
||||
"description": "Atualizar as listas e os pacotes instalados (apt upgrade)"
|
||||
},
|
||||
{
|
||||
"command": "apt dist-upgrade -y",
|
||||
"description": "Atualização completa do sistema, incluindo dependências"
|
||||
},
|
||||
{
|
||||
"command": "apt update",
|
||||
"description": "Atualizar apenas as listas de pacotes"
|
||||
},
|
||||
{
|
||||
"command": "apt upgrade",
|
||||
"description": "Atualizar apenas pacotes (interativos)"
|
||||
},
|
||||
{
|
||||
"command": "apt full-upgrade",
|
||||
"description": "Atualizar pacotes com tratamento de dependência (interativo)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Atualizações do Proxmox",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pveupdate",
|
||||
"description": "Atualizar listas de pacotes Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "pveupgrade",
|
||||
"description": "Iniciar a atualização interativa dos pacotes Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "pve8to9 --full",
|
||||
"description": "Verificar a preparação para passar do PVE 8 para 9, sem executar a atualização"
|
||||
},
|
||||
{
|
||||
"command": "ceph versions",
|
||||
"description": "Mostrar as versões dos serviços Ceph antes de planear uma atualização"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestão de Pacotes",
|
||||
"commands": [
|
||||
{
|
||||
"command": "apt autoremove --purge",
|
||||
"description": "Remova pacotes não utilizados e suas configurações"
|
||||
},
|
||||
{
|
||||
"command": "apt clean",
|
||||
"description": "Limpar o repositório local dos arquivos de pacotes recuperados"
|
||||
},
|
||||
{
|
||||
"command": "apt autoclean",
|
||||
"description": "Limpar apenas os ficheiros de pacotes desactualizados"
|
||||
},
|
||||
{
|
||||
"command": "apt install <package>",
|
||||
"description": "Instalar um pacote específico"
|
||||
},
|
||||
{
|
||||
"command": "apt remove <package>",
|
||||
"description": "Remover um pacote"
|
||||
},
|
||||
{
|
||||
"command": "apt purge <package>",
|
||||
"description": "Remover um pacote e os seus ficheiros de configuração"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Informação do Pacote",
|
||||
"commands": [
|
||||
{
|
||||
"command": "apt list --installed",
|
||||
"description": "Listar todos os pacotes instalados"
|
||||
},
|
||||
{
|
||||
"command": "apt search <keyword>",
|
||||
"description": "Procurar por pacotes por palavra- chave"
|
||||
},
|
||||
{
|
||||
"command": "apt show <package>",
|
||||
"description": "Mostrar informações detalhadas sobre um pacote"
|
||||
},
|
||||
{
|
||||
"command": "dpkg -l",
|
||||
"description": "Listar todos os pacotes instalados (alternativo)"
|
||||
},
|
||||
{
|
||||
"command": "dpkg -l | grep <keyword>",
|
||||
"description": "Procurar pacotes instalados por palavra- chave"
|
||||
},
|
||||
{
|
||||
"command": "apt-cache policy <package>",
|
||||
"description": "Mostrar as versões e prioridades do pacote"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestão do Repositório",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/apt/sources.list",
|
||||
"description": "Mostrar as fontes principais do repositório APT"
|
||||
},
|
||||
{
|
||||
"command": "ls -la /etc/apt/sources.list.d/",
|
||||
"description": "Listar ficheiros adicionais de configuração de repositórios"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/apt/sources.list.d/pve-enterprise.list",
|
||||
"description": "Mostrar a configuração do repositório Proxmox Enterprise no ficheiro .list do PVE 8"
|
||||
},
|
||||
{
|
||||
"command": "apt-key list",
|
||||
"description": "Listar as antigas chaves de assinatura dos repositórios onde apt-key esteja disponível"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"backupWarn": {
|
||||
"title": "Faça um backup antes das principais atualizações",
|
||||
"bodyRich": "Para atualizações correntes, o Proxmox recomenda <code>apt update && apt full-upgrade</code>; reveja as alterações de pacotes antes de confirmar. Para <strong>atualizações de versão principal</strong> (PVE 8 → 9), use o procedimento ProxMenux <upgradeLink>Atualizar PVE 8 para PVE 9</upgradeLink>. Inclui verificações prévias, migração de repositórios e validação final. Faça primeiro uma cópia de segurança."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relacionado",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/utils/system-update",
|
||||
"label": "Actualização do Sistema Proxmox (interactiva)",
|
||||
"tail": " — wrapper que faz tudo isso com uma janela de confirmação, uma reconstrução automática DKMS de drivers gerenciados por ProxMenux quando um novo kernel é instalado e um prompt de reinicialização. Também pode ser lançado a partir do botão Atualizar agora do painel ProxMenux Monitor."
|
||||
},
|
||||
{
|
||||
"href": "/docs/utils/upgrade-pve8-pve9",
|
||||
"label": "Atualize PVE 8 para PVE 9",
|
||||
"tail": " — para actualizações de grandes versões."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Visão geral de ajuda e informações",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Comandos qm e pct do Proxmox — gestão de VM e contentores LXC | ProxMenux",
|
||||
"description": "Comandos qm e pct do Proxmox VE para VM e contentores LXC: list, config, start, stop, shutdown, reboot, destroy, clone, migrate, snapshot, resize e pct exec / enter / push / pull para contentores.",
|
||||
"ogTitle": "Comandos qm e pct do Proxmox — gestão de VM e contentores LXC",
|
||||
"ogDescription": "Comandos qm e pct do Proxmox VE para gerir máquinas virtuais e contentores LXC pelo terminal: iniciar, parar, configurar, criar snapshots, migrar, clonar e eliminar.",
|
||||
"twitterTitle": "Comandos qm / pct do Proxmox | ProxMenux",
|
||||
"twitterDescription": "Seleção de comandos qm / pct para gerir máquinas virtuais e contentores LXC no Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "Gestão de VM e CT",
|
||||
"description": "Seleção de comandos qm para VM e pct para contentores LXC: listagem, ciclo de vida (start / stop / shutdown / destroy), consulta da configuração e operações de contentor como exec, enter, push e pull.",
|
||||
"section": "Ajuda e informações"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Encontrar primeiro um VMID ou CTID",
|
||||
"body": "Quase todos os comandos precisam de um ID numérico. Use <code>qm list</code> para VM e <code>pct list</code> para contentores. Substitua <code><vmid></code> / <code><ctid></code> nos exemplos pelo ID real antes de executar."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Listagem e Informação",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm list",
|
||||
"description": "Listar todas as máquinas virtuais"
|
||||
},
|
||||
{
|
||||
"command": "pct list",
|
||||
"description": "Listar todos os contentores LXC"
|
||||
},
|
||||
{
|
||||
"command": "qm config <vmid>",
|
||||
"description": "Mostrar a configuração da VM interpretada por qm"
|
||||
},
|
||||
{
|
||||
"command": "pct config <ctid>",
|
||||
"description": "Mostrar a configuração do contentor interpretada por pct"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Arquivos de configuração (raw)",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Ver arquivo de configuração bruto da VM"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/pve/lxc/<ctid>.conf",
|
||||
"description": "Ver arquivo de configuração CT bruto"
|
||||
},
|
||||
{
|
||||
"command": "nano /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Editar arquivo de configuração VM (nano)"
|
||||
},
|
||||
{
|
||||
"command": "nano /etc/pve/lxc/<ctid>.conf",
|
||||
"description": "Editar arquivo de configuração CT (nano)"
|
||||
},
|
||||
{
|
||||
"command": "vi /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Editar o ficheiro de configuração VM (vi)"
|
||||
},
|
||||
{
|
||||
"command": "vi /etc/pve/lxc/<ctid>.conf",
|
||||
"description": "Editar o ficheiro de configuração CT (vi)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestão de VM",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm start <vmid>",
|
||||
"description": "Inicie uma máquina virtual. Use o <vmid> correto"
|
||||
},
|
||||
{
|
||||
"command": "qm stop <vmid>",
|
||||
"description": "Forçar a parada de uma máquina virtual. Use o <vmid> correto"
|
||||
},
|
||||
{
|
||||
"command": "qm shutdown <vmid>",
|
||||
"description": "Desligar uma máquina virtual de forma ordenada"
|
||||
},
|
||||
{
|
||||
"command": "qm reset <vmid>",
|
||||
"description": "Reiniciar uma máquina virtual (reboot rígido)"
|
||||
},
|
||||
{
|
||||
"command": "qm suspend <vmid>",
|
||||
"description": "Suspender uma máquina virtual"
|
||||
},
|
||||
{
|
||||
"command": "qm resume <vmid>",
|
||||
"description": "Continuar uma máquina virtual suspensa"
|
||||
},
|
||||
{
|
||||
"command": "qm destroy <vmid>",
|
||||
"description": "Exclua uma VM (irreversível). Use o <vmid> correto"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestão de contentores",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pct start <ctid>",
|
||||
"description": "Inicie um contêiner. Use o <ctid> correto"
|
||||
},
|
||||
{
|
||||
"command": "pct stop <ctid>",
|
||||
"description": "Forçar a parada de um contêiner. Use o <ctid> correto"
|
||||
},
|
||||
{
|
||||
"command": "pct shutdown <ctid>",
|
||||
"description": "Desligar um contentor de forma ordenada"
|
||||
},
|
||||
{
|
||||
"command": "pct reboot <ctid>",
|
||||
"description": "Reiniciar um contentor"
|
||||
},
|
||||
{
|
||||
"command": "pct destroy <ctid>",
|
||||
"description": "Excluir um CT (irreversível). Use o <ctid> correto"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Operações de Contentores",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pct exec <ctid> -- getent passwd | column -t -s :",
|
||||
"description": "Mostrar usuários do CT em formato de tabela"
|
||||
},
|
||||
{
|
||||
"command": "pct exec <ctid> -- ps aux --sort=-%mem | head",
|
||||
"description": "Principais processos de memória em CT"
|
||||
},
|
||||
{
|
||||
"command": "pct enter <ctid>",
|
||||
"description": "Entrar na shell do contentor"
|
||||
},
|
||||
{
|
||||
"command": "pct push <ctid> <source> <dest>",
|
||||
"description": "Copiar o ficheiro da máquina para o contentor"
|
||||
},
|
||||
{
|
||||
"command": "pct pull <ctid> <source> <dest>",
|
||||
"description": "Copiar o ficheiro do contentor para a máquina"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"destroyWarn": {
|
||||
"title": "Destruir é irreversível.",
|
||||
"bodyRich": "<code>qm destroy</code> e <code>pct destroy</code> removem a configuração do sistema convidado e os seus volumes de disco geridos. Não pressuponha que os dados externos ou em bind mounts são eliminados. A CLI não pede confirmação por predefinição. Guarde primeiro os dados necessários; consulte <backupLink>Cópias de segurança e restauro</backupLink>."
|
||||
},
|
||||
"qmConfigTip": {
|
||||
"title": "qm config ou edição direta do ficheiro .conf",
|
||||
"bodyRich": "<code>qm config <vmid></code> e <code>pct config <ctid></code> mostram a configuração através dos analisadores Proxmox. Para alterações normais, prefira <code>qm set</code> ou o comando pct equivalente. Editar diretamente <code>/etc/pve/qemu-server/<vmid>.conf</code> ou <code>/etc/pve/lxc/<ctid>.conf</code> contorna a validação e os bloqueios dos comandos de gestão; o ficheiro tem de continuar interpretável. Pare o sistema convidado e guarde uma cópia antes de reparar manualmente. <code>pmxcfs</code> sincroniza configurações entre nós, não os dados dos discos convidados."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relacionado",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/backup-commands",
|
||||
"label": "Cópias de segurança e restauro",
|
||||
"tail": " — vzdump e qmrestore / pct restore."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"label": "Armazenamento e Discos",
|
||||
"tail": " — qm importdisk e gestão de discos."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Visão geral de ajuda e informações",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,227 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Comandos ZFS no Proxmox — zpool, zfs snapshot, send/receive, scrub | ProxMenux",
|
||||
"description": "Comandos de gestão ZFS no Proxmox VE: zpool create / status / history, zfs list / get / set, snapshots, clone, zfs send e receive, scrub, clear, replace, zpool iostat e resumo ARC.",
|
||||
"ogTitle": "Comandos ZFS no Proxmox — zpool, zfs snapshot, send/receive, scrub",
|
||||
"ogDescription": "Referência dos comandos zpool e zfs em Proxmox VE — pools, conjuntos de dados, instantâneos, replicação, manutenção.",
|
||||
"twitterTitle": "Comandos ZFS no Proxmox | ProxMenux",
|
||||
"twitterDescription": "Comandos zpool e zfs para Proxmox VE: pools, datasets, snapshots, replicação e manutenção."
|
||||
},
|
||||
"header": {
|
||||
"title": "Gestão de ZFS",
|
||||
"description": "Seleção de comandos zpool e zfs: inspeção de pools, criação, leitura, alteração e eliminação de datasets, snapshots, clone e send/receive incremental ou recursivo, manutenção com scrub / clear / replace, estatísticas de E/S e resumo ARC.",
|
||||
"section": "Ajuda e informações"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Duas famílias de comando",
|
||||
"body": "O <code>zpool *</code> gere os conjuntos de armazenamento (camada física — discos, vdevs, redundância). <code>zfs *</code> gerencia os conjuntos de dados e instantâneos que vivem dentro desses pools (camada lógica — sistemas de arquivos, volumes, instantâneos, propriedades)."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Informações dos pools",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zpool list",
|
||||
"description": "Listar todos os pools ZFS"
|
||||
},
|
||||
{
|
||||
"command": "zpool status",
|
||||
"description": "Mostrar o estado detalhado e a saúde do pool"
|
||||
},
|
||||
{
|
||||
"command": "zpool status -v",
|
||||
"description": "Mostrar o estado detalhado do pool com os erros"
|
||||
},
|
||||
{
|
||||
"command": "zpool history",
|
||||
"description": "Mostrar o histórico de comandos para todos os grupos"
|
||||
},
|
||||
{
|
||||
"command": "zpool history <pool>",
|
||||
"description": "Mostrar o histórico de comandos de um pool específico"
|
||||
},
|
||||
{
|
||||
"command": "zpool get all <pool>",
|
||||
"description": "Mostrar todas as propriedades de um pool"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gerenciamento de conjuntos de dados",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zfs list",
|
||||
"description": "Listar todos os conjuntos de dados ZFS"
|
||||
},
|
||||
{
|
||||
"command": "zfs list -r <pool>",
|
||||
"description": "Listar todos os conjuntos de dados num pool recursivamente"
|
||||
},
|
||||
{
|
||||
"command": "zfs create <pool>/<dataset>",
|
||||
"description": "Criar um novo conjunto de dados"
|
||||
},
|
||||
{
|
||||
"command": "zfs destroy <pool>/<dataset>",
|
||||
"description": "Destruir um conjunto de dados"
|
||||
},
|
||||
{
|
||||
"command": "zfs rename <pool>/<dataset> <pool>/<new-name>",
|
||||
"description": "Renomear um conjunto de dados"
|
||||
},
|
||||
{
|
||||
"command": "zfs get all <pool>/<dataset>",
|
||||
"description": "Mostrar todas as propriedades de um conjunto de dados"
|
||||
},
|
||||
{
|
||||
"command": "zfs set compression=on <pool>/<dataset>",
|
||||
"description": "Activar a compressão num conjunto de dados"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Gestão de Instantâneos",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zfs list -t snapshot",
|
||||
"description": "Listar todos os instantâneos"
|
||||
},
|
||||
{
|
||||
"command": "zfs list -t snapshot -r <pool>",
|
||||
"description": "Listar todos os instantâneos em um pool"
|
||||
},
|
||||
{
|
||||
"command": "zfs snapshot <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Criar um instantâneo"
|
||||
},
|
||||
{
|
||||
"command": "zfs destroy <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Apagar um instantâneo"
|
||||
},
|
||||
{
|
||||
"command": "zfs rollback <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Retroceder para um instantâneo"
|
||||
},
|
||||
{
|
||||
"command": "zfs hold <tag> <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Proteger um snapshot contra eliminação com um hold"
|
||||
},
|
||||
{
|
||||
"command": "zfs release <tag> <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Remover a proteção hold de um snapshot"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Clonar e Enviar/Receber",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zfs clone <pool>/<dataset>@<snapshot> <pool>/<clone-name>",
|
||||
"description": "Criar um clone a partir de um instantâneo"
|
||||
},
|
||||
{
|
||||
"command": "zfs send <pool>/<dataset>@<snapshot> > backup.zfs",
|
||||
"description": "Enviar um instantâneo para um arquivo"
|
||||
},
|
||||
{
|
||||
"command": "zfs receive <pool>/<dataset> < backup.zfs",
|
||||
"description": "Receber um instantâneo a partir de um ficheiro"
|
||||
},
|
||||
{
|
||||
"command": "zfs send -i <pool>/<dataset>@<snap1> <pool>/<dataset>@<snap2> > incr.zfs",
|
||||
"description": "Enviar instantâneo incremental"
|
||||
},
|
||||
{
|
||||
"command": "zfs send -R <pool>/<dataset>@<snapshot> > full-recursive.zfs",
|
||||
"description": "Enviar instantâneo recursivo"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Manutenção e Reparação",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zpool scrub <pool>",
|
||||
"description": "Iniciar uma verificação scrub do pool"
|
||||
},
|
||||
{
|
||||
"command": "zpool scrub -s <pool>",
|
||||
"description": "Parar o scrub em execução"
|
||||
},
|
||||
{
|
||||
"command": "zpool clear <pool>",
|
||||
"description": "Repor os contadores de erros do pool"
|
||||
},
|
||||
{
|
||||
"command": "zpool clear <pool> <device>",
|
||||
"description": "Limpar erros num dispositivo específico"
|
||||
},
|
||||
{
|
||||
"command": "zpool replace <pool> <old-device> <new-device>",
|
||||
"description": "Substituir um dispositivo falhado"
|
||||
},
|
||||
{
|
||||
"command": "zpool offline <pool> <device>",
|
||||
"description": "Colocar um dispositivo offline no pool"
|
||||
},
|
||||
{
|
||||
"command": "zpool online <pool> <device>",
|
||||
"description": "Voltar a colocar um dispositivo online no pool"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Desempenho e acompanhamento",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zpool iostat",
|
||||
"description": "Mostrar estatísticas de E/ S para pools"
|
||||
},
|
||||
{
|
||||
"command": "zpool iostat -v",
|
||||
"description": "Mostrar estatísticas de E/S detalhadas"
|
||||
},
|
||||
{
|
||||
"command": "zpool iostat 5",
|
||||
"description": "Mostrar estatísticas de E/ S a cada 5 segundos"
|
||||
},
|
||||
{
|
||||
"command": "arc_summary",
|
||||
"description": "Mostrar as estatísticas ARC (se instaladas)"
|
||||
},
|
||||
{
|
||||
"command": "zfs get compressratio <pool>/<dataset>",
|
||||
"description": "Mostrar a razão de compressão"
|
||||
},
|
||||
{
|
||||
"command": "zfs get used,available,referenced <pool>/<dataset>",
|
||||
"description": "Mostrar a utilização do espaço"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"bestPractices": {
|
||||
"title": "Melhores práticas operacionais",
|
||||
"bodyRich": "Agende regularmente <code>zpool scrub</code> para verificar as somas de controlo e analise o resultado. Mantenha capacidade livre: o efeito de um pool quase cheio depende da carga e da estrutura. Use <code>zpool replace</code> para um dispositivo avariado e siga o procedimento do respetivo tipo de vdev. Detach + add não é equivalente e pode alterar a topologia ou eliminar redundância."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relacionado",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"label": "Armazenamento e Discos",
|
||||
"tail": " — comandos gerais de dispositivos de bloco e LVM."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/backup-commands",
|
||||
"label": "Cópias de segurança e restauro",
|
||||
"tail": " — vzdump, qmrestore."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Visão geral de ajuda e informações",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,235 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Príkazy zálohovania Proxmox — vzdump, qmrestore, pct restore | ProxMenux",
|
||||
"description": "Prehľad príkazov zálohovania a obnovy v Proxmox VE: vzdump pre VM a kontajnery LXC, qmrestore pre VM, pct restore pre kontajnery, plánované zálohy v /etc/pve/jobs.cfg, hook skripty a vylúčené cesty.",
|
||||
"ogTitle": "Príkazy zálohovania Proxmox — vzdump, qmrestore, pct restore",
|
||||
"ogDescription": "Prehľad príkazov vzdump, qmrestore a pct restore na zálohovanie a obnovu VM a kontajnerov LXC v Proxmoxe.",
|
||||
"twitterTitle": "Príkazy zálohovania Proxmoxu | ProxMenux",
|
||||
"twitterDescription": "Príkazy vzdump, qmrestore a pct restore na zálohovanie a obnovu VM a kontajnerov Proxmox."
|
||||
},
|
||||
"header": {
|
||||
"title": "Zálohovanie a obnova",
|
||||
"description": "Prehľad príkazov vzdump, qmrestore a pct restore pre zálohovanie v Proxmoxe. Obsahuje plánovanie, pokročilé možnosti ako hook skripty, vylúčené cesty a prioritu I/O, ako aj správu súborov záloh.",
|
||||
"section": "Pomoc a informácie"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Tri režimy zálohovania",
|
||||
"body": "Pri VM je <strong>snapshot</strong> živá záloha bez požiadavky na snímky úložiska. <strong>suspend</strong> VM predtým pozastaví a nemusí zlepšiť konzistentnosť. <strong>stop</strong> ju najprv vypne; predtým bežiaca VM môže pokračovať po začatí zálohy. Pri LXC je to iné: snapshot vyžaduje úložisko so snímkami, suspend používa dva priechody rsync a stop drží kontajner zastavený počas celej zálohy."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Zálohovanie VM",
|
||||
"commands": [
|
||||
{
|
||||
"command": "vzdump <vmid>",
|
||||
"description": "Vytvoriť zálohu špecifického VM/CT"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --storage <storage>",
|
||||
"description": "Zálohovanie VM do špecifického úložiska"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mode snapshot",
|
||||
"description": "Vytvoriť zálohu snímok (pre VMs)"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mode suspend",
|
||||
"description": "Pozastaviť VM pred živou zálohou, starší režim suspend"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mode stop",
|
||||
"description": "Vypnúť VM pred začatím zálohy"
|
||||
},
|
||||
{
|
||||
"command": "vzdump --all",
|
||||
"description": "Zálohovať všetky VM a kontajnery"
|
||||
},
|
||||
{
|
||||
"command": "vzdump --all --exclude <vmid1>,<vmid2>",
|
||||
"description": "Zálohovať všetko okrem zadaných VM"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Možnosti zálohovania",
|
||||
"commands": [
|
||||
{
|
||||
"command": "vzdump <vmid> --compress zstd",
|
||||
"description": "Použiť kompresiu zstd pre zálohovanie"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --compress gzip --pigz <threads>",
|
||||
"description": "Použiť pigz s viacerými vláknami"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --storage <storage> --notes-template <text>",
|
||||
"description": "Pridať poznámky k zálohe"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mailto <email>",
|
||||
"description": "Poslať notifikáciu e-mail"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --prune-backups keep-last=<n>",
|
||||
"description": "Udržujte iba n zálohy na VM"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --stdexcludes 0",
|
||||
"description": "Nevylučujte dočasné súbory"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --quiet 1",
|
||||
"description": "Potlačiť výstupné správy"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Obnoviť zálohy",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qmrestore <backup-file> <vmid>",
|
||||
"description": "Obnoviť VM zo zálohy"
|
||||
},
|
||||
{
|
||||
"command": "qmrestore <backup-file> <vmid> --storage <storage>",
|
||||
"description": "Obnoviť na vybrané úložisko"
|
||||
},
|
||||
{
|
||||
"command": "qmrestore <backup-file> <vmid> --unique",
|
||||
"description": "Obnoviť VM s novými náhodnými MAC adresami"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file>",
|
||||
"description": "Obnoviť kontajner zo zálohy"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file> --storage <storage>",
|
||||
"description": "Obnoviť kontajner na vybrané úložisko"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file> --rootfs <storage>:<size-GiB>",
|
||||
"description": "Obnoviť s koreňovým diskom na vybranom úložisku a so zvolenou veľkosťou"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file> --unprivileged 1",
|
||||
"description": "Obnoviť ako neprivilegovaný CT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Správa záloh",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ls -la /var/lib/vz/dump/",
|
||||
"description": "Zoznam záloh v predvolenom mieste"
|
||||
},
|
||||
{
|
||||
"command": "find /var/lib/vz/dump/ -name \"*.vma*\"",
|
||||
"description": "Nájsť zálohy VM"
|
||||
},
|
||||
{
|
||||
"command": "find /var/lib/vz/dump/ -name \"*.tar*\"",
|
||||
"description": "Nájsť zálohy kontajnerov"
|
||||
},
|
||||
{
|
||||
"command": "pvesm list <storage> --content backup",
|
||||
"description": "Zobraziť zálohy na vybranom úložisku"
|
||||
},
|
||||
{
|
||||
"command": "rm /var/lib/vz/dump/<backup-file>",
|
||||
"description": "Odstrániť zálohovací súbor"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/vzdump.conf",
|
||||
"description": "Zobraziť nastavenie zálohy"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Plánované zálohy",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/pve/jobs.cfg",
|
||||
"description": "Zobraziť plán zálohovania"
|
||||
},
|
||||
{
|
||||
"command": "nano /etc/vzdump.conf",
|
||||
"description": "Upraviť nastavenie zálohovania"
|
||||
},
|
||||
{
|
||||
"command": "systemctl list-timers",
|
||||
"description": "Zobraziť časovače systemd"
|
||||
},
|
||||
{
|
||||
"command": "systemctl status cron",
|
||||
"description": "Kontrola stavu služby Cron"
|
||||
},
|
||||
{
|
||||
"command": "pvenode task list --typefilter vzdump",
|
||||
"description": "Zobraziť dokončené úlohy zálohovania"
|
||||
},
|
||||
{
|
||||
"command": "pvenode task log <upid>",
|
||||
"description": "Zobraziť protokol úlohy zálohovania podľa jej UPID"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Pokročilé operácie",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qmrestore <backup> <vmid> --force",
|
||||
"description": "Vynútiť obnovu s prepísaním existujúcej VM"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --dumpdir <directory>",
|
||||
"description": "Zadať vlastný záložný adresár"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --script <script>",
|
||||
"description": "Spustiť hook skript počas zálohy"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --exclude-path <path>",
|
||||
"description": "Vylúčiť špecifické cesty zo zálohy"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --ionice <priority>",
|
||||
"description": "Nastaviť prioritu I/O pre proces zálohovania"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --lockwait <minutes>",
|
||||
"description": "Počkajte na zámok"
|
||||
},
|
||||
{
|
||||
"command": "qm importdisk <vmid> <disk-image> <storage>",
|
||||
"description": "Importovať súbor obrazu disku (napríklad raw, qcow2 alebo vmdk) ako nepoužitý disk, nie archív zálohy vzdump"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"testRestores": {
|
||||
"title": "Otestujte si svoje obnovy",
|
||||
"bodyRich": "Pravidelne obnovte zálohu na voľné testovacie VMID cez <code>qmrestore --unique</code>, spustite VM v izolovanej testovacej sieti a overte obsah. Voľba unique vytvára nové MAC adresy, nemení statické IP ani nastavenia aplikácií. Rovnako otestujte kontajnery cez <code>pct restore</code>."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Súvisiace",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/vm-ct-commands",
|
||||
"label": "Správa VM a CT",
|
||||
"tail": " — príkazy qm a pct na správu životného cyklu hostí."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"label": "Úložiská a disky",
|
||||
"tail": " — správa úložísk cez pvesm."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Prehľad pomoci a informácií",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Príkazy GPU passthrough v Proxmoxe — lspci, VFIO, IOMMU, qm set hostpci | ProxMenux",
|
||||
"description": "Prehľad GPU passthrough v Proxmox VE: identifikácia zariadení cez lspci, moduly VFIO, skupiny IOMMU (intel_iommu / amd_iommu), aktualizácie GRUB a initramfs, qm set hostpci0 a nastavenie GPU NVIDIA, AMD a Intel.",
|
||||
"ogTitle": "Príkazy GPU passthrough v Proxmoxe — lspci, VFIO, IOMMU, qm set hostpci",
|
||||
"ogDescription": "Odkaz na kontrolu a konfiguráciu GPU priechodu na Proxmox VE — PCI zariadenia, VFIO moduly, IOMMU skupiny, parametre zavádzania jadra, qm set hostpci.",
|
||||
"twitterTitle": "Príkazy GPU passthrough v Proxmoxe | ProxMenux",
|
||||
"twitterDescription": "Skontrolujte PCI zariadenia, konfigurujte VFIO a IOMMU a pripojte GPU k VM na Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "GPU passthrough",
|
||||
"description": "Prehľad kontroly a nastavenia GPU / TPU passthrough v Proxmoxe: identifikácia zariadení (lspci), nastavenie modulov VFIO, overenie IOMMU, aktualizácie initramfs / GRUB a konfigurácia pre jednotlivé VM (qm set hostpci, machine q35, bios ovmf).",
|
||||
"section": "Pomoc a informácie"
|
||||
},
|
||||
"intro": {
|
||||
"title": "IOMMU musí byť povolené v BIOS / UEFI",
|
||||
"body": "Najprv zapnite IOMMU vo firmvéri: v BIOS/UEFI hľadajte <em>VT-d</em>, <em>AMD-Vi</em> alebo <em>IOMMU</em>. V Linuxe je predvolene zapnuté na AMD a na Inteli s jadrami Proxmox 6.8 a novšími. Staršie jadrá Intel môžu vyžadovať <code>intel_iommu=on</code>. Voliteľné <code>iommu=pt</code> riadi režim IOMMU passthrough; nie je dôvodom na plošné vypínanie framebufferu hostiteľa."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Identifikácia zariadenia",
|
||||
"commands": [
|
||||
{
|
||||
"command": "lspci -nn | grep -i nvidia",
|
||||
"description": "Zoznam zariadení NVIDIA PCI"
|
||||
},
|
||||
{
|
||||
"command": "lspci -nn | grep -i vga",
|
||||
"description": "Zoznam všetkých VGA kompatibilných zariadení"
|
||||
},
|
||||
{
|
||||
"command": "lspci -nn | grep -i amd",
|
||||
"description": "Zoznam zariadení AMD PCI"
|
||||
},
|
||||
{
|
||||
"command": "lspci -nnk | grep -A3 VGA",
|
||||
"description": "Zoznam zariadení VGA s ovládačmi jadra"
|
||||
},
|
||||
{
|
||||
"command": "lspci -v -s <PCI_ID>",
|
||||
"description": "Zobraziť podrobné informácie pre konkrétne PCI zariadenie"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Nastavenie VFIO",
|
||||
"commands": [
|
||||
{
|
||||
"command": "dmesg | grep -i vfio",
|
||||
"description": "Kontrola správ modulu VFIO"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/modprobe.d/vfio.conf",
|
||||
"description": "Skontrolovať konfiguráciu VFIO passthrough"
|
||||
},
|
||||
{
|
||||
"command": "ls -la /etc/modprobe.d/",
|
||||
"description": "Zoznam všetkých konfiguračných súborov modprobe"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/modules",
|
||||
"description": "Zobraziť načítané moduly v čase zavedenia"
|
||||
},
|
||||
{
|
||||
"command": "lsmod | grep vfio",
|
||||
"description": "Skontrolujte, či sú moduly VFIO načítané"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Nastavenie IOMMU",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/default/grub",
|
||||
"description": "Preskúmanie možností GRUB pre IOMMU"
|
||||
},
|
||||
{
|
||||
"command": "update-grub",
|
||||
"description": "Použiť zmeny GRUB"
|
||||
},
|
||||
{
|
||||
"command": "dmesg | grep -i iommu",
|
||||
"description": "Skontrolujte IOMMU správy v loge jadra"
|
||||
},
|
||||
{
|
||||
"command": "dmesg | grep -e DMAR -e IOMMU",
|
||||
"description": "Skontrolujte správy DMAR a IOMMU"
|
||||
},
|
||||
{
|
||||
"command": "find /sys/kernel/iommu_groups/ -type l | sort -V",
|
||||
"description": "Zoznam skupín IOMMU"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Aktualizácie systému",
|
||||
"commands": [
|
||||
{
|
||||
"command": "update-initramfs -u",
|
||||
"description": "Použiť zmeny initramfs (VFIO)"
|
||||
},
|
||||
{
|
||||
"command": "update-initramfs -u -k all",
|
||||
"description": "Aktualizovať initramfs pre všetky jadrá"
|
||||
},
|
||||
{
|
||||
"command": "cat /proc/cmdline",
|
||||
"description": "Zobraziť aktuálne parametre zavádzania jadra"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Nastavenie VM",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm config <vmid> | grep hostpci",
|
||||
"description": "Zobraziť nastavenie PCI passthrough pre VM"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -hostpci0 <PCI_ID>,pcie=1,x-vga=1",
|
||||
"description": "Pridať GPU passthrough do VM"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Zobraziť konfiguračný súbor VM"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -machine q35",
|
||||
"description": "Nastaviť VM pre použitie čipset Q35 (odporúčané pre priechod)"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -bios ovmf",
|
||||
"description": "Nastaviť VM na UEFI/OVMF, odporúčané pri podpore UEFI v ROM GPU"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"afterChangesTip": {
|
||||
"title": "Po zmene GRUB alebo modprobe konfigurácie",
|
||||
"bodyRich": "Na hostiteľoch s GRUB použite na zmeny štartovacích parametrov <code>update-grub</code>. Zmeny modulov zapracujte cez <code>update-initramfs -u -k all</code> a reštartujte. Iné zavádzače vyžadujú vlastný postup. Overte <code>cat /proc/cmdline</code> (parametre jadra), <code>dmesg | grep -i iommu</code> (inicializácia IOMMU) a <code>find /sys/kernel/iommu_groups/ -type l | sort -V</code> (prítomné skupiny)."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Súvisiace",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/hardware/gpu-vm-passthrough",
|
||||
"label": "Pridať GPU do VM (passthrough)",
|
||||
"tail": " — Interaktívny tok ProxMenux."
|
||||
},
|
||||
{
|
||||
"href": "/docs/hardware/igpu-acceleration-lxc",
|
||||
"label": "Pridať GPU do LXC",
|
||||
"tail": " — zdieľať prístup k zariadeniam GPU hostiteľa s kontajnerom LXC."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Prehľad pomoci a informácií",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Prehľad príkazov Proxmoxu — qm, pct, vzdump, zpool, pveversion | ProxMenux",
|
||||
"description": "Výber dôležitých príkazov Proxmox VE a Linuxu podľa tém: kontrola systému, správa VM a LXC (qm / pct), úložiská a disky, sieť, aktualizácie, GPU passthrough, ZFS, zálohovanie a obnova a každodenné nástroje príkazového riadka.",
|
||||
"ogTitle": "Prehľad príkazov Proxmoxu — qm, pct, vzdump, zpool",
|
||||
"ogDescription": "Výber užitočných príkazov Proxmox VE a Linuxu podľa tém: systém, VM/CT, úložiská, sieť, aktualizácie, GPU passthrough, ZFS, zálohy a nástroje CLI.",
|
||||
"twitterTitle": "Prehľad príkazov Proxmoxu | ProxMenux",
|
||||
"twitterDescription": "Výber užitočných príkazov Proxmox VE a Linuxu, zoskupených podľa tém."
|
||||
},
|
||||
"header": {
|
||||
"title": "Pomoc a informácie",
|
||||
"description": "Výber užitočných príkazov Linuxu a Proxmox VE podľa tém. Deväť kategórií zahŕňa rýchle overenie cez pveversion aj viacriadkové postupy so zfs send/receive. Slúži ako spoločný prehľad popri častiach ProxMenuxu pre GPU, disky a zdieľanie.",
|
||||
"section": "Pomoc a informácie"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Čo to je?",
|
||||
"body": "Katalóg príkazov používaných na hostiteľovi Proxmox, zoskupený podľa tém. V ProxMenuxe môžete príkaz spustiť výberom čísla alebo do výzvy vložiť vlastný príkaz. Na tejto stránke je každá kategória tabuľkou, z ktorej možno príkazy kopírovať."
|
||||
},
|
||||
"opening": {
|
||||
"heading": "Otvorenie menu",
|
||||
"body": "Z hlavného menu ProxMenux stlačte tlačidlo <kbd>h</kbd>. Uvidíte toto:",
|
||||
"imageAlt": "Ponuka Pomoc a informácie s deviatimi kategóriami príkazov"
|
||||
},
|
||||
"categories": {
|
||||
"heading": "Deväť kategórií",
|
||||
"options": [
|
||||
{
|
||||
"icon": "Terminal",
|
||||
"href": "/docs/help-info/system-commands",
|
||||
"title": "Užitočné systémové príkazy",
|
||||
"description": "pveversion, uptime, free, journalctl, hostnamectl, informácie o aktuálnom používateľovi, audit lynis a fastfetch."
|
||||
},
|
||||
{
|
||||
"icon": "Cpu",
|
||||
"href": "/docs/help-info/vm-ct-commands",
|
||||
"title": "Správa VM a CT",
|
||||
"description": "qm list / config / start / stop / migrate, pct list / config / enter, snímky a klonovanie."
|
||||
},
|
||||
{
|
||||
"icon": "HardDrive",
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"title": "Úložiská a disky",
|
||||
"description": "lsblk, blkid, smartctl, informácie o pripojených súborových systémoch, pvesm status a príkazy LVM."
|
||||
},
|
||||
{
|
||||
"icon": "Network",
|
||||
"href": "/docs/help-info/network-commands",
|
||||
"title": "Sieťové príkazy",
|
||||
"description": "ip / ss / nmcli, kontrola sieťových mostov, ping / traceroute, dotazy DNS a fail2ban-client."
|
||||
},
|
||||
{
|
||||
"icon": "Package",
|
||||
"href": "/docs/help-info/update-commands",
|
||||
"title": "Aktualizácie a balíky",
|
||||
"description": "apt update / dist-upgrade, apt-cache policy, dotazy dpkg a kontrola súborov repozitárov."
|
||||
},
|
||||
{
|
||||
"icon": "Cpu",
|
||||
"href": "/docs/help-info/gpu-commands",
|
||||
"title": "GPU passthrough",
|
||||
"description": "Kontroly cez lspci / dmesg, overenie zapnutia IOMMU, priradenie k vfio-pci a využitie GPU na hostiteľovi."
|
||||
},
|
||||
{
|
||||
"icon": "Database",
|
||||
"href": "/docs/help-info/zfs-commands",
|
||||
"title": "Správa ZFS",
|
||||
"description": "Príkazy zpool / zfs pre stav, datasety, snímky, send/receive, ladenie ARC a TRIM."
|
||||
},
|
||||
{
|
||||
"icon": "Archive",
|
||||
"href": "/docs/help-info/backup-commands",
|
||||
"title": "Zálohovanie a obnova",
|
||||
"description": "vzdump, qmrestore / pct restore, nástroje Proxmox Backup Server a operácie so snímkami."
|
||||
},
|
||||
{
|
||||
"icon": "Wrench",
|
||||
"href": "/docs/help-info/tools-commands",
|
||||
"title": "Systémové CLI nástroje",
|
||||
"description": "tmux, screen, htop / btop, ncdu, jq, dig, lsof, watch — každodenné nástroje správcu."
|
||||
}
|
||||
]
|
||||
},
|
||||
"tip": {
|
||||
"title": "Hľadať z globálneho vyhľadávania",
|
||||
"body": "Všetky príkazy z týchto stránok sú zaradené do vyhľadávania dokumentácie. Ak si pamätáte prepínač alebo úryvok, ale nie príslušnú stránku, použite vyhľadávací panel hore a prejdete priamo na správnu položku."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,174 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Sieťové príkazy Proxmoxu — ip, ping, ss, pve-firewall, iptables | ProxMenux",
|
||||
"description": "Prehľad sieťových príkazov hostiteľa Proxmox VE: ip / ip link / ip addr, ping, traceroute, mtr, ss, ethtool, dig, nslookup a na filtrovanie pve-firewall, iptables a nftables. Kontrola sieťových mostov, bondov a VLAN.",
|
||||
"ogTitle": "Sieťové príkazy Proxmoxu — ip, ping, ss, pve-firewall, iptables",
|
||||
"ogDescription": "Sieťové príkazy pre Proxmox VE: kontrola rozhraní, testy pripojenia, monitorovanie, firewall (pve-firewall, iptables, nftables) a dotazy DNS.",
|
||||
"twitterTitle": "Sieťové príkazy Proxmoxu | ProxMenux",
|
||||
"twitterDescription": "Príkazy sieťovej kontroly, testovania, konfigurácie a firewallu pre Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "Sieťové príkazy",
|
||||
"description": "Výber sieťových príkazov hostiteľa Proxmox: informácie o rozhraniach, testy pripojenia, konfigurácia, monitorovanie prevádzky a správa firewallu. Zahŕňa ip / ss / nmcli / ethtool / tcpdump / pve-firewall.",
|
||||
"section": "Pomoc a informácie"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Rýchly prehľad rozhraní",
|
||||
"body": "<code>ip a</code> zobrazuje každé rozhranie s jeho IP adresami a MAC adresou. <code>ip r</code> zobrazuje smerovaciu tabuľku. Spolu za pár sekúnd zodpovedajú väčšinu otázok o správnom nastavení rozhrania."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Sieťové informácie",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ip a",
|
||||
"description": "Zobraziť sieťové rozhrania a IP adresy"
|
||||
},
|
||||
{
|
||||
"command": "ip r",
|
||||
"description": "Zobraziť smerovaciu tabuľku"
|
||||
},
|
||||
{
|
||||
"command": "ip -s link",
|
||||
"description": "Zobraziť štatistiky prenosu podľa rozhrania"
|
||||
},
|
||||
{
|
||||
"command": "brctl show",
|
||||
"description": "Zobraziť nastavené sieťové bridge"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/network/interfaces",
|
||||
"description": "Zobraziť surové sieťové nastavenie"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Testovanie siete",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ping <host>",
|
||||
"description": "Skontrolovať spojenie s iným hostom"
|
||||
},
|
||||
{
|
||||
"command": "traceroute <host>",
|
||||
"description": "Sledovať trasu k hostiteľovi"
|
||||
},
|
||||
{
|
||||
"command": "mtr <host>",
|
||||
"description": "Kombinácia ping a traceroute v reálnom čase"
|
||||
},
|
||||
{
|
||||
"command": "dig <domain>",
|
||||
"description": "DNS vyhľadanie domény"
|
||||
},
|
||||
{
|
||||
"command": "nslookup <domain>",
|
||||
"description": "Alternatívne vyhľadávanie DNS"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Nastavenie siete",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ifreload -a",
|
||||
"description": "Znovu načítať sieťové nastavenie (ifupdown2)"
|
||||
},
|
||||
{
|
||||
"command": "ethtool <iface>",
|
||||
"description": "Zobraziť informácie o ethernetovom zariadení"
|
||||
},
|
||||
{
|
||||
"command": "resolvectl status",
|
||||
"description": "Zobraziť stav DNS prekladu"
|
||||
},
|
||||
{
|
||||
"command": "nmcli device show",
|
||||
"description": "Zobraziť detaily sieťového zariadenia (ak sa použije NetworkManager)"
|
||||
},
|
||||
{
|
||||
"command": "ip link set <iface> up",
|
||||
"description": "Zapnúť sieťové rozhranie"
|
||||
},
|
||||
{
|
||||
"command": "ip link set <iface> down",
|
||||
"description": "Vypnúť sieťové rozhranie"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Monitorovanie siete",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ss -tuln",
|
||||
"description": "Zobraziť počúvajúce porty (TCP/UDP)"
|
||||
},
|
||||
{
|
||||
"command": "netstat -tuln",
|
||||
"description": "Alternatíva k zobrazeniu počúvacích portov"
|
||||
},
|
||||
{
|
||||
"command": "lsof -i",
|
||||
"description": "Zoznam otvorených sieťových súborov a pripojení"
|
||||
},
|
||||
{
|
||||
"command": "tcpdump -i <iface>",
|
||||
"description": "Zachytiť pakety na rozhraní"
|
||||
},
|
||||
{
|
||||
"command": "iftop -i <iface>",
|
||||
"description": "Monitorovať využívanie šírky pásma na rozhraní"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Správa firewallu",
|
||||
"commands": [
|
||||
{
|
||||
"command": "iptables -L -n -v",
|
||||
"description": "Zobraziť aktívne pravidlá firewallu (iptables)"
|
||||
},
|
||||
{
|
||||
"command": "nft list ruleset",
|
||||
"description": "Zobraziť pravidlá nftables"
|
||||
},
|
||||
{
|
||||
"command": "pve-firewall status",
|
||||
"description": "Skontrolovať stav Proxmox firewallu"
|
||||
},
|
||||
{
|
||||
"command": "pve-firewall compile",
|
||||
"description": "Zostaviť pravidlá firewallu pre všetky uzly"
|
||||
},
|
||||
{
|
||||
"command": "pve-firewall reload",
|
||||
"description": "Znovu načítať pravidlá Proxmox firewallu"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"iptablesTip": {
|
||||
"title": "iptables vs nftables",
|
||||
"bodyRich": "Klasická služba <code>pve-firewall</code> vytvára pravidlá iptables. Alternatívna služba proxmox-firewall používa <strong>nftables</strong>. Backend iptables skontrolujete cez <code>iptables -L -n -v</code> a backend nftables cez <code>nft list ruleset</code>. Používajte nástroje aktívneho backendu; tieto výpisy nie sú zameniteľné."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Súvisiace",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/network",
|
||||
"label": "Správa siete",
|
||||
"tail": " — ProxMenux interaktívne sieťové nástroje (analýza mosta, trvalé názvy, monitorovanie)."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/tools-commands",
|
||||
"label": "Systémové CLI nástroje",
|
||||
"tail": " — Viac nástrojov na monitorovanie sietí."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Prehľad pomoci a informácií",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,232 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Príkazy úložísk a diskov Proxmoxu — lsblk, LVM, pvesm, qm importdisk | ProxMenux",
|
||||
"description": "Prehľad príkazov úložísk a diskov v Proxmox VE: lsblk, blkid, parted, lvdisplay, vgdisplay, pvs, mount, df, du, ncdu a pvesm status; pre disky VM aj qm importdisk a qemu-img convert.",
|
||||
"ogTitle": "Príkazy úložísk a diskov Proxmoxu — lsblk, LVM, pvesm, qm importdisk",
|
||||
"ogDescription": "Príkazy úložísk a diskov Proxmox VE: kontrola diskov, LVM, pripojené súborové systémy, správa úložísk Proxmoxu, import diskov VM a konverzia obrazov.",
|
||||
"twitterTitle": "Príkazy úložísk Proxmoxu | ProxMenux",
|
||||
"twitterDescription": "Príkazy na kontrolu diskov a pripojení, správu LVM a úložísk Proxmox a import alebo konverziu diskov VM."
|
||||
},
|
||||
"header": {
|
||||
"title": "Úložiská a disky",
|
||||
"description": "Výber príkazov na kontrolu úložísk hostiteľov Proxmox: blokové zariadenia, oddiely, pripojené súborové systémy, zväzky LVM, konfigurácia úložísk a operácie s diskami VM (importdisk, qemu-img convert).",
|
||||
"section": "Pomoc a informácie"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Rýchly prehľad diskov",
|
||||
"body": "<code>lsblk</code> zobrazuje blokové zariadenia a oddiely v strome. Trvalé identifikátory overíte cez <code>ls -lh /dev/disk/by-id/</code>: pri rovnakom disku zostávajú zvyčajne stabilné po reštarte aj zmene poradia zariadení. Výmena disku alebo zmena spôsobu, akým radič sprístupňuje jeho identitu, môže cestu by-id zmeniť."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Informácie o disku",
|
||||
"commands": [
|
||||
{
|
||||
"command": "lsblk",
|
||||
"description": "Zobraziť blokové zariadenia a oddiely"
|
||||
},
|
||||
{
|
||||
"command": "fdisk -l",
|
||||
"description": "Zobraziť disky s podrobnými informáciami"
|
||||
},
|
||||
{
|
||||
"command": "blkid",
|
||||
"description": "Zobraziť UUID a typ súborového systému zariadení"
|
||||
},
|
||||
{
|
||||
"command": "ls -lh /dev/disk/by-id/",
|
||||
"description": "Zobraziť trvalé identifikátory diskov"
|
||||
},
|
||||
{
|
||||
"command": "parted -l",
|
||||
"description": "Podrobné rozdelenie disku vrátane GPT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Využitie úložiska",
|
||||
"commands": [
|
||||
{
|
||||
"command": "df -h",
|
||||
"description": "Zobraziť využitie diskov podľa bodu pripojenia"
|
||||
},
|
||||
{
|
||||
"command": "du -sh /path",
|
||||
"description": "Zobraziť veľkosť priečinka"
|
||||
},
|
||||
{
|
||||
"command": "mount | grep ^/dev",
|
||||
"description": "Zobraziť pripojené úložné zariadenia"
|
||||
},
|
||||
{
|
||||
"command": "cat /proc/mounts",
|
||||
"description": "Zobraziť všetky aktívne pripojenia z kernelu"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Správa LVM",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pvdisplay",
|
||||
"description": "Zobraziť fyzické zväzky (LVM)"
|
||||
},
|
||||
{
|
||||
"command": "vgdisplay",
|
||||
"description": "Zobraziť skupiny zväzkov (LVM)"
|
||||
},
|
||||
{
|
||||
"command": "lvdisplay",
|
||||
"description": "Zobraziť logické zväzky (LVM)"
|
||||
},
|
||||
{
|
||||
"command": "pvs",
|
||||
"description": "Stručný výpis fyzických zväzkov"
|
||||
},
|
||||
{
|
||||
"command": "vgs",
|
||||
"description": "Stručný výpis skupín zväzkov"
|
||||
},
|
||||
{
|
||||
"command": "lvs",
|
||||
"description": "Stručný výpis logických zväzkov"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Úložiská Proxmoxu",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/pve/storage.cfg",
|
||||
"description": "Zobraziť nastavenie úložísk Proxmoxu"
|
||||
},
|
||||
{
|
||||
"command": "pvesm status",
|
||||
"description": "Zobraziť stav všetkých úložísk"
|
||||
},
|
||||
{
|
||||
"command": "pvesm status --enabled 1",
|
||||
"description": "Zobraziť povolené nakonfigurované úložiská"
|
||||
},
|
||||
{
|
||||
"command": "pvesm list <storage>",
|
||||
"description": "Zobraziť obsah vybraného úložiska"
|
||||
},
|
||||
{
|
||||
"command": "pvesm scan nfs <server>",
|
||||
"description": "Vyhľadať exporty NFS na serveri"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Operácie s diskami",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm importdisk <vmid> <image_path> <storage>",
|
||||
"description": "Importovať obraz ako nepoužitý disk VM; pripojiť ho treba osobitne"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -<bus><index> <disk_path>",
|
||||
"description": "Priradiť fyzický disk na VM (prejazdový režim)"
|
||||
},
|
||||
{
|
||||
"command": "qemu-img convert -O <format> <input> <output>",
|
||||
"description": "Previesť formát obrazu disku, ktorý sa práve nepoužíva"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Stav disku podľa SMART",
|
||||
"commands": [
|
||||
{
|
||||
"command": "smartctl --scan",
|
||||
"description": "Zoznam zariadení SMART-schopných na hostiteľovi"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -i /dev/<disk>",
|
||||
"description": "Základné informácie o zariadení: model, firmvér a sériové číslo"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -H /dev/<disk>",
|
||||
"description": "Rýchla kontrola celkového stavu: PASSED / FAILED"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -A /dev/<disk>",
|
||||
"description": "Iba atribúty SMART (surové hodnoty, prahové hodnoty)"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -a /dev/<disk>",
|
||||
"description": "Úplné informácie SMART: zariadenie, atribúty a protokol samotestov"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -t short /dev/<disk>",
|
||||
"description": "Spustiť krátky samotest (~2 minút, beží v pozadí)"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -t long /dev/<disk>",
|
||||
"description": "Spustiť dlhý samotest (hodiny, behy v pozadí)"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -l selftest /dev/<disk>",
|
||||
"description": "Zobraziť samotestový log (výsledky minulých testov)"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -X /dev/<disk>",
|
||||
"description": "Prerušiť prebiehajúci samotest"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Stav disku NVMe",
|
||||
"commands": [
|
||||
{
|
||||
"command": "nvme list",
|
||||
"description": "Zoznam zariadení NVMe viditeľných do jadra"
|
||||
},
|
||||
{
|
||||
"command": "nvme smart-log /dev/<nvme>",
|
||||
"description": "NVMe špecifický SMART log (teplota, opotrebenie, chyby)"
|
||||
},
|
||||
{
|
||||
"command": "nvme id-ctrl /dev/<nvme>",
|
||||
"description": "Informácie o radiči: model, firmvér a funkcie"
|
||||
},
|
||||
{
|
||||
"command": "nvme error-log /dev/<nvme>",
|
||||
"description": "Nedávne záznamy chýb NVMe"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"lvmTip": {
|
||||
"title": "LVM krátke vs dlhé príkazy",
|
||||
"bodyRich": "Dostupné sú obe podoby. <code>pvs</code> / <code>vgs</code> / <code>lvs</code> vypisujú stručné tabuľky s jedným riadkom na fyzický zväzok, skupinu zväzkov, respektíve logický zväzok. <code>pvdisplay</code> / <code>vgdisplay</code> / <code>lvdisplay</code> poskytujú podrobnejší viacriadkový výpis. Krátke podoby sú praktické pri každodenných kontrolách."
|
||||
},
|
||||
"smartInfo": {
|
||||
"title": "SMART pre SATA/SAS a NVMe",
|
||||
"bodyRich": "<strong>Disky SATA / SAS vrátane SSD</strong> možno skontrolovať nástrojom <code>smartctl</code> z balíka <code>smartmontools</code>, ktorý je v Proxmoxe predvolene nainštalovaný. Zadajte zariadenie, napríklad <code>/dev/sda</code> alebo <code>/dev/sdb</code>. <strong>Disky NVMe</strong> používajú iný natívny protokol. Podporuje ich aj <code>smartctl</code>, zatiaľ čo <code>nvme</code> z balíka <code>nvme-cli</code> poskytuje špecifické dotazy na radiče, menné priestory a stav NVMe. Ak chýba, nainštalujte ho cez <code>apt install nvme-cli</code>."
|
||||
},
|
||||
"selfTestWarn": {
|
||||
"title": "Samotesty bežia v pozadí",
|
||||
"bodyRich": "Na podporovaných diskoch <code>smartctl -t short /dev/<disk></code> a <code>smartctl -t long /dev/<disk></code> spustia test na pozadí a hneď vrátia riadenie. Priebeh overíte cez <code>smartctl -a /dev/<disk></code> podľa \"Self-test routine in progress\" alebo po dokončení prečítate <code>smartctl -l selftest /dev/<disk></code>. Krátke testy zvyčajne trvajú asi dve minúty, dlhé môžu trvať hodiny. Disk zostáva použiteľný, ale výkon vstupov/výstupov môže klesnúť."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Súvisiace",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/zfs-commands",
|
||||
"label": "Správa ZFS",
|
||||
"tail": " — príkazy zpool / zfs pre úložiská založené na ZFS."
|
||||
},
|
||||
{
|
||||
"href": "/docs/disk-manager",
|
||||
"label": "Správca diskov",
|
||||
"tail": " — interaktívne postupy ProxMenuxu na priame pripojenie diskov, import, formátovanie a SMART."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Prehľad pomoci a informácií",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Systémové príkazy Proxmox VE — pveversion, uptime, journalctl, systemctl | ProxMenux",
|
||||
"description": "Systémové príkazy Proxmox VE a Linuxu pre verzie, dobu behu, pamäť, služby, protokoly a používateľov spolu s nástrojmi na audit a prehľady. Súčasťou je reštart služby; nie všetky príklady slúžia iba na čítanie.",
|
||||
"ogTitle": "Systémové príkazy Proxmox VE — pveversion, uptime, journalctl, systemctl",
|
||||
"ogDescription": "Systémové príkazy Proxmox VE a Linuxu pre verziu, dobu behu, služby, protokoly a používateľov vrátane správy služieb a auditu.",
|
||||
"twitterTitle": "Systémové príkazy Proxmox VE | ProxMenux",
|
||||
"twitterDescription": "Dôležité príkazy na kontrolu systému Proxmox VE: verzia, stav, služby, protokoly a informácie o používateľoch."
|
||||
},
|
||||
"header": {
|
||||
"title": "Užitočné systémové príkazy",
|
||||
"description": "Príkazy na kontrolu hostiteľa Proxmox: verzia, jadro, doba behu, pamäť, stav webového rozhrania, nedávne protokoly a prihlásení používatelia spolu s nástrojmi na audit a prehľady. Väčšina iba zisťuje stav, ale systemctl restart pveproxy reštartuje webový proxy server a audit môže zapisovať správy a protokoly.",
|
||||
"section": "Pomoc a informácie"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Čo to je?",
|
||||
"body": "Rovnaký očíslovaný zoznam, aký ProxMenux zobrazuje v časti <em>Užitočné systémové príkazy</em>. Tlačidlom Kopírovať skopírujete príkaz alebo si v zozname overíte presný prepínač."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Informácie o systéme",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pveversion",
|
||||
"description": "Zobraziť verziu Proxmoxu"
|
||||
},
|
||||
{
|
||||
"command": "pveversion -v",
|
||||
"description": "Podrobné informácie o verzii Proxmoxu"
|
||||
},
|
||||
{
|
||||
"command": "hostnamectl",
|
||||
"description": "Názov hostiteľa a informácie o jadre"
|
||||
},
|
||||
{
|
||||
"command": "uname -a",
|
||||
"description": "Informácie o jadre a architektúre"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/os-release",
|
||||
"description": "Podrobnosti o vydaní systému"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Stav systému",
|
||||
"commands": [
|
||||
{
|
||||
"command": "uptime",
|
||||
"description": "Doba behu systému"
|
||||
},
|
||||
{
|
||||
"command": "uptime -p",
|
||||
"description": "Prehľadný formát doby behu systému"
|
||||
},
|
||||
{
|
||||
"command": "free -h",
|
||||
"description": "Využitie RAM a swapu"
|
||||
},
|
||||
{
|
||||
"command": "who -b",
|
||||
"description": "Čas posledného štartu systému"
|
||||
},
|
||||
{
|
||||
"command": "last -x | grep shutdown",
|
||||
"description": "Predchádzajúce vypnutia"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Riadenie služieb",
|
||||
"commands": [
|
||||
{
|
||||
"command": "systemctl status pveproxy",
|
||||
"description": "Skontrolovať stav webového rozhrania Proxmoxu"
|
||||
},
|
||||
{
|
||||
"command": "systemctl restart pveproxy",
|
||||
"description": "Reštartovať proxy webového rozhrania"
|
||||
},
|
||||
{
|
||||
"command": "journalctl -xe",
|
||||
"description": "Systémové chyby a logy"
|
||||
},
|
||||
{
|
||||
"command": "dmesg -T | tail -n 50",
|
||||
"description": "Posledných 50 riadkov logu jadra"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Informácie o používateľoch",
|
||||
"commands": [
|
||||
{
|
||||
"command": "whoami",
|
||||
"description": "Aktuálny používateľ"
|
||||
},
|
||||
{
|
||||
"command": "id",
|
||||
"description": "UID, GID a skupiny aktuálneho používateľa"
|
||||
},
|
||||
{
|
||||
"command": "who",
|
||||
"description": "Prihlásení používatelia"
|
||||
},
|
||||
{
|
||||
"command": "w",
|
||||
"description": "Aktivita používateľov a doba behu systému"
|
||||
},
|
||||
{
|
||||
"command": "uptime && w",
|
||||
"description": "Doba behu systému a prihlásení používatelia"
|
||||
},
|
||||
{
|
||||
"command": "cut -d: -f1,3,4 /etc/passwd",
|
||||
"description": "Všetci používatelia s UID a GID"
|
||||
},
|
||||
{
|
||||
"command": "getent passwd | column -t -s :",
|
||||
"description": "Prehľadná tabuľka používateľov (UID, shell a pod.)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Kontrolné a súhrnné nástroje",
|
||||
"commands": [
|
||||
{
|
||||
"command": "lynis audit system",
|
||||
"description": "Spustiť úplný audit systémovej bezpečnosti"
|
||||
},
|
||||
{
|
||||
"command": "fastfetch",
|
||||
"description": "Zobraziť súhrn systému vo formáte ASCII"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"related": {
|
||||
"heading": "Súvisiace",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/update-commands",
|
||||
"label": "Aktualizácie a balíky",
|
||||
"tail": " — príkazy apt a aktualizácie PVE."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/tools-commands",
|
||||
"label": "Systémové CLI nástroje",
|
||||
"tail": " — htop, btop, ncdu a podobné nástroje."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Prehľad pomoci a informácií",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,276 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Nástroje CLI Linuxu pre Proxmox — htop, iftop, journalctl, rsync, tmux | ProxMenux",
|
||||
"description": "Nástroje CLI Linuxu na každodennú správu Proxmox VE: monitorovanie (htop, atop, glances, iotop), sieť (iftop, nmap, mtr, ss), súbory a text (find, grep, journalctl), výkon (iostat, perf, strace), bezpečnosť (fail2ban, lynis, lsof) a vzdialená správa (ssh, rsync, tmux).",
|
||||
"ogTitle": "Nástroje CLI Linuxu pre Proxmox — htop, iftop, journalctl, rsync, tmux",
|
||||
"ogDescription": "Každodenné nástroje CLI na správu Proxmox VE podľa účelu: monitorovanie, sieť, súbory a text, výkon, bezpečnosť a vzdialená správa.",
|
||||
"twitterTitle": "Nástroje CLI Linuxu pre Proxmox | ProxMenux",
|
||||
"twitterDescription": "Nástroje CLI na každodennú správu Proxmox VE, zoskupené podľa účelu."
|
||||
},
|
||||
"header": {
|
||||
"title": "Systémové CLI nástroje",
|
||||
"description": "Nástroje CLI na každodennú správu hostiteľa Proxmox podľa účelu: monitorovanie, sieť, súbory a text, analýza výkonu, bezpečnosť, vzdialená správa a konfigurácia systému.",
|
||||
"section": "Pomoc a informácie"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Väčšinu nainštaluje skript po inštalácii",
|
||||
"body": "Ak ste spustili skript ProxMenuxu po inštalácii s predvoleným výberom, väčšina nástrojov je už nainštalovaná. Chýbajúce nástroje ponúka <utilsLink>inštalátor systémových nástrojov</utilsLink> v skupinách ako základné, vývoj, sieť a analýza."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Monitorovanie systému",
|
||||
"commands": [
|
||||
{
|
||||
"command": "htop",
|
||||
"description": "Interaktívny prehliadač procesov s využitím CPU a pamäte"
|
||||
},
|
||||
{
|
||||
"command": "top",
|
||||
"description": "Zobraziť procesy Linuxu v reálnom čase"
|
||||
},
|
||||
{
|
||||
"command": "atop",
|
||||
"description": "Rozšírený systémový a procesný monitor"
|
||||
},
|
||||
{
|
||||
"command": "glances",
|
||||
"description": "Nástroj na monitorovanie systému s webovým rozhraním"
|
||||
},
|
||||
{
|
||||
"command": "nmon",
|
||||
"description": "Nástroj na monitorovanie výkonnosti"
|
||||
},
|
||||
{
|
||||
"command": "iotop",
|
||||
"description": "Monitorovať používanie disku I/O procesmi"
|
||||
},
|
||||
{
|
||||
"command": "vmstat 1",
|
||||
"description": "Každú sekundu hlásite štatistiky virtuálnej pamäte"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Sieťové nástroje",
|
||||
"commands": [
|
||||
{
|
||||
"command": "iftop",
|
||||
"description": "Zobraziť využitie šírky pásma na rozhraní"
|
||||
},
|
||||
{
|
||||
"command": "nmap <host>",
|
||||
"description": "Prieskum siete a bezpečnostné skenovanie"
|
||||
},
|
||||
{
|
||||
"command": "tcpdump -i <interface>",
|
||||
"description": "Zachytiť sieťovú prevádzku"
|
||||
},
|
||||
{
|
||||
"command": "netstat -tuln",
|
||||
"description": "Zobrazenie sieťových pripojení"
|
||||
},
|
||||
{
|
||||
"command": "ss -tuln",
|
||||
"description": "Ďalší nástroj na skúmanie sockets"
|
||||
},
|
||||
{
|
||||
"command": "mtr <host>",
|
||||
"description": "Sieťový diagnostický nástroj kombinujúci ping a traceroute"
|
||||
},
|
||||
{
|
||||
"command": "iperf3 -s",
|
||||
"description": "Spustiť iperf server pre skúšku šírky pásma"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Súborové a textové nástroje",
|
||||
"commands": [
|
||||
{
|
||||
"command": "find / -name <filename>",
|
||||
"description": "Hľadať súbory podľa názvu"
|
||||
},
|
||||
{
|
||||
"command": "grep -r 'pattern' /path",
|
||||
"description": "Hľadať vzor v súboroch"
|
||||
},
|
||||
{
|
||||
"command": "sed -i 's/old/new/g' file",
|
||||
"description": "Nahradiť text v súboroch"
|
||||
},
|
||||
{
|
||||
"command": "awk '{print $1}' file",
|
||||
"description": "Nástroj na spracovanie textu"
|
||||
},
|
||||
{
|
||||
"command": "tail -f /var/log/syslog",
|
||||
"description": "Sledovať log súbor v reálnom čase"
|
||||
},
|
||||
{
|
||||
"command": "less /var/log/messages",
|
||||
"description": "Zobraziť súbor s pagináciou"
|
||||
},
|
||||
{
|
||||
"command": "journalctl -f",
|
||||
"description": "Sledovať protokoly denníka systemd"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Analýza výkonnosti",
|
||||
"commands": [
|
||||
{
|
||||
"command": "iostat -x 1",
|
||||
"description": "Zobraziť štatistiky CPU a vstupov/výstupov"
|
||||
},
|
||||
{
|
||||
"command": "mpstat -P ALL 1",
|
||||
"description": "Zobraziť využitie CPU"
|
||||
},
|
||||
{
|
||||
"command": "perf top",
|
||||
"description": "Systémový profilovací nástroj"
|
||||
},
|
||||
{
|
||||
"command": "strace <command>",
|
||||
"description": "Sledovať systémové volania a signály"
|
||||
},
|
||||
{
|
||||
"command": "lsof",
|
||||
"description": "Zoznam otvorených súborov"
|
||||
},
|
||||
{
|
||||
"command": "pstree",
|
||||
"description": "Zobraziť strom procesov"
|
||||
},
|
||||
{
|
||||
"command": "slabtop",
|
||||
"description": "Zobraziť informácie o vyrovnávacej pamäti slab jadra"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Bezpečnostné nástroje",
|
||||
"commands": [
|
||||
{
|
||||
"command": "fail2ban-client status",
|
||||
"description": "Zobraziť stav fail2ban"
|
||||
},
|
||||
{
|
||||
"command": "chage -l <username>",
|
||||
"description": "Zobraziť informácie o uplynutí platnosti hesla"
|
||||
},
|
||||
{
|
||||
"command": "lastlog",
|
||||
"description": "Zobraziť posledné prihlásenie všetkých užívateľov"
|
||||
},
|
||||
{
|
||||
"command": "last",
|
||||
"description": "Zobraziť zoznam posledných prihlásených užívateľov"
|
||||
},
|
||||
{
|
||||
"command": "w",
|
||||
"description": "Zobraziť kto je prihlásený a čo robí"
|
||||
},
|
||||
{
|
||||
"command": "lynis audit system",
|
||||
"description": "Nástroj bezpečnostného auditu"
|
||||
},
|
||||
{
|
||||
"command": "openssl s_client -connect host:port",
|
||||
"description": "Test SSL/TLS pripojenia"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Vzdialená správa",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ssh <user>@<host>",
|
||||
"description": "Bezpečné spojenie shellu"
|
||||
},
|
||||
{
|
||||
"command": "scp <file> <user>@<host>:<path>",
|
||||
"description": "Bezpečne kopírovať súbory"
|
||||
},
|
||||
{
|
||||
"command": "rsync -avz <src> <dest>",
|
||||
"description": "Synchronizovať súbory/priečinky"
|
||||
},
|
||||
{
|
||||
"command": "screen",
|
||||
"description": "Terminálny multiplexer"
|
||||
},
|
||||
{
|
||||
"command": "tmux",
|
||||
"description": "Alternatíva Terminálneho multiplexeru"
|
||||
},
|
||||
{
|
||||
"command": "ssh-keygen -t rsa -b 4096",
|
||||
"description": "Generovať pár kľúčov SSH"
|
||||
},
|
||||
{
|
||||
"command": "ssh-copy-id <user>@<host>",
|
||||
"description": "Kopírovať kľúč SSH na server"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Nastavenie systému",
|
||||
"commands": [
|
||||
{
|
||||
"command": "systemctl status <service>",
|
||||
"description": "Skontrolovať stav služby"
|
||||
},
|
||||
{
|
||||
"command": "journalctl -u <service>",
|
||||
"description": "Zobrazenie servisných záznamov"
|
||||
},
|
||||
{
|
||||
"command": "timedatectl",
|
||||
"description": "Spravovať systémový čas a dátum"
|
||||
},
|
||||
{
|
||||
"command": "hostnamectl",
|
||||
"description": "Spravovať názov hostiteľa"
|
||||
},
|
||||
{
|
||||
"command": "localectl",
|
||||
"description": "Spravovať miestne nastavenia a klávesnicu systému"
|
||||
},
|
||||
{
|
||||
"command": "update-alternatives --config <name>",
|
||||
"description": "Nastavenie systémových alternatív"
|
||||
},
|
||||
{
|
||||
"command": "dpkg-reconfigure <package>",
|
||||
"description": "Prekonfigurovať nainštalovaný balík"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"tmuxTip": {
|
||||
"title": "Pri dlho bežiacich príkazoch používajte tmux / screen",
|
||||
"bodyRich": "Dlho bežiace úlohy, napríklad zálohu, aktualizáciu alebo veľký prenos rsync, spúšťajte v <code>tmux</code> alebo <code>screen</code>, aby odpojenie SSH neukončilo terminálovú reláciu. K relácii tmux sa pripojíte znova na rovnakom hostiteľovi ako rovnaký používateľ príkazom <code>tmux attach</code>. Relácie screen majú vlastný príkaz na opätovné pripojenie."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Súvisiace",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/utils/system-utils",
|
||||
"label": "Inštalátor systémových nástrojov",
|
||||
"tail": " — nainštalovať chýbajúce nástroje."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/system-commands",
|
||||
"label": "Užitočné systémové príkazy",
|
||||
"tail": " — príkazy na kontrolu systému špecifické pre Proxmox."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Prehľad pomoci a informácií",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Príkazy na aktualizáciu a správu balíkov Proxmoxu — apt, pveupgrade, dpkg | ProxMenux",
|
||||
"description": "Prehľad príkazov na aktualizáciu a správu balíkov Proxmox VE: apt update, apt upgrade, apt dist-upgrade, pveupgrade, dpkg -l, zisťovanie informácií o balíkoch a konfigurácia repozitárov v /etc/apt/sources.list.d/.",
|
||||
"ogTitle": "Príkazy na aktualizáciu a správu balíkov Proxmoxu — apt, pveupgrade, dpkg",
|
||||
"ogDescription": "Príkazy apt, pveupgrade a dpkg na udržiavanie aktuálneho Proxmox VE: aktualizácie systému, správa balíkov a konfigurácia repozitárov.",
|
||||
"twitterTitle": "Príkazy na aktualizáciu Proxmoxu | ProxMenux",
|
||||
"twitterDescription": "Príkazy apt a pveupgrade na správu aktualizácií a balíkov na hostiteľoch Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "Aktualizácie a balíky",
|
||||
"description": "Výber príkazov apt a na aktualizáciu Proxmoxu: aktualizácie systému, inštalácia, odstránenie a úplné vyčistenie balíkov, informácie cez apt-cache policy a dpkg -l a kontrola repozitárov.",
|
||||
"section": "Pomoc a informácie"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Vždy najprv aktualizovať index",
|
||||
"body": "<code>apt update</code> obnoví miestny zoznam balíkov z nastavených repozitárov. Bez tohto kroku môže <code>apt install</code> použiť zastarané verzie alebo zlyhať s hlásením „Unable to locate package“."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Aktualizácie systému",
|
||||
"commands": [
|
||||
{
|
||||
"command": "apt update && apt upgrade -y",
|
||||
"description": "Obnoviť zoznamy a aktualizovať nainštalované balíky (apt upgrade)"
|
||||
},
|
||||
{
|
||||
"command": "apt dist-upgrade -y",
|
||||
"description": "Úplná aktualizácia systému vrátane závislostí"
|
||||
},
|
||||
{
|
||||
"command": "apt update",
|
||||
"description": "Aktualizovať iba zoznamy balíkov"
|
||||
},
|
||||
{
|
||||
"command": "apt upgrade",
|
||||
"description": "Aktualizovať iba balíky (interaktívne)"
|
||||
},
|
||||
{
|
||||
"command": "apt full-upgrade",
|
||||
"description": "Aktualizovať balíky s riešením závislostí (interaktívne)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Aktualizácie Proxmox",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pveupdate",
|
||||
"description": "Aktualizovať zoznamy Proxmox balíkov"
|
||||
},
|
||||
{
|
||||
"command": "pveupgrade",
|
||||
"description": "Spustiť interaktívnu aktualizáciu balíkov Proxmoxu"
|
||||
},
|
||||
{
|
||||
"command": "pve8to9 --full",
|
||||
"description": "Overiť pripravenosť na prechod z PVE 8 na 9 bez vykonania aktualizácie"
|
||||
},
|
||||
{
|
||||
"command": "ceph versions",
|
||||
"description": "Zobraziť verzie démonov Ceph pred plánovaním aktualizácie"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Správa balíkov",
|
||||
"commands": [
|
||||
{
|
||||
"command": "apt autoremove --purge",
|
||||
"description": "Odstrániť nepoužívané balíky aj ich nastavenia"
|
||||
},
|
||||
{
|
||||
"command": "apt clean",
|
||||
"description": "Vymazať lokálne úložisko súborov balíčkov"
|
||||
},
|
||||
{
|
||||
"command": "apt autoclean",
|
||||
"description": "Vymazať iba zastarané súbory balíkov"
|
||||
},
|
||||
{
|
||||
"command": "apt install <package>",
|
||||
"description": "Inštalovať konkrétny balík"
|
||||
},
|
||||
{
|
||||
"command": "apt remove <package>",
|
||||
"description": "Odstrániť balík"
|
||||
},
|
||||
{
|
||||
"command": "apt purge <package>",
|
||||
"description": "Odstrániť balík a jeho konfiguračné súbory"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Informácie o balíku",
|
||||
"commands": [
|
||||
{
|
||||
"command": "apt list --installed",
|
||||
"description": "Zoznam všetkých nainštalovaných balíkov"
|
||||
},
|
||||
{
|
||||
"command": "apt search <keyword>",
|
||||
"description": "Hľadať balíky podľa kľúčového slova"
|
||||
},
|
||||
{
|
||||
"command": "apt show <package>",
|
||||
"description": "Zobraziť podrobné informácie o balíku"
|
||||
},
|
||||
{
|
||||
"command": "dpkg -l",
|
||||
"description": "Zoznam všetkých nainštalovaných balíkov (alternatívnych)"
|
||||
},
|
||||
{
|
||||
"command": "dpkg -l | grep <keyword>",
|
||||
"description": "Hľadať nainštalované balíky podľa kľúčového slova"
|
||||
},
|
||||
{
|
||||
"command": "apt-cache policy <package>",
|
||||
"description": "Zobraziť verzie a priority balíkov"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Správa repozitárov",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/apt/sources.list",
|
||||
"description": "Zobraziť hlavné zdroje úložiska APT"
|
||||
},
|
||||
{
|
||||
"command": "ls -la /etc/apt/sources.list.d/",
|
||||
"description": "Zoznam ďalších zdrojových súborov úložiska"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/apt/sources.list.d/pve-enterprise.list",
|
||||
"description": "Zobraziť konfiguráciu repozitára Proxmox Enterprise v súbore .list pre PVE 8"
|
||||
},
|
||||
{
|
||||
"command": "apt-key list",
|
||||
"description": "Zobraziť staršie podpisové kľúče repozitárov, ak je dostupný apt-key"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"backupWarn": {
|
||||
"title": "Pred veľkou aktualizáciou vytvorte zálohu",
|
||||
"bodyRich": "Na bežné aktualizácie Proxmox odporúča <code>apt update && apt full-upgrade</code>. Pred potvrdením skontrolujte navrhované zmeny balíkov. Pri <strong>prechode na novú hlavnú verziu</strong> (PVE 8 → 9) použite postup ProxMenuxu <upgradeLink>Aktualizovať PVE 8 na PVE 9</upgradeLink>. Zahŕňa kontroly pripravenosti, migráciu repozitárov a overenie po aktualizácii. Najskôr vytvorte zálohu."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Súvisiace",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/utils/system-update",
|
||||
"label": "Aktualizácia systému Proxmox (interaktívna)",
|
||||
"tail": " — nástroj vykoná tieto kroky s potvrdením, pri inštalácii nového jadra automaticky zostaví ovládače spravované ProxMenuxom cez DKMS a ponúkne reštart. Spustiť ho možno aj tlačidlom Aktualizovať teraz na paneli ProxMenux Monitora."
|
||||
},
|
||||
{
|
||||
"href": "/docs/utils/upgrade-pve8-pve9",
|
||||
"label": "Upgrade PVE 8 na PVE 9",
|
||||
"tail": " — na prechod na novú hlavnú verziu."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Prehľad pomoci a informácií",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Príkazy qm a pct Proxmoxu — správa VM a kontajnerov LXC | ProxMenux",
|
||||
"description": "Príkazy qm a pct Proxmox VE pre VM a kontajnery LXC: list, config, start, stop, shutdown, reboot, destroy, clone, migrate, snapshot, resize a pre kontajnery aj pct exec / enter / push / pull.",
|
||||
"ogTitle": "Príkazy qm a pct Proxmoxu — správa VM a kontajnerov LXC",
|
||||
"ogDescription": "Príkazy qm a pct Proxmox VE na správu virtuálnych strojov a kontajnerov LXC z príkazového riadka: spustenie, zastavenie, konfigurácia, snímky, migrácia, klonovanie a odstránenie.",
|
||||
"twitterTitle": "Príkazy qm / pct Proxmoxu | ProxMenux",
|
||||
"twitterDescription": "Výber príkazov qm / pct na správu virtuálnych strojov a kontajnerov LXC v Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "Správa VM a CT",
|
||||
"description": "Výber príkazov qm pre VM a pct pre kontajnery LXC: zoznamy, životný cyklus (start / stop / shutdown / destroy), kontrola konfigurácie a operácie s kontajnermi ako exec, enter, push a pull.",
|
||||
"section": "Pomoc a informácie"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Najprv nájdite VMID alebo CTID",
|
||||
"body": "Takmer každý príkaz potrebuje numerickú identifikáciu. Použite <code>qm list</code> pre VMs a <code>pct list</code> pre kontajnery. Nahradiť <code><vmid></code> / <code><ctid></code> v útržkoch s aktuálnym ID pred spustením."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Zoznam a informácie",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm list",
|
||||
"description": "Zobraziť všetky VM"
|
||||
},
|
||||
{
|
||||
"command": "pct list",
|
||||
"description": "Zobraziť všetky LXC kontajnery"
|
||||
},
|
||||
{
|
||||
"command": "qm config <vmid>",
|
||||
"description": "Zobraziť konfiguráciu VM spracovanú nástrojom qm"
|
||||
},
|
||||
{
|
||||
"command": "pct config <ctid>",
|
||||
"description": "Zobraziť konfiguráciu kontajnera spracovanú nástrojom pct"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Konfiguračné súbory (raw)",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Zobraziť konfiguračný súbor VM"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/pve/lxc/<ctid>.conf",
|
||||
"description": "Zobraziť konfiguračný súbor CT"
|
||||
},
|
||||
{
|
||||
"command": "nano /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Upraviť konfiguračný súbor VM (nano)"
|
||||
},
|
||||
{
|
||||
"command": "nano /etc/pve/lxc/<ctid>.conf",
|
||||
"description": "Upraviť konfiguračný súbor CT (nano)"
|
||||
},
|
||||
{
|
||||
"command": "vi /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Upraviť konfiguračný súbor VM (vi)"
|
||||
},
|
||||
{
|
||||
"command": "vi /etc/pve/lxc/<ctid>.conf",
|
||||
"description": "Upraviť konfiguračný súbor CT (vi)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Správa VM",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm start <vmid>",
|
||||
"description": "Spustiť VM. Použite správne <vmid>"
|
||||
},
|
||||
{
|
||||
"command": "qm stop <vmid>",
|
||||
"description": "Vynútene zastaviť VM. Použite správne <vmid>"
|
||||
},
|
||||
{
|
||||
"command": "qm shutdown <vmid>",
|
||||
"description": "Riadne vypnúť virtuálny stroj"
|
||||
},
|
||||
{
|
||||
"command": "qm reset <vmid>",
|
||||
"description": "Resetovať virtuálny stroj (hard reštart)"
|
||||
},
|
||||
{
|
||||
"command": "qm suspend <vmid>",
|
||||
"description": "Pozastaviť virtuálny stroj"
|
||||
},
|
||||
{
|
||||
"command": "qm resume <vmid>",
|
||||
"description": "Obnoviť beh pozastaveného virtuálneho stroja"
|
||||
},
|
||||
{
|
||||
"command": "qm destroy <vmid>",
|
||||
"description": "Vymazať VM (nedá sa vrátiť späť). Použite správne <vmid>"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Správa kontajnerov",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pct start <ctid>",
|
||||
"description": "Spustiť kontajner. Použite správne <ctid>"
|
||||
},
|
||||
{
|
||||
"command": "pct stop <ctid>",
|
||||
"description": "Vynútene zastaviť kontajner. Použite správne <ctid>"
|
||||
},
|
||||
{
|
||||
"command": "pct shutdown <ctid>",
|
||||
"description": "Riadne vypnúť kontajner"
|
||||
},
|
||||
{
|
||||
"command": "pct reboot <ctid>",
|
||||
"description": "Znovu spustiť kontajner"
|
||||
},
|
||||
{
|
||||
"command": "pct destroy <ctid>",
|
||||
"description": "Vymazať CT (nedá sa vrátiť späť). Použite správne <ctid>"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Prevádzka kontajnerov",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pct exec <ctid> -- getent passwd | column -t -s :",
|
||||
"description": "Zobraziť používateľov CT v tabuľke"
|
||||
},
|
||||
{
|
||||
"command": "pct exec <ctid> -- ps aux --sort=-%mem | head",
|
||||
"description": "Procesy s najväčšou spotrebou pamäte v CT"
|
||||
},
|
||||
{
|
||||
"command": "pct enter <ctid>",
|
||||
"description": "Vstúpiť do shellu kontajnera"
|
||||
},
|
||||
{
|
||||
"command": "pct push <ctid> <source> <dest>",
|
||||
"description": "Kopírovať súbor z hostiteľa do kontajnera"
|
||||
},
|
||||
{
|
||||
"command": "pct pull <ctid> <source> <dest>",
|
||||
"description": "Kopírovať súbor z kontajnera na hostiteľa"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"destroyWarn": {
|
||||
"title": "Zničiť je nezvratné",
|
||||
"bodyRich": "<code>qm destroy</code> a <code>pct destroy</code> odstránia konfiguráciu hosťa a jeho spravované diskové zväzky. Nepredpokladajte, že odstránia aj externé údaje alebo údaje v bind mountoch. CLI predvolene nežiada potvrdenie. Potrebné údaje si najprv zálohujte; pozrite <backupLink>Zálohovanie a obnova</backupLink>."
|
||||
},
|
||||
"qmConfigTip": {
|
||||
"title": "qm config a priama úprava súboru .conf",
|
||||
"bodyRich": "<code>qm config <vmid></code> a <code>pct config <ctid></code> zobrazujú konfiguráciu cez parsery Proxmoxu. Na bežné zmeny uprednostnite <code>qm set</code> alebo zodpovedajúci príkaz pct. Priame úpravy <code>/etc/pve/qemu-server/<vmid>.conf</code> alebo <code>/etc/pve/lxc/<ctid>.conf</code> obchádzajú validáciu a zámky správcovských príkazov; súbor musí zostať spracovateľný. Pred ručnou opravou hosťa zastavte a uchovajte kópiu. <code>pmxcfs</code> synchronizuje konfiguráciu medzi uzlami klastra, nie obsah diskov hostí."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Súvisiace",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/backup-commands",
|
||||
"label": "Zálohovanie a obnova",
|
||||
"tail": " — vzdump a qmrestore / pct restore."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"label": "Úložiská a disky",
|
||||
"tail": " — qm importdisk a správa diskov."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Prehľad pomoci a informácií",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,227 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Príkazy ZFS v Proxmoxe — zpool, zfs snapshot, send/receive, scrub | ProxMenux",
|
||||
"description": "Príkazy na správu ZFS v Proxmox VE: zpool create / status / history, zfs list / get / set, snímky, clone, zfs send a receive, scrub, clear, replace, zpool iostat a súhrn ARC.",
|
||||
"ogTitle": "Príkazy ZFS v Proxmoxe — zpool, zfs snapshot, send/receive, scrub",
|
||||
"ogDescription": "Prehľad príkazov zpool a zfs v Proxmox VE: pooly, datasety, snímky, replikácia a údržba.",
|
||||
"twitterTitle": "Príkazy ZFS v Proxmoxe | ProxMenux",
|
||||
"twitterDescription": "príkazy zpool a zfs pre Proxmox VE: pools, množiny údajov, snapshots, replikácia, údržba."
|
||||
},
|
||||
"header": {
|
||||
"title": "Správa ZFS",
|
||||
"description": "Výber príkazov zpool a zfs: kontrola poolov, vytváranie, čítanie, úpravy a odstránenie datasetov, snímky, clone a prírastkové či rekurzívne send/receive, údržba cez scrub / clear / replace, štatistiky I/O a súhrn ARC.",
|
||||
"section": "Pomoc a informácie"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Dve skupiny príkazov",
|
||||
"body": "<code>zpool *</code> spravuje úložné pooly, teda fyzickú vrstvu: disky, vdevy a redundanciu. <code>zfs *</code> spravuje datasety a snímky v týchto pooloch, teda logickú vrstvu: súborové systémy, zväzky, snímky a vlastnosti."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Informácie o pooloch",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zpool list",
|
||||
"description": "Zobraziť všetky ZFS pooly"
|
||||
},
|
||||
{
|
||||
"command": "zpool status",
|
||||
"description": "Zobraziť podrobný stav a zdravie poolu"
|
||||
},
|
||||
{
|
||||
"command": "zpool status -v",
|
||||
"description": "Zobraziť podrobný stav pool s chybami"
|
||||
},
|
||||
{
|
||||
"command": "zpool history",
|
||||
"description": "Zobraziť históriu príkazov pre všetky pools"
|
||||
},
|
||||
{
|
||||
"command": "zpool history <pool>",
|
||||
"description": "Zobraziť históriu príkazov konkrétneho poolu"
|
||||
},
|
||||
{
|
||||
"command": "zpool get all <pool>",
|
||||
"description": "Zobraziť všetky vlastnosti pool"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Správa datasetov",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zfs list",
|
||||
"description": "Zobraziť všetky datasety ZFS"
|
||||
},
|
||||
{
|
||||
"command": "zfs list -r <pool>",
|
||||
"description": "Rekurzívne zobraziť všetky datasety v poole"
|
||||
},
|
||||
{
|
||||
"command": "zfs create <pool>/<dataset>",
|
||||
"description": "Vytvoriť nový dataset"
|
||||
},
|
||||
{
|
||||
"command": "zfs destroy <pool>/<dataset>",
|
||||
"description": "Odstrániť dataset"
|
||||
},
|
||||
{
|
||||
"command": "zfs rename <pool>/<dataset> <pool>/<new-name>",
|
||||
"description": "Premenovať dataset"
|
||||
},
|
||||
{
|
||||
"command": "zfs get all <pool>/<dataset>",
|
||||
"description": "Zobraziť všetky vlastnosti datasetu"
|
||||
},
|
||||
{
|
||||
"command": "zfs set compression=on <pool>/<dataset>",
|
||||
"description": "Zapnúť kompresiu na datasete"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Správa snímok",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zfs list -t snapshot",
|
||||
"description": "Zoznam všetkých snímok"
|
||||
},
|
||||
{
|
||||
"command": "zfs list -t snapshot -r <pool>",
|
||||
"description": "Zobraziť všetky snímky v poole"
|
||||
},
|
||||
{
|
||||
"command": "zfs snapshot <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Vytvoriť snímku"
|
||||
},
|
||||
{
|
||||
"command": "zfs destroy <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Odstrániť snímku"
|
||||
},
|
||||
{
|
||||
"command": "zfs rollback <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Rollback na snímku"
|
||||
},
|
||||
{
|
||||
"command": "zfs hold <tag> <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Chrániť snímku pred odstránením pomocou hold"
|
||||
},
|
||||
{
|
||||
"command": "zfs release <tag> <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Uvoľniť ochranu hold na snímke"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Klon a odoslanie/prijatie",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zfs clone <pool>/<dataset>@<snapshot> <pool>/<clone-name>",
|
||||
"description": "Vytvoriť klon zo snímky"
|
||||
},
|
||||
{
|
||||
"command": "zfs send <pool>/<dataset>@<snapshot> > backup.zfs",
|
||||
"description": "Poslať snímku do súboru"
|
||||
},
|
||||
{
|
||||
"command": "zfs receive <pool>/<dataset> < backup.zfs",
|
||||
"description": "Získať snímku zo súboru"
|
||||
},
|
||||
{
|
||||
"command": "zfs send -i <pool>/<dataset>@<snap1> <pool>/<dataset>@<snap2> > incr.zfs",
|
||||
"description": "Poslať prírastkovú snímku"
|
||||
},
|
||||
{
|
||||
"command": "zfs send -R <pool>/<dataset>@<snapshot> > full-recursive.zfs",
|
||||
"description": "Poslať rekurzívne snímky"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Údržba a opravy",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zpool scrub <pool>",
|
||||
"description": "Spustiť kontrolu scrub poolu"
|
||||
},
|
||||
{
|
||||
"command": "zpool scrub -s <pool>",
|
||||
"description": "Zastaviť prebiehajúci scrub"
|
||||
},
|
||||
{
|
||||
"command": "zpool clear <pool>",
|
||||
"description": "Vynulovať počítadlá chýb poolu"
|
||||
},
|
||||
{
|
||||
"command": "zpool clear <pool> <device>",
|
||||
"description": "Vymazať chyby na konkrétnom zariadení"
|
||||
},
|
||||
{
|
||||
"command": "zpool replace <pool> <old-device> <new-device>",
|
||||
"description": "Nahradiť chybné zariadenie"
|
||||
},
|
||||
{
|
||||
"command": "zpool offline <pool> <device>",
|
||||
"description": "Nastaviť zariadenie v poole ako offline"
|
||||
},
|
||||
{
|
||||
"command": "zpool online <pool> <device>",
|
||||
"description": "Nastaviť zariadenie v poole ako online"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Výkonnosť a monitorovanie",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zpool iostat",
|
||||
"description": "Zobraziť štatistiky I/O poolov"
|
||||
},
|
||||
{
|
||||
"command": "zpool iostat -v",
|
||||
"description": "Zobraziť podrobné I/O štatistiky"
|
||||
},
|
||||
{
|
||||
"command": "zpool iostat 5",
|
||||
"description": "Zobraziť štatistiky I/O každých päť sekúnd"
|
||||
},
|
||||
{
|
||||
"command": "arc_summary",
|
||||
"description": "Zobraziť štatistiku ARC (ak je nainštalovaná)"
|
||||
},
|
||||
{
|
||||
"command": "zfs get compressratio <pool>/<dataset>",
|
||||
"description": "Zobraziť kompresný pomer"
|
||||
},
|
||||
{
|
||||
"command": "zfs get used,available,referenced <pool>/<dataset>",
|
||||
"description": "Zobraziť využitie priestoru"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"bestPractices": {
|
||||
"title": "Najlepšie prevádzkové postupy",
|
||||
"bodyRich": "Pravidelne plánujte <code>zpool scrub</code> na overenie kontrolných súčtov a skontrolujte výsledok. Nechávajte voľnú kapacitu: vplyv takmer plného poolu závisí od záťaže a rozloženia. Chybné zariadenie vymeňte cez <code>zpool replace</code> podľa postupu pre jeho typ vdevu. Detach + add nie je rovnocenná výmena a môže zmeniť topológiu alebo odstrániť redundanciu."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Súvisiace",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"label": "Úložiská a disky",
|
||||
"tail": " — všeobecné príkazy pre blokové zariadenia a LVM."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/backup-commands",
|
||||
"label": "Zálohovanie a obnova",
|
||||
"tail": " — vzdump, qmrestore."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Prehľad pomoci a informácií",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,235 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Proxmox-kommandon för säkerhetskopiering — vzdump, qmrestore, pct restore | ProxMenux",
|
||||
"description": "Referens för säkerhetskopiering och återställning i Proxmox VE: vzdump för VM:ar och LXC-containrar, qmrestore för VM:ar, pct restore för containrar, schemalagda säkerhetskopior i /etc/pve/jobs.cfg, hookskript och sökvägar som ska undantas.",
|
||||
"ogTitle": "Proxmox-kommandon för säkerhetskopiering — vzdump, qmrestore, pct restore",
|
||||
"ogDescription": "Referens för vzdump, qmrestore och pct restore vid säkerhetskopiering och återställning av Proxmox-VM:ar och LXC-containrar.",
|
||||
"twitterTitle": "Proxmox-kommandon för säkerhetskopiering | ProxMenux",
|
||||
"twitterDescription": "Kommandona vzdump, qmrestore och pct restore för säkerhetskopiering och återställning av Proxmox-VM:ar och containrar."
|
||||
},
|
||||
"header": {
|
||||
"title": "Säkerhetskopiering och återställning",
|
||||
"description": "Kommenterad referens för vzdump, qmrestore och pct restore i Proxmox arbetsflöden för säkerhetskopiering. Omfattar schemaläggning, avancerade alternativ som hookskript, undantagna sökvägar och I/O-prioritet samt hantering av säkerhetskopieringsfiler.",
|
||||
"section": "Hjälp och info"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Tre backup lägen",
|
||||
"body": "För VM:ar är <strong>snapshot</strong> en livesäkerhetskopiering som inte kräver snapshots i lagringen. <strong>suspend</strong> pausar VM:n före säkerhetskopieringen utan att nödvändigtvis förbättra konsistensen. <strong>stop</strong> stänger först av VM:n; om den kördes kan den återupptas när säkerhetskopieringen har startat. LXC skiljer sig: snapshot kräver lagring med snapshot-stöd, suspend använder två rsync-pass och stop håller containern avstängd under hela säkerhetskopieringen."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "VM-säkerhetskopiering",
|
||||
"commands": [
|
||||
{
|
||||
"command": "vzdump <vmid>",
|
||||
"description": "Skapa en säkerhetskopia av en specifik VM/CT"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --storage <storage>",
|
||||
"description": "Backup VM till specifik lagring"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mode snapshot",
|
||||
"description": "Skapa snapshot backup (för VM)"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mode suspend",
|
||||
"description": "Pausa VM:n före livesäkerhetskopieringen, äldre suspend-läge"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mode stop",
|
||||
"description": "Stäng av VM:n innan säkerhetskopieringen startar"
|
||||
},
|
||||
{
|
||||
"command": "vzdump --all",
|
||||
"description": "Säkerhetskopiera alla VM och containrar"
|
||||
},
|
||||
{
|
||||
"command": "vzdump --all --exclude <vmid1>,<vmid2>",
|
||||
"description": "Säkerhetskopiera alla utom specificerade VM"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Alternativ för säkerhetskopiering",
|
||||
"commands": [
|
||||
{
|
||||
"command": "vzdump <vmid> --compress zstd",
|
||||
"description": "Använd zstd komprimering för backup"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --compress gzip --pigz <threads>",
|
||||
"description": "Använd pigz med flera trådar"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --storage <storage> --notes-template <text>",
|
||||
"description": "Lägg till anteckningar till backup"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --mailto <email>",
|
||||
"description": "Skicka meddelande e-post"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --prune-backups keep-last=<n>",
|
||||
"description": "Håll bara n backups per VM"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --stdexcludes 0",
|
||||
"description": "Undvik inte tillfälliga filer"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --quiet 1",
|
||||
"description": "Undertryck utdatameddelanden"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Återställ säkerhetskopior",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qmrestore <backup-file> <vmid>",
|
||||
"description": "Återställ VM från backup"
|
||||
},
|
||||
{
|
||||
"command": "qmrestore <backup-file> <vmid> --storage <storage>",
|
||||
"description": "Återställ till specifik lagring"
|
||||
},
|
||||
{
|
||||
"command": "qmrestore <backup-file> <vmid> --unique",
|
||||
"description": "Återställ VM:n med nya slumpmässiga MAC-adresser"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file>",
|
||||
"description": "Återställ container från backup"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file> --storage <storage>",
|
||||
"description": "Återställ container till specifik lagring"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file> --rootfs <storage>:<size-GiB>",
|
||||
"description": "Återställ med en rotdisk på vald lagring och med vald storlek"
|
||||
},
|
||||
{
|
||||
"command": "pct restore <vmid> <backup-file> --unprivileged 1",
|
||||
"description": "Återställ som oprivilegierad CT"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Hantering av säkerhetskopior",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ls -la /var/lib/vz/dump/",
|
||||
"description": "Lista säkerhetskopior på standardplats"
|
||||
},
|
||||
{
|
||||
"command": "find /var/lib/vz/dump/ -name \"*.vma*\"",
|
||||
"description": "Hitta VM säkerhetskopior"
|
||||
},
|
||||
{
|
||||
"command": "find /var/lib/vz/dump/ -name \"*.tar*\"",
|
||||
"description": "Hitta container backups"
|
||||
},
|
||||
{
|
||||
"command": "pvesm list <storage> --content backup",
|
||||
"description": "Lista säkerhetskopior i specifik lagring"
|
||||
},
|
||||
{
|
||||
"command": "rm /var/lib/vz/dump/<backup-file>",
|
||||
"description": "Ta bort en backup-fil"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/vzdump.conf",
|
||||
"description": "Visa backup konfiguration"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Schemalagda Backups",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/pve/jobs.cfg",
|
||||
"description": "Visa backup schema"
|
||||
},
|
||||
{
|
||||
"command": "nano /etc/vzdump.conf",
|
||||
"description": "Redigera säkerhetskopieringskonfigurationen"
|
||||
},
|
||||
{
|
||||
"command": "systemctl list-timers",
|
||||
"description": "Lista systemd-timers"
|
||||
},
|
||||
{
|
||||
"command": "systemctl status cron",
|
||||
"description": "Kontrollera cron service status"
|
||||
},
|
||||
{
|
||||
"command": "pvenode task list --typefilter vzdump",
|
||||
"description": "Lista slutförda säkerhetskopieringsuppgifter"
|
||||
},
|
||||
{
|
||||
"command": "pvenode task log <upid>",
|
||||
"description": "Visa loggen för en säkerhetskopieringsuppgift via dess UPID"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Avancerade åtgärder",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qmrestore <backup> <vmid> --force",
|
||||
"description": "Force-återställning, överskrivning av befintlig VM"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --dumpdir <directory>",
|
||||
"description": "Ange anpassad backup katalog"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --script <script>",
|
||||
"description": "Kör hook script under backup"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --exclude-path <path>",
|
||||
"description": "Undanta angivna sökvägar från säkerhetskopieringen"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --ionice <priority>",
|
||||
"description": "Ställ in I/O prioritet för backup process"
|
||||
},
|
||||
{
|
||||
"command": "vzdump <vmid> --lockwait <minutes>",
|
||||
"description": "Vänta på lås"
|
||||
},
|
||||
{
|
||||
"command": "qm importdisk <vmid> <disk-image> <storage>",
|
||||
"description": "Importera en diskavbildsfil (till exempel raw, qcow2 eller vmdk) som en oanvänd disk, inte ett vzdump-säkerhetskopiearkiv"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"testRestores": {
|
||||
"title": "Testa återställningarna",
|
||||
"bodyRich": "Återställ regelbundet en säkerhetskopia till ett ledigt test-VMID med <code>qmrestore --unique</code>, starta VM:n på ett isolerat testnät och kontrollera innehållet. unique skapar nya MAC-adresser men ändrar inte statiska IP-adresser eller programinställningar. Testa containeråterställning på samma sätt med <code>pct restore</code>."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relaterat",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/vm-ct-commands",
|
||||
"label": "Hantering av VM:ar och CT:er",
|
||||
"tail": " — qm och pct livscykel kommandon."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"label": "Lagring och diskar",
|
||||
"tail": " — pvesm lagringshantering."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Översikt över Hjälp och info",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Proxmox-kommandon för GPU-passthrough — lspci, VFIO, IOMMU, qm set hostpci | ProxMenux",
|
||||
"description": "Referens för GPU-passthrough på Proxmox VE: identifiering med lspci, VFIO-moduler, IOMMU-grupper (intel_iommu / amd_iommu), GRUB- och initramfs-uppdateringar, qm set hostpci0 och inställningar för NVIDIA / AMD / Intel.",
|
||||
"ogTitle": "Proxmox-kommandon för GPU-passthrough — lspci, VFIO, IOMMU, qm set hostpci",
|
||||
"ogDescription": "Referens för inspektering och konfigurering av GPU passthrough på Proxmox VE - PCI-enheter, VFIO-moduler, IOMMU-grupper, kärnstartsparam, qm set hostpci.",
|
||||
"twitterTitle": "Proxmox-kommandon för GPU-passthrough | ProxMenux",
|
||||
"twitterDescription": "Kontrollera PCI-enheter, konfigurera VFIO och IOMMU och tilldela GPU:er till VM:ar på Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "GPU-genomföring",
|
||||
"description": "Referens för kontroll och konfigurering av GPU-/TPU-passthrough på Proxmox: enhetsidentifiering (lspci), VFIO-moduler, IOMMU-kontroll, initramfs-/GRUB-uppdateringar och inställningar per VM (qm set hostpci, machine q35, bios ovmf).",
|
||||
"section": "Hjälp och info"
|
||||
},
|
||||
"intro": {
|
||||
"title": "IOMMU måste aktiveras i BIOS / UEFI",
|
||||
"body": "Aktivera först IOMMU i firmware: leta efter <em>VT-d</em>, <em>AMD-Vi</em> eller <em>IOMMU</em> i BIOS/UEFI. I Linux är det aktiverat som standard på AMD och på Intel med Proxmox-kärnor från 6.8. Äldre Intel-kärnor kan behöva <code>intel_iommu=on</code>. Det valfria <code>iommu=pt</code> styr IOMMU:s passthrough-läge och är inget skäl att generellt stänga av värdens framebuffer."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Enhetsidentifiering",
|
||||
"commands": [
|
||||
{
|
||||
"command": "lspci -nn | grep -i nvidia",
|
||||
"description": "Lista NVIDIA PCI-enheter"
|
||||
},
|
||||
{
|
||||
"command": "lspci -nn | grep -i vga",
|
||||
"description": "Lista alla VGA kompatibla enheter"
|
||||
},
|
||||
{
|
||||
"command": "lspci -nn | grep -i amd",
|
||||
"description": "Lista AMD PCI-enheter"
|
||||
},
|
||||
{
|
||||
"command": "lspci -nnk | grep -A3 VGA",
|
||||
"description": "Lista VGA-enheter med kärndrivrutiner"
|
||||
},
|
||||
{
|
||||
"command": "lspci -v -s <PCI_ID>",
|
||||
"description": "Visa detaljerad information för specifik PCI-enhet"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "VFIO-konfiguration",
|
||||
"commands": [
|
||||
{
|
||||
"command": "dmesg | grep -i vfio",
|
||||
"description": "Kontrollera VFIO-modulmeddelanden"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/modprobe.d/vfio.conf",
|
||||
"description": "Granska konfigurationen för VFIO-passthrough"
|
||||
},
|
||||
{
|
||||
"command": "ls -la /etc/modprobe.d/",
|
||||
"description": "Lista alla modprobe konfigurationsfiler"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/modules",
|
||||
"description": "Visa moduler laddade vid starttid"
|
||||
},
|
||||
{
|
||||
"command": "lsmod | grep vfio",
|
||||
"description": "Kontrollera om VFIO-moduler laddas"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "IOMMU Konfiguration",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/default/grub",
|
||||
"description": "Granska GRUB alternativ för IOMMU"
|
||||
},
|
||||
{
|
||||
"command": "update-grub",
|
||||
"description": "Applicera GRUB ändringar"
|
||||
},
|
||||
{
|
||||
"command": "dmesg | grep -i iommu",
|
||||
"description": "Kontrollera IOMMU-meddelanden i kärnlogg"
|
||||
},
|
||||
{
|
||||
"command": "dmesg | grep -e DMAR -e IOMMU",
|
||||
"description": "Kontrollera DMAR och IOMMU-meddelanden"
|
||||
},
|
||||
{
|
||||
"command": "find /sys/kernel/iommu_groups/ -type l | sort -V",
|
||||
"description": "Lista IOMMU-grupper"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Systemuppdateringar",
|
||||
"commands": [
|
||||
{
|
||||
"command": "update-initramfs -u",
|
||||
"description": "Applicera initramfs förändringar (VFIO)"
|
||||
},
|
||||
{
|
||||
"command": "update-initramfs -u -k all",
|
||||
"description": "Uppdatera initramfs för alla kärnor"
|
||||
},
|
||||
{
|
||||
"command": "cat /proc/cmdline",
|
||||
"description": "Visa nuvarande kärnstartsparametrar"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "VM Konfiguration",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm config <vmid> | grep hostpci",
|
||||
"description": "Visa PCI-passthrough-inställningar för en VM"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -hostpci0 <PCI_ID>,pcie=1,x-vga=1",
|
||||
"description": "Lägg till GPU-passthrough till en VM"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Visa VM konfigurationsfil"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -machine q35",
|
||||
"description": "Ställ in VM för att använda Q35-chipset (rekommenderas för genomgång)"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -bios ovmf",
|
||||
"description": "Ställ in VM:n på UEFI/OVMF, rekommenderat om GPU:ns ROM stöder UEFI"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"afterChangesTip": {
|
||||
"title": "Efter att ha ändrat GRUB eller modprobe configs",
|
||||
"bodyRich": "På värdar med GRUB tillämpar du startparametrar med <code>update-grub</code>. Uppdatera moduländringar med <code>update-initramfs -u -k all</code> och starta sedan om. Andra starthanterare har egna rutiner. Kontrollera med <code>cat /proc/cmdline</code> (kärnparametrar), <code>dmesg | grep -i iommu</code> (IOMMU aktiverad) och <code>find /sys/kernel/iommu_groups/ -type l | sort -V</code> (grupper finns)."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relaterat",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/hardware/gpu-vm-passthrough",
|
||||
"label": "Lägg till GPU till VM (Passthrough)",
|
||||
"tail": " — interaktivt ProxMenux-flöde."
|
||||
},
|
||||
{
|
||||
"href": "/docs/hardware/igpu-acceleration-lxc",
|
||||
"label": "Lägg till GPU till LXC",
|
||||
"tail": " — dela åtkomst till värdens GPU-enheter med en LXC-container."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Översikt över Hjälp och info",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Referens för Proxmox-kommandon — qm, pct, vzdump, zpool, pveversion | ProxMenux",
|
||||
"description": "Utvalda viktiga kommandon för Proxmox VE och Linux efter ämne: systemkontroll, hantering av VM:ar och LXC:er (qm / pct), lagring och diskar, nätverk, uppdateringar, GPU-passthrough, ZFS, säkerhetskopiering och återställning samt vardagens terminalverktyg.",
|
||||
"ogTitle": "Referens för Proxmox-kommandon — qm, pct, vzdump, zpool",
|
||||
"ogDescription": "Utvalda användbara Proxmox VE- och Linux-kommandon efter ämne: system, VM/CT, lagring, nätverk, uppdateringar, GPU-passthrough, ZFS, säkerhetskopiering och CLI-verktyg.",
|
||||
"twitterTitle": "Referens för Proxmox-kommandon | ProxMenux",
|
||||
"twitterDescription": "Utvalda användbara Proxmox VE- och Linux-kommandon, grupperade efter ämne."
|
||||
},
|
||||
"header": {
|
||||
"title": "Hjälp och info",
|
||||
"description": "Utvalda användbara Linux- och Proxmox VE-kommandon efter ämne. De nio kategorierna omfattar allt från en snabb kontroll med pveversion till flera rader med zfs send/receive. Samlingen är en gemensam referens tillsammans med ProxMenux avsnitt om GPU, diskar och delningar.",
|
||||
"section": "Hjälp och info"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Vad detta är",
|
||||
"body": "En referenskatalog över kommandon du använder på en Proxmox-värd, grupperade efter ämne. I ProxMenux kan du välja ett nummer för att köra ett kommando direkt eller klistra in ett eget vid prompten. På webbplatsen visas varje kategori som en tabell att kopiera från."
|
||||
},
|
||||
"opening": {
|
||||
"heading": "Öppna menyn",
|
||||
"body": "Tryck på <kbd>h</kbd> i ProxMenux huvudmeny. Då visas detta:",
|
||||
"imageAlt": "Menyn Hjälp och info med nio kommandokategorier"
|
||||
},
|
||||
"categories": {
|
||||
"heading": "De nio kategorierna",
|
||||
"options": [
|
||||
{
|
||||
"icon": "Terminal",
|
||||
"href": "/docs/help-info/system-commands",
|
||||
"title": "Användbara systemkommandon",
|
||||
"description": "pveversion, uptime, free, journalctl, hostnamectl, information om aktuell användare, granskning med lynis och fastfetch."
|
||||
},
|
||||
{
|
||||
"icon": "Cpu",
|
||||
"href": "/docs/help-info/vm-ct-commands",
|
||||
"title": "Hantering av VM:ar och CT:er",
|
||||
"description": "qm list / config / start / stop / migrate, pct list / config / enter, snapshots och kloning."
|
||||
},
|
||||
{
|
||||
"icon": "HardDrive",
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"title": "Lagring och diskar",
|
||||
"description": "lsblk, blkid, smartctl, monteringsinformation, pvesm status och LVM-kommandon."
|
||||
},
|
||||
{
|
||||
"icon": "Network",
|
||||
"href": "/docs/help-info/network-commands",
|
||||
"title": "Nätverkskommandon",
|
||||
"description": "ip / ss / nmcli, kontroll av nätverksbryggor, ping / traceroute, DNS-uppslagningar och fail2ban-client."
|
||||
},
|
||||
{
|
||||
"icon": "Package",
|
||||
"href": "/docs/help-info/update-commands",
|
||||
"title": "Uppdateringar och paket",
|
||||
"description": "apt update / dist-upgrade, apt-cache policy, dpkg-frågor och kontroll av arkivfiler."
|
||||
},
|
||||
{
|
||||
"icon": "Cpu",
|
||||
"href": "/docs/help-info/gpu-commands",
|
||||
"title": "GPU-genomföring",
|
||||
"description": "Kontroller med lspci / dmesg, verifiering av aktiverad IOMMU, bindning till vfio-pci och GPU-användning på värden."
|
||||
},
|
||||
{
|
||||
"icon": "Database",
|
||||
"href": "/docs/help-info/zfs-commands",
|
||||
"title": "ZFS-hantering",
|
||||
"description": "zpool / zfs för status, dataset, snapshots, send/receive, ARC-justering och TRIM."
|
||||
},
|
||||
{
|
||||
"icon": "Archive",
|
||||
"href": "/docs/help-info/backup-commands",
|
||||
"title": "Säkerhetskopiering och återställning",
|
||||
"description": "vzdump, qmrestore / pct restore, verktyg för Proxmox Backup Server och snapshot-åtgärder."
|
||||
},
|
||||
{
|
||||
"icon": "Wrench",
|
||||
"href": "/docs/help-info/tools-commands",
|
||||
"title": "System CLI-verktyg",
|
||||
"description": "tmux, screen, htop / btop, ncdu, jq, dig, lsof, watch — verktyg för daglig administration."
|
||||
}
|
||||
]
|
||||
},
|
||||
"tip": {
|
||||
"title": "Sökbar från den globala sökningen",
|
||||
"body": "Varje kommando på dessa sidor indexeras av dokumentationssökningen. Om du kommer ihåg en flagga eller fragment men inte vilken sida den är på, slå sökfältet på toppen - du landar direkt på rätt post."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,174 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Proxmox-nätverkskommandon — ip, ping, ss, pve-firewall, iptables | ProxMenux",
|
||||
"description": "Referens för nätverkskommandon på Proxmox VE-värdar: ip / ip link / ip addr, ping, traceroute, mtr, ss, ethtool, dig och nslookup samt pve-firewall, iptables och nftables för filtrering. Kontroll av bryggor, länkaggregeringar och VLAN.",
|
||||
"ogTitle": "Proxmox-nätverkskommandon — ip, ping, ss, pve-firewall, iptables",
|
||||
"ogDescription": "Referens av nätverkskommandon för Proxmox VE - gränssnittskontroll, anslutningstest, övervakning, brandvägg (pve-firewall, iptables, nftables) och DNS-uppslag.",
|
||||
"twitterTitle": "Proxmox nätverkskommandon | ProxMenux",
|
||||
"twitterDescription": "Nätverksinspektion, testning, konfiguration och brandväggskommandon för Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "Nätverkskommandon",
|
||||
"description": "Utvalda kommandon för Proxmox-värdens nätverk: gränssnittsinformation, anslutningstester, konfiguration, trafikövervakning och brandväggshantering. Omfattar ip / ss / nmcli / ethtool / tcpdump / pve-firewall.",
|
||||
"section": "Hjälp och info"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Snabb översikt över gränssnitten",
|
||||
"body": "<code>ip a</code> visar varje gränssnitt med dess IP- och MAC-adresser. <code>ip r</code> visar routningstabellen. Tillsammans besvarar de på några sekunder de flesta frågor om huruvida ett gränssnitt är rätt konfigurerat."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Nätverksinformation",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ip a",
|
||||
"description": "Visa nätverksgränssnitt och IP-adresser"
|
||||
},
|
||||
{
|
||||
"command": "ip r",
|
||||
"description": "Visa rutttabell"
|
||||
},
|
||||
{
|
||||
"command": "ip -s link",
|
||||
"description": "Visa trafikstatistik per gränssnitt"
|
||||
},
|
||||
{
|
||||
"command": "brctl show",
|
||||
"description": "Visa konfigurerade nätverksbryggor"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/network/interfaces",
|
||||
"description": "Visa rå nätverkskonfiguration"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Nätverkstestning",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ping <host>",
|
||||
"description": "Kontrollera anslutningen med en annan värd"
|
||||
},
|
||||
{
|
||||
"command": "traceroute <host>",
|
||||
"description": "Spåra vägen till en värd"
|
||||
},
|
||||
{
|
||||
"command": "mtr <host>",
|
||||
"description": "Kombinera ping och traceroute i realtid"
|
||||
},
|
||||
{
|
||||
"command": "dig <domain>",
|
||||
"description": "DNS-sökning för en domän"
|
||||
},
|
||||
{
|
||||
"command": "nslookup <domain>",
|
||||
"description": "Alternativ DNS-uppslagning"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Nätverkskonfiguration",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ifreload -a",
|
||||
"description": "Ladda om nätverkskonfigurationen (ifupdown2)"
|
||||
},
|
||||
{
|
||||
"command": "ethtool <iface>",
|
||||
"description": "Visa Ethernet-enhetsinformation"
|
||||
},
|
||||
{
|
||||
"command": "resolvectl status",
|
||||
"description": "Visa DNS-upplösningsstatus"
|
||||
},
|
||||
{
|
||||
"command": "nmcli device show",
|
||||
"description": "Visa nätverksenhetsdetaljer (om NetworkManager används)"
|
||||
},
|
||||
{
|
||||
"command": "ip link set <iface> up",
|
||||
"description": "Aktivera ett nätverksgränssnitt"
|
||||
},
|
||||
{
|
||||
"command": "ip link set <iface> down",
|
||||
"description": "Inaktivera ett nätverksgränssnitt"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Nätverksövervakning",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ss -tuln",
|
||||
"description": "Visa lyssningsportar (TCP/UDP)"
|
||||
},
|
||||
{
|
||||
"command": "netstat -tuln",
|
||||
"description": "Alternativ för att visa lyssnande portar"
|
||||
},
|
||||
{
|
||||
"command": "lsof -i",
|
||||
"description": "Lista öppna nätverksfiler och anslutningar"
|
||||
},
|
||||
{
|
||||
"command": "tcpdump -i <iface>",
|
||||
"description": "Fånga paket på gränssnitt"
|
||||
},
|
||||
{
|
||||
"command": "iftop -i <iface>",
|
||||
"description": "Övervaka bandbreddsanvändningen på ett gränssnitt"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Brandväggshantering",
|
||||
"commands": [
|
||||
{
|
||||
"command": "iptables -L -n -v",
|
||||
"description": "Visa aktiva brandväggsregler (iptables)"
|
||||
},
|
||||
{
|
||||
"command": "nft list ruleset",
|
||||
"description": "Visa nftables regler"
|
||||
},
|
||||
{
|
||||
"command": "pve-firewall status",
|
||||
"description": "Kontrollera status för Proxmox brandvägg"
|
||||
},
|
||||
{
|
||||
"command": "pve-firewall compile",
|
||||
"description": "Kompilera brandväggsregler för alla noder"
|
||||
},
|
||||
{
|
||||
"command": "pve-firewall reload",
|
||||
"description": "Ladda om Proxmox brandväggsregler"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"iptablesTip": {
|
||||
"title": "iptables vs nftables",
|
||||
"bodyRich": "Den klassiska tjänsten <code>pve-firewall</code> skapar iptables-regler. Den alternativa tjänsten proxmox-firewall använder <strong>nftables</strong>. Kontrollera iptables-backenden med <code>iptables -L -n -v</code> och nftables-backenden med <code>nft list ruleset</code>. Använd verktygen för den aktiva backenden; listorna är inte utbytbara."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relaterat",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/network",
|
||||
"label": "Nätverkshantering",
|
||||
"tail": " — ProxMenux interaktiva nätverksverktyg för brygganalys, beständiga namn och övervakning."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/tools-commands",
|
||||
"label": "System CLI-verktyg",
|
||||
"tail": " - fler nätverksövervakningsverktyg."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Översikt över Hjälp och info",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,232 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Proxmox-kommandon för lagring och diskar — lsblk, LVM, pvesm, qm importdisk | ProxMenux",
|
||||
"description": "Lagrings- och diskkommandon på Proxmox VE: lsblk, blkid, parted, lvdisplay, vgdisplay, pvs, mount, df, du, ncdu, pvesm status samt qm importdisk och qemu-img convert för VM-diskar.",
|
||||
"ogTitle": "Proxmox-kommandon för lagring och diskar — lsblk, LVM, pvesm, qm importdisk",
|
||||
"ogDescription": "Lagrings- och diskkommandon på Proxmox VE: diskkontroll, LVM, monteringar, Proxmox-lagring, import av VM-diskar och konvertering av diskavbilder.",
|
||||
"twitterTitle": "Proxmox lagringskommandon | ProxMenux",
|
||||
"twitterDescription": "Diskkontroll, monteringsinformation, LVM-hantering, Proxmox-lagring samt import och konvertering av VM-diskar."
|
||||
},
|
||||
"header": {
|
||||
"title": "Lagring och diskar",
|
||||
"description": "Utvalda kommandon för att kontrollera lagring på Proxmox-värdar: blockenheter, partitioner, monteringar, LVM-volymer, lagringskonfiguration och VM-diskåtgärder (importdisk, qemu-img convert).",
|
||||
"section": "Hjälp och info"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Snabb översikt över diskarna",
|
||||
"body": "<code>lsblk</code> visar blockenheter och partitioner som ett träd. Kontrollera beständiga identifierare med <code>ls -lh /dev/disk/by-id/</code>: för samma disk är de normalt stabila över omstarter och ändrad enhetsordning. Ett diskbyte eller en ändring av hur styrenheten visar diskens identitet kan ändra dess by-id-sökväg."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Diskinformation",
|
||||
"commands": [
|
||||
{
|
||||
"command": "lsblk",
|
||||
"description": "Lista blockenheter och partitioner"
|
||||
},
|
||||
{
|
||||
"command": "fdisk -l",
|
||||
"description": "Lista diskar med detaljerad information"
|
||||
},
|
||||
{
|
||||
"command": "blkid",
|
||||
"description": "Visa UUID och filsystemtyp av blockenheter"
|
||||
},
|
||||
{
|
||||
"command": "ls -lh /dev/disk/by-id/",
|
||||
"description": "Lista diskbeständiga identifierare"
|
||||
},
|
||||
{
|
||||
"command": "parted -l",
|
||||
"description": "Detaljerad partitionslayout med GPT-information"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Lagringsanvändning",
|
||||
"commands": [
|
||||
{
|
||||
"command": "df -h",
|
||||
"description": "Visa diskanvändning efter monteringspunkt"
|
||||
},
|
||||
{
|
||||
"command": "du -sh /path",
|
||||
"description": "Visa storleken på en katalog"
|
||||
},
|
||||
{
|
||||
"command": "mount | grep ^/dev",
|
||||
"description": "Visa monterade lagringsenheter"
|
||||
},
|
||||
{
|
||||
"command": "cat /proc/mounts",
|
||||
"description": "Visa alla aktiva monteringar från kärnan"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "LVM-hantering",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pvdisplay",
|
||||
"description": "Visa fysiska volymer (LVM)"
|
||||
},
|
||||
{
|
||||
"command": "vgdisplay",
|
||||
"description": "Visa volymgrupper (LVM)"
|
||||
},
|
||||
{
|
||||
"command": "lvdisplay",
|
||||
"description": "Visa logiska volymer (LVM)"
|
||||
},
|
||||
{
|
||||
"command": "pvs",
|
||||
"description": "Kortfattad utdata av fysiska volymer"
|
||||
},
|
||||
{
|
||||
"command": "vgs",
|
||||
"description": "Kortfattad utdata av volymgrupper"
|
||||
},
|
||||
{
|
||||
"command": "lvs",
|
||||
"description": "Kortfattad utdata av logiska volymer"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Proxmox lagring",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/pve/storage.cfg",
|
||||
"description": "Visa Proxmox-lagringskonfiguration"
|
||||
},
|
||||
{
|
||||
"command": "pvesm status",
|
||||
"description": "Visa status för alla lagringspooler"
|
||||
},
|
||||
{
|
||||
"command": "pvesm status --enabled 1",
|
||||
"description": "Lista konfigurerad och aktiverad lagring"
|
||||
},
|
||||
{
|
||||
"command": "pvesm list <storage>",
|
||||
"description": "Lista innehållet i specifik lagring"
|
||||
},
|
||||
{
|
||||
"command": "pvesm scan nfs <server>",
|
||||
"description": "Hitta NFS-exporter på en server"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Diskåtgärder",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm importdisk <vmid> <image_path> <storage>",
|
||||
"description": "Importera diskavbilden som oanvänd VM-disk och anslut den sedan separat"
|
||||
},
|
||||
{
|
||||
"command": "qm set <vmid> -<bus><index> <disk_path>",
|
||||
"description": "Tilldela fysisk disk till VM (genomfångsläge)"
|
||||
},
|
||||
{
|
||||
"command": "qemu-img convert -O <format> <input> <output>",
|
||||
"description": "Konvertera formatet för en diskavbild som inte används aktivt"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Diskhälsa med SMART",
|
||||
"commands": [
|
||||
{
|
||||
"command": "smartctl --scan",
|
||||
"description": "Lista SMART-kompatibla enheter på värden"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -i /dev/<disk>",
|
||||
"description": "Grundläggande enhetsinformation: modell, firmware och serienummer"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -H /dev/<disk>",
|
||||
"description": "Snabb hälsokontroll - övergripande PASSED / FAILED"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -A /dev/<disk>",
|
||||
"description": "SMART attribut endast (råvärden, trösklar)"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -a /dev/<disk>",
|
||||
"description": "Fullständig SMART-information: enhet, attribut och självtestlogg"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -t short /dev/<disk>",
|
||||
"description": "Starta kort självtest (~2 minuter, körs i bakgrunden)"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -t long /dev/<disk>",
|
||||
"description": "Starta ett långt självtest som kan ta timmar i bakgrunden"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -l selftest /dev/<disk>",
|
||||
"description": "Visa självtest log (resultat från tidigare tester)"
|
||||
},
|
||||
{
|
||||
"command": "smartctl -X /dev/<disk>",
|
||||
"description": "Avbryt det pågående självtestet"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "NVMe-diskhälsa",
|
||||
"commands": [
|
||||
{
|
||||
"command": "nvme list",
|
||||
"description": "Lista NVMe-enheter synliga för kärnan"
|
||||
},
|
||||
{
|
||||
"command": "nvme smart-log /dev/<nvme>",
|
||||
"description": "NVMe-specifik SMART-logg (temperatur, slitage, fel)"
|
||||
},
|
||||
{
|
||||
"command": "nvme id-ctrl /dev/<nvme>",
|
||||
"description": "Styrenhetsinformation: modell, firmware och funktioner"
|
||||
},
|
||||
{
|
||||
"command": "nvme error-log /dev/<nvme>",
|
||||
"description": "Nyligen NVMe felloggposter"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"lvmTip": {
|
||||
"title": "LVM kort vs långa kommandon",
|
||||
"bodyRich": "Båda formerna finns. <code>pvs</code> / <code>vgs</code> / <code>lvs</code> ger kompakta tabeller med en rad per fysisk volym, volymgrupp respektive logisk volym. <code>pvdisplay</code> / <code>vgdisplay</code> / <code>lvdisplay</code> visar mer detaljer på flera rader. De korta formerna passar bra för dagliga kontroller."
|
||||
},
|
||||
"smartInfo": {
|
||||
"title": "SMART för SATA/SAS jämfört med NVMe",
|
||||
"bodyRich": "<strong>SATA-/SAS-diskar, även SSD:er,</strong> kan granskas med <code>smartctl</code> från <code>smartmontools</code>, som ingår i Proxmox. Ange enheten, till exempel <code>/dev/sda</code> eller <code>/dev/sdb</code>. <strong>NVMe-diskar</strong> använder ett annat inbyggt protokoll. Även <code>smartctl</code> stöder dem, medan <code>nvme</code> från <code>nvme-cli</code> ger NVMe-specifika frågor om styrenheter, namnrymder och hälsa. Installera med <code>apt install nvme-cli</code> om det saknas."
|
||||
},
|
||||
"selfTestWarn": {
|
||||
"title": "Självtester körs i bakgrunden",
|
||||
"bodyRich": "På enheter som stöds startar <code>smartctl -t short /dev/<disk></code> och <code>smartctl -t long /dev/<disk></code> bakgrundstester och återvänder direkt. Kontrollera förloppet med <code>smartctl -a /dev/<disk></code>, leta efter \"Self-test routine in progress\", eller vänta och läs <code>smartctl -l selftest /dev/<disk></code>. Korta tester tar ofta cirka två minuter; långa kan ta timmar. Disken kan fortfarande användas, men I/O-prestandan kan minska."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relaterat",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/zfs-commands",
|
||||
"label": "ZFS-hantering",
|
||||
"tail": " — zpool / zfs kommandon för ZFS-stödd lagring."
|
||||
},
|
||||
{
|
||||
"href": "/docs/disk-manager",
|
||||
"label": "Diskhanteraren",
|
||||
"tail": " — interaktiva ProxMenux-flöden för diskåtkomst, import, formatering och SMART."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Översikt över Hjälp och info",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Proxmox VE Systemkommandon - pveversion, uptime, journalctl, systemctl | ProxMenux",
|
||||
"description": "Systemkommandon för Proxmox VE och Linux för versioner, drifttid, minne, tjänster, loggar och användare samt gransknings- och sammanfattningsverktyg. En tjänsteomstart ingår; alla exempel är inte skrivskyddade.",
|
||||
"ogTitle": "Proxmox VE Systemkommandon - pveversion, uptime, journalctl, systemctl",
|
||||
"ogDescription": "Systemkommandon för Proxmox VE och Linux för version, drifttid, tjänster, loggar och användarinformation, inklusive tjänstehantering och granskning.",
|
||||
"twitterTitle": "Proxmox VE Systemkommandon | ProxMenux",
|
||||
"twitterDescription": "Viktiga systeminspektionskommandon för Proxmox VE - version, status, tjänster, loggar, användarinformation."
|
||||
},
|
||||
"header": {
|
||||
"title": "Användbara systemkommandon",
|
||||
"description": "Kommandon för att kontrollera Proxmox-värden: version, kärna, drifttid, minne, webbgränssnittets status, aktuella loggar och inloggade användare samt gransknings- och sammanfattningsverktyg. De flesta läser status, men systemctl restart pveproxy startar om webbproxyn och granskningsverktyg kan skriva rapporter och loggar.",
|
||||
"section": "Hjälp och info"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Vad detta är",
|
||||
"body": "Samma numrerade lista som ProxMenux visar under <em>Användbara systemkommandon</em>. Kopiera ett kommando med knappen Kopiera eller slå upp den exakta flaggan."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Systeminformation",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pveversion",
|
||||
"description": "Visa Proxmox-version"
|
||||
},
|
||||
{
|
||||
"command": "pveversion -v",
|
||||
"description": "Detaljerad Proxmox-versionsinformation"
|
||||
},
|
||||
{
|
||||
"command": "hostnamectl",
|
||||
"description": "Systemvärdnamn och kärninformation"
|
||||
},
|
||||
{
|
||||
"command": "uname -a",
|
||||
"description": "Information om operativsystemets kärna och arkitektur"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/os-release",
|
||||
"description": "Detaljer om operativsystemets utgåva"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Systemstatus",
|
||||
"commands": [
|
||||
{
|
||||
"command": "uptime",
|
||||
"description": "Systemuppetid"
|
||||
},
|
||||
{
|
||||
"command": "uptime -p",
|
||||
"description": "Drifttid i lättläst format"
|
||||
},
|
||||
{
|
||||
"command": "free -h",
|
||||
"description": "Användning av RAM och swap"
|
||||
},
|
||||
{
|
||||
"command": "who -b",
|
||||
"description": "Sista systemstarttid"
|
||||
},
|
||||
{
|
||||
"command": "last -x | grep shutdown",
|
||||
"description": "Tidigare avstängningar"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Tjänstehantering",
|
||||
"commands": [
|
||||
{
|
||||
"command": "systemctl status pveproxy",
|
||||
"description": "Kontrollera status för Proxmox Web UI"
|
||||
},
|
||||
{
|
||||
"command": "systemctl restart pveproxy",
|
||||
"description": "Starta om proxy för webbgränssnittet"
|
||||
},
|
||||
{
|
||||
"command": "journalctl -xe",
|
||||
"description": "Systemfel och loggar"
|
||||
},
|
||||
{
|
||||
"command": "dmesg -T | tail -n 50",
|
||||
"description": "Senaste 50 kärnloggraderna"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Användarinformation",
|
||||
"commands": [
|
||||
{
|
||||
"command": "whoami",
|
||||
"description": "Nuvarande användare"
|
||||
},
|
||||
{
|
||||
"command": "id",
|
||||
"description": "Aktuell användar-UID, GID och grupper"
|
||||
},
|
||||
{
|
||||
"command": "who",
|
||||
"description": "Inloggade användare"
|
||||
},
|
||||
{
|
||||
"command": "w",
|
||||
"description": "Användaraktivitet och drifttid"
|
||||
},
|
||||
{
|
||||
"command": "uptime && w",
|
||||
"description": "Upptid och vem som är inloggad"
|
||||
},
|
||||
{
|
||||
"command": "cut -d: -f1,3,4 /etc/passwd",
|
||||
"description": "Alla användare med UID och GID"
|
||||
},
|
||||
{
|
||||
"command": "getent passwd | column -t -s :",
|
||||
"description": "Läsbar användartabell (UID, skal, etc.)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Verktyg för granskning och sammanfattning",
|
||||
"commands": [
|
||||
{
|
||||
"command": "lynis audit system",
|
||||
"description": "Kör en fullständig systemsäkerhetsrevision"
|
||||
},
|
||||
{
|
||||
"command": "fastfetch",
|
||||
"description": "Visa systemsammanfattning i ASCII-format"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"related": {
|
||||
"heading": "Relaterat",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/update-commands",
|
||||
"label": "Uppdateringar och paket",
|
||||
"tail": " — kommandon för apt och PVE-uppgradering."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/tools-commands",
|
||||
"label": "System CLI-verktyg",
|
||||
"tail": " — htop, btop, ncdu och liknande verktyg."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Översikt över Hjälp och info",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,276 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Linux-terminalverktyg för Proxmox — htop, iftop, journalctl, rsync, tmux | ProxMenux",
|
||||
"description": "Linux-terminalverktyg för daglig Proxmox VE-administration: övervakning (htop, atop, glances, iotop), nätverk (iftop, nmap, mtr, ss), filer och text (find, grep, journalctl), prestanda (iostat, perf, strace), säkerhet (fail2ban, lynis, lsof) och fjärradministration (ssh, rsync, tmux).",
|
||||
"ogTitle": "Linux-terminalverktyg för Proxmox — htop, iftop, journalctl, rsync, tmux",
|
||||
"ogDescription": "Dagliga CLI-verktyg för Proxmox VE-administration som grupperas efter ändamål: övervakning, nätverk, fil / text, prestanda, säkerhet och fjärradministration.",
|
||||
"twitterTitle": "Linux-terminalverktyg för Proxmox | ProxMenux",
|
||||
"twitterDescription": "CLI-verktyg för Proxmox VE-administration grupperad efter ändamål."
|
||||
},
|
||||
"header": {
|
||||
"title": "System CLI-verktyg",
|
||||
"description": "Terminalverktyg för daglig administration av Proxmox-värden, grupperade efter syfte: övervakning, nätverk, filer och text, prestandaanalys, säkerhet, fjärradministration och systemkonfiguration.",
|
||||
"section": "Hjälp och info"
|
||||
},
|
||||
"intro": {
|
||||
"title": "De flesta installeras av efterinstallationsskriptet",
|
||||
"body": "Om du körde ProxMenux efterinstallationsskript med standardvalen är de flesta verktygen redan installerade. För det som saknas erbjuder <utilsLink>installationsprogrammet för systemverktyg</utilsLink> fördefinierade grupper, till exempel grundverktyg, utveckling, nätverk och analys."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Systemövervakning",
|
||||
"commands": [
|
||||
{
|
||||
"command": "htop",
|
||||
"description": "Interaktiv processtittare med CPU/minnesanvändning"
|
||||
},
|
||||
{
|
||||
"command": "top",
|
||||
"description": "Visa Linux-processer i realtid"
|
||||
},
|
||||
{
|
||||
"command": "atop",
|
||||
"description": "Avancerad system- och processövervakning"
|
||||
},
|
||||
{
|
||||
"command": "glances",
|
||||
"description": "Systemövervakningsverktyg med webbgränssnitt"
|
||||
},
|
||||
{
|
||||
"command": "nmon",
|
||||
"description": "Verktyg för prestandaövervakning"
|
||||
},
|
||||
{
|
||||
"command": "iotop",
|
||||
"description": "Övervaka disk I/O-användning genom processer"
|
||||
},
|
||||
{
|
||||
"command": "vmstat 1",
|
||||
"description": "Rapportera virtuell minnesstatistik varje sekund"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Nätverksverktyg",
|
||||
"commands": [
|
||||
{
|
||||
"command": "iftop",
|
||||
"description": "Visa bandbreddsanvändningen på ett gränssnitt"
|
||||
},
|
||||
{
|
||||
"command": "nmap <host>",
|
||||
"description": "Nätverksutforskning och säkerhetsskanning"
|
||||
},
|
||||
{
|
||||
"command": "tcpdump -i <interface>",
|
||||
"description": "Fånga nätverkstrafik"
|
||||
},
|
||||
{
|
||||
"command": "netstat -tuln",
|
||||
"description": "Visa nätverksanslutningar"
|
||||
},
|
||||
{
|
||||
"command": "ss -tuln",
|
||||
"description": "Ett annat verktyg för att undersöka nätverkssocklar"
|
||||
},
|
||||
{
|
||||
"command": "mtr <host>",
|
||||
"description": "Nätverk diagnostiskt verktyg som kombinerar ping och traceroute"
|
||||
},
|
||||
{
|
||||
"command": "iperf3 -s",
|
||||
"description": "Kör iperf server för bandbreddstestning"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Fil och textverktyg",
|
||||
"commands": [
|
||||
{
|
||||
"command": "find / -name <filename>",
|
||||
"description": "Hitta filer efter namn"
|
||||
},
|
||||
{
|
||||
"command": "grep -r 'pattern' /path",
|
||||
"description": "Sök efter mönster i filer"
|
||||
},
|
||||
{
|
||||
"command": "sed -i 's/old/new/g' file",
|
||||
"description": "Ersätt text i filer"
|
||||
},
|
||||
{
|
||||
"command": "awk '{print $1}' file",
|
||||
"description": "Verktyg för textbearbetning"
|
||||
},
|
||||
{
|
||||
"command": "tail -f /var/log/syslog",
|
||||
"description": "Följ en loggfil i realtid"
|
||||
},
|
||||
{
|
||||
"command": "less /var/log/messages",
|
||||
"description": "Visa fil med pagination"
|
||||
},
|
||||
{
|
||||
"command": "journalctl -f",
|
||||
"description": "Följ systemd-journalens loggar"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Prestandaanalys",
|
||||
"commands": [
|
||||
{
|
||||
"command": "iostat -x 1",
|
||||
"description": "Rapportera CPU och I/O statistik"
|
||||
},
|
||||
{
|
||||
"command": "mpstat -P ALL 1",
|
||||
"description": "Visa CPU-användningen"
|
||||
},
|
||||
{
|
||||
"command": "perf top",
|
||||
"description": "Systemprofileringsverktyg"
|
||||
},
|
||||
{
|
||||
"command": "strace <command>",
|
||||
"description": "Spåra systemanrop och signaler"
|
||||
},
|
||||
{
|
||||
"command": "lsof",
|
||||
"description": "Lista öppna filer"
|
||||
},
|
||||
{
|
||||
"command": "pstree",
|
||||
"description": "Visa processträdet"
|
||||
},
|
||||
{
|
||||
"command": "slabtop",
|
||||
"description": "Visa information om kärnans slab-cache"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Säkerhetsverktyg",
|
||||
"commands": [
|
||||
{
|
||||
"command": "fail2ban-client status",
|
||||
"description": "Visa fail2ban status"
|
||||
},
|
||||
{
|
||||
"command": "chage -l <username>",
|
||||
"description": "Visa lösenord utgångsinformation"
|
||||
},
|
||||
{
|
||||
"command": "lastlog",
|
||||
"description": "Visa sista inloggningen av alla användare"
|
||||
},
|
||||
{
|
||||
"command": "last",
|
||||
"description": "Visa en lista över de senast inloggade användarna"
|
||||
},
|
||||
{
|
||||
"command": "w",
|
||||
"description": "Visa vem som är inloggad och vad de gör"
|
||||
},
|
||||
{
|
||||
"command": "lynis audit system",
|
||||
"description": "Säkerhetsrevisionsverktyg"
|
||||
},
|
||||
{
|
||||
"command": "openssl s_client -connect host:port",
|
||||
"description": "Test SSL/TLS-anslutningar"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Fjärradministration",
|
||||
"commands": [
|
||||
{
|
||||
"command": "ssh <user>@<host>",
|
||||
"description": "Säker skalanslutning"
|
||||
},
|
||||
{
|
||||
"command": "scp <file> <user>@<host>:<path>",
|
||||
"description": "Kopiera filer säkert"
|
||||
},
|
||||
{
|
||||
"command": "rsync -avz <src> <dest>",
|
||||
"description": "Synkronisera filer / mappar"
|
||||
},
|
||||
{
|
||||
"command": "screen",
|
||||
"description": "Terminalmultiplexer"
|
||||
},
|
||||
{
|
||||
"command": "tmux",
|
||||
"description": "Alternativ terminalmultiplexer"
|
||||
},
|
||||
{
|
||||
"command": "ssh-keygen -t rsa -b 4096",
|
||||
"description": "Generera SSH nyckelpar"
|
||||
},
|
||||
{
|
||||
"command": "ssh-copy-id <user>@<host>",
|
||||
"description": "Kopiera SSH-nyckeln till servern"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Systemkonfiguration",
|
||||
"commands": [
|
||||
{
|
||||
"command": "systemctl status <service>",
|
||||
"description": "Kontrollera servicestatus"
|
||||
},
|
||||
{
|
||||
"command": "journalctl -u <service>",
|
||||
"description": "Visa serviceloggar"
|
||||
},
|
||||
{
|
||||
"command": "timedatectl",
|
||||
"description": "Hantera systemets tid och datum"
|
||||
},
|
||||
{
|
||||
"command": "hostnamectl",
|
||||
"description": "Hantera systemets värdnamn"
|
||||
},
|
||||
{
|
||||
"command": "localectl",
|
||||
"description": "Hantera systemets språk- och tangentbordsinställningar"
|
||||
},
|
||||
{
|
||||
"command": "update-alternatives --config <name>",
|
||||
"description": "Konfigurera systemalternativ"
|
||||
},
|
||||
{
|
||||
"command": "dpkg-reconfigure <package>",
|
||||
"description": "Konfigurera om ett installerat paket"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"tmuxTip": {
|
||||
"title": "Använd tmux / screen för långvariga kommandon",
|
||||
"bodyRich": "Kör långvariga arbeten, som säkerhetskopiering, uppgradering eller en stor rsync-överföring, i <code>tmux</code> eller <code>screen</code> så att en SSH-frånkoppling inte avslutar terminalsessionen. För en tmux-session ansluter du till samma värd med samma användare och kör <code>tmux attach</code>. Screen-sessioner har ett eget kommando för återanslutning."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relaterat",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/utils/system-utils",
|
||||
"label": "Installationsprogram för systemverktyg",
|
||||
"tail": " - installera något av dessa verktyg som saknas."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/system-commands",
|
||||
"label": "Användbara systemkommandon",
|
||||
"tail": " — Proxmox-specifika inspektionskommandon."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Översikt över Hjälp och info",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Proxmox-kommandon för uppdateringar och paket — apt, pveupgrade, dpkg | ProxMenux",
|
||||
"description": "Uppdaterings- och paketkommandon för Proxmox VE: apt update, apt upgrade, apt dist-upgrade, pveupgrade, dpkg -l, paketinformationsfrågor och arkivkonfiguration i /etc/apt/sources.list.d/.",
|
||||
"ogTitle": "Proxmox-kommandon för uppdateringar och paket — apt, pveupgrade, dpkg",
|
||||
"ogDescription": "apt, pveupgrade och dpkg kommandon för att hålla Proxmox VE uppdaterad - systemuppgraderingar, pakethantering, förvarskonfiguration.",
|
||||
"twitterTitle": "Proxmox uppdateringskommandon | ProxMenux",
|
||||
"twitterDescription": "Kommandon med apt och pveupgrade för att hantera uppdateringar och paket på Proxmox VE-värdar."
|
||||
},
|
||||
"header": {
|
||||
"title": "Uppdateringar och paket",
|
||||
"description": "Utvalda kommandon med apt och för Proxmox-uppgraderingar: systemuppdatering, installation, borttagning och rensning av paket, paketfrågor med apt-cache policy och dpkg -l samt kontroll av arkivkonfiguration.",
|
||||
"section": "Hjälp och info"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Alltid uppdatera indexet först",
|
||||
"body": "<code>apt update</code> uppdaterar det lokala paketindexet från konfigurerade arkiv. Utan detta kan <code>apt install</code> använda gamla versioner eller misslyckas med \"Unable to locate package\"."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Systemuppdateringar",
|
||||
"commands": [
|
||||
{
|
||||
"command": "apt update && apt upgrade -y",
|
||||
"description": "Uppdatera paketlistor och installerade paket (apt upgrade)"
|
||||
},
|
||||
{
|
||||
"command": "apt dist-upgrade -y",
|
||||
"description": "Fullständig systemuppgradering, inklusive beroenden"
|
||||
},
|
||||
{
|
||||
"command": "apt update",
|
||||
"description": "Uppdatera paketlistor endast"
|
||||
},
|
||||
{
|
||||
"command": "apt upgrade",
|
||||
"description": "Uppgradera endast paket (interaktivt)"
|
||||
},
|
||||
{
|
||||
"command": "apt full-upgrade",
|
||||
"description": "Uppgradera paket med beroendehantering (interaktiv)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Proxmox Uppdateringar",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pveupdate",
|
||||
"description": "Uppdatera Proxmox-paketlistor"
|
||||
},
|
||||
{
|
||||
"command": "pveupgrade",
|
||||
"description": "Starta den interaktiva paketuppgraderingen för Proxmox"
|
||||
},
|
||||
{
|
||||
"command": "pve8to9 --full",
|
||||
"description": "Kontrollera beredskapen för PVE 8 till 9 utan att uppgradera"
|
||||
},
|
||||
{
|
||||
"command": "ceph versions",
|
||||
"description": "Visa versioner av Ceph-demoner innan en uppgradering planeras"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Pakethantering",
|
||||
"commands": [
|
||||
{
|
||||
"command": "apt autoremove --purge",
|
||||
"description": "Ta bort oanvända paket och deras konfiguration"
|
||||
},
|
||||
{
|
||||
"command": "apt clean",
|
||||
"description": "Rensa ut det lokala förvaret av hämtade paketfiler"
|
||||
},
|
||||
{
|
||||
"command": "apt autoclean",
|
||||
"description": "Rensa ut endast föråldrade paketfiler"
|
||||
},
|
||||
{
|
||||
"command": "apt install <package>",
|
||||
"description": "Installera ett specifikt paket"
|
||||
},
|
||||
{
|
||||
"command": "apt remove <package>",
|
||||
"description": "Ta bort ett paket"
|
||||
},
|
||||
{
|
||||
"command": "apt purge <package>",
|
||||
"description": "Ta bort ett paket och dess konfigurationsfiler"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Paketinformation",
|
||||
"commands": [
|
||||
{
|
||||
"command": "apt list --installed",
|
||||
"description": "Lista alla installerade paket"
|
||||
},
|
||||
{
|
||||
"command": "apt search <keyword>",
|
||||
"description": "Sök efter paket med sökord"
|
||||
},
|
||||
{
|
||||
"command": "apt show <package>",
|
||||
"description": "Visa detaljerad information om ett paket"
|
||||
},
|
||||
{
|
||||
"command": "dpkg -l",
|
||||
"description": "Lista alla installerade paket (alternativ)"
|
||||
},
|
||||
{
|
||||
"command": "dpkg -l | grep <keyword>",
|
||||
"description": "Sök installerade paket med sökord"
|
||||
},
|
||||
{
|
||||
"command": "apt-cache policy <package>",
|
||||
"description": "Visa paketversioner och prioriteringar"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Hantering av paketförråd",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/apt/sources.list",
|
||||
"description": "Visa huvudsakliga APT repository källor"
|
||||
},
|
||||
{
|
||||
"command": "ls -la /etc/apt/sources.list.d/",
|
||||
"description": "Lista ytterligare arkiv källfiler"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/apt/sources.list.d/pve-enterprise.list",
|
||||
"description": "Visa Proxmox Enterprise-arkivets konfiguration i .list-filen för PVE 8"
|
||||
},
|
||||
{
|
||||
"command": "apt-key list",
|
||||
"description": "Lista äldre signeringsnycklar för arkiv där apt-key finns"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"backupWarn": {
|
||||
"title": "Ta en backup innan stora uppgraderingar",
|
||||
"bodyRich": "För vanliga uppdateringar rekommenderar Proxmox <code>apt update && apt full-upgrade</code>. Granska paketändringarna innan du bekräftar. För <strong>uppgraderingar till en ny huvudversion</strong> (PVE 8 → 9) använder du ProxMenux-flödet <upgradeLink>Uppgradera PVE 8 till PVE 9</upgradeLink>. Det lägger till förkontroller, arkivmigrering och efterkontroll. Säkerhetskopiera först."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relaterat",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/utils/system-update",
|
||||
"label": "Proxmox-systemuppdatering (interaktiv)",
|
||||
"tail": " — verktyget utför detta med en bekräftelsedialog, bygger automatiskt om ProxMenux-hanterade drivrutiner med DKMS när en ny kärna installeras och erbjuder omstart. Kan även startas från Uppdatera nu i ProxMenux Monitors panel."
|
||||
},
|
||||
{
|
||||
"href": "/docs/utils/upgrade-pve8-pve9",
|
||||
"label": "Uppgradera PVE 8 till PVE 9",
|
||||
"tail": " — för uppgraderingar till en ny huvudversion."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Översikt över Hjälp och info",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "Proxmox-kommandona qm och pct — hantering av VM:ar och LXC-containrar | ProxMenux",
|
||||
"description": "Hänvisning till Proxmox VE qm och pct kommandon för VMs och LXC containers: list, config, start, stop, shutdown, reboot, destroy, clone, migrate, snapshot, resize, plus pct exec / enter / push / pull för containrar.",
|
||||
"ogTitle": "Proxmox-kommandona qm och pct — hantering av VM:ar och LXC-containrar",
|
||||
"ogDescription": "Referens av Proxmox VE qm och pct kommandon - hantera virtuella maskiner och LXC containrar från CLI: start, stopp, konfigurera, ögonblicksbild, migrera, klon, förstöra.",
|
||||
"twitterTitle": "Proxmox-kommandon med qm / pct | ProxMenux",
|
||||
"twitterDescription": "Utvalda qm / pct-kommandon för hantering av virtuella maskiner och LXC-containrar i Proxmox VE."
|
||||
},
|
||||
"header": {
|
||||
"title": "Hantering av VM:ar och CT:er",
|
||||
"description": "Utvalda kommandon med qm för VM:ar och pct för LXC-containrar: listning, livscykel (start / stop / shutdown / destroy), konfigurationskontroll och containeråtgärder som exec, enter, push och pull.",
|
||||
"section": "Hjälp och info"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Hitta ett VMID eller CTID först",
|
||||
"body": "Nästan varje kommando behöver ett numeriskt ID. Använd <code>qm list</code> för VM:ar och <code>pct list</code> för containrar. Ersätt <code><vmid></code> / <code><ctid></code> i exemplen med rätt ID innan du kör dem."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Lista och information",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm list",
|
||||
"description": "Lista alla virtuella maskiner"
|
||||
},
|
||||
{
|
||||
"command": "pct list",
|
||||
"description": "Lista alla LXC-containrar"
|
||||
},
|
||||
{
|
||||
"command": "qm config <vmid>",
|
||||
"description": "Visa VM-konfigurationen tolkad av qm"
|
||||
},
|
||||
{
|
||||
"command": "pct config <ctid>",
|
||||
"description": "Visa containerkonfigurationen tolkad av pct"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Konfigurationsfiler (rå)",
|
||||
"commands": [
|
||||
{
|
||||
"command": "cat /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Visa rå VM-konfigurationsfil"
|
||||
},
|
||||
{
|
||||
"command": "cat /etc/pve/lxc/<ctid>.conf",
|
||||
"description": "Visa rå CT-konfigurationsfil"
|
||||
},
|
||||
{
|
||||
"command": "nano /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Redigera rå VM konfigurationsfil (nano)"
|
||||
},
|
||||
{
|
||||
"command": "nano /etc/pve/lxc/<ctid>.conf",
|
||||
"description": "Redigera rå CT konfigurationsfil (nano)"
|
||||
},
|
||||
{
|
||||
"command": "vi /etc/pve/qemu-server/<vmid>.conf",
|
||||
"description": "Redigera rå VM konfigurationsfil (vi)"
|
||||
},
|
||||
{
|
||||
"command": "vi /etc/pve/lxc/<ctid>.conf",
|
||||
"description": "Redigera rå CT konfigurationsfil (vi)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "VM-hantering",
|
||||
"commands": [
|
||||
{
|
||||
"command": "qm start <vmid>",
|
||||
"description": "Starta en virtuell maskin. Använd rätt <vmid>"
|
||||
},
|
||||
{
|
||||
"command": "qm stop <vmid>",
|
||||
"description": "Tvinga stopp av en virtuell maskin. Använd rätt <vmid>"
|
||||
},
|
||||
{
|
||||
"command": "qm shutdown <vmid>",
|
||||
"description": "Stäng av en virtuell maskin ordnat"
|
||||
},
|
||||
{
|
||||
"command": "qm reset <vmid>",
|
||||
"description": "Återställ en virtuell maskin med en hård omstart"
|
||||
},
|
||||
{
|
||||
"command": "qm suspend <vmid>",
|
||||
"description": "Pausa en virtuell maskin"
|
||||
},
|
||||
{
|
||||
"command": "qm resume <vmid>",
|
||||
"description": "Återuppta en pausad virtuell maskin"
|
||||
},
|
||||
{
|
||||
"command": "qm destroy <vmid>",
|
||||
"description": "Ta bort en virtuell dator (oåterkallelig). Använd rätt <vmid>"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Containerhantering",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pct start <ctid>",
|
||||
"description": "Starta en container. Använd rätt <ctid>"
|
||||
},
|
||||
{
|
||||
"command": "pct stop <ctid>",
|
||||
"description": "Tvinga stopp av en container. Använd rätt <ctid>"
|
||||
},
|
||||
{
|
||||
"command": "pct shutdown <ctid>",
|
||||
"description": "Stäng av en container ordnat"
|
||||
},
|
||||
{
|
||||
"command": "pct reboot <ctid>",
|
||||
"description": "Starta om en container"
|
||||
},
|
||||
{
|
||||
"command": "pct destroy <ctid>",
|
||||
"description": "Ta bort en CT (irreversibel). Använd rätt <ctid>"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Containeråtgärder",
|
||||
"commands": [
|
||||
{
|
||||
"command": "pct exec <ctid> -- getent passwd | column -t -s :",
|
||||
"description": "Visa CT-användare i tabellformat"
|
||||
},
|
||||
{
|
||||
"command": "pct exec <ctid> -- ps aux --sort=-%mem | head",
|
||||
"description": "Processer med högst minnesanvändning i CT:n"
|
||||
},
|
||||
{
|
||||
"command": "pct enter <ctid>",
|
||||
"description": "Öppna containerns skal"
|
||||
},
|
||||
{
|
||||
"command": "pct push <ctid> <source> <dest>",
|
||||
"description": "Kopiera fil från värd till container"
|
||||
},
|
||||
{
|
||||
"command": "pct pull <ctid> <source> <dest>",
|
||||
"description": "Kopiera fil från container till värd"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"destroyWarn": {
|
||||
"title": "Förstörelse är irreversibel",
|
||||
"bodyRich": "<code>qm destroy</code> och <code>pct destroy</code> tar bort gästkonfigurationen och dess hanterade diskvolymer. Räkna inte med att externa data eller bindmonterade data tas bort. Kommandoraden ber inte om bekräftelse som standard. Säkerhetskopiera nödvändiga data först; se <backupLink>Säkerhetskopiering och återställning</backupLink>."
|
||||
},
|
||||
"qmConfigTip": {
|
||||
"title": "qm config jämfört med direkt redigering av .conf-filen",
|
||||
"bodyRich": "<code>qm config <vmid></code> och <code>pct config <ctid></code> visar konfigurationen via Proxmox tolkar. För vanliga ändringar använder du helst <code>qm set</code> eller motsvarande pct-kommando. Direkt redigering av <code>/etc/pve/qemu-server/<vmid>.conf</code> eller <code>/etc/pve/lxc/<ctid>.conf</code> kringgår hanteringskommandonas validering och låsning; filen måste fortfarande gå att tolka. Stoppa gästen och behåll en kopia före manuell reparation. <code>pmxcfs</code> synkroniserar konfiguration mellan klusternoder, inte gästernas diskinnehåll."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relaterat",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/backup-commands",
|
||||
"label": "Säkerhetskopiering och återställning",
|
||||
"tail": " — vzdump och qmrestore / pct restore."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"label": "Lagring och diskar",
|
||||
"tail": " — qm importdisk och diskhantering."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Översikt över Hjälp och info",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,227 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "ZFS-kommandon på Proxmox — zpool, zfs snapshot, send/receive, scrub | ProxMenux",
|
||||
"description": "ZFS-hanteringskommandon på Proxmox VE: zpool create / status / history, zfs list / get / set, snapshots, clone, zfs send och receive, scrub, clear, replace, zpool iostat och ARC-sammanfattning.",
|
||||
"ogTitle": "ZFS-kommandon på Proxmox — zpool, zfs snapshot, send/receive, scrub",
|
||||
"ogDescription": "Referens av zpool och zfs kommandon på Proxmox VE - pooler, datamängder, ögonblicksbilder, replikering, underhåll.",
|
||||
"twitterTitle": "ZFS-kommandon på Proxmox | ProxMenux",
|
||||
"twitterDescription": "zpool och zfs kommandon för Proxmox VE: pooler, datamängder, ögonblicksbilder, replikering, underhåll."
|
||||
},
|
||||
"header": {
|
||||
"title": "ZFS-hantering",
|
||||
"description": "Utvalda zpool- och zfs-kommandon: poolkontroll, skapa, läsa, ändra och ta bort dataset, snapshots, clone och inkrementell eller rekursiv send/receive, underhåll med scrub / clear / replace, I/O-statistik och ARC-sammanfattning.",
|
||||
"section": "Hjälp och info"
|
||||
},
|
||||
"intro": {
|
||||
"title": "Två kommandofamiljer",
|
||||
"body": "<code>zpool *</code> hanterar lagringspoolerna (fysiskt lager - skivor, vdevs, redundans). <code>zfs *</code> hanterar datamängder och ögonblicksbilder som bor i dessa pooler (logiskt lager - filsystem, volymer, ögonblicksbilder, egenskaper)."
|
||||
},
|
||||
"commandGroups": [
|
||||
{
|
||||
"title": "Poolinformation",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zpool list",
|
||||
"description": "Lista alla ZFS-pooler"
|
||||
},
|
||||
{
|
||||
"command": "zpool status",
|
||||
"description": "Visa detaljerad poolstatus och hälsa"
|
||||
},
|
||||
{
|
||||
"command": "zpool status -v",
|
||||
"description": "Visa utförlig poolstatus med fel"
|
||||
},
|
||||
{
|
||||
"command": "zpool history",
|
||||
"description": "Visa kommandohistoria för alla pooler"
|
||||
},
|
||||
{
|
||||
"command": "zpool history <pool>",
|
||||
"description": "Visa kommandohistoria för specifik pool"
|
||||
},
|
||||
{
|
||||
"command": "zpool get all <pool>",
|
||||
"description": "Visa alla egenskaper hos en pool"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Datasethantering",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zfs list",
|
||||
"description": "Lista alla ZFS dataset"
|
||||
},
|
||||
{
|
||||
"command": "zfs list -r <pool>",
|
||||
"description": "Lista alla dataset i en pool rekursivt"
|
||||
},
|
||||
{
|
||||
"command": "zfs create <pool>/<dataset>",
|
||||
"description": "Skapa en ny dataset"
|
||||
},
|
||||
{
|
||||
"command": "zfs destroy <pool>/<dataset>",
|
||||
"description": "Förstör en dataset"
|
||||
},
|
||||
{
|
||||
"command": "zfs rename <pool>/<dataset> <pool>/<new-name>",
|
||||
"description": "byta namn på en dataset"
|
||||
},
|
||||
{
|
||||
"command": "zfs get all <pool>/<dataset>",
|
||||
"description": "Visa alla egenskaper hos en dataset"
|
||||
},
|
||||
{
|
||||
"command": "zfs set compression=on <pool>/<dataset>",
|
||||
"description": "Aktivera komprimering på en dataset"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Hantering av ögonblicksbilder",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zfs list -t snapshot",
|
||||
"description": "Lista alla snapshots"
|
||||
},
|
||||
{
|
||||
"command": "zfs list -t snapshot -r <pool>",
|
||||
"description": "Lista alla ögonblicksbilder i en pool"
|
||||
},
|
||||
{
|
||||
"command": "zfs snapshot <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Skapa en snapshot"
|
||||
},
|
||||
{
|
||||
"command": "zfs destroy <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Ta bort en ögonblicksbild"
|
||||
},
|
||||
{
|
||||
"command": "zfs rollback <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Rollback till en snapshot"
|
||||
},
|
||||
{
|
||||
"command": "zfs hold <tag> <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Skydda en snapshot mot borttagning med hold"
|
||||
},
|
||||
{
|
||||
"command": "zfs release <tag> <pool>/<dataset>@<snapshot-name>",
|
||||
"description": "Ta bort hold-skyddet för en snapshot"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Klon och skicka / ta emot",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zfs clone <pool>/<dataset>@<snapshot> <pool>/<clone-name>",
|
||||
"description": "Skapa en klon från en ögonblicksbild"
|
||||
},
|
||||
{
|
||||
"command": "zfs send <pool>/<dataset>@<snapshot> > backup.zfs",
|
||||
"description": "Skicka en ögonblicksbild till en fil"
|
||||
},
|
||||
{
|
||||
"command": "zfs receive <pool>/<dataset> < backup.zfs",
|
||||
"description": "Få en ögonblicksbild från en fil"
|
||||
},
|
||||
{
|
||||
"command": "zfs send -i <pool>/<dataset>@<snap1> <pool>/<dataset>@<snap2> > incr.zfs",
|
||||
"description": "Skicka inkrementell snapshot"
|
||||
},
|
||||
{
|
||||
"command": "zfs send -R <pool>/<dataset>@<snapshot> > full-recursive.zfs",
|
||||
"description": "Skicka en snapshot rekursivt"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Underhåll och reparation",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zpool scrub <pool>",
|
||||
"description": "Starta en scrub-kontroll av en pool"
|
||||
},
|
||||
{
|
||||
"command": "zpool scrub -s <pool>",
|
||||
"description": "Stoppa pågående scrub"
|
||||
},
|
||||
{
|
||||
"command": "zpool clear <pool>",
|
||||
"description": "Nollställ felräknarna i en pool"
|
||||
},
|
||||
{
|
||||
"command": "zpool clear <pool> <device>",
|
||||
"description": "Nollställ fel för en angiven enhet"
|
||||
},
|
||||
{
|
||||
"command": "zpool replace <pool> <old-device> <new-device>",
|
||||
"description": "Ersätt en misslyckad enhet"
|
||||
},
|
||||
{
|
||||
"command": "zpool offline <pool> <device>",
|
||||
"description": "Ta en enhet offline"
|
||||
},
|
||||
{
|
||||
"command": "zpool online <pool> <device>",
|
||||
"description": "Aktivera en enhet online i poolen"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Prestanda och övervakning",
|
||||
"commands": [
|
||||
{
|
||||
"command": "zpool iostat",
|
||||
"description": "Visa I/O statistik för pooler"
|
||||
},
|
||||
{
|
||||
"command": "zpool iostat -v",
|
||||
"description": "Visa detaljerad I/O statistik"
|
||||
},
|
||||
{
|
||||
"command": "zpool iostat 5",
|
||||
"description": "Visa I/O statistik varje 5 sekunder"
|
||||
},
|
||||
{
|
||||
"command": "arc_summary",
|
||||
"description": "Visa ARC-statistik (om den är installerad)"
|
||||
},
|
||||
{
|
||||
"command": "zfs get compressratio <pool>/<dataset>",
|
||||
"description": "Visa kompressionsförhållande"
|
||||
},
|
||||
{
|
||||
"command": "zfs get used,available,referenced <pool>/<dataset>",
|
||||
"description": "Visa utrymmesanvändning"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"bestPractices": {
|
||||
"title": "Operativa bästa praxis",
|
||||
"bodyRich": "Schemalägg <code>zpool scrub</code> regelbundet för att verifiera kontrollsummor och granska resultatet. Behåll ledig kapacitet: effekten av en nästan full pool beror på arbetslast och layout. Använd <code>zpool replace</code> för en trasig enhet och följ rutinen för dess vdev-typ. Detach + add är inte en likvärdig ersättning och kan ändra topologin eller ta bort redundans."
|
||||
},
|
||||
"related": {
|
||||
"heading": "Relaterat",
|
||||
"items": [
|
||||
{
|
||||
"href": "/docs/help-info/storage-commands",
|
||||
"label": "Lagring och diskar",
|
||||
"tail": " — generiska block-enhet och LVM kommandon."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info/backup-commands",
|
||||
"label": "Säkerhetskopiering och återställning",
|
||||
"tail": " — vzdump, qmrestore."
|
||||
},
|
||||
{
|
||||
"href": "/docs/help-info",
|
||||
"label": "Översikt över Hjälp och info",
|
||||
"tail": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user