Einbinden geklonte Festplatte als Ersatz

haiopei

New Member
Apr 24, 2023
8
0
1
Hallo,

ich habe einen Proxmox-Server auf einem Thin-Client laufen. Auf einer SSD-Festplatte ist das System abgelegt und auf einer m.2-Festplatte sind die VMs gespeichert. Ich habe sie als "Speicher" eingebunden. Siehe folgendes Bild.

main.jpg
Leider wird die Festplatte vom Rechner nicht mehr erkannt. Daher das Fragezeichen bei "Speicher". An anderen Rechnern wir die Festplatte allerdings schon erkannt, so dass ich diese auf eine exakt gleich große Platte geklont habe. Die Festplatte habe ich ins System eingebaut, leider ohne Erfolg.

Wie kann ich die Festplatte so einbinden, dass sie als "Speicher" erkannt wird, bzw. wie kann ich die vorhandenen VMs wieder herstellen. Die alte Festplatte kann auch mittels Adapter per USB angesteckt werden.

Hier noch ein paar Infos:

Folgende Festplatten sind vorhanden:
1702652973846.png
Bei der "sdb" handelt es sich um die mittels UBS angeschlossene alte Festplatte, bei "nvme0n1" um die geklonte, fest verbaute Festplatte.
1702653101620.png

Ich hoffe, mir kann jemand weiterhelfen. Vielen Dank schon mal für die Hilfe!
 
fdisk shows only a 16Mb Partition on your sdb and nvme. Maybe the partition table was lost / overwritten?
Do you remember how it was partitioned?
What kind of storage had you configured?
LVM like on sda? zfs?

Show output of cat /etc/pve/storage.cfg

Show output of pvdisplay, vgdisplay, lvdisplay.
Show the config of one of your VMs, qm config ID

