LVM Storage Issue

ITISETN

New Member
Sep 8, 2022
3
0
1
Hi there,

New to Proxmox VE. I was hoping I could have someone assist me with troubleshooting this particular issue.

After creating an LVM on an HDD and attaching it to a VM (ID 106) as IDE2 and placing files on it, I stupidly shut the server down and tried to attach a new hard drive physically and when I went back to the VM the drive had zero folders inside it, but was still showing as having data.

This is also the case for viewing the LVM itself, where it is consuming 82.02% (1.61 TB of 1.97 TB), however not able to display any files.

Stupidly, I detached the disk from the VM and tried re-attaching, when I realized I had no clue how to successfully do that.

This is the output of lsblk for that specific partition:

Code:
sde                                             8:64   0   1.8T  0 disk
├─plx--storage--hdd-plx--storage--hdd_tmeta   253:10   0  15.8G  0 lvm
│ └─plx--storage--hdd-plx--storage--hdd-tpool 253:42   0   1.8T  0 lvm
│   ├─plx--storage--hdd-plx--storage--hdd     253:43   0   1.8T  1 lvm
│   └─plx--storage--hdd-vm--106--disk--0      253:44   0   1.8T  0 lvm
└─plx--storage--hdd-plx--storage--hdd_tdata   253:11   0   1.8T  0 lvm
  └─plx--storage--hdd-plx--storage--hdd-tpool 253:42   0   1.8T  0 lvm
    ├─plx--storage--hdd-plx--storage--hdd     253:43   0   1.8T  1 lvm
    └─plx--storage--hdd-vm--106--disk--0      253:44   0   1.8T  0 lvm

The data seems to still be there. How can I attach it to the VM and view the files on it again?

Thanks
 
I found a way to re-attach the LVM. (many thanks to this thread detailing the process) However, the issue still remains with it showing as having no folders or files despite the data being on there.

Screenshot 2022.png

Any ideas of how to fix this and show the folders/files?

EDIT: I am currently robocopying the data to another drive before I mess with this at all. My first course of action would be to run a chkdisk. I am still curious as to why this happened.
 
Last edited:
After seeing that robocopy moved all files successfully, then viewing said files and directories via DIR, I decided that it may be a permissions issue now being faced and to take ownership just in case. Using this thread, I was able to change directory permissions and populate certain files and folders for moving. I am currently moving the most important files to cloud storage, then I will be populating a new server on an ESXi host to handle the rest over a manual and carefully checked move.

I will be leaving this thread up incase anyone makes the same mistakes I did trying to add another physical drive. I won't be using Proxmox again after this scare, thank you all for your time. :p
 

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!