meta data for this page
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
vm:proxmox:storage [2020/04/22 09:29] – created niziak | vm:proxmox:storage [2020/04/26 16:57] (current) – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Storage ====== | ====== Storage ====== | ||
- | iSCSI+LVM supports HA and Live Migration | + | ===== Terms ===== |
+ | * **shared** | ||
+ | * do not set local storage as shared, because content on each node is different | ||
+ | * One major benefit | ||
+ | * **thin-provisioning** - allocates block when they are written. | ||
+ | |||
+ | ===== Content types ===== | ||
+ | |||
+ | ^ 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 ===== | ||
+ | * **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 ===== | ||
+ | * Network | ||
+ | * LVM Group on iSCSI | ||
+ | * can be shared | ||
+ | * ZFS over iSCSI | ||
+ | * thin provisioning | ||
+ | * iSCSI target / iSCSI direct (user-level library '' | ||
+ | * NFS | ||
+ | * Ceph RDB | ||
+ | * GlusterFS | ||
+ | * Local storage | ||
+ | * LVM Group overy any block device | ||
+ | * LVM Thin pools: only on LOCAL - cannot be shared! | ||
+ | * Directory (storage on existing FS) | ||
+ | * ZFS | ||
+ | |||
+ | |||
+ | |||
+ | ===== Local storage ===== | ||
+ | |||
+ | * **Backups** - / | ||
+ | * **ISOs** - / | ||
+ | * **Images** - / | ||
+ | * **Templates** - / | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== storage for ISOs ==== | ||
+ | |||
+ | By default it is stored in '' | ||
+ | |||
+ | |||