Skip to content

Resource: proxmox_virtual_environment_storage_lvm

Warning

Deprecated: Use proxmox_storage_lvm instead. This resource will be removed in v1.0.

Manages LVM-based storage in Proxmox VE.

Example Usage

resource "proxmox_virtual_environment_storage_lvm" "example" {
  id    = "example-lvm"
  nodes = ["pve"]

  volume_group = "vg0"
  content      = ["images"]

  wipe_removed_volumes = false
}

Schema

Required

  • id (String) The unique identifier of the storage.
  • volume_group (String) The name of the volume group to use.

Optional

  • content (Set of String) The content types that can be stored on this storage. Valid values: backup (VM backups), images (VM disk images), import (VM disk images for import), iso (ISO images), rootdir (container root directories), snippets (cloud-init, hook scripts, etc.), vztmpl (container templates).
  • disable (Boolean) Whether the storage is disabled.
  • nodes (Set of String) A list of nodes where this storage is available.
  • shared (Boolean) Whether the storage is shared across all nodes.
  • wipe_removed_volumes (Boolean) Whether to zero-out data when removing LVMs.