Migration to Fangtooth: VM has two ZVOLs with same name

I’m on my way to upgrade the first TrueNAS server from 24.10 to 25.04. It has only one VM (a Proxmox Backup Server), which has two ZVOLs as drives. Both ZVOLs have the same name (PBS-KB), but are in different directories (obviously).

After the upgrade I wanted to create a new Incus VM from the existing ZVOLs as described in the documentation. I created a new VM, imported the existing ZVOL (system) sucessfully and wanted to add the second as another drive. But when I try to import the second ZVOL I was told, there is already another ZVOL with the same name.

Later I discovered, that by importing the ZVOL it was moved out of /mnt/POOLNAME/Apps to POOLNAME/.ix-virt/custom/default_PBS-KB. I had the impression, that all ZVOLs will be stored in one directory and that’s why no two ZVOLs can have the same name?!

What can I do now? How can I create a new VM from the existing “drives” (ZVOLs)? You cannot rename ZVOLs, can you?

Thank you for your advice.

You can rename a zvol using the command line.

zfs rename pool/old/name pool/new/name

Once renamed, you should be able to import.

1 Like

Thank you!

Sometimes the solution is too simple. :slight_smile:

I’ll give it a try next time I can try the upgrade.