meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
vm:proxmox:storage [2020/04/22 10:11] – niziak | vm:proxmox:storage [2020/04/26 16:57] (current) – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Storage ====== | ====== Storage ====== | ||
- | * Network | + | |
+ | ===== Terms ===== | ||
+ | * **shared** | ||
+ | * do not set local storage as shared, because content on each node is different | ||
+ | * One major benefit of storing VMs on shared storage is the ability to live-migrate running machines without any downtime, as all nodes in the cluster have direct access to VM disk images. There is no need to copy VM image data, so live migration is very fast in that case. | ||
+ | * **thin-provisioning** - allocates block when they are written. | ||
+ | |||
+ | ===== Content types ===== | ||
+ | |||
+ | ^ content types | ||
+ | | | ||
+ | | ISO image | ||
+ | | Container template | vztmpl | ||
+ | | VZDump backup file | backup | ||
+ | | Container | ||
+ | | | none | prevent using block device directly for VMs (to create LVM on top) | | | ||
+ | | Snippets | ||
+ | |||
+ | '' | ||
+ | |||
+ | ==== File level storage dir layout ==== | ||
+ | * images - (VM images) - '' | ||
+ | * raw, qcow2, vmdk | ||
+ | * iso - (ISO images) - '' | ||
+ | * vztmpl - (Container templates) - '' | ||
+ | * backup - (Backup files) - '' | ||
+ | * snippets - (Snippets) - '' | ||
+ | |||
+ | ===== Default storage for ZFS ===== | ||
+ | * **local**: file-level storage - you can upload iso images and place backups there. | ||
+ | * **local-zfs**: | ||
+ | |||
+ | Note: Both resides on the same zfs pool. | ||
+ | |||
+ | <file | / | ||
+ | dir: local | ||
+ | path / | ||
+ | content iso, | ||
+ | |||
+ | zfspool: local-zfs | ||
+ | pool rpool/ | ||
+ | sparse 1 | ||
+ | content images, | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Storage types ===== | ||
+ | * File level storage | ||
+ | * poll types: | ||
+ | * **directory** shared: **NO** | ||
+ | * **glusterFS** shared: **YES** | ||
+ | * **nfs** shared: **YES** | ||
+ | * **cifs** shared: **YES** | ||
+ | * features | ||
+ | * any POSIX compatible filesystem pointed by path | ||
+ | * no snapshot by FS: VMs with qcow2 are capable to do snapshots | ||
+ | * any content type: | ||
+ | * virtual disk images, containers, templates, ISO images, backup files | ||
+ | * Block level storage | ||
+ | * '' | ||
+ | * content types: images | ||
+ | * format: raw, shared: YES, no snapshots, no clones | ||
+ | * '' | ||
+ | * content types: images, none | ||
+ | * format: raw, shared: YES, no snapshots, no clones | ||
+ | * '' | ||
+ | * possible to create on top of iSCSI LUN to get managable disk space | ||
+ | * content types: images, rootdir | ||
+ | * format: raw, shared: YES (iSCSI), no snapshots, no clones | ||
+ | * '' | ||
+ | * new thin volume type on top of existing LVM VG | ||
+ | * thin-provisioning | ||
+ | * content types: images, rootdir | ||
+ | * format: raw, shared: NO, snapshots, clones | ||
+ | * '' | ||
+ | * benefits of ZFS: | ||
+ | * for VMs: zfs volume per VM, live snaphots, cloning | ||
+ | * thin provision | ||
+ | * '' | ||
+ | * local node ZFS | ||
+ | * content types: images, rootdir | ||
+ | * format: raw, subvol; shared: NO, snapshots YES, clones YES | ||
+ | |||
+ | |||
+ | ===== poll type ===== | ||
+ | | ||
* LVM Group on iSCSI | * LVM Group on iSCSI | ||
* can be shared | * can be shared | ||
- | * iSCSI target/ | + | |
+ | * thin provisioning | ||
+ | | ||
* NFS | * NFS | ||
* Ceph RDB | * Ceph RDB | ||
* GlusterFS | * GlusterFS | ||
- | * Local | + | * Local storage |
* LVM Group overy any block device | * LVM Group overy any block device | ||
* LVM Thin pools: only on LOCAL - cannot be shared! | * LVM Thin pools: only on LOCAL - cannot be shared! | ||
Line 14: | Line 101: | ||
- | iSCSI+LVM supports HA and Live Migration of VMs --> mark LVM storage | + | |
+ | ===== Local storage ===== | ||
+ | |||
+ | * **Backups** | ||
+ | * **ISOs** | ||
+ | * **Images** - / | ||
+ | * **Templates** - / | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== storage for ISOs ==== | ||
+ | |||
+ | By default it is stored in '' | ||
+ | |||
+ | |||