Zfs subvolume rename

kristian

Member
Nov 19, 2020
2
0
6
44
Hi,

According to pvesm documentation <Name> can be an arbitrary name:
Code:
File naming conventions
The backend uses the following naming scheme for VM images:

vm-<VMID>-<NAME>      // normal VM images
base-<VMID>-<NAME>    // template VM image (read-only)
subvol-<VMID>-<NAME>  // subvolumes (ZFS filesystem for containers)
<VMID>
This specifies the owner VM.

<NAME>
This can be an arbitrary name (ascii) without white space. The backend uses disk[N] as default, where [N] is replaced by an integer to make the name unique.

I can't find any documentation on how to set this name. I'd like to use it to differentiate the volumes for easier identification. Anyone know how this can be set?

I've done this:
Code:
zfs rename datapool01/docker/subvol-113-disk-0 datapool01/docker/subvol-113-docker-test
And then edited <PVEID>.conf

The volume is still visible in the GUI under storage. If I rename to anything without the "subvol-113" prefix it disappears from the GUI.

Is this method the correct way or may I run into some trouble doing this? Thanks!
 

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!