Can't see directory/hard drive in cluster storage but it looks mounted to the node - I need to restore a backup VM on it!

pjdonovan1937

New Member
Jun 17, 2023
2
0
1
Hey there!
So I tried to add my node to a cluster but learned that you can't do that with containers and VMs installed. I made backups, tested out a container I could stand to lose and it worked! So I deleted all my containers including my windows server VM that hosts DHCP/DNS - and that basically broke my network.

I added it to the cluster and was able to restart all the containers, but I couldn't find my backup VM. I remembered I backed it up to a secondary hard drive (which was a directory) and it looks like i can see the file using shell. (see bold below)

root@mars:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 3G 0 loop
loop1 7:1 0 6G 0 loop
loop2 7:2 0 4G 0 loop
loop3 7:3 0 2G 0 loop
sda 8:0 0 465.8G 0 disk
sdb 8:16 0 476.9G 0 disk
└─sdb1 8:17 0 476.9G 0 part /mnt/pve/Backups

nvme0n1 259:0 0 476.9G 0 disk
nvme1n1 259:1 0 476.9G 0 disk
├─nvme1n1p1 259:2 0 1007K 0 part
├─nvme1n1p2 259:3 0 1G 0 part /boot/efi
└─nvme1n1p3 259:4 0 475.9G 0 part
├─pve-swap 253:0 0 8G 0 lvm [SWAP]
└─pve-root 253:1 0 96G 0 lvm /

It seems like its mounted to the node, but needs to be added to the cluster for me to restore the VM from the hard drive? I know how to add it to the cluster after some research, I just wanted to be sure I don't break anything else! I've attempted to just restore the VM, but it looks like it'll need the storage space of the second hard drive

Do I need to unmount the old drive before adding it to the cluster storage? Am I overlooking anything?
 
So I tried to add my node to a cluster but learned that you can't do that with containers and VMs installed.
You can under some conditions, yet it's easier if they're clean.


It seems like its mounted to the node, but needs to be added to the cluster for me to restore the VM from the hard drive?
Yes, all storage devices are also removed from the configuration of the joining node.

Do I need to unmount the old drive before adding it to the cluster storage? Am I overlooking anything?
Depends on how it was mounted in the first place.
 
  • Like
Reactions: pjdonovan1937
Depends on how it was mounted in the first place.
It looks like it was mounted by UUID to mnt/pve/Backups (at least that's how it looks on the node/disks/directory menu), although I can't remember how I mounted it months ago. I'd be surprised if i didn't just add the PCIe Adapter and it showed up in disks, so I created the directory without knowing the full details.

I'm pretty sure if i unmount and remount elsewhere it won't affect anything data-wise on the drive, so it's low risk to try, but after my wife cried about not being able to study at home now I'm a little hesitant.

Thank you in advance for the reply!
 

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!