You could run testdisk on sdb to guess the partition layout (be careful, might not detect correctly
 
Hello ubu,

here are the information I have:

This is the output of /etc/pve/storage.cfg
Code:
dir: local
        path /var/lib/vz
        content iso,backup,vztmpl

lvmthin: local-lvm
        thinpool data
        vgname proxmox
        content rootdir,images

lvm: Speicher
        vgname Speicher
        content rootdir,images
        nodes proxmox
        shared 0

pvdisplay:
Code:
root@proxmox:/etc/pve# pvdisplay
  --- Physical volume ---
  PV Name               /dev/sda3
  VG Name               pve
  PV Size               232.38 GiB / not usable 2.16 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              59490
  Free PE               4095
  Allocated PE          55395
  PV UUID               nI5O0x-ASaG-9F04-B7i3-e1hF-OkjH-bpB4oj

vgdisplay:
Code:
root@proxmox:/etc/pve# vgdisplay
  --- Volume group ---
  VG Name               pve
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  19
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               232.38 GiB
  PE Size               4.00 MiB
  Total PE              59490
  Alloc PE / Size       55395 / <216.39 GiB
  Free  PE / Size       4095 / <16.00 GiB
  VG UUID               Ld4L0E-JTJI-fgn0-z6y4-CikG-S6e2-m5JsND

lvdisplay:
Code:
root@proxmox:/etc/pve# vgdisplay
  --- Volume group ---
  VG Name               pve
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  19
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               232.38 GiB
  PE Size               4.00 MiB
  Total PE              59490
  Alloc PE / Size       55395 / <216.39 GiB
  Free  PE / Size       4095 / <16.00 GiB
  VG UUID               Ld4L0E-JTJI-fgn0-z6y4-CikG-S6e2-m5JsND

Config of VM 100:
Code:
root@proxmox:/etc/pve# qm config 100
agent: 1
balloon: 1024
boot: order=scsi0;net0
cores: 4
machine: pc-i440fx-7.1
memory: 4096
meta: creation-qemu=7.1.0,ctime=1674517782
name: Win10-Test
net0: rtl8139=FE:F9:3B:4B:38:60,bridge=vmbr0,firewall=1
numa: 0
ostype: win10
scsi0: Speicher:vm-100-disk-0,cache=writeback,size=120G
scsihw: virtio-scsi-pci
smbios1: uuid=ea6801ed-606f-456d-80c8-ac44afb4f20c
sockets: 1
template: 1
vmgenid: 215ff732-c33b-42d7-9de5-fd48119d3c97

testdisk at cloned disk nvme0n1:
Code:
TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org

Disk /dev/nvme0n1 - 2000 GB / 1863 GiB - CHS 1907729 64 32

The harddisk (2000 GB / 1863 GiB) seems too small! (< 8462384 TB / 7696494 TiB)
Check the harddisk size: HD jumper settings, BIOS detection...

The following partitions can't be recovered:
     Partition               Start        End    Size in sectors
>  Linux filesys. data   1896348682 16528095695178783 16528093798830101 [sion calculation:
   MS Data               3687550319 3991288542  303738224
   MS Data               3687550324 3991288547  303738224
 *  */
#define GRUB_BTRFS_LZO_
 
At lvdisplay you posted the output of vgdisplay
Oh, sorry. Thank you very much for the hint.

Here is lvdisplay:
Code:
root@proxmox:~# lvdisplay
  --- Logical volume ---
  LV Path                /dev/pve/swap
  LV Name                swap
  VG Name                pve
  LV UUID                McVVRi-1vyl-wA09-Fmxt-k1hl-3dHy-1EkDZv
  LV Write Access        read/write
  LV Creation host, time proxmox, 2023-01-20 21:12:41 +0100
  LV Status              available
  # open                 4
  LV Size                8.00 GiB
  Current LE             2048
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
  
  --- Logical volume ---
  LV Path                /dev/pve/root
  LV Name                root
  VG Name                pve
  LV UUID                8MLz28-70P3-0YDX-5nm2-DEuZ-zp4t-8tqHST
  LV Write Access        read/write
  LV Creation host, time proxmox, 2023-01-20 21:12:41 +0100
  LV Status              available
  # open                 3
  LV Size                <68.10 GiB
  Current LE             17433
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1
  
  --- Logical volume ---
  LV Name                data
  VG Name                pve
  LV UUID                xTJgdH-efGF-3fdg-IjJN-yzq3-EeTT-WgdtMv
  LV Write Access        read/write (activated read only)
  LV Creation host, time proxmox, 2023-01-20 21:12:44 +0100
  LV Pool metadata       data_tmeta
  LV Pool data           data_tdata
  LV Status              available
  # open                 2
  LV Size                <137.48 GiB
  Allocated pool data    0.00%
  Allocated metadata     1.16%
  Current LE             35194
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:5
 
Do a pvscan /dev/sdb
This command is not possible:
Code:
root@proxmox:~# pvscan /dev/sdb
  Command does not accept argument: /dev/sdb.
The same is for vgscan


Result of testdisk:
Code:
TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org

Disk /dev/sdb - 2000 GB / 1863 GiB - CHS 243201 255 63
Current partition structure:
     Partition                  Start        End    Size in sectors

No FAT, NTFS, ext2, JFS, Reiser, cramfs or XFS marker
 1 P MS Reserved                   34      32767      32734 [Microsoft reserved partition]
 1 P MS Reserved                   34      32767      32734 [Microsoft reserved partition]


Here is a deeper look into the cloned disk
Code:
TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org

Disk /dev/nvme0n1 - 2000 GB / 1863 GiB - CHS 1907729 64 32
Analyse cylinder 1250092/1907728: 65%


Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
  HPFS - NTFS          458641   0  1 491519  63 32   67336192
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
  HPFS - NTFS          747522   0  1 747571  63 32     102400 [System-reserviert]
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
  HPFS - NTFS          747522   0  1 747571  63 32     102400 [System-reserviert]
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
  HPFS - NTFS          747572   0  1 895881  43 16  303738224
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
  HPFS - NTFS          870402   0  1 870451  63 32     102400 [System-reserviert]
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
  HPFS - NTFS          870402   0  1 870451  63 32     102400 [System-reserviert]
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
  HPFS - NTFS          870452   0  1 959874  43 21  183137653
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
  HPFS - NTFS          959875   0  1 960399  63 32    1075200
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
  HPFS - NTFS          959875   0  1 960399  63 32    1075200
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
  HPFS - NTFS          870452   0  1 960400  63 32  184215552
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
  HPFS - NTFS          960401   0  1 993279  63 32   67336192
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
  HPFS - NTFS          960401   0  1 993279  63 32   67336192
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
  HPFS - NTFS          1003522   0  1 1247177   5 19  499005619 [SYSTEM]
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
  HPFS - NTFS          1247178   0  1 1247716  63 32    1103872
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
  HPFS - NTFS          1247178   0  1 1247716  63 32    1103872
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
  HPFS - NTFS          1247722   0  1 1247771  63 32     102400 [System-reserviert]
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
  HPFS - NTFS          1247722   0  1 1247771  63 32     102400 [System-reserviert]
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
  HPFS - NTFS          1247772   0  1 1337194  43 21  183137653
 

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!