canonical / lxd

Powerful system container and virtual machine manager
https://canonical.com/lxd
GNU Affero General Public License v3.0
4.38k stars 931 forks source link

btrfs rbd does not use 'user_subvol_rm_allowed' #7264

Closed bazaah closed 4 years ago

bazaah commented 4 years ago

Required information

Issue description

I am no longer able to set block.mount_options: user_subvol_rm_allowed,<others> inside a container volume, when the underlying storage is ceph, with a btrfs rbd. I see no way in the configuration options to set ceph btrfs rbd(s) to use user_subvol_rm_allowed. This is a regression for me, as I used to be able to do this in 3.17.

Did I miss documentation of an updated method for achieving this somewhere?

Steps to reproduce

  1. lxc storage volume edit/set <pool> <container> block.mount_options=user_subvol_rm_allowed
  2. Error: Not supported
stgraber commented 4 years ago

lxc config device override NAME root raw.mount.options=user_subvol_rm_allowed

Does that do what you want?

stgraber commented 4 years ago

You can also set it globally on your entire pool, that part should work just fine: lxc storage set <pool> volume.block.mount_options user_subvol_rm_allowed

bazaah commented 4 years ago

The override didn't work but the global setting did. Thanks.

Abdull commented 1 year ago

You can also set it globally on your entire pool, that part should work just fine: lxc storage set <pool> volume.block.mount_options user_subvol_rm_allowed

Is this for lxd or for lxc? Because I don't understand yet were to set this option in my unprivileged lxc setup.

Is it to be configured in e.g. /home/lxc/.config/lxc/default.conf ?

tomponline commented 1 year ago

This is for LXD only.

See https://linuxcontainers.org/lxd/docs/master/howto/storage_pools/#configure-storage-pool-settings