Proxmox falls defekt - wieder gangbar machen.

antiager

Active Member
Jan 15, 2020
131
4
38
62
61191 Rosbach vor der Höhe
Hallo Forum!

Meine Frage betrifft etwaige Vorkehrungen und Methoden einen gecraschten Proxmox wieder ans laufen zu bekommen.

Beispiel: ein PVE-Host ist auf einem Raid1 installiert und die Datastores mit den VMs liegen auf anderen Festplatten.

Ich habe vom etc, Verzeichnis im laufenden Betrieb Kopien erstellt und habe auch Zugriff auf diese Kopien.

Ich habe gelesen es reicht dann dann Proxmox neu zu installieren und das etc Verzeichnis mit der Kopie zu überschreiben.

Dann laufe das System wieder mit der alten Konfiguration!

Ist das wirklich so?

Das wäre genial einfach! Aber kaumzu glauben.

Danke für eure Tipps!

MfG
 
Hi,

also was natürlich immer geht, wenn du ne kleine Downtime verkraften kannst, sind Tools wie Rescuezilla. Damit einfach starten, komplettes Systemimage irgendwo hin kopieren (externe HDD oder auch übers Netzwerk auf eine Freigabe irgendwo) und dann lässt sich das Ganze jederzeit wiederherstellen. Ist jetzt nicht spezifisch für Proxmox, funktioniert auch für Windows, Linux und MacOS Systeme allgemein. Habe ich auch schon ein paar Mal genutzt und bin sehr zufrieden.

Ansonsten gibt es noch Tools wie Timeshift, RSnapshot usw., die man ebenfalls dafür nutzen kann.

Außerdem gibt es noch einen Ansatz über den Proxmox Backup-Server.
 
Last edited:
Ich habe vom etc, Verzeichnis im laufenden Betrieb Kopien erstellt und habe auch Zugriff auf diese Kopien.
Ich habe gelesen es reicht dann dann Proxmox neu zu installieren und das etc Verzeichnis mit der Kopie zu überschreiben.
Dann laufe das System wieder mit der alten Konfiguration!
Ist das wirklich so?
Im /etc/pve hast du die wichtigsten Sachen, wie datacenter.cfg oder auch alle VM / LXC Konfigurationen.
Damit ersparst du dir viel Arbeit, aber alles ist da nicht drin. Wie bei jedem Linux, kann man sehr viel anpassen und die Anpassungen musst du gut dokumentieren oder in ein Script packen.
Ich persönlich halte die Installationen soweit wie möglich Standard, Dann ist ein neuer PVE in Minuten aufgesetzt. Da ich in der Regel Cluster benutze, ist die für mich wichtige Konfiguration eh im Cluster vorhanden, nur die Netzwerkkonfiguration muss ich vorher von Hand einmal durchkonfigurieren.

Wenn du gar keine Arbeit haben möchtest, dann soetwas wie Clonezilla oder die Tools wie oben beschrieben nutzen.
 
Hallo zusammen,

Ich versuche ein Image von meinem Proxmox Rechner mit Clonezilla V3.1.2.9 zu erstellen.

Leider gibt es dabei Probleme.
Ich erhalte eine Fehlermeldung
"Broken partition images were found, or some of them are not checkable"

Ich habe trotzdem versucht das Image Testweise auf eine andere Platte zu spielen - Fehlermeldung "Image fehlerhaft"

Bei der Image erstellung habe ich chkdsk der Quellplatte wie auch das Prüfen des erstellten Images aktiviert.
Das ganze im Beginner Modus

Ich habe Testweise von 3 andere Rechner mit Clonezilla (Win7, Win10 und Win11) ein Image erstellt - Erfolgreich.

Ich habe gelesen das es scheinbar mit der VM Partition ein Problem gibt.

@G0ldmember
Welche Einstellungen hast du in Clonezilla gemacht damit du vom Proxmox ein Image erstellen konntest.

Vielen Dank für Eure Hilfe.

