Fresh proxmox install, attach old drives

ok_salamander

New Member
Dec 30, 2021
3
1
3
29
Hi guys!

I had to re install proxmox. I had to reboot my proxmox and for some reason the boot fails to load all drives etc and boots ubuntu2 (?)

My vm's are on another disks. Proxmox can show the disks in GUI, is there anyway to easily mount these from gui or cli?

this is lvs

lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
disk1 disk1 twi-aotz-- 218.97g 25.28 1.96
vm-100-disk-0 disk1 Vwi-a-tz-- 32.00g disk1 10.62
vm-100-disk-1 disk1 Vwi-a-tz-- 4.00m disk1 3.12
vm-102-disk-0 disk1 Vwi-a-tz-- 8.00g disk1 48.03
vm-103-disk-0 disk1 Vwi-a-tz-- 32.00g disk1 30.96
vm-104-disk-0 disk1 Vwi-a-tz-- 82.00g disk1 34.34
vm-106-disk-0 disk1 Vwi-a-tz-- 8.00g disk1 14.09
vm-110-disk-0 disk1 Vwi-a-tz-- 10.00g disk1 64.71
vm-113-disk-0 disk1 Vwi-a-tz-- 32.00g disk1 7.68
vm-123-disk-0 disk1 Vwi-a-tz-- 15.00g disk1 0.00
disk2 disk2 twi-aotz-- 218.97g 25.52 1.98
vm-101-disk-0 disk2 Vwi-a-tz-- 20.00g disk2 29.41
vm-114-disk-0 disk2 Vwi-a-tz-- 50.00g disk2 100.00
data pve twi-a-tz-- <64.49g 0.00 1.60
root pve -wi-ao---- 29.50g
swap pve -wi-ao---- 8.00g

I tried mount but it gives error "disk1 is not block device"
 
Looks like it is a volume group called "disk1"? You will have to add a storage configuration for it so PVE knows that it can be used. Go to Datacenter -> Storage and add a new LVM storage. It should show the disk1 VG to select.
 
Also keep in mind that you still need the config files that where stored on your old PVE system disk under /etc/pve/lxc and /etc/pve/qemu-server.
If you didn't back them up before reinstalling PVE you would need to create new VMs/LXCs with the same options you used before and then attach the old virtual disks to it using the CLI.
 
Yes, I was able to mount these drives and see those disk files. If I create new vm and choose to add disk but it only shows target storage.

Is there anyway to import from those disks?
 
run qm rescan, or if it is containers, pct rescan. It will scan the storages for any disk images that match a configured VM ID and will add them as unused disks to the config. You can then proceed attaching them to the VMs as needed. Don't forget to update the boot order in the VMs option panel! :)
 

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!