Running off a Recovered VM off a failed drive

arashi0987

New Member
Mar 4, 2024
8
2
3
Hey all,
I created a VM on a ZFS pool that ended up having troubles, and I had to recover the files from the pool. Luckily, the scsi0 disk for the VM that included the OS was able to be completely recovered. Unluckily, I don't know how to use the file now that it has been disassociated from the VM in Proxmox.

Here's what I'm working with:
1710182584362.png

That Atlantic:vm-100-disk-0 is what I'm trying to get working again. I figured that if I just made a new storage object called Atlantic, and put the 64gb file that I recovered in there it would work, but no dice:

1710182779931.png
1710182902963.png
1710183195268.png
1710182936760.png

I made some symbolic links and put them in spots that I figured Proxmox would be looking for the vm directory, which from what I can see only has that one ZVOL_64_GB file under it, but when I try to run the vm I get the error "unable to parse directory name 'vm-100-disk-0'"

I would appreciate any assistance setting this vm back up. Thanks
 
Last edited:
Hey,

just to reproduce your problem.
  1. Hard Disk (scsi0) was on a ZFS pool called Atlantic (?)
  2. This ZFS pool was about to be removed from your PVE (?)
  3. You restored this VM with ID 100 to ?
  4. Created a folder in /Atlantic/ and moved this ZFS vol into that root folder?
  5. And you want to restore the VM complete to a normal operational state?
If you can help me with the checklist - I can check if that's working for what I have in mind.

Best
 
  • Like
Reactions: Kingneutron
Hey,

just to reproduce your problem.
  1. Hard Disk (scsi0) was on a ZFS pool called Atlantic (?)
  2. This ZFS pool was about to be removed from your PVE (?)
  3. You restored this VM with ID 100 to ?
  4. Created a folder in /Atlantic/ and moved this ZFS vol into that root folder?
  5. And you want to restore the VM complete to a normal operational state?
If you can help me with the checklist - I can check if that's working for what I have in mind.

Best
  • Hard Disk (scsi0) was on a ZFS pool called Atlantic
  • The ZFS Pool was put into a state where Proxmox could not import/mount it
  • I restored the disk as a directory with a zvol under it
  • Created a folder in /Atlantic/ and moved this ZFS vol into that root folder
  • And you want to restore the VM complete to a normal operational state
In addition to the above, I've tried just using dd to copy out the files from the zvol to a blank hard drive as well, but that didn't work correctly and the resulting drive appeared empty

Let me know if you need any more clarification
 
Please elaborate how did you managed to copy the raw disk from your zfs pool to your directory - step by step.

Since this is a TrueNAS installation, you want to get your configuration files back? The four disks which are passed directly to the VM contains your data? You can reinstall TrueNAS and import the ZFS pool(s)?

Best
 
That's it! It will show as "unused disk" but simply click on the disk and click on the add button
Then you go to Options > Boot Order and select the imported disk an check the "Enabled"
 
  • Like
Reactions: arashi0987

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!