Hier noch ein kleiner Auszug aus dem Log.
Code:
Finished Shutting down the Logical Volume Manager
Found /home/partimag is using FAT file system. Set VOL_LIMIT_IN_INTERACTIVE to 4096 MB.
The selected devices: nvme0n1
PS. Next time you can run this command directly:
/usr/sbin/ocs-sr -q2 -c -j2 -z1p -i 4096 -sfsck -senc -p choose savedisk 2024-03-29-11-img nvme0n1
*****************************************************.
The selected devices: nvme0n1
Searching for data/swap/extended partition(s)...
The data partition to be saved: nvme0n1p1 nvme0n1p2 nvme0n1p3
The selected devices: nvme0n1p1 nvme0n1p2 nvme0n1p3
The following step is to save the hard disk/partition(s) on this machine as an image:
*****************************************************.
Machine: NUC11TNKi5
nvme0n1 (500GB_Samsung_SSD_980_PRO_500GB__pci-0000_01_00_0-nvme-1_S5GYNF0R311417V)
nvme0n1p1 (1007K_bios_grub(In_Samsung_SSD_980_PRO_500GB_)_pci-0000_01_00_0-nvme-1_S5GYNF0R311417V)
nvme0n1p2 (512M_vfat(In_Samsung_SSD_980_PRO_500GB_)_pci-0000_01_00_0-nvme-1_S5GYNF0R311417V)
nvme0n1p3 (465.3G_LVM2_member(In_Samsung_SSD_980_PRO_500GB_)_pci-0000_01_00_0-nvme-1_S5GYNF0R311417V)
*****************************************************.
-> "/home/partimag/2024-03-29-11-img".
Shutting down the Logical Volume Manager
  Unable to shutdown: /dev/pve/vm-190-disk-0
Finished Shutting down the Logical Volume Manager
Starting saving /dev/nvme0n1p1 as /home/partimag/2024-03-29-11-img/nvme0n1p1.XXX...
/dev/nvme0n1p1 filesystem: bios_grub.
*****************************************************.
*****************************************************.
Use partclone with pigz to save the image.
Image file will be split with size limit 4096 MB.
*****************************************************.
If this action fails or hangs, check:
* Is the disk full ?
*****************************************************.
Running: partclone.dd -z 10485760 -N  --buffer_size 16777216 -L /var/log/partclone.log -s /dev/nvme0n1p1 --output - | pigz -c --fast -b 1024 --rsyncable | split -a 2 -b 4096MB - /home/partimag/2024-03-29-11-img/nvme0n1p1.dd-ptcl-img.gz. 2> /tmp/img_out_err.0Fohp7
Opening User Interface mode.
Partclone v0.3.27 http://partclone.org
Starting to clone/restore (/dev/nvme0n1p1) to (-) with dd mode
get device size 1031168 by ioctl BLKGETSIZE64,
get device size 1031168 by ioctl BLKGETSIZE64,
memory needed: 33554684 bytes
bitmap 252 bytes, blocks 2*16777216 bytes, checksum 0 bytes
Calculating bitmap... Please wait... done!
File system:  raw
Device size:    1.0 MB = 2014 Blocks
Space in use:   1.0 MB = 2014 Blocks
Free Space:     0 Byte = 0 Blocks
Block size:   512 Byte
Total block 2014
Total Time: 00:00:02, Ave. Rate:  30.94MB/min, 100.00% completed!
Syncing... OK!
>>> Time elapsed: 6.10 secs (~ .101 mins)
*****************************************************.
Finished saving /dev/nvme0n1p1 as /home/partimag/2024-03-29-11-img/nvme0n1p1.dd-ptcl-img.gz
*****************************************************.
Starting saving /dev/nvme0n1p2 as /home/partimag/2024-03-29-11-img/nvme0n1p2.XXX...
/dev/nvme0n1p2 filesystem: vfat.
*****************************************************.
*****************************************************.
Use partclone with pigz to save the image.
Image file will be split with size limit 4096 MB.
*****************************************************.
If this action fails or hangs, check:
* Is the disk full ?
*****************************************************.
Running: partclone.vfat -z 10485760 -N  -L /var/log/partclone.log -c -s /dev/nvme0n1p2 --output - | pigz -c --fast -b 1024 --rsyncable | split -a 2 -b 4096MB - /home/partimag/2024-03-29-11-img/nvme0n1p2.vfat-ptcl-img.gz. 2> /tmp/img_out_err.uFIqmF
Opening User Interface mode.
Partclone v0.3.27 http://partclone.org
Starting to clone device (/dev/nvme0n1p2) to image (-)
Reading Super Block
memory needed: 21102596 bytes
bitmap 131072 bytes, blocks 2*10485760 bytes, checksum 4 bytes
Calculating bitmap... Please wait...
Total Time: 00:00:01, Ave. Rate:  60.00byte/min, 100.00% completed!
done!
File system:  FAT32
Device size:  536.9 MB = 1048576 Blocks
Space in use:   1.4 MB = 2736 Blocks
Free Space:   535.5 MB = 1045840 Blocks
Block size:   512 Byte
Total block 1048576
Total Time: 00:00:02, Ave. Rate:  42.02MB/min, 100.00% completed!
Syncing... OK!
Partclone successfully cloned the device (/dev/nvme0n1p2) to the image (-)
>>> Time elapsed: 7.18 secs (~ .119 mins)
*****************************************************.
Finished saving /dev/nvme0n1p2 as /home/partimag/2024-03-29-11-img/nvme0n1p2.vfat-ptcl-img.gz
*****************************************************.
Parsing LVM layout for nvme0n1p1 nvme0n1p2 nvme0n1p3 ...
pve /dev/nvme0n1p3 ormY1Y-ZZML-muDG-JS3U-lD6c-iQHs-XthWU4
Parsing logical volumes...
Saving the VG config...
  Volume group "pve" successfully backed up.
