]> git.proxmox.com Git - pve-docs.git/blobdiff - pveceph.1-synopsis.adoc
fix #5429: network: override device names: include Type=ether
[pve-docs.git] / pveceph.1-synopsis.adoc
index a1ee3ee52c9bd1627ae14122ea9fac2f264eff89..12f450138301dd2741abc5a142dc0dc0a0095ed0 100644 (file)
 *pveceph* `<COMMAND> [ARGS] [OPTIONS]`
 
+*pveceph createmgr*
+
+An alias for 'pveceph mgr create'.
+
 *pveceph createmon*
 
-Create Ceph Monitor
+An alias for 'pveceph mon create'.
 
+*pveceph createosd*
 
+An alias for 'pveceph osd create'.
 
+*pveceph createpool*
 
-*pveceph createosd* `<dev>` `[OPTIONS]`
+An alias for 'pveceph pool create'.
 
-Create OSD
+*pveceph destroymgr*
 
-`<dev>`: `<string>` ::
+An alias for 'pveceph mgr destroy'.
 
-Block device name.
+*pveceph destroymon*
 
-`-bluestore` `<boolean>` ('default =' `0`)::
+An alias for 'pveceph mon destroy'.
 
-Use bluestore instead of filestore.
+*pveceph destroyosd*
 
-`-fstype` `<btrfs | ext4 | xfs>` ('default =' `xfs`)::
+An alias for 'pveceph osd destroy'.
 
-File system type (filestore only).
+*pveceph destroypool*
 
-`-journal_dev` `<string>` ::
+An alias for 'pveceph pool destroy'.
 
-Block device name for journal.
+*pveceph fs create* `[OPTIONS]`
 
+Create a Ceph filesystem
 
+`--add-storage` `<boolean>` ('default =' `0`)::
 
+Configure the created CephFS as storage for this cluster.
 
-*pveceph createpool* `<name>` `[OPTIONS]`
+`--name` `<string>` ('default =' `cephfs`)::
 
-Create POOL
+The ceph filesystem name.
+
+`--pg_num` `<integer> (8 - 32768)` ('default =' `128`)::
+
+Number of placement groups for the backing data pool. The metadata pool will use a quarter of this.
+
+*pveceph fs destroy* `<name>` `[OPTIONS]`
+
+Destroy a Ceph filesystem
 
 `<name>`: `<string>` ::
 
-The name of the pool. It must be unique.
+The ceph filesystem name.
 
-`-crush_ruleset` `<integer> (0 - 32768)` ('default =' `0`)::
+`--remove-pools` `<boolean>` ('default =' `0`)::
 
-The ruleset to use for mapping object placement in the cluster.
+Remove data and metadata pools configured for this fs.
 
-`-min_size` `<integer> (1 - 7)` ('default =' `1`)::
+`--remove-storages` `<boolean>` ('default =' `0`)::
 
-Minimum number of replicas per object
+Remove all pveceph-managed storages configured for this fs.
 
-`-pg_num` `<integer> (8 - 32768)` ('default =' `64`)::
+*pveceph help* `[OPTIONS]`
 
-Number of placement groups.
+Get help about specified command.
 
-`-size` `<integer> (1 - 7)` ('default =' `2`)::
+`--extra-args` `<array>` ::
 
-Number of replicas per object
+Shows help for a specific command
+
+`--verbose` `<boolean>` ::
+
+Verbose output format.
+
+*pveceph init* `[OPTIONS]`
+
+Create initial ceph default configuration and setup symlinks.
+
+`--cluster-network` `<string>` ::
+
+Declare a separate cluster network, OSDs will routeheartbeat, object replication and recovery traffic over it
++
+NOTE: Requires option(s): `network`
+
+`--disable_cephx` `<boolean>` ('default =' `0`)::
+
+Disable cephx authentication.
++
+WARNING: cephx is a security feature protecting against man-in-the-middle attacks. Only consider disabling cephx if your network is private!
+
+`--min_size` `<integer> (1 - 7)` ('default =' `2`)::
+
+Minimum number of available replicas per object to allow I/O
+
+`--network` `<string>` ::
+
+Use specific network for all ceph related traffic
+
+`--pg_bits` `<integer> (6 - 14)` ('default =' `6`)::
+
+Placement group bits, used to specify the default number of placement groups.
++
+Depreacted. This setting was deprecated in recent Ceph versions.
+
+`--size` `<integer> (1 - 7)` ('default =' `3`)::
 
+Targeted number of replicas per object
+
+*pveceph install* `[OPTIONS]`
+
+Install ceph related packages.
+
+`--allow-experimental` `<boolean>` ('default =' `0`)::
+
+Allow experimental versions. Use with care!
+
+`--repository` `<enterprise | no-subscription | test>` ('default =' `enterprise`)::
+
+Ceph repository to use.
+
+`--version` `<quincy | reef>` ('default =' `quincy`)::
+
+Ceph version to install.
+
+*pveceph lspools*
+
+An alias for 'pveceph pool ls'.
+
+*pveceph mds create* `[OPTIONS]`
+
+Create Ceph Metadata Server (MDS)
+
+`--hotstandby` `<boolean>` ('default =' `0`)::
+
+Determines whether a ceph-mds daemon should poll and replay the log of an active MDS. Faster switch on MDS failure, but needs more idle resources.
+
+`--name` `[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?` ('default =' `nodename`)::
+
+The ID for the mds, when omitted the same as the nodename
 
