New-PveNodesCephRestartBulk
Rolling restart of all Ceph OSDs on this node. Each OSD is restarted only after Ceph reports the previous one is back up and the next one is safe to stop. For non-OSD Ceph daemons, use the cluster-wide endpoint at /cluster/ceph/restart-bulk. The ‘noout’ flag is applied only to the OSDs targeted by this run, so unrelated OSDs on other nodes that fail during the restart window still get out-marked normally. Aborting the resulting task (for example via ‘pvesh task stop’) triggers a SIGTERM handler that unsets the per-OSD ‘noout’ if this endpoint set it. Per-daemon progress is checkpointed in Ceph’s config-key store (‘pve/ceph-bulk-restart/node/<node>’), so an aborted run can be resumed by re-issuing this endpoint with ‘resume=1’.
API: POST /nodes/{node}/ceph/restart-bulk, Proxmox VE API viewer
Syntax
Section titled “Syntax”New-PveNodesCephRestartBulk [-PveTicket <PveTicket>] [-DryRun <bool>] [-Force <bool>] -Node <string> [-OnlyOutdated <bool>] [-Resume <bool>] -ServiceType <string> [-SetNoout <bool>] [-Timeout <int>] [<CommonParameters>]Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
-PveTicket |
PveTicket |
No | Ticket data connection. |
-DryRun |
bool |
No | Log the plan (which OSDs would be restarted, in what order) without actually doing anything. |
-Force |
bool |
No | Proceed past a HEALTH_WARN with non-benign checks like PG_DEGRADED, SLOW_OPS, or MON_DOWN. A blocking HEALTH_ERR is fatal regardless of this flag. Checks that ceph reports as muted, and checks known to be harmless for a rolling restart, never block and are named in the task log. The cluster-wide OSD map flags are only ever evaluated for an OSD restart, since they govern nothing a mon, mgr or mds restart touches. The operator is responsible for confirming the cluster is stable enough to absorb a rolling restart. |
-Node |
string |
Yes | The cluster node name. |
-OnlyOutdated |
bool |
No | Restart only OSDs whose running version differs from the locally-installed ceph-osd binary. Useful for post-upgrade rolling restarts that should touch only daemons that need it. Refuses if the local binary version cannot be determined. Ignored on resume (the saved plan is used as-is). |
-Resume |
bool |
No | Resume an aborted bulk-restart from the checkpoint stored in Ceph’s config-key store. The plan and noout decision from the prior run are honored; ‘set-noout’ is ignored. When false (default), the endpoint refuses to start if a checkpoint exists for this node, to avoid silently overwriting in-progress work. |
-ServiceType |
string |
Yes | Ceph daemon type to restart. Only OSDs can be rolling-restarted on a per-node basis. Values: osd. |
-SetNoout |
bool |
No | Set the ‘noout’ flag on each OSD targeted by this run for the duration of the rolling restart, and unset it on completion. Per-OSD rather than cluster-wide so that unrelated OSDs failing on other nodes still trigger backfill normally. |
-Timeout |
int |
No | Per-OSD timeout (in seconds). Bounds both the wait for a restarted OSD to come back up and the wait for recovery to quiesce enough that Ceph reports the next OSD safe to stop. Default sized for busy clusters where multi-TB OSDs with many PGs can need several minutes to clear peering after a restart; bump higher for very large or heavily-loaded OSDs. |
Every parameter also binds by property name from the pipeline, so an object with node and vmid properties (the output of Get-PveGuest, for one) fills -Node and -Vmid. Without -PveTicket the cmdlet uses the last connection, see Connection.
Output
Section titled “Output”A PveResponse: the data returned by Proxmox VE is in .Response.data, the outcome in .IsSuccessStatusCode. See Results and Errors.