done.
Checking if the VG config was saved correctly...
done.
Saving /dev/pve/swap as filename: pve-swap. /dev/pve/swap info: Linux swap file, 4k page size, little endian, version 1, size 2097151 pages, 0 bad pages, no label, UUID=1bdef469-3ae6-4995-af23-cfc34598cdae
Saving /dev/pve/root as filename: pve-root. /dev/pve/root info: Linux rev 1.0 ext4 filesystem data, UUID=c1a12a0c-7c48-4cbd-a549-410627594f09 (extents) (64bit) (large files) (huge files)
Starting saving /dev/pve/root as /home/partimag/2024-03-29-11-img/pve-root.XXX...
/dev/pve/root filesystem: ext4.
*****************************************************.
*****************************************************.
Use partclone with pigz to save the image.
Image file will be split with size limit 4096 MB.
*****************************************************.
If this action fails or hangs, check:
* Is the disk full ?
*****************************************************.
Running: partclone.ext4 -z 10485760 -N  -L /var/log/partclone.log -c -s /dev/pve/root --output - | pigz -c --fast -b 1024 --rsyncable | split -a 2 -b 4096MB - /home/partimag/2024-03-29-11-img/pve-root.ext4-ptcl-img.gz. 2> /tmp/img_out_err.yXK3Pi
Opening User Interface mode.
Partclone v0.3.27 http://partclone.org
Starting to clone device (/dev/pve/root) to image (-)
Reading Super Block
memory needed: 24117252 bytes
bitmap 3145728 bytes, blocks 2*10485760 bytes, checksum 4 bytes
Calculating bitmap... Please wait...
Total Time: 00:00:01, Ave. Rate:  60.00byte/min, 100.00% completed!
done!
File system:  EXTFS
Device size:  103.1 GB = 25165824 Blocks
Space in use:  19.9 GB = 4870389 Blocks
Free Space:    83.1 GB = 20295435 Blocks
Block size:   4096 Byte
Total block 25165824
Total Time: 00:01:52, Ave. Rate:  10.69GB/min, 100.00% completed!
Syncing... OK!
Partclone successfully cloned the device (/dev/pve/root) to the image (-)
>>> Time elapsed: 118.25 secs (~ 1.970 mins)
*****************************************************.
Finished saving /dev/pve/root as /home/partimag/2024-03-29-11-img/pve-root.ext4-ptcl-img.gz
*****************************************************.
Saving /dev/pve/vm-190-disk-0 as filename: pve-vm-190-disk-0. /dev/pve/vm-190-disk-0 info: DOS/MBR boot sector MS-MBR XP german at offset 0x12c "Ung201ltige Partitionstabelle" at offset 0x148 "Fehler beim Laden des Betriebssystems" at offset 0x16e "Betriebssystem nicht vorhanden", disk signature 0xdd37dd37; partition 1
Refusing to fsck unknown or unsupported file system on /dev/pve/vm-190-disk-0.
Starting saving /dev/pve/vm-190-disk-0 as /home/partimag/2024-03-29-11-img/pve-vm-190-disk-0.XXX...
/dev/pve/vm-190-disk-0 filesystem: Unknown or unsupported.
*****************************************************.
*****************************************************.
Use partclone with pigz to save the image.
Image file will be split with size limit 4096 MB.
*****************************************************.
If this action fails or hangs, check:
* Is the disk full ?
*****************************************************.
Running: partclone.dd -z 10485760 -N  --buffer_size 16777216 -L /var/log/partclone.log -s /dev/pve/vm-190-disk-0 --output - | pigz -c --fast -b 1024 --rsyncable | split -a 2 -b 4096MB - /home/partimag/2024-03-29-11-img/pve-vm-190-disk-0.dd-ptcl-img.gz. 2> /tmp/img_out_err.v1xAzf
Opening User Interface mode.
Partclone v0.3.27 http://partclone.org
Starting to clone/restore (/dev/pve/vm-190-disk-0) to (-) with dd mode
get device size 64424509440 by ioctl BLKGETSIZE64,
get device size 64424509440 by ioctl BLKGETSIZE64,
memory needed: 49283072 bytes
bitmap 15728640 bytes, blocks 2*16777216 bytes, checksum 0 bytes
Calculating bitmap... Please wait... done!
File system:  raw
Device size:   64.4 GB = 125829120 Blocks
Space in use:  64.4 GB = 125829120 Blocks
Free Space:     0 Byte = 0 Blocks
Block size:   512 Byte
Total block 125829120
Total Time: 00:04:17, Ave. Rate:  15.04GB/min, 100.00% completed!
Syncing... OK!
>>> Time elapsed: 260.17 secs (~ 4.336 mins)
*****************************************************.
Finished saving /dev/pve/vm-190-disk-0 as /home/partimag/2024-03-29-11-img/pve-vm-190-disk-0.dd-ptcl-img.gz
*****************************************************.
 
