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/24 16:56] – niziak | vm:proxmox:storage [2020/04/26 16:57] (current) – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Storage ====== | ====== Storage ====== | ||
+ | |||
+ | ===== 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 ===== | ||
- | * images | ||
- | * none - prevent using block device directly for VMs (to create LVM on top) | ||
- | * iso | ||
- | * vztmpl | ||
- | * backup | ||
- | * snippets | ||
+ | ^ content types | ||
+ | | Disk image | ||
+ | | 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 ===== | ===== Default storage for ZFS ===== | ||
* **local**: file-level storage - you can upload iso images and place backups there. | * **local**: file-level storage - you can upload iso images and place backups there. | ||
* **local-zfs**: | * **local-zfs**: | ||
+ | |||
Note: Both resides on the same zfs pool. | Note: Both resides on the same zfs pool. | ||
Line 32: | Line 51: | ||
* **directory** shared: **NO** | * **directory** shared: **NO** | ||
* **glusterFS** shared: **YES** | * **glusterFS** shared: **YES** | ||
+ | * **nfs** shared: **YES** | ||
+ | * **cifs** shared: **YES** | ||
* features | * features | ||
* any POSIX compatible filesystem pointed by path | * any POSIX compatible filesystem pointed by path | ||
Line 47: | Line 68: | ||
* possible to create on top of iSCSI LUN to get managable disk space | * possible to create on top of iSCSI LUN to get managable disk space | ||
* content types: images, rootdir | * content types: images, rootdir | ||
- | * format: raw, shared: YES, no snapshots, no clones | + | * 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, | ||
+ | * '' | ||
* benefits of ZFS: | * benefits of ZFS: | ||
* for VMs: zfs volume per VM, live snaphots, cloning | * for VMs: zfs volume per VM, live snaphots, cloning | ||
- | * thin provvision | + | * thin provision |
* '' | * '' | ||
* local node ZFS | * local node ZFS | ||
- | + | | |
- | ==== File level storage dir layout ==== | + | * format: |
- | | + | |
- | * raw, qcow2, vmdk | + | |
- | * iso - (ISO images) - '' | + | |
- | * vztmpl - (Container templates) - '' | + | |
- | * backup - (Backup files) - '' | + | |
- | * snippets - (Snippets) - '' | + | |