Besoin d'aide suite a panne HDD

nexen

New Member
Nov 26, 2022
1
0
1
Bonjour,
je vous plante le décor, un serveur avec deux raid 5, le premier pour l'os et le second pour les vm.
Jusque la, tout va bien....sauf que, deux disque ont claqués en très peu de temp sur le premier raid (os (proxmox 6 de mémoire)).
Donc remplacement des hdd, création nouveau raid5 et installation de la dernière version de proxmox en date.

je vois bien mes anciens VM disk mais impossible de les importer.
En suivant certains tuto, j'ai tenté de créer une nouvelle VM, de supprimer le disque virtuel puis d'importer dans cette VM l'un de mes anciens disques avec la commande suivante : "qm importdisk 106 /dev/Data/vm-106-disk-1 data"
j'obtiens le message d'erreur suivant :" /dev/Data/vm-106-disk-1: non-existent or non-regular file"

j'ai besoin de vos lumières svp.
merci a ceux qui m'aiderons.
 
"qm importdisk" will read the original storage and write the disk a new storage.

This is not what you want here.


As you only have reinstalled the os, the data storage is still ok.

you just need:

1) redeclare your storage (in datacenter-> storage)
2) recreeate your vms config. (btw, you didn't have any backup of /etc/pve with vm configs ?). this can be vms without disk.
3) use "qm rescan", it'll rescan the storage for disk, and put them as unused in vm configs
4) edit vm config, et choose a disk controller (virtio,ide,..) for each disk.


BTW, for the future, backup your /var/lib/pve-cluster/config.db. If you need to reinstall proxmox, you just need to restore it, and you'll have the full configuration of storage,vms,...
 

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!