[SOLVED] Mapping VM Disk zu ZFS-Partition wiederherstellen

Feb 19, 2024
2
0
1
Hallo Proxomx-Community,

ich nutze Proxmox VE schon ein paar Jahre, jetzt ist mir zum ersten mal bei meinem privaten Server die Boot-Platte kaputt gegangen.
Die Festplatten auf denen sich die Container und VMs befinden, war nicht betroffen.

Leider hatte ich von /etc/pve kein Backup und ich musste mir die Konfigurationen aus den Backups der Container / VMs wieder hergestellt.
Für die virtuele TrueNAS habe ich aber auch da kein Backup und die virtuellen Festplatten der VM tauchen nicht im Proxmox auf.
Im ZFS-Pool des Proxmox konnte ich die Partionen bereits identifizieren:

Code:
Disk /dev/zd128: 40 GiB, 42949672960 bytes, 83886080 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 16384 bytes
I/O size (minimum/optimal): 16384 bytes / 16384 bytes
Disklabel type: gpt
Disk identifier: CC959F1D-8391-11ED-B0EC-801F02D61FDF

Device          Start      End  Sectors        Size Type
/dev/zd128p1       40   532519   532480   272629760 EFI System
/dev/zd128p2   532520   533543     1024      524288 FreeBSD boot
/dev/zd128p3   533544 67108903 66575360 34086584320 FreeBSD UFS
/dev/zd128p4 67108904 83886039 16777136  8589893632 FreeBSD swap

Disk /dev/zd96: 2 TiB, 2199023255552 bytes, 4294967296 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 8192 bytes
I/O size (minimum/optimal): 8192 bytes / 8192 bytes
Disklabel type: gpt
Disk identifier: 9AEF8D5F-1CFB-11EE-8627-2B3AE6F3F91C

Device        Start        End    Sectors          Size Type
/dev/zd96p1     128    4194431    4194304    2147483648 FreeBSD swap
/dev/zd96p2 4194432 4294967255 4290772824 2196875685888 FreeBSD ZFS

zpool import
   pool: boot-pool
     id: 1162984250374607699
  state: ONLINE
status: One or more devices are configured to use a non-native block size.
        Expect reduced performance.
 action: The pool can be imported using its name or numeric identifier.
 config:

        boot-pool   ONLINE
          zd64      ONLINE

   pool: data
     id: 10758911905642694554
  state: ONLINE
status: The pool was last accessed by another system.
 action: The pool can be imported using its name or numeric identifier and
        the '-f' flag.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-EY
 config:

        data        ONLINE
          zd96p2    ONLINE

Hat von euch jemand eine Idee wie ich die beiden Platten wieder in Proxmox bekomme so dass ich die einer VM zuweisen kann?

Liebe Grüße
Marco
 
$ man zpool import

$ zpool import -f <pool-name>
$ zpool import -f <pool-name> -d /dev/disk/by-id/
 
$ man zpool import

$ zpool import -f <pool-name>
$ zpool import -f <pool-name> -d /dev/disk/by-id/
Danke für die Antwort.

Ich konnte es aber gerade lösen. Ich hatte Tomaten auf den Augen bzw. dadurch das ich veraltete config eingespielt hatte tauchten die Platten unter CT Volumes auf und nicht unter VM Disks.

Code:
zfs list
Zeigt eine Liste der Volumes dort habe ich dann auch die Zuordnung gefunden.
 

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!