VM / VM template local-lvm: Which disk is it using?

tuathan

Member
May 23, 2020
52
6
8
I have created some VMs and VM templates on a PVE node for testing. The node has a SSD and 4 SAS drives. I installed PVE on the SSD drive and assumed when i selected local-lvm as the VM disks the VMs would all use the SSD for storage too. When I look under Node > Disks now I see that the usage for the SSD disk and 2 of the SAS disks is "LVM". I want to create a RAIDZ zpool on the 4 SAS disks now. Is it safe to clear the partitions from the SAS disks? How can I check if any of the VM templates / VM are using the SAS/LVM?
 
OK I think I figured out that everything (i.e. all the VM and VM template storage) is on the SSD (sda) by running:

# lsblk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 223.6G 0 disk
├─sda1 8:1 0 1007K 0 part
├─sda2 8:2 0 512M 0 part
└─sda3 8:3 0 223.1G 0 part
├─pve-swap 253:3 0 8G 0 lvm [SWAP]
├─pve-root 253:4 0 55.8G 0 lvm /
├─pve-data_tmeta 253:5 0 1.4G 0 lvm
│ └─pve-data-tpool 253:7 0 140.5G 0 lvm
│ ├─pve-data 253:8 0 140.5G 0 lvm
│ ├─pve-base--100--disk--0 253:9 0 32G 1 lvm
│ ├─pve-vm--102--disk--0 253:11 0 40G 0 lvm
│ ├─pve-base--103--disk--0 253:12 0 40G 1 lvm
│ └─pve-vm--104--disk--0 253:13 0 40G 0 lvm
└─pve-data_tdata 253:6 0 140.5G 0 lvm
└─pve-data-tpool 253:7 0 140.5G 0 lvm
├─pve-data 253:8 0 140.5G 0 lvm
├─pve-base--100--disk--0 253:9 0 32G 1 lvm
├─pve-vm--102--disk--0 253:11 0 40G 0 lvm
├─pve-base--103--disk--0 253:12 0 40G 1 lvm
└─pve-vm--104--disk--0 253:13 0 40G 0 lvm
sdb 8:16 0 558.9G 0 disk
├─sdb1 8:17 0 300M 0 part
├─sdb2 8:18 0 100M 0 part
├─sdb3 8:19 0 128M 0 part
└─sdb4 8:20 0 558.4G 0 part
└─mpbmtest--vg2-mpbmtest_backuplv 253:2 0 50G 0 lvm
sdc 8:32 0 558.9G 0 disk
├─sdc1 8:33 0 243M 0 part
├─sdc2 8:34 0 1K 0 part
└─sdc5 8:37 0 558.7G 0 part
├─mpbmtest--vg-root 253:0 0 526.8G 0 lvm
└─mpbmtest--vg-swap_1 253:1 0 31.9G 0 lvm
sdd 8:48 0 558.9G 0 disk
sde 8:64 0 558.9G 0 disk
sr0 11:0 1 1024M 0 rom

I think it must have been an experiment I forgot I did on the two SAS disks... I will proceed by clearing them prior to configuring for RAIDZ.
 
I've tried:

fdisk /dev/sdc

d (delete partition)

Select partition number (REPEAT)

w (write changes)

q (quit)


and:

vgreduce pve /dev/sdc

but get message:

Failed to find physical volume "/dev/sdc"
 

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!