meta data for this page
  •  

This is an old revision of the document!


Storage

Content types

  • images
  • none - prevent using block device directly for VMs (to create LVM on top)
  • iso
  • vztmpl
  • backup
  • snippets

Default storage for ZFS

  • local: file-level storage - you can upload iso images and place backups there.
  • local-zfs: this is used to store VM images.

Note: Both resides on the same zfs pool.

/etc/pve/storage.cfg
dir: local
        path /var/lib/vz
        content iso,vztmpl,backup

zfspool: local-zfs
        pool rpool/data
        sparse 1
        content images,rootdir

Storage types

  • File level storage
    • poll types:
      • directory shared: NO
      • glusterFS 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
    • iscsidirect iSCSI user mode (libiscsi2)
      • content types: images
      • format: raw, shared: YES, no snapshots, no clones
    • iscsi
      • content types: images, none
      • format: raw, shared: YES, no snapshots, no clones
    • LVM
      • possible to create on top of iSCSI LUN to get managable disk space
      • content types: images, rootdir
      • format: raw, shared: YES, no snapshots, no clones
    • ZFS over iSCSI
      • benefits of ZFS:
        • for VMs: zfs volume per VM, live snaphots, cloning
        • thin provvision
  • ZFS
    • local node ZFS

File level storage dir layout

  • images - (VM images) - images/<VMID>/
    • raw, qcow2, vmdk
  • iso - (ISO images) - template/iso/
  • vztmpl - (Container templates) - template/cache/
  • backup - (Backup files) - dump/
  • snippets - (Snippets) - snippets/

poll type

  • Network storage
    • LVM Group on iSCSI
      • can be shared
    • ZFS over iSCSI
      • thin provisioning
    • iSCSI target / iSCSI direct (user-level library libiscsi2)
    • 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 - /var/lib/vz/dump
  • ISOs - /var/lib/vz/template/iso
  • Images - /var/lib/vz/images
  • Templates - /var/lib/vz/template/cache

storage for ISOs

By default it is stored in local storage. It is possible to upload ISOs directly using SCP to /var/lib/vs/template/iso.