Hello Сolleagues.
On a board Proxmox VE 6.0-4 without subscription.
I need a little help with Virtual Disk renaming on Storage with ZFS file system. Why I need it:
1. I need change ID of VM.
2. Also I have to change ID for virtual disk in order to avoid an issue in future.
So, first step is very easy and clear, need just rename configuration filename:
For example need rename 103 in 120. So, lets rename it by:
Also I have to change ID name for virtual disk:
We can see in this config file, virtual disk has 103 id number, need change it on 120. So, change it & save.
Now I need rename this disk image from vm-103-disk-0 make vm-120-disk-0.
This disk image storing on NVME disk with ZFS format file system.
Please, give me an idea how to resolve my issue, thanx.
On a board Proxmox VE 6.0-4 without subscription.
I need a little help with Virtual Disk renaming on Storage with ZFS file system. Why I need it:
1. I need change ID of VM.
2. Also I have to change ID for virtual disk in order to avoid an issue in future.
So, first step is very easy and clear, need just rename configuration filename:
Code:
cd /etc/pve/nodes/Here_is_a_name_of_our_node/qemu-server/
For example need rename 103 in 120. So, lets rename it by:
Code:
mv 103.conf 120.conf
Also I have to change ID name for virtual disk:
Code:
nano 120.conf
.....................
.....................
virtio0: NVME:vm-103-disk-0,cache=writeback,size=120G
.....................
.....................
We can see in this config file, virtual disk has 103 id number, need change it on 120. So, change it & save.
Now I need rename this disk image from vm-103-disk-0 make vm-120-disk-0.
This disk image storing on NVME disk with ZFS format file system.
BUT! I can't rename it via CLI, because mounted disk showing like an empty in midnight commander.
VM disks on ZFS storage do not use a file but a "zvol". zvols are block devices that do not show up if you go into the directory where the pool ist mounted.
Code:
zfs list
Please, give me an idea how to resolve my issue, thanx.
Attachments
Last edited: