Move Dataset Up in Hierarchy

I am trying to reorganize my datasets using the zfs rename command but am not having any luck.

Currently, I am organized as tank/Dockge/configs but I would like to have configs move to tank/configs. I have a few other datasets under tank/Dockge that I will also want to move.

I have tried creating the tank/configs dataset using the WebUI and then running:

zfs rename tank/Dockge/configs tank/configs

However, I keep getting the following error:

cannot rename 'tank/Dockge/configs': dataset already exists

Any advice? Changing to tank/configs will be a huge efficiency bump for me when setting up new containers in Dockge.

Welp, the error kinda speaks for itself. You should not have created the target dataset (tank/configs) beforehand.

Oh well that was an easy solution. Deleted the tank/configs and reran the command. Thank you!

1 Like

I also advise you to review your inherited properties (in case you were changing some for tank/Dockge).

1 Like