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

Colonal

Active Member
Aug 21, 2018
11
1
43
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?
 
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: Colonal

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!