Client Area Access

Registered Clients Only
You must log in to access this page. These login details differ from your website control panel username and password.

Renaming a volume Group on Proxmox

June 9th, 2020

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

Looking for the volumes:

[email protected]:~# lvscan
[email protected]:~# 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
[email protected]:~# vgrename /dev/nvme1 /dev/nvme3

Now we need to change the volume name in the VM disk:

[email protected]:~# cd /etc/pve/qemu-server
[email protected]:~# 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.

Let's work together

Need a successful solution?

Contact us
Or email us directly to [email protected]
Shape image
Shape image
Shape image
Shape image