2016-01-05 11:14:03 +01:00
*pvesm* `<COMMAND> [ARGS] [OPTIONS]`
*pvesm add* `<type> <storage>` `[OPTIONS]`
Create a new storage.
2019-06-25 12:45:44 +02:00
`<type>`: `<cephfs | cifs | dir | drbd | glusterfs | iscsi | iscsidirect | lvm | lvmthin | nfs | rbd | zfs | zfspool>` ::
2016-01-05 11:14:03 +01:00
Storage type.
2016-11-05 16:49:43 +01:00
`<storage>`: `<string>` ::
2016-01-05 11:14:03 +01:00
The storage identifier.
2017-10-19 09:30:23 +02:00
`--authsupported` `<string>` ::
2016-01-05 11:14:03 +01:00
Authsupported.
2017-10-19 09:30:23 +02:00
`--base` `<string>` ::
2016-01-05 11:14:03 +01:00
Base volume. This volume is automatically activated.
2017-10-19 09:30:23 +02:00
`--blocksize` `<string>` ::
2016-01-05 11:14:03 +01:00
block size
2018-03-22 13:17:37 +01:00
`--bwlimit` `[clone=<LIMIT>] [,default=<LIMIT>] [,migration=<LIMIT>] [,move=<LIMIT>] [,restore=<LIMIT>]` ::
Set bandwidth/io limits various operations.
2017-10-19 09:30:23 +02:00
`--comstar_hg` `<string>` ::
2016-01-05 11:14:03 +01:00
host group for comstar views
2017-10-19 09:30:23 +02:00
`--comstar_tg` `<string>` ::
2016-01-05 11:14:03 +01:00
target group for comstar views
2017-10-19 09:30:23 +02:00
`--content` `<string>` ::
2016-01-05 11:14:03 +01:00
2016-04-15 16:49:00 +02:00
Allowed content types.
+
2016-05-19 16:14:05 +02:00
NOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs.
2016-01-05 11:14:03 +01:00
2017-10-19 09:30:23 +02:00
`--disable` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Flag to disable the storage.
2018-03-22 13:17:37 +01:00
`--domain` `<string>` ::
CIFS domain.
2017-10-19 09:30:23 +02:00
`--export` `<string>` ::
2016-01-05 11:14:03 +01:00
NFS export path.
2017-10-19 09:30:23 +02:00
`--format` `<string>` ::
2016-01-05 11:14:03 +01:00
2016-04-15 16:49:00 +02:00
Default image format.
2016-01-05 11:14:03 +01:00
2018-07-10 11:35:10 +02:00
`--fuse` `<boolean>` ::
Mount CephFS through FUSE.
2017-10-19 09:30:23 +02:00
`--is_mountpoint` `<string>` ('default =' `no`)::
2016-09-29 12:18:57 +02:00
2017-10-19 09:30:23 +02:00
Assume the given path is an externally managed mountpoint and consider the storage offline if it is not mounted. Using a boolean (yes/no) value serves as a shortcut to using the target path in this field.
2016-09-29 12:18:57 +02:00
2017-10-19 09:30:23 +02:00
`--iscsiprovider` `<string>` ::
2016-01-05 11:14:03 +01:00
iscsi provider
2017-10-19 09:30:23 +02:00
`--krbd` `<boolean>` ::
2016-01-05 11:14:03 +01:00
2018-11-29 13:12:20 +01:00
Always access rbd through krbd kernel module.
2016-01-05 11:14:03 +01:00
2018-10-23 12:57:54 +02:00
`--lio_tpg` `<string>` ::
target portal group for Linux LIO targets
2017-10-19 09:30:23 +02:00
`--maxfiles` `<integer> (0 - N)` ::
2016-01-05 11:14:03 +01:00
Maximal number of backup files per VM. Use '0' for unlimted.
2017-10-19 09:30:23 +02:00
`--mkdir` `<boolean>` ('default =' `yes`)::
2016-09-29 12:18:57 +02:00
Create the directory if it doesn't exist.
2017-10-19 09:30:23 +02:00
`--monhost` `<string>` ::
2016-01-05 11:14:03 +01:00
2017-10-19 09:30:23 +02:00
IP addresses of monitors (for external clusters).
2016-01-05 11:14:03 +01:00
2017-10-19 09:30:23 +02:00
`--nodes` `<string>` ::
2016-01-05 11:14:03 +01:00
List of cluster node names.
2017-10-19 09:30:23 +02:00
`--nowritecache` `<boolean>` ::
2016-01-05 11:14:03 +01:00
disable write caching on the target
2017-10-19 09:30:23 +02:00
`--options` `<string>` ::
2016-01-05 11:14:03 +01:00
NFS mount options (see 'man nfs')
2018-07-10 11:35:10 +02:00
`--password` `<password>` ::
2018-03-22 13:17:37 +01:00
Password for CIFS share.
2017-10-19 09:30:23 +02:00
`--path` `<string>` ::
2016-01-05 11:14:03 +01:00
File system path.
2017-10-19 09:30:23 +02:00
`--pool` `<string>` ::
2016-01-05 11:14:03 +01:00
Pool.
2017-10-19 09:30:23 +02:00
`--portal` `<string>` ::
2016-01-05 11:14:03 +01:00
iSCSI portal (IP or DNS name with optional port).
2017-10-19 09:30:23 +02:00
`--redundancy` `<integer> (1 - 16)` ('default =' `2`)::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
The redundancy count specifies the number of nodes to which the resource should be deployed. It must be at least 1 and at most the number of nodes in the cluster.
2016-01-05 11:14:03 +01:00
2017-10-19 09:30:23 +02:00
`--saferemove` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Zero-out data when removing LVs.
2017-10-19 09:30:23 +02:00
`--saferemove_throughput` `<string>` ::
2016-01-05 11:14:03 +01:00
Wipe throughput (cstream -t parameter value).
2017-10-19 09:30:23 +02:00
`--server` `<string>` ::
2016-01-05 11:14:03 +01:00
Server IP or DNS name.
2017-10-19 09:30:23 +02:00
`--server2` `<string>` ::
2016-01-05 11:14:03 +01:00
Backup volfile server IP or DNS name.
+
NOTE: Requires option(s): `server`
2018-03-22 13:17:37 +01:00
`--share` `<string>` ::
CIFS share.
2017-10-19 09:30:23 +02:00
`--shared` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Mark storage as shared.
2018-07-10 11:35:10 +02:00
`--smbversion` `<2.0 | 2.1 | 3.0>` ::
2018-03-22 13:17:37 +01:00
2018-07-10 11:35:10 +02:00
SMB protocol version
2018-03-22 13:17:37 +01:00
2017-10-19 09:30:23 +02:00
`--sparse` `<boolean>` ::
2016-01-05 11:14:03 +01:00
use sparse volumes
2018-07-10 11:35:10 +02:00
`--subdir` `<string>` ::
Subdir to mount.
2017-10-19 09:30:23 +02:00
`--tagged_only` `<boolean>` ::
2016-09-29 12:18:57 +02:00
Only use logical volumes tagged with 'pve-vm-ID'.
2017-10-19 09:30:23 +02:00
`--target` `<string>` ::
2016-01-05 11:14:03 +01:00
iSCSI target.
2017-10-19 09:30:23 +02:00
`--thinpool` `<string>` ::
2016-01-05 11:14:03 +01:00
LVM thin pool LV name.
2017-10-19 09:30:23 +02:00
`--transport` `<rdma | tcp | unix>` ::
2016-01-05 11:14:03 +01:00
Gluster transport: tcp or rdma
2017-10-19 09:30:23 +02:00
`--username` `<string>` ::
2016-01-05 11:14:03 +01:00
RBD Id.
2017-10-19 09:30:23 +02:00
`--vgname` `<string>` ::
2016-01-05 11:14:03 +01:00
Volume group name.
2017-10-19 09:30:23 +02:00
`--volume` `<string>` ::
2016-01-05 11:14:03 +01:00
Glusterfs Volume.
*pvesm alloc* `<storage> <vmid> <filename> <size>` `[OPTIONS]`
Allocate disk images.
2016-11-05 16:49:43 +01:00
`<storage>`: `<string>` ::
2016-01-05 11:14:03 +01:00
The storage identifier.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
Specify owner VM
2016-11-05 16:49:43 +01:00
`<filename>`: `<string>` ::
2016-01-05 11:14:03 +01:00
The name of the file to create.
2016-11-05 16:49:43 +01:00
`<size>`: `\d+[MG]?` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Size in kilobyte (1024 bytes). Optional suffixes 'M' (megabyte, 1024K) and 'G' (gigabyte, 1024M)
2016-01-05 11:14:03 +01:00
2017-10-19 09:30:23 +02:00
`--format` `<qcow2 | raw | subvol>` ::
2016-01-05 11:14:03 +01:00
no description available
+
NOTE: Requires option(s): `size`
2018-11-29 13:12:20 +01:00
*pvesm cifsscan*
2018-03-22 13:17:37 +01:00
2018-11-29 13:12:20 +01:00
An alias for 'pvesm scan cifs'.
2018-03-22 13:17:37 +01:00
2017-06-29 18:01:29 +02:00
*pvesm export* `<volume> <format> <filename>` `[OPTIONS]`
Export a volume.
`<volume>`: `<string>` ::
Volume identifier
`<format>`: `<qcow2+size | raw+size | tar+size | vmdk+size | zfs>` ::
Export stream format
`<filename>`: `<string>` ::
Destination file name
2017-10-19 09:30:23 +02:00
`--base` `(?^:[a-z0-9_\-]{1,40})` ::
2017-06-29 18:01:29 +02:00
Snapshot to start an incremental stream from
2017-10-19 09:30:23 +02:00
`--snapshot` `(?^:[a-z0-9_\-]{1,40})` ::
2017-06-29 18:01:29 +02:00
Snapshot to export
2017-10-19 09:30:23 +02:00
`--with-snapshots` `<boolean>` ('default =' `0`)::
2017-06-29 18:01:29 +02:00
Whether to include intermediate snapshots in the stream
2016-09-29 12:18:57 +02:00
*pvesm extractconfig* `<volume>`
Extract configuration from vzdump backup archive.
2016-11-05 16:49:43 +01:00
`<volume>`: `<string>` ::
2016-09-29 12:18:57 +02:00
Volume identifier
2016-01-05 11:14:03 +01:00
*pvesm free* `<volume>` `[OPTIONS]`
Delete volume
2016-11-05 16:49:43 +01:00
`<volume>`: `<string>` ::
2016-01-05 11:14:03 +01:00
Volume identifier
2017-10-19 09:30:23 +02:00
`--storage` `<string>` ::
2016-01-05 11:14:03 +01:00
The storage identifier.
2018-11-29 13:12:20 +01:00
*pvesm glusterfsscan*
2016-01-05 11:14:03 +01:00
2018-11-29 13:12:20 +01:00
An alias for 'pvesm scan glusterfs'.
2016-01-05 11:14:03 +01:00
2018-02-12 09:50:48 +01:00
*pvesm help* `[OPTIONS]`
2016-01-05 11:14:03 +01:00
Get help about specified command.
2018-02-12 09:50:48 +01:00
`--extra-args` `<array>` ::
2016-01-05 11:14:03 +01:00
2018-02-12 09:50:48 +01:00
Shows help for a specific command
2016-01-05 11:14:03 +01:00
2017-10-19 09:30:23 +02:00
`--verbose` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Verbose output format.
2017-06-29 18:01:29 +02:00
*pvesm import* `<volume> <format> <filename>` `[OPTIONS]`
Import a volume.
`<volume>`: `<string>` ::
Volume identifier
`<format>`: `<qcow2+size | raw+size | tar+size | vmdk+size | zfs>` ::
Import stream format
`<filename>`: `<string>` ::
2019-07-15 21:48:48 +02:00
Source file name. For '-' stdin is used, the tcp://<IP-or-CIDR> format allows to use a TCP connection as input. Else, the file is treated as common file.
2017-06-29 18:01:29 +02:00
2017-10-19 09:30:23 +02:00
`--base` `(?^:[a-z0-9_\-]{1,40})` ::
2017-06-29 18:01:29 +02:00
Base snapshot of an incremental stream
2017-10-19 09:30:23 +02:00
`--delete-snapshot` `(?^:[a-z0-9_\-]{1,80})` ::
2017-06-29 18:01:29 +02:00
A snapshot to delete on success
2017-10-19 09:30:23 +02:00
`--with-snapshots` `<boolean>` ('default =' `0`)::
2017-06-29 18:01:29 +02:00
Whether the stream includes intermediate snapshots
2018-11-29 13:12:20 +01:00
*pvesm iscsiscan*
2016-01-05 11:14:03 +01:00
2018-11-29 13:12:20 +01:00
An alias for 'pvesm scan iscsi'.
2016-01-05 11:14:03 +01:00
*pvesm list* `<storage>` `[OPTIONS]`
List storage content.
2016-11-05 16:49:43 +01:00
`<storage>`: `<string>` ::
2016-01-05 11:14:03 +01:00
The storage identifier.
2017-10-19 09:30:23 +02:00
`--content` `<string>` ::
2016-01-05 11:14:03 +01:00
Only list content of this type.
2017-10-19 09:30:23 +02:00
`--vmid` `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
Only list images for this VM
*pvesm lvmscan*
2018-11-29 13:12:20 +01:00
An alias for 'pvesm scan lvm'.
2016-04-07 08:20:32 +02:00
2018-11-29 13:12:20 +01:00
*pvesm lvmthinscan*
2016-04-07 08:20:32 +02:00
2018-11-29 13:12:20 +01:00
An alias for 'pvesm scan lvmthin'.
2016-04-07 08:20:32 +02:00
2018-11-29 13:12:20 +01:00
*pvesm nfsscan*
2016-01-05 11:14:03 +01:00
2018-11-29 13:12:20 +01:00
An alias for 'pvesm scan nfs'.
2016-01-05 11:14:03 +01:00
*pvesm path* `<volume>`
Get filesystem path for specified volume
2016-11-05 16:49:43 +01:00
`<volume>`: `<string>` ::
2016-01-05 11:14:03 +01:00
Volume identifier
*pvesm remove* `<storage>`
Delete storage configuration.
2016-11-05 16:49:43 +01:00
`<storage>`: `<string>` ::
2016-01-05 11:14:03 +01:00
The storage identifier.
2018-11-29 13:12:20 +01:00
*pvesm scan cifs* `<server>` `[OPTIONS]`
Scan remote CIFS server.
`<server>`: `<string>` ::
The server address (name or IP).
`--domain` `<string>` ::
SMB domain (Workgroup).
`--password` `<password>` ::
User password.
`--username` `<string>` ::
User name.
*pvesm scan glusterfs* `<server>`
Scan remote GlusterFS server.
`<server>`: `<string>` ::
The server address (name or IP).
*pvesm scan iscsi* `<portal>`
Scan remote iSCSI server.
`<portal>`: `<string>` ::
The iSCSI portal (IP or DNS name with optional port).
*pvesm scan lvm*
List local LVM volume groups.
*pvesm scan lvmthin* `<vg>`
List local LVM Thin Pools.
`<vg>`: `[a-zA-Z0-9\.\+\_][a-zA-Z0-9\.\+\_\-]+` ::
no description available
*pvesm scan nfs* `<server>`
Scan remote NFS server.
`<server>`: `<string>` ::
The server address (name or IP).
*pvesm scan zfs*
Scan zfs pool list on local node.
2016-01-05 11:14:03 +01:00
*pvesm set* `<storage>` `[OPTIONS]`
Update storage configuration.
2016-11-05 16:49:43 +01:00
`<storage>`: `<string>` ::
2016-01-05 11:14:03 +01:00
The storage identifier.
2017-10-19 09:30:23 +02:00
`--blocksize` `<string>` ::
2016-01-05 11:14:03 +01:00
block size
2018-03-22 13:17:37 +01:00
`--bwlimit` `[clone=<LIMIT>] [,default=<LIMIT>] [,migration=<LIMIT>] [,move=<LIMIT>] [,restore=<LIMIT>]` ::
Set bandwidth/io limits various operations.
2017-10-19 09:30:23 +02:00
`--comstar_hg` `<string>` ::
2016-01-05 11:14:03 +01:00
host group for comstar views
2017-10-19 09:30:23 +02:00
`--comstar_tg` `<string>` ::
2016-01-05 11:14:03 +01:00
target group for comstar views
2017-10-19 09:30:23 +02:00
`--content` `<string>` ::
2016-01-05 11:14:03 +01:00
2016-04-15 16:49:00 +02:00
Allowed content types.
+
2016-05-19 16:14:05 +02:00
NOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs.
2016-01-05 11:14:03 +01:00
2017-10-19 09:30:23 +02:00
`--delete` `<string>` ::
2016-01-05 11:14:03 +01:00
A list of settings you want to delete.
2017-10-19 09:30:23 +02:00
`--digest` `<string>` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
2016-01-05 11:14:03 +01:00
2017-10-19 09:30:23 +02:00
`--disable` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Flag to disable the storage.
2018-03-22 13:17:37 +01:00
`--domain` `<string>` ::
CIFS domain.
2017-10-19 09:30:23 +02:00
`--format` `<string>` ::
2016-01-05 11:14:03 +01:00
2016-04-15 16:49:00 +02:00
Default image format.
2016-01-05 11:14:03 +01:00
2018-07-10 11:35:10 +02:00
`--fuse` `<boolean>` ::
Mount CephFS through FUSE.
2017-10-19 09:30:23 +02:00
`--is_mountpoint` `<string>` ('default =' `no`)::
2016-09-29 12:18:57 +02:00
2017-10-19 09:30:23 +02:00
Assume the given path is an externally managed mountpoint and consider the storage offline if it is not mounted. Using a boolean (yes/no) value serves as a shortcut to using the target path in this field.
2016-09-29 12:18:57 +02:00
2017-10-19 09:30:23 +02:00
`--krbd` `<boolean>` ::
2016-01-05 11:14:03 +01:00
2018-11-29 13:12:20 +01:00
Always access rbd through krbd kernel module.
2016-01-05 11:14:03 +01:00
2018-10-23 12:57:54 +02:00
`--lio_tpg` `<string>` ::
target portal group for Linux LIO targets
2017-10-19 09:30:23 +02:00
`--maxfiles` `<integer> (0 - N)` ::
2016-01-05 11:14:03 +01:00
Maximal number of backup files per VM. Use '0' for unlimted.
2017-10-19 09:30:23 +02:00
`--mkdir` `<boolean>` ('default =' `yes`)::
2016-09-29 12:18:57 +02:00
Create the directory if it doesn't exist.
2017-10-19 09:30:23 +02:00
`--monhost` `<string>` ::
IP addresses of monitors (for external clusters).
`--nodes` `<string>` ::
2016-01-05 11:14:03 +01:00
List of cluster node names.
2017-10-19 09:30:23 +02:00
`--nowritecache` `<boolean>` ::
2016-01-05 11:14:03 +01:00
disable write caching on the target
2017-10-19 09:30:23 +02:00
`--options` `<string>` ::
2016-01-05 11:14:03 +01:00
NFS mount options (see 'man nfs')
2018-07-10 11:35:10 +02:00
`--password` `<string>` ::
2018-03-22 13:17:37 +01:00
Password for CIFS share.
2017-10-19 09:30:23 +02:00
`--pool` `<string>` ::
2016-01-05 11:14:03 +01:00
Pool.
2017-10-19 09:30:23 +02:00
`--redundancy` `<integer> (1 - 16)` ('default =' `2`)::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
The redundancy count specifies the number of nodes to which the resource should be deployed. It must be at least 1 and at most the number of nodes in the cluster.
2016-01-05 11:14:03 +01:00
2017-10-19 09:30:23 +02:00
`--saferemove` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Zero-out data when removing LVs.
2017-10-19 09:30:23 +02:00
`--saferemove_throughput` `<string>` ::
2016-01-05 11:14:03 +01:00
Wipe throughput (cstream -t parameter value).
2017-10-19 09:30:23 +02:00
`--server` `<string>` ::
2016-01-05 11:14:03 +01:00
Server IP or DNS name.
2017-10-19 09:30:23 +02:00
`--server2` `<string>` ::
2016-01-05 11:14:03 +01:00
Backup volfile server IP or DNS name.
+
NOTE: Requires option(s): `server`
2017-10-19 09:30:23 +02:00
`--shared` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Mark storage as shared.
2018-07-10 11:35:10 +02:00
`--smbversion` `<2.0 | 2.1 | 3.0>` ::
2018-03-22 13:17:37 +01:00
2018-07-10 11:35:10 +02:00
SMB protocol version
2018-03-22 13:17:37 +01:00
2017-10-19 09:30:23 +02:00
`--sparse` `<boolean>` ::
2016-01-05 11:14:03 +01:00
use sparse volumes
2018-07-10 11:35:10 +02:00
`--subdir` `<string>` ::
Subdir to mount.
2017-10-19 09:30:23 +02:00
`--tagged_only` `<boolean>` ::
2016-09-29 12:18:57 +02:00
Only use logical volumes tagged with 'pve-vm-ID'.
2017-10-19 09:30:23 +02:00
`--transport` `<rdma | tcp | unix>` ::
2016-01-05 11:14:03 +01:00
Gluster transport: tcp or rdma
2017-10-19 09:30:23 +02:00
`--username` `<string>` ::
2016-01-05 11:14:03 +01:00
RBD Id.
*pvesm status* `[OPTIONS]`
Get status for all datastores.
2017-10-19 09:30:23 +02:00
`--content` `<string>` ::
2016-01-05 11:14:03 +01:00
Only list stores which support this content type.
2017-10-19 09:30:23 +02:00
`--enabled` `<boolean>` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
Only list stores which are enabled (not disabled in config).
2018-02-12 09:50:48 +01:00
`--format` `<boolean>` ('default =' `0`)::
Include information about formats
2017-10-19 09:30:23 +02:00
`--storage` `<string>` ::
2016-01-05 11:14:03 +01:00
Only list status for specified storage
2017-10-19 09:30:23 +02:00
`--target` `<string>` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
If target is different to 'node', we only lists shared storages which content is accessible on this 'node' and the specified 'target' node.
2016-01-05 11:14:03 +01:00
*pvesm zfsscan*
2018-11-29 13:12:20 +01:00
An alias for 'pvesm scan zfs'.
2016-01-05 11:14:03 +01:00