re-writte partition table due to incorrect handling of sgdisk

wellbein

Member
May 12, 2020
25
13
23
52
Hello everyone,
This morning, one of the two discs in my PVE 8.1 was out of order. (with raid zfs)
I replaced the disk and entered the command : sgdisk /dev/sdb -R /dev/sda

alas, I reversed this (I copied the table from the new disk to the old one !!!!!) and - not content with my stupidity, I did :

partprobe

to force things ...

as a result, I end up with a server that still works, but with a really incoherent partition table. I'm sure that if I reboot it, I'll break everything.

if you had any advice?!!!

is there a way to re-create the partition table, with what the server has in memory for example ...?

here is my partition table instead of the normal one :

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 931.5G 0 disk
|-sda1 8:1 0 100M 0 part
`-sda3 8:3 0 931G 0 part
sdb 8:16 0 931.5G 0 disk
|-sdb1 8:17 0 100M 0 part
|-sdb2 8:18 0 930.9G 0 part
`-sdb3 8:19 0 530M 0 part

normally, it look like this (exept there is no ssd in this server) :

nvme1n1 259:0 0 953.9G 0 disk
├─nvme1n1p1 259:2 0 1007K 0 part
├─nvme1n1p2 259:3 0 512M 0 part
└─nvme1n1p3 259:4 0 953.4G 0 part
nvme0n1 259:1 0 953.9G 0 disk
├─nvme0n1p1 259:5 0 1007K 0 part
├─nvme0n1p2 259:6 0 512M 0 part
└─nvme0n1p3 259:7 0 953.4G 0 part
 

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!