How to attach used hard drive vm in it.

OD3UNICRON

Member
Oct 23, 2022
32
11
13
Install Proxmox(I had to delete it) on it's own hard drive, My old VM is install on a different Hard drive(I did not wipe it, I need the data in it) can someone direct me how to attach the exiting hard drive to proxmox?
 
You need to define the mount point for the drive in /etc/fstab and then add it as Storage in the proxmox gui

If you don't have a copy of /etc from the old install then you may need to recreate the VM .conf

Then re-scan the VM disks

https://github.com/kneutron/ansitest/blob/master/proxmox/proxmox-recover-vm-disks-without-backup.sh


For future reference, look into bkpcrit script - set target to non-root disk / NAS, put it nightly in cron and make sure you BACKUP your VMs - you don't require proxmox backup server for this, but it helps with dedup and other features

https://github.com/kneutron/ansitest/tree/master/proxmox
 
You need to define the mount point for the drive in /etc/fstab and then add it as Storage in the proxmox gui

If you don't have a copy of /etc from the old install then you may need to recreate the VM .conf

Then re-scan the VM disks

https://github.com/kneutron/ansitest/blob/master/proxmox/proxmox-recover-vm-disks-without-backup.sh


For future reference, look into bkpcrit script - set target to non-root disk / NAS, put it nightly in cron and make sure you BACKUP your VMs - you don't require proxmox backup server for this, but it helps with dedup and other features

https://github.com/kneutron/ansitest/tree/master/proxmox
it going to be stuff as my VM are on a mirror disks.
 
Okay, I lost all my VM, so I'm going to focus this other drive, so I start in the shell with "mkdir /mnt/pve/VOL-001" then my second step, where it gets me, so I proceed like this "zfs mount /dev/nvme1n1 /dev/nvme2n1 /mnt/pve/VOL-001" please look at the second screenshot of the output, I'm not very good at this please help.
 

Attachments

  • Screenshot 2024-08-15 192941.png
    Screenshot 2024-08-15 192941.png
    47.8 KB · Views: 2
  • Screenshot 2024-08-15 193502.png
    Screenshot 2024-08-15 193502.png
    33.7 KB · Views: 2