Added unpartitioned disk to LVM, had to remove (had not added any data to it). Disk now shows as [Unknown] and I cant figure out how to remove

LiamColeE

New Member
May 11, 2021
2
0
1
25
New to ProxMox. Added unpartitioned disk to LVM accidentally, had to remove (had not added any data to it) and probably fucked it up. Disk now shows as [Unknown] and I cant figure out how to remove it from the LVM and get it back to working (none of my vms will boot as the lvm-thin they all where on no longer functions due to this). Let me know what all information would be helpful to try fixing this.

Tutorial I used to add drive:
  • LVM physical volume to extend the default pve-data LVM logical volume and /var/lib/vz filesystem:
    • partition your device and set the LVM (8e) flag <-----My dumbass missed this step
    • create a new physical volume with pvcreate /dev/<DEVNAME>
    • extend default VG with vgextend pve /dev/<DEVNAME>
    • extend data logical volume with lvextend /dev/mapper/pve-data /dev/<DEVNAME>
    • verify your FS is clean with fsck -nv /dev/mapper/pve-data
    • resize your FS with resize2fs -F /dev/mapper/pve-data
 

Attachments

  • LVM.PNG
    LVM.PNG
    7.5 KB · Views: 5
Last edited:

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!