X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=blobdiff_plain;f=pve-storage-dir.adoc;h=a5084f88cff70851bb1513648986c586be62f5e6;hp=99f61cbcfbf10400fa72da59c528c0afdd97cb0d;hb=a297b96efb178509e72a30be9d0eb670d39582b4;hpb=f532afb7ac007af6bbed8e3cad5439de934db30a diff --git a/pve-storage-dir.adoc b/pve-storage-dir.adoc index 99f61cb..a5084f8 100644 --- a/pve-storage-dir.adoc +++ b/pve-storage-dir.adoc @@ -1,6 +1,10 @@ Directory Backend ----------------- include::attributes.txt[] +ifdef::wiki[] +:pve-toplevel: +:title: Storage: Directory +endif::wiki[] Storage pool type: `dir` @@ -9,7 +13,7 @@ storage. A directory is a file level storage, so you can store any content type like virtual disk images, containers, templates, ISO images or backup files. -NOTE: You can mount additional storages via standard linux '/etc/fstab', +NOTE: You can mount additional storages via standard linux `/etc/fstab`, and then define a directory storage for that mount point. This way you can use any file system supported by Linux. @@ -31,12 +35,13 @@ storage backends. [width="100%",cols="d,m",options="header"] |=========================================================== |Content type |Subdir -|VM images |images// -|ISO images |template/iso/ -|Container templates |template/cache -|Backup files |dump/ +|VM images |`images//` +|ISO images |`template/iso/` +|Container templates |`template/cache/` +|Backup files |`dump/` |=========================================================== + Configuration ~~~~~~~~~~~~~ @@ -44,7 +49,7 @@ This backend supports all common storage properties, and adds an additional property called `path` to specify the directory. This needs to be an absolute file system path. -.Configuration Example ('/etc/pve/storage.cfg') +.Configuration Example (`/etc/pve/storage.cfg`) ---- dir: backup path /mnt/backup @@ -54,7 +59,7 @@ dir: backup Above configuration defines a storage pool called `backup`. That pool can be used to store up to 7 backups (`maxfiles 7`) per VM. The real -path for the backup files is '/mnt/backup/dump/...'. +path for the backup files is `/mnt/backup/dump/...`. File naming conventions @@ -70,16 +75,16 @@ This specifies the owner VM. ``:: -This can be an arbitrary name (`ascii`) without white spaces. The +This can be an arbitrary name (`ascii`) without white space. The backend uses `disk-[N]` as default, where `[N]` is replaced by an integer to make the name unique. ``:: -Species the image format (`raw|qcow2|vmdk`). +Specifies the image format (`raw|qcow2|vmdk`). When you create a VM template, all VM images are renamed to indicate -that they are now read-only, and can be uses as a base image for clones: +that they are now read-only, and can be used as a base image for clones: base--. @@ -88,6 +93,7 @@ important that those files are read-only, and never get modified. The backend changes the access mode to `0444`, and sets the immutable flag (`chattr +i`) if the storage supports that. + Storage Features ~~~~~~~~~~~~~~~~