+*pveceph mds destroy* `<name>`
 
-*pveceph destroymon* `<monid>`
+Destroy Ceph Metadata Server
 
-Destroy Ceph monitor.
+`<name>`: `[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?` ::
 
-`<monid>`: `<integer>` ::
+The name (ID) of the mds
+
+*pveceph mgr create* `[OPTIONS]`
+
+Create Ceph Manager
+
+`--id` `[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?` ::
+
+The ID for the manager, when omitted the same as the nodename
+
+*pveceph mgr destroy* `<id>`
+
+Destroy Ceph Manager.
+
+`<id>`: `[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?` ::
+
+The ID of the manager
+
+*pveceph mon create* `[OPTIONS]`
+
+Create Ceph Monitor and Manager
+
+`--mon-address` `<string>` ::
+
+Overwrites autodetected monitor IP address(es). Must be in the public network(s) of Ceph.
+
+`--monid` `[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?` ::
+
+The ID for the monitor, when omitted the same as the nodename
+
+*pveceph mon destroy* `<monid>`
+
+Destroy Ceph Monitor and Manager.
+
+`<monid>`: `[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?` ::
 
 Monitor ID
 
+*pveceph osd create* `<dev>` `[OPTIONS]`
 
+Create OSD
 
+`<dev>`: `<string>` ::
 
-*pveceph destroyosd* `<osdid>` `[OPTIONS]`
+Block device name.
+
+`--crush-device-class` `<string>` ::
+
+Set the device class of the OSD in crush.
+
+`--db_dev` `<string>` ::
+
+Block device name for block.db.
+
+`--db_dev_size` `<number> (1 - N)` ('default =' `bluestore_block_db_size or 10% of OSD size`)::
+
+Size in GiB for block.db.
++
+NOTE: Requires option(s): `db_dev`
+
+`--encrypted` `<boolean>` ('default =' `0`)::
+
+Enables encryption of the OSD.
+
+`--osds-per-device` `<integer> (1 - N)` ::
+
+OSD services per physical device. Only useful for fast NVMe devices"
+                   ." to utilize their performance better.
+
+`--wal_dev` `<string>` ::
+
+Block device name for block.wal.
+
+`--wal_dev_size` `<number> (0.5 - N)` ('default =' `bluestore_block_wal_size or 1% of OSD size`)::
+
+Size in GiB for block.wal.
++
+NOTE: Requires option(s): `wal_dev`
+
+*pveceph osd destroy* `<osdid>` `[OPTIONS]`
 
 Destroy OSD
 
@@ -75,123 +235,185 @@ Destroy OSD
 
 OSD ID
 
-`-cleanup` `<boolean>` ('default =' `0`)::
+`--cleanup` `<boolean>` ('default =' `0`)::
 
 If set, we remove partition table entries.
 
+*pveceph osd details* `<osdid>` `[OPTIONS]` `[FORMAT_OPTIONS]`
 
+Get OSD details.
 
+`<osdid>`: `<string>` ::
 
-*pveceph destroypool* `<name>` `[OPTIONS]`
+ID of the OSD
 
-Destroy pool
+`--verbose` `<boolean>` ('default =' `0`)::
+
+Print verbose information, same as json-pretty output format.
+
+*pveceph pool create* `<name>` `[OPTIONS]`
+
+Create Ceph pool
 
 `<name>`: `<string>` ::
 
 The name of the pool. It must be unique.
 
-`-force` `<boolean>` ('default =' `0`)::
+`--add_storages` `<boolean>` ('default =' `0; for erasure coded pools: 1`)::
 
-If true, destroys pool even if in use
+Configure VM and CT storage using the new pool.
 
+`--application` `<cephfs | rbd | rgw>` ('default =' `rbd`)::
 
+The application of the pool.
 
+`--crush_rule` `<string>` ::
 
-*pveceph help* `[<cmd>]` `[OPTIONS]`
+The rule to use for mapping object placement in the cluster.
 
-Get help about specified command.
+`--erasure-coding` `k=<integer> ,m=<integer> [,device-class=<class>] [,failure-domain=<domain>] [,profile=<profile>]` ::
 
-`<cmd>`: `<string>` ::
+Create an erasure coded pool for RBD with an accompaning replicated pool for metadata storage. With EC, the common ceph options 'size', 'min_size' and 'crush_rule' parameters will be applied to the metadata pool.
 
-Command name
+`--min_size` `<integer> (1 - 7)` ('default =' `2`)::
 
-`-verbose` `<boolean>` ::
+Minimum number of replicas per object
 
-Verbose output format.
+`--pg_autoscale_mode` `<off | on | warn>` ('default =' `warn`)::
 
+The automatic PG scaling mode of the pool.
 
+`--pg_num` `<integer> (1 - 32768)` ('default =' `128`)::
 
