X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=blobdiff_plain;f=pvesm.adoc;h=5300f50cb17b9c45c27e8b4d011d05b263cd2d44;hp=97390875d21d7d82fa1355677439544bf3dc6ab6;hb=HEAD;hpb=a69bfc83f6d2b79e94eeb39781d89b720b4482dc diff --git a/pvesm.adoc b/pvesm.adoc index 9739087..7ae4063 100644 --- a/pvesm.adoc +++ b/pvesm.adoc @@ -40,7 +40,7 @@ copy VM image data, so live migration is very fast in that case. The storage library (package `libpve-storage-perl`) uses a flexible plugin system to provide a common interface to all storage types. This -can be easily adopted to include further storage types in future. +can be easily adopted to include further storage types in the future. Storage Types @@ -48,48 +48,55 @@ Storage Types There are basically two different classes of storage types: +File level storage:: + +File level based storage technologies allow access to a fully featured (POSIX) +file system. They are in general more flexible than any Block level storage +(see below), and allow you to store content of any type. ZFS is probably the +most advanced system, and it has full support for snapshots and clones. + Block level storage:: Allows to store large 'raw' images. It is usually not possible to store other files (ISO, backups, ..) on such storage types. Most modern block level storage implementations support snapshots and clones. -RADOS, Sheepdog and DRBD are distributed systems, replicating storage +RADOS and GlusterFS are distributed systems, replicating storage data to different nodes. -File level storage:: - -They allow access to a full featured (POSIX) file system. They are -more flexible, and allows you to store any content type. ZFS is -probably the most advanced system, and it has full support for -snapshots and clones. - .Available storage types -[width="100%",cols="`, and is uniquely identified by its : + ... ---- The `: ` line starts the pool definition, which is then -followed by a list of properties. Most properties have values, but some of -them come with reasonable default. In that case you can omit the value. +followed by a list of properties. Most properties require a value. Some have +reasonable defaults, in which case you can omit the value. To be more specific, take a look at the default storage configuration after installation. It contains one special local storage pool named @@ -169,6 +177,12 @@ zfspool: local-zfs content images,rootdir ---- +CAUTION: It is problematic to have multiple storage configurations pointing to +the exact same underlying storage. Such an _aliased_ storage configuration can +lead to two different volume IDs ('volid') pointing to the exact same disk +image. {pve} expects that the images' volume IDs point to, are unique. Choosing +different content types for _aliased_ storage configurations can be fine, but +is not recommended. Common Storage Properties ~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -186,11 +200,11 @@ content:: A storage can support several content types, for example virtual disk images, cdrom iso images, container templates or container root directories. Not all storage types support all content types. One can set -this property to select for what this storage is used for. +this property to select what this storage is used for. images::: -KVM-Qemu VM images. +QEMU/KVM VM images. rootdir::: @@ -208,9 +222,16 @@ iso::: ISO images +snippets::: + +Snippet files, for example guest hook scripts + shared:: -Mark storage as shared. +Indicate that this is a single storage with the same contents on all nodes (or +all listed in the 'nodes' option). It will not make the contents of a local +storage automatically accessible to other nodes, it just marks an already shared +storage as such! disable:: @@ -218,12 +239,24 @@ You can use this flag to disable the storage completely. maxfiles:: -Maximum number of backup files per VM. Use `0` for unlimited. +Deprecated, please use `prune-backups` instead. Maximum number of backup files +per VM. Use `0` for unlimited. + +prune-backups:: + +Retention options for backups. For details, see +xref:vzdump_retention[Backup Retention]. format:: Default image format (`raw|qcow2|vmdk`) +preallocation:: + +Preallocation mode (`off|metadata|falloc|full`) for `raw` and `qcow2` images on +file-based storages. The default is `metadata`, which is treated like `off` for +`raw` images. When using network storages in combination with large `qcow2` +images, using `off` can help to avoid timeouts. WARNING: It is not advisable to use the same storage pool on different {pve} clusters. Some storage operation need exclusive access to the @@ -265,7 +298,7 @@ When you remove a VM or Container, the system also removes all associated volumes which are owned by that VM or Container. -Using the Command Line Interface +Using the Command-line Interface -------------------------------- It is recommended to familiarize yourself with the concept behind storage @@ -274,7 +307,7 @@ of those low level operations on the command line. Normally, allocation and removal of volumes is done by the VM and Container management tools. -Nevertheless, there is a command line tool called `pvesm` (``{pve} +Nevertheless, there is a command-line tool called `pvesm` (``{pve} Storage Manager''), which is able to perform common storage management tasks. @@ -340,16 +373,24 @@ List volumes allocated by VMID List iso images - pvesm list --iso + pvesm list --content iso List container templates - pvesm list --vztmpl + pvesm list --content vztmpl Show file system path for a volume pvesm path +Exporting the volume `local:103/vm-103-disk-0.qcow2` to the file `target`. +This is mostly used internally with `pvesm import`. +The stream format qcow2+size is different to the qcow2 format. +Consequently, the exported file cannot simply be attached to a VM. +This also holds for the other formats. + + pvesm export local:103/vm-103-disk-0.qcow2 qcow2+size target --with-snapshots 1 + ifdef::wiki[] See Also @@ -369,11 +410,17 @@ See Also * link:/wiki/Storage:_NFS[Storage: NFS] +* link:/wiki/Storage:_CIFS[Storage: CIFS] + +* link:/wiki/Storage:_Proxmox_Backup_Server[Storage: Proxmox Backup Server] + * link:/wiki/Storage:_RBD[Storage: RBD] +* link:/wiki/Storage:_CephFS[Storage: CephFS] + * link:/wiki/Storage:_ZFS[Storage: ZFS] -* link:/wiki/Storage:_ZFS_over_iSCSI[Storage: ZFS over iSCSI] +* link:/wiki/Storage:_ZFS_over_ISCSI[Storage: ZFS over ISCSI] endif::wiki[] @@ -385,6 +432,10 @@ include::pve-storage-dir.adoc[] include::pve-storage-nfs.adoc[] +include::pve-storage-cifs.adoc[] + +include::pve-storage-pbs.adoc[] + include::pve-storage-glusterfs.adoc[] include::pve-storage-zfspool.adoc[] @@ -399,6 +450,11 @@ include::pve-storage-iscsidirect.adoc[] include::pve-storage-rbd.adoc[] +include::pve-storage-cephfs.adoc[] + +include::pve-storage-btrfs.adoc[] + +include::pve-storage-zfs.adoc[] ifdef::manvolnum[]