Removing Device from Volume Group/Relocating

neverforget98

New Member
Jun 17, 2019
3
0
1
Hello!

My host while assisting me in setting up Proxmox added my second 500GB SSD to my "pve" volume group, however never added it to the thinpool. I've decided, to keep data separated and avoid one hard driving failing and potentially losing data for all of my clients, that I want the 2nd HDD (sdb) to be in its own volume group and thinpool. Here is a screenshot of my LVM and LVM Thin, along with the output of pvs, lvs and lsblk. I've tried researching the best way to remove the device (dev/sdb1) but unfortunately everything I did totally destroyed and I had to readd the device by UUID to the original volume group, which I did get that fixed ;) Fortunately "sdb" does not have any data on it though, it is entirely free and ready to have whatever needs to be done to it.

Thank you in advance for your help and instructions, and sorry for the both.
 

Attachments

  • AQ94o4e.png
    AQ94o4e.png
    38.3 KB · Views: 252
  • TZzsuNG.png
    TZzsuNG.png
    9.4 KB · Views: 216
  • gRZW8oT.png
    gRZW8oT.png
    12.5 KB · Views: 186
As long as your new disk (/dev/sdb) is completely empty, the process is simple:
  1. Remove the device partition from the volume group using "vgreduce pve /dev/sdb1"
  2. Delete the LVM partition on the device to have it show up as "unused" for Proxmox (e.g.: "fdisk /dev/sdb", "d 1", "w") - This WILL delete all data on /dev/sdb !
  3. From there you can simply create an LVM-thin pool from the Proxmox GUI
 
  • Like
Reactions: neverforget98
@Stefan_R,

Thank you for the detailed instructions. I followed as you directly instructed and I was able to create this modification.

Appreciate your time and support,
Brandin.
 

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!