+Number of placement groups.
 
-*pveceph init* `[OPTIONS]`
+`--pg_num_min` `<integer> (-N - 32768)` ::
 
-Create initial ceph default configuration and setup symlinks.
+Minimal number of placement groups.
 
-`-disable_cephx` `<boolean>` ('default =' `0`)::
+`--size` `<integer> (1 - 7)` ('default =' `3`)::
 
-Disable cephx authentification.
-+
-WARNING: cephx is a security feature protecting against man-in-the-middle attacks. Only consider disabling cephx if your network is private!
+Number of replicas per object
 
-`-min_size` `<integer> (1 - 7)` ('default =' `2`)::
+`--target_size` `^(\d+(\.\d+)?)([KMGT])?$` ::
 
-Minimum number of available replicas per object to allow I/O
+The estimated target size of the pool for the PG autoscaler.
 
-`-network` `<string>` ::
+`--target_size_ratio` `<number>` ::
 
-Use specific network for all ceph related traffic
+The estimated target ratio of the pool for the PG autoscaler.
 
-`-pg_bits` `<integer> (6 - 14)` ('default =' `6`)::
+*pveceph pool destroy* `<name>` `[OPTIONS]`
 
-Placement group bits, used to specify the default number of placement groups.
-+
-NOTE: 'osd pool default pg num' does not work for default pools.
+Destroy pool
 
-`-size` `<integer> (1 - 7)` ('default =' `3`)::
+`<name>`: `<string>` ::
 
-Targeted number of replicas per object
+The name of the pool. It must be unique.
 
+`--force` `<boolean>` ('default =' `0`)::
 
+If true, destroys pool even if in use
 
+`--remove_ecprofile` `<boolean>` ('default =' `1`)::
 
-*pveceph install* `[OPTIONS]`
+Remove the erasure code profile. Defaults to true, if applicable.
 
-Install ceph related packages.
+`--remove_storages` `<boolean>` ('default =' `0`)::
 
-`-version` `<luminous>` ::
+Remove all pveceph-managed storages configured for this pool
 
-no description available
+*pveceph pool get* `<name>` `[OPTIONS]` `[FORMAT_OPTIONS]`
 
+Show the current pool status.
 
+`<name>`: `<string>` ::
 
+The name of the pool. It must be unique.
 
-*pveceph lspools*
+`--verbose` `<boolean>` ('default =' `0`)::
 
-List all pools.
+If enabled, will display additional data(eg. statistics).
 
+*pveceph pool ls* `[FORMAT_OPTIONS]`
 
+List all pools and their settings (which are settable by the POST/PUT
+endpoints).
 
+*pveceph pool set* `<name>` `[OPTIONS]`
 
-*pveceph purge*
+Change POOL settings
 
-Destroy ceph related data and configuration files.
+`<name>`: `<string>` ::
 
+The name of the pool. It must be unique.
 
+`--application` `<cephfs | rbd | rgw>` ::
 
+The application of the pool.
 
-*pveceph start* `[<service>]`
+`--crush_rule` `<string>` ::
 
-Start ceph services.
+The rule to use for mapping object placement in the cluster.
 
-`<service>`: `(mon|mds|osd)\.[A-Za-z0-9]{1,32}` ::
+`--min_size` `<integer> (1 - 7)` ::
 
-Ceph service name.
+Minimum number of replicas per object
 
+`--pg_autoscale_mode` `<off | on | warn>` ::
 
+The automatic PG scaling mode of the pool.
 
-*pveceph status*
+`--pg_num` `<integer> (1 - 32768)` ::
 
-Get ceph status.
+Number of placement groups.
 
+`--pg_num_min` `<integer> (-N - 32768)` ::
 
+Minimal number of placement groups.
 
-*pveceph stop* `[<service>]`
+`--size` `<integer> (1 - 7)` ::
 
-Stop ceph services.
+Number of replicas per object
+
+`--target_size` `^(\d+(\.\d+)?)([KMGT])?$` ::
+
+The estimated target size of the pool for the PG autoscaler.
 
-`<service>`: `(mon|mds|osd)\.[A-Za-z0-9]{1,32}` ::
+`--target_size_ratio` `<number>` ::
+
+The estimated target ratio of the pool for the PG autoscaler.
+
+*pveceph purge* `[OPTIONS]`
+
+Destroy ceph related data and configuration files.
+
+`--crash` `<boolean>` ::
+
+Additionally purge Ceph crash logs, /var/lib/ceph/crash.
+
+`--logs` `<boolean>` ::
+
+Additionally purge Ceph logs, /var/log/ceph.
+
+*pveceph start* `[OPTIONS]`
+
+Start ceph services.
+
+`--service` `(ceph|mon|mds|osd|mgr)(\.[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?)?` ('default =' `ceph.target`)::
 
 Ceph service name.
 
+*pveceph status*
+
+Get Ceph Status.
+
+*pveceph stop* `[OPTIONS]`
 
+Stop ceph services.
+
+`--service` `(ceph|mon|mds|osd|mgr)(\.[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?)?` ('default =' `ceph.target`)::
+
+Ceph service name.