How to move sub volume mp0 from one container to another.

ColonalKohler

Member
Aug 21, 2018
8
0
6
25
Background: container 101 had a root disk and a mount point 0, I only had a backup that included its root disk, but mp0 was excluded from the backup because I didn't have enough storage. (I'm working on full backups now which is why I want to fix this). The root disk failed to boot unexpectedly, so I restored the backup to a new container 206. I edited 206s conf file to map 101s mp0 to it with the same parameters.

I would like to be able to remove container 101 from proxmox, but I would need to move that mount to 206 now. The mount point is a sub volume on a ZFS disk. Do I just need to rename that sub volume to "subvol-206-disk 1" then update the conf file again? Is there anything else I would need to do that I'm not thinking about?
 

Fabian_E

Proxmox Staff Member
Staff member
Aug 1, 2019
928
122
43
Hi,
yes it should be enough to use zfs rename and edit the configurations while the containers are shut down. Also check the mountpoint property afterwards, with zfs get mountpoint <pool>/subvol-206-disk-1, but it should be updated automatically by the rename command, if it wasn't edited.
 
  • Like
Reactions: ColonalKohler

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!