]> git.proxmox.com Git - pve-docs.git/blobdiff - pct.adoc
pvecm.adoc: small cleanups
[pve-docs.git] / pct.adoc
index e5107958a1a9d3763ba07d5b2a55e18ea8b2332f..82f257b69d27c090da20be43b060411682b8613c 100644 (file)
--- a/pct.adoc
+++ b/pct.adoc
@@ -372,6 +372,53 @@ Files
 Configuration file for the container '<CTID>'.
 
 
+Container Mountpoints
+---------------------
+
+Beside the root directory the container can also have additional mountpoints.
+Currently there are basically three types of mountpoints: storage backed
+mountpoints, bind mounts and device mounts.
+
+Storage backed mountpoints are managed by the {pve} storage subsystem and come
+in three different flavors:
+
+- Image based: These are raw images containing a single ext4 formatted file
+  system.
+- ZFS Subvolumes: These are technically bind mounts, but with managed storage,
+  and thus allow resizing and snapshotting.
+- Directories: passing `size=0` triggers a special case where instead of a raw
+  image a directory is created.
+
+Bind mounts are considered to not be managed by the storage subsystem, so you
+cannot make snapshots or deal with quotas from inside the container, and with
+unprivileged containers you might run into permission problems caused by the
+user mapping, and cannot use ACLs from inside an unprivileged container.
+
+Similarly device mounts are not managed by the storage, but for these the
+`quota` and `acl` options will be honored.
+
+
+Using quotas inside containers
+------------------------------
+
+This only works on ext4 image based storage types and currently does not work
+with unprivileged containers.
+
+Activating the `quota` option causes the following mount options to be used for
+a mountpoint: `usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0`
+
+This allows quotas to be used like you would on any other system. You can
+initialize the `/aquota.user` and `/aquota.group` files by running
+
+ quotacheck -cmug /
+ quotaon /
+
+And edit the quotas via the `edquota` command. (Note that you need to do this
+for every mountpoint by passing the mountpoint's path instead of just `/`.) Best
+see the documentation specific to the distributiont running inside the
+container.
+
+
 Container Advantages
 --------------------