LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pvesm-add

Add a storage backend definition in Proxmox VE

TLDR

Add a directory-backed storage
$ pvesm add dir [storage_name] --path [path/to/directory]
copy
Say what it is allowed to hold
$ pvesm add dir [storage_name] --path [path/to/directory] --content [iso,backup,vztmpl]
copy
Add an LVM volume group
$ pvesm add lvm [storage_name] --vgname [volume_group]
copy
Add an LVM-thin pool
$ pvesm add lvmthin [storage_name] --vgname [volume_group] --thinpool [pool_name]
copy
Add a ZFS pool
$ pvesm add zfspool [storage_name] --pool [zpool_name]
copy
Add a BTRFS subvolume
$ pvesm add btrfs [storage_name] --path [path/to/subvolume]
copy
Add an NFS export
$ pvesm add nfs [storage_name] --server [server_address] --export [/exports/pve]
copy
Add a CIFS or SMB share
$ pvesm add cifs [storage_name] --server [server_address] --share [share_name] --username [user]
copy
Add a Ceph RBD pool
$ pvesm add rbd [storage_name] --pool [pool_name] --monhost [monitor_address]
copy
Add a Proxmox Backup Server
$ pvesm add pbs [storage_name] --server [server_address] --datastore [datastore] --username [user@pbs]
copy
Add it disabled, so it can be configured before anything uses it
$ pvesm add dir [storage_name] --path [path/to/directory] --disable 1
copy

SYNOPSIS

pvesm add type storage [OPTIONS]

DESCRIPTION

pvesm add registers a new storage definition in the Proxmox VE cluster. Storage backends hold VM disks, container volumes, ISOs, templates, and backups. Definitions are stored cluster-wide and become available to `qm` and `pct` once reachable from a node.Supported types include local directories, NFS, CIFS, LVM, LVM-thin, ZFS pools, Ceph RBD, and iSCSI, among others. Options vary by type; see `man pvesm` for the full matrix.

PARAMETERS

type

Storage type (e.g. `dir`, `lvm`, `lvmthin`, `nfs`, `cifs`, `zfspool`, `rbd`, `iscsi`)
storage
Unique storage identifier (cluster-wide name)
--path path
Directory path (for `dir` type)
--vgname name
Volume group name (for LVM types)
--thinpool name
Thin pool logical volume name (for `lvmthin`)
--content types
Allowed content types (e.g. `images`, `iso`, `backup`, `vztmpl`, `rootdir`)
--nodes list
Restrict storage to listed cluster nodes

CAVEATS

Adding a definition does not create the underlying storage if it does not exist (e.g. LVM volume groups must already exist). Paths and network shares must be reachable from every node where the storage is enabled. Duplicate storage IDs are rejected.

HISTORY

Part of Proxmox VE storage management (`pvesm`).

SEE ALSO

pvesm(1), qm(1), pct(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid