News about our company, tutorials about IT and much more you will find in this page.
Use the vgrename
command to rename an existing volume group.
Either of the following commands renames the existing volume group vg02
to my_volume_group
root@prox:~# lvscan
root@prox:~# lvscan
ACTIVE '/dev/pve/swap' [8.00 GiB] inherit
ACTIVE '/dev/pve/root' [<438.63 GiB] inherit
ACTIVE '/dev/nvme1/vm-100-disk-0' [200.00 GiB] inherit
ACTIVE '/dev/nvme1/vm-101-disk-0' [200.00 GiB] inherit
root@prox:~# vgrename /dev/nvme1 /dev/nvme3
Now we need to change the volume name in the VM disk:
root@prox:~# cd /etc/pve/qemu-server
root@prox:~# ls
100.conf 101.conf
Edit the 100.conf file
vi 100.conf
Change virtio0: to nvme3 (the new name of your volume)
bootdisk: virtio0
cores: 20
ide2: none,media=cdrom
memory: 32768
name: Web
net0: virtio=F2:19:38:4E:2E:22,bridge=vmbr0,firewall=1
numa: 0
onboot: 1
ostype: l26
scsihw: virtio-scsi-pci
smbios1: uuid=77677437-b700-49b3-98ed-d4520d9daade
sockets: 1
virtio0: nvme3:vm-100-disk-0,size=610G
vmgenid: 57af0872-217d-4c64-97e1-e7f21bece5d4
Start the VM. Done.