2016-04-10 15:39:35 +02:00
*pveceph* `<COMMAND> [ARGS] [OPTIONS]`
2018-11-29 13:12:20 +01:00
*pveceph createmgr*
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
An alias for 'pveceph mgr create'.
2017-10-19 09:30:23 +02:00
2018-11-29 13:12:20 +01:00
*pveceph createmon*
2017-10-19 09:30:23 +02:00
2018-11-29 13:12:20 +01:00
An alias for 'pveceph mon create'.
2017-10-19 09:30:23 +02:00
2018-11-29 13:12:20 +01:00
*pveceph createosd*
2017-10-19 09:30:23 +02:00
2018-11-29 13:12:20 +01:00
An alias for 'pveceph osd create'.
2017-10-19 09:30:23 +02:00
2018-11-29 13:12:20 +01:00
*pveceph createpool*
2017-10-19 09:30:23 +02:00
2018-11-29 13:12:20 +01:00
An alias for 'pveceph pool create'.
2017-10-19 09:30:23 +02:00
2018-11-29 13:12:20 +01:00
*pveceph destroymgr*
2017-10-19 09:30:23 +02:00
2018-11-29 13:12:20 +01:00
An alias for 'pveceph mgr destroy'.
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
*pveceph destroymon*
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
An alias for 'pveceph mon destroy'.
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
*pveceph destroyosd*
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
An alias for 'pveceph osd destroy'.
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
*pveceph destroypool*
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
An alias for 'pveceph pool destroy'.
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
*pveceph fs create* `[OPTIONS]`
2017-06-29 18:01:29 +02:00
2018-11-29 13:12:20 +01:00
Create a Ceph filesystem
2017-06-29 18:01:29 +02:00
2018-11-29 13:12:20 +01:00
`--add-storage` `<boolean>` ('default =' `0`)::
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
Configure the created CephFS as storage for this cluster.
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
`--name` `<string>` ('default =' `cephfs`)::
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
The ceph filesystem name.
2017-10-19 09:30:23 +02:00
2018-11-29 13:12:20 +01:00
`--pg_num` `<integer> (8 - 32768)` ('default =' `128`)::
2017-10-19 09:30:23 +02:00
2018-11-29 13:12:20 +01:00
Number of placement groups for the backing data pool. The metadata pool will use a quarter of this.
2016-04-10 15:39:35 +02:00
2021-11-15 15:20:02 +01:00
*pveceph fs destroy* `<name>` `[OPTIONS]`
Destroy a Ceph filesystem
`<name>`: `<string>` ::
The ceph filesystem name.
`--remove-pools` `<boolean>` ('default =' `0`)::
Remove data and metadata pools configured for this fs.
`--remove-storages` `<boolean>` ('default =' `0`)::
Remove all pveceph-managed storages configured for this fs.
2018-11-29 13:12:20 +01:00
*pveceph help* `[OPTIONS]`
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
Get help about specified command.
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
`--extra-args` `<array>` ::
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
Shows help for a specific command
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
`--verbose` `<boolean>` ::
2017-10-19 09:30:23 +02:00
2018-11-29 13:12:20 +01:00
Verbose output format.
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
*pveceph init* `[OPTIONS]`
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
Create initial ceph default configuration and setup symlinks.
2017-10-19 09:30:23 +02:00
2018-11-29 13:12:20 +01:00
`--cluster-network` `<string>` ::
2017-10-19 09:30:23 +02:00
2018-11-29 13:12:20 +01:00
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`)::
2019-06-25 12:45:44 +02:00
Disable cephx authentication.
2018-11-29 13:12:20 +01:00
+
WARNING: cephx is a security feature protecting against man-in-the-middle attacks. Only consider disabling cephx if your network is private!
2017-10-19 09:30:23 +02:00
`--min_size` `<integer> (1 - 7)` ('default =' `2`)::
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
Minimum number of available replicas per object to allow I/O
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
`--network` `<string>` ::
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
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.
+
NOTE: 'osd pool default pg num' does not work for default pools.
2016-04-10 15:39:35 +02:00
2017-10-19 09:30:23 +02:00
`--size` `<integer> (1 - 7)` ('default =' `3`)::
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
Targeted number of replicas per object
*pveceph install* `[OPTIONS]`
Install ceph related packages.
2020-07-07 14:16:48 +02:00
`--allow-experimental` `<boolean>` ('default =' `0`)::
Allow experimental versions. Use with care!
2023-06-07 17:46:30 +02:00
`--repository` `<enterprise | no-subscription | test>` ('default =' `enterprise`)::
2021-06-18 19:36:45 +02:00
2023-06-07 17:46:30 +02:00
Ceph repository to use.
2021-06-18 19:36:45 +02:00
2023-06-07 17:46:30 +02:00
`--version` `<quincy>` ('default =' `quincy`)::
2018-11-29 13:12:20 +01:00
2019-06-25 12:45:44 +02:00
Ceph version to install.
2018-11-29 13:12:20 +01:00
*pveceph lspools*
An alias for 'pveceph pool ls'.
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
*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>`
Destroy Ceph Metadata Server
`<name>`: `[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?` ::
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>`
2017-10-19 09:30:23 +02:00
Destroy Ceph Manager.
`<id>`: `[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?` ::
The ID of the manager
2018-11-29 13:12:20 +01:00
*pveceph mon create* `[OPTIONS]`
Create Ceph Monitor and Manager
2019-06-25 12:45:44 +02:00
`--mon-address` `<string>` ::
2018-11-29 13:12:20 +01:00
2021-06-18 19:36:45 +02:00
Overwrites autodetected monitor IP address(es). Must be in the public network(s) of Ceph.
2018-11-29 13:12:20 +01:00
2019-06-25 12:45:44 +02:00
`--monid` `[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?` ::
2018-11-29 13:12:20 +01:00
The ID for the monitor, when omitted the same as the nodename
2019-06-25 12:45:44 +02:00
*pveceph mon destroy* `<monid>`
2017-10-19 09:30:23 +02:00
Destroy Ceph Monitor and Manager.
`<monid>`: `[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?` ::
2016-04-10 15:39:35 +02:00
Monitor ID
2018-11-29 13:12:20 +01:00
*pveceph osd create* `<dev>` `[OPTIONS]`
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
Create OSD
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
`<dev>`: `<string>` ::
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
Block device name.
2016-04-10 15:39:35 +02:00
2020-09-18 16:34:51 +02:00
`--crush-device-class` `<string>` ::
Set the device class of the OSD in crush.
2019-06-25 12:45:44 +02:00
`--db_dev` `<string>` ::
2016-04-10 15:39:35 +02:00
2019-06-25 12:45:44 +02:00
Block device name for block.db.
2016-04-10 15:39:35 +02:00
2021-06-18 19:36:45 +02:00
`--db_dev_size` `<number> (1 - N)` ('default =' `bluestore_block_db_size or 10% of OSD size`)::
2016-04-10 15:39:35 +02:00
2019-06-25 12:45:44 +02:00
Size in GiB for block.db.
+
NOTE: Requires option(s): `db_dev`
2016-04-10 15:39:35 +02:00
2019-06-25 12:45:44 +02:00
`--encrypted` `<boolean>` ('default =' `0`)::
2016-04-10 15:39:35 +02:00
2019-06-25 12:45:44 +02:00
Enables encryption of the OSD.
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
`--wal_dev` `<string>` ::
2016-09-29 12:18:57 +02:00
2019-06-25 12:45:44 +02:00
Block device name for block.wal.
2021-06-18 19:36:45 +02:00
`--wal_dev_size` `<number> (0.5 - N)` ('default =' `bluestore_block_wal_size or 1% of OSD size`)::
2019-06-25 12:45:44 +02:00
Size in GiB for block.wal.
+
NOTE: Requires option(s): `wal_dev`
2016-09-29 12:18:57 +02:00
2018-11-29 13:12:20 +01:00
*pveceph osd destroy* `<osdid>` `[OPTIONS]`
2017-10-19 09:30:23 +02:00
2018-11-29 13:12:20 +01:00
Destroy OSD
2017-10-19 09:30:23 +02:00
2018-11-29 13:12:20 +01:00
`<osdid>`: `<integer>` ::
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
OSD ID
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
`--cleanup` `<boolean>` ('default =' `0`)::
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
If set, we remove partition table entries.
2016-04-10 15:39:35 +02:00
2023-06-09 11:19:24 +02:00
*pveceph osd details* `<osdid>` `[OPTIONS]` `[FORMAT_OPTIONS]`
Get OSD details.
`<osdid>`: `<string>` ::
ID of the OSD
`--verbose` `<boolean>` ('default =' `0`)::
Print verbose information, same as json-pretty output format.
2018-11-29 13:12:20 +01:00
*pveceph pool create* `<name>` `[OPTIONS]`
2016-04-10 15:39:35 +02:00
2022-04-28 21:24:22 +02:00
Create Ceph pool
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
`<name>`: `<string>` ::
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
The name of the pool. It must be unique.
2016-04-10 15:39:35 +02:00
2022-05-02 17:40:50 +02:00
`--add_storages` `<boolean>` ('default =' `0; for erasure coded pools: 1`)::
2017-06-29 18:01:29 +02:00
2022-05-02 17:40:50 +02:00
Configure VM and CT storage using the new pool.
2017-06-29 18:01:29 +02:00
2020-11-24 14:31:57 +01:00
`--application` `<cephfs | rbd | rgw>` ('default =' `rbd`)::
2017-06-29 18:01:29 +02:00
2020-11-24 14:31:57 +01:00
The application of the pool.
2017-06-29 18:01:29 +02:00
2018-11-29 13:12:20 +01:00
`--crush_rule` `<string>` ::
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
The rule to use for mapping object placement in the cluster.
2016-04-10 15:39:35 +02:00
2022-04-28 21:24:22 +02:00
`--erasure-coding` `k=<integer> ,m=<integer> [,device-class=<class>] [,failure-domain=<domain>] [,profile=<profile>]` ::
2022-05-04 08:52:51 +02:00
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.
2022-04-28 21:24:22 +02:00
2018-11-29 13:12:20 +01:00
`--min_size` `<integer> (1 - 7)` ('default =' `2`)::
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
Minimum number of replicas per object
2020-11-24 14:31:57 +01:00
`--pg_autoscale_mode` `<off | on | warn>` ('default =' `warn`)::
The automatic PG scaling mode of the pool.
2021-04-26 17:48:36 +02:00
`--pg_num` `<integer> (1 - 32768)` ('default =' `128`)::
2018-11-29 13:12:20 +01:00
Number of placement groups.
2016-04-10 15:39:35 +02:00
2021-04-26 17:48:36 +02:00
`--pg_num_min` `<integer> (-N - 32768)` ::
Minimal number of placement groups.
2017-10-19 09:30:23 +02:00
`--size` `<integer> (1 - 7)` ('default =' `3`)::
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
Number of replicas per object
2016-04-10 15:39:35 +02:00
2021-04-26 17:48:36 +02:00
`--target_size` `^(\d+(\.\d+)?)([KMGT])?$` ::
The estimated target size of the pool for the PG autoscaler.
`--target_size_ratio` `<number>` ::
The estimated target ratio of the pool for the PG autoscaler.
2018-11-29 13:12:20 +01:00
*pveceph pool destroy* `<name>` `[OPTIONS]`
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
Destroy pool
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
`<name>`: `<string>` ::
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
The name of the pool. It must be unique.
2016-04-10 15:39:35 +02:00
2018-11-29 13:12:20 +01:00
`--force` `<boolean>` ('default =' `0`)::
If true, destroys pool even if in use
2022-04-28 21:24:22 +02:00
`--remove_ecprofile` `<boolean>` ('default =' `1`)::
Remove the erasure code profile. Defaults to true, if applicable.
2018-11-29 13:12:20 +01:00
`--remove_storages` `<boolean>` ('default =' `0`)::
Remove all pveceph-managed storages configured for this pool
2021-04-26 17:48:36 +02:00
*pveceph pool get* `<name>` `[OPTIONS]` `[FORMAT_OPTIONS]`
2023-03-20 19:55:17 +01:00
Show the current pool status.
2021-04-26 17:48:36 +02:00
`<name>`: `<string>` ::
The name of the pool. It must be unique.
`--verbose` `<boolean>` ('default =' `0`)::
If enabled, will display additional data(eg. statistics).
2020-07-07 14:16:48 +02:00
*pveceph pool ls* `[FORMAT_OPTIONS]`
2016-04-10 15:39:35 +02:00
2023-03-20 19:55:17 +01:00
List all pools and their settings (which are settable by the POST/PUT
endpoints).
2016-04-10 15:39:35 +02:00
2020-11-24 14:31:57 +01:00
*pveceph pool set* `<name>` `[OPTIONS]`
Change POOL settings
`<name>`: `<string>` ::
The name of the pool. It must be unique.
`--application` `<cephfs | rbd | rgw>` ::
The application of the pool.
`--crush_rule` `<string>` ::
The rule to use for mapping object placement in the cluster.
`--min_size` `<integer> (1 - 7)` ::
Minimum number of replicas per object
`--pg_autoscale_mode` `<off | on | warn>` ::
The automatic PG scaling mode of the pool.
2021-04-26 17:48:36 +02:00
`--pg_num` `<integer> (1 - 32768)` ::
2020-11-24 14:31:57 +01:00
Number of placement groups.
2021-04-26 17:48:36 +02:00
`--pg_num_min` `<integer> (-N - 32768)` ::
Minimal number of placement groups.
2020-11-24 14:31:57 +01:00
`--size` `<integer> (1 - 7)` ::
Number of replicas per object
2021-04-26 17:48:36 +02:00
`--target_size` `^(\d+(\.\d+)?)([KMGT])?$` ::
The estimated target size of the pool for the PG autoscaler.
`--target_size_ratio` `<number>` ::
The estimated target ratio of the pool for the PG autoscaler.
2020-07-07 14:16:48 +02:00
*pveceph purge* `[OPTIONS]`
2016-04-10 15:39:35 +02:00
Destroy ceph related data and configuration files.
2020-07-07 14:16:48 +02:00
`--crash` `<boolean>` ::
Additionally purge Ceph crash logs, /var/lib/ceph/crash.
`--logs` `<boolean>` ::
Additionally purge Ceph logs, /var/log/ceph.
2020-05-06 14:31:37 +02:00
*pveceph start* `[OPTIONS]`
2016-04-10 15:39:35 +02:00
Start ceph services.
2020-05-06 14:31:37 +02:00
`--service` `(ceph|mon|mds|osd|mgr)(\.[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?)?` ('default =' `ceph.target`)::
2016-04-10 15:39:35 +02:00
Ceph service name.
*pveceph status*
2021-04-26 17:48:36 +02:00
Get Ceph Status.
2016-04-10 15:39:35 +02:00
2020-05-06 14:31:37 +02:00
*pveceph stop* `[OPTIONS]`
2016-04-10 15:39:35 +02:00
Stop ceph services.
2020-05-06 14:31:37 +02:00
`--service` `(ceph|mon|mds|osd|mgr)(\.[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?)?` ('default =' `ceph.target`)::
2016-04-10 15:39:35 +02:00
Ceph service name.