Can't locate an LVM for renaming

SammyD

Member
Sep 22, 2022
10
0
6
I'm manually changing the VMID of my backup server (because it's too big to clone). I was able to change its VMID and primary LVM but I can't find where to rename my additional 1TB hard drive, which contains all the backups. It's not listed where my primary volume was.

Any hints on where to find it?
Here is some more information.
Thanks

vgs...
VG #PV #LV #SN Attr VSize VFree
local-pbs 1 1 0 wz--n- 931.51g 1.51g

lvs...
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
vm-999-disk-0 local-pbs -wi-ao---- 930.00g

lsblk...
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sdb 8:16 0 931.5G 0 disk
└─local--pbs-vm--999--disk--0 252:2 0 930G 0 lvm

Hardware listed in my VM.
1777667960858.png
 
The first step is to review the output of:
cat /etc/pve/storage.cfg
pvesm status

The two disks are located on different storage pools (local-lvm vs local-pbs). It is not strictly necessary to match the name of the disk to the index id of the VM. It certainly makes sense to do so from a hygiene perspective.
At first glance it seems that both pools are LVM-based. So the process to rename the disk would be the same.

Cheers


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Reviewing what you suggested looked normal (there were no specific references to vm-999-disk-0).
local-pbs is an LVM.
Should vm-999-disk-0 exist as a file somewhere? I couldn't find it.
 
So here's the backstory...
I've been migrating my home network over to VLANs. On the Proxmox box I've also set up all my VLANs on my LXCs and VMs and all is working well. Because I'm an engineer ;), I also want all my container IDs to represent the VLAN that they are on. I've managed to do this with most of my containers by cloning and assigning the new IDs but the Proxmox Backup Server VM also has a 1 TB hard drive and there's no room to clone it so I'm doing it manually. I was able to manually change the ID and the primary disk but I couldn't figure out how to rename the 1TB disk volume. This was probably a lot of useless information for you...sorry. Originally the VMID was 999 and I've changed it to 10012.

I would like to rename local-pbs:vm-999-disk-0 to local-pbs:vm-10012-disk-0
Note that everything seems to be working fine even though that volume still is named ...999...

Here's my qm config...

boot: order=scsi0;net0
cores: 3
description: scsi1%3A local-pbs%3Avm-999-disk-0,backup=0,size=930G
memory: 8192
meta: creation-qemu=7.0.0,ctime=1664593731
name: pveBackup
net0: virtio=AE:27:98:35:7B:52,bridge=vmbr0,tag=10
numa: 0
onboot: 1
ostype: l26
scsi0: local-lvm:vm-10012-disk-0,size=32G
scsi1: local-pbs:vm-999-disk-0,backup=0,discard=on,size=930G,ssd=1
scsihw: virtio-scsi-pci
smbios1: uuid=1b201f58-ef4b-49cf-9f13-60eac6053fbb
sockets: 1
startup: order=999
tags: debian13_trixie
vmgenid: bf5f3e94-45dd-4716-ac43-85e3d2c4d6f9


Thanks