[SOLVED] Wiederherstellung Storage

Richard Schweizer

New Member
Jun 7, 2019
4
1
3
49
Hallo zusammen,
könnt ihr mir bitte bei der Wiederherstellung meines proxmox-Servers helfen?

Ich habe mein Proxmox-System auf ein neues System umgezogen. Dabei habe ich alle Server per Backup gesichert und wiederhergestellt - das hat soweit alles gut funktioniert.
Bei einem Server hab ich aber aus Zeit- und Platzgründen eine Festplatte ausgehängt und danach die Sicherung erstellt. Diese Platte möchte ich jetzt auf dem System wieder einhängen.
Die Platte ist im System als /dev/sda sichtbar (LVM), allerdings fehlt mir jetzt der Storage-Eintrag "data01" - unter dem vorher diese Platte eingebunden war - siehe Bild:
upload_2019-7-29_7-18-27.png
Ich vermute mal, dass ich die storage.cfg im Verzeichnis /etc/pve anpassen muss.
Wie sollte der Eintrag dort drin lauten?

Vielen Dank für eure Hilfe!
 

Attachments

  • upload_2019-7-29_7-17-0.png
    upload_2019-7-29_7-17-0.png
    41.6 KB · Views: 16
Zur Übersicht: Was ist die Ausgabe der folgenden Zeile?
Code:
pvs; vgs; lvs; fdisk -l; cat /etc/pve/storage.cfg
 
Hallo Dominic,

das ist die Ausgabe:

root@pve:~# pvs; vgs; lvs; fdisk -l; cat /etc/pve/storage.cfg
PV VG Fmt Attr PSize PFree
/dev/nvme0n1p3 pve lvm2 a-- <465.26g <16.00g
/dev/sda data01 lvm2 a-- <3.64t <526.02g
VG #PV #LV #SN Attr VSize VFree
data01 1 1 0 wz--n- <3.64t <526.02g
pve 1 7 0 wz--n- <465.26g <16.00g
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
vm-100-disk-0 data01 -wi-a----- 3.12t
data pve twi-aotz-- <338.36g 3.47 0.67
root pve -wi-ao---- 96.00g
swap pve -wi-ao---- 8.00g
vm-100-disk-0 pve Vwi-a-tz-- 52.00m data 57.21
vm-100-disk-1 pve Vwi-a-tz-- 10.00g data 81.79
vm-110-disk-0 pve Vwi-aotz-- 10.00g data 21.79
vm-120-disk-0 pve Vwi-a-tz-- 10.00g data 13.60
Disk /dev/nvme0n1: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Samsung SSD 970 EVO Plus 500GB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: B2759BBE-4EE8-496E-9659-4353969E730D
Device Start End Sectors Size Type
/dev/nvme0n1p1 34 2047 2014 1007K BIOS boot
/dev/nvme0n1p2 2048 1050623 1048576 512M EFI System
/dev/nvme0n1p3 1050624 976773134 975722511 465.3G Linux LVM
Disk /dev/sda: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors
Disk model: WDC WD40EFRX-68W
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: WDC WD10EACS-00D
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0001c9b3
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 4982527 4980480 2.4G fd Linux raid autodetect
/dev/sdb2 4982528 9176831 4194304 2G fd Linux raid autodetect
/dev/sdb3 9437184 1953320351 1943883168 926.9G fd Linux raid autodetect
Disk /dev/sdc: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors
Disk model: WDC WD40EFRX-68W
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: BD69CAEE-611D-4D23-B17D-C7782BD1E410
Device Start End Sectors Size Type
/dev/sdc1 2048 7814037134 7814035087 3.7T Linux filesystem
Disk /dev/mapper/pve-swap: 8 GiB, 8589934592 bytes, 16777216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/pve-root: 96 GiB, 103079215104 bytes, 201326592 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
GPT PMBR size mismatch (102399 != 106495) will be corrected by write.
The backup GPT table is not on the end of the device. This problem will be corrected by write.
Disk /dev/mapper/pve-vm--100--disk--0: 52 MiB, 54525952 bytes, 106496 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: gpt
Disk identifier: AFB38D11-BCEA-4409-B348-F4FEEE602114
Device Start End Sectors Size Type
/dev/mapper/pve-vm--100--disk--0-part1 2048 32767 30720 15M EFI System
/dev/mapper/pve-vm--100--disk--0-part2 32768 94207 61440 30M Linux filesystem
/dev/mapper/pve-vm--100--disk--0-part3 94208 102366 8159 4M BIOS boot
Disk /dev/mapper/pve-vm--100--disk--1: 10 GiB, 10737418240 bytes, 20971520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: dos
Disk identifier: 0x12a7f5ed
Device Boot Start End Sectors Size Id Type
/dev/mapper/pve-vm--100--disk--1-part1 2048 4982527 4980480 2.4G fd Linux raid autodetect
/dev/mapper/pve-vm--100--disk--1-part2 4982528 9176831 4194304 2G fd Linux raid autodetect
/dev/mapper/pve-vm--100--disk--1-part3 9437184 20766719 11329536 5.4G fd Linux raid autodetect
Disk /dev/mapper/pve-vm--110--disk--0: 10 GiB, 10737418240 bytes, 20971520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: dos
Disk identifier: 0x9c01e1c8
Device Boot Start End Sectors Size Id Type
/dev/mapper/pve-vm--110--disk--0-part1 * 2048 4960255 4958208 2.4G 83 Linux
/dev/mapper/pve-vm--110--disk--0-part2 4962302 20969471 16007170 7.6G 5 Extended
/dev/mapper/pve-vm--110--disk--0-part5 4962304 7264255 2301952 1.1G 83 Linux
/dev/mapper/pve-vm--110--disk--0-part6 7266304 8310783 1044480 510M 82 Linux swap / Solaris
/dev/mapper/pve-vm--110--disk--0-part7 8312832 8869887 557056 272M 83 Linux
/dev/mapper/pve-vm--110--disk--0-part8 8871936 20969471 12097536 5.8G 83 Linux
Partition 2 does not start on physical sector boundary.
Disk /dev/mapper/pve-vm--120--disk--0: 10 GiB, 10737418240 bytes, 20971520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: dos
Disk identifier: 0x1436068f
Device Boot Start End Sectors Size Id Type
/dev/mapper/pve-vm--120--disk--0-part1 * 2048 19922943 19920896 9.5G 83 Linux
/dev/mapper/pve-vm--120--disk--0-part2 19924990 20969471 1044482 510M 5 Extended
/dev/mapper/pve-vm--120--disk--0-part5 19924992 20969471 1044480 510M 82 Linux swap / Solaris
Partition 2 does not start on physical sector boundary.
Disk /dev/mapper/data01-vm--100--disk--0: 3.1 TiB, 3435973836800 bytes, 6710886400 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 9AFBDE98-B385-499C-AB3D-85066940A404
Device Start End Sectors Size Type
/dev/mapper/data01-vm--100--disk--0-part1 2048 4982527 4980480 2.4G Linux RAID
/dev/mapper/data01-vm--100--disk--0-part2 4982528 9176831 4194304 2G Linux RAID
/dev/mapper/data01-vm--100--disk--0-part3 9437184 6710681599 6701244416 3.1T Linux RAID
dir: local
path /var/lib/vz
content iso,vztmpl,backup
lvmthin: local-lvm
thinpool data
vgname pve
content rootdir,images

Vielen lieben Dank schonmal vorab!
 
Folgender Befehl erstellt den entsprechenden Eintrag in storage.cfg. In der Dokumentation gibt es noch mehr Informationen dazu.
Code:
pvesm add lvm storageName --vgname data01
 

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!