Hi,

ich benutze immer RescueZilla. Der nutzt zwar "unter der Haube" auch CloneZilla, hat aber nen schönen Wizard und ist etwas einfacher zu bedienen. Je nachdem, wo dein Proxmox installiert ist, sollte RZ die entsprechende Disk anzeigen, diese kannst du dann sichern.
 
Hi,
Habe nun mit RescueZilla ein Image erstellt.
Am Ende bekomme ich eine Meldung das ein Volume nicht unmountbar ist.
Scheinbar wurde das Image auch hier nicht Fehlerlos erstellt da nicht bei allen Partitionen ein Hacken bei der Übersicht stand.

Nun habe ich einfach das Image zurückgespielt (auf meiner zweiten baugleichen Hardware).
Der Proxmox startet soweit aber ich bekomme beim start einer VM diesen Fehler.
TASK ERROR: activating LV 'pve/data' failed: Thin pool pve-data-tpool (253:4) transaction_id is 0, while expected 2971.

Beim Icon der local-lvm ist auch ein Fragezeichen mit dabei
Wenn ich dann darauf klicke bekomme ich eine Meldung
activating LV 'pve/data' failed: Thin pool pve-data-tpool (253:4) transaction_id is 0, while expected 2971. (500)

Ich bin leider ein Linux und Proxmox Anfänger
Kann mir da jemand weiterhelfen?

Vielen Dank
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!