Ceph: Difference between revisions

From Delft Solutions
Jump to navigation Jump to search
(Created page with " Add and remove `noout` flag on specific osd ``` ceph osd add-noout osd.X ceph osd rm-noout osd.X ``` Add and remove 'noout' flag from node ``` ``` Destroy OSD. Needs to be executed on the node with the OSD ``` ceph osd safe-to-destroy osd.{id} systemctl stop ceph-osd@{id} pveceph osd destroy {id} ceph-volume lvm zap /dev/sd[X] --destroy ``` Create OSD. Needs to be executed on the node with the OSD ``` pveceph osd create /dev/sd[X] --encrypted 1 ```")
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
=== Configuring maintenance related ===


Add and remove `noout` flag on specific osd
===== Add and remove `noout` flag on specific osd =====
```
* ceph osd add-noout osd.{id}
ceph osd add-noout osd.X
* ceph osd rm-noout  osd.{id}
ceph osd rm-noout  osd.X
```


Add and remove 'noout' flag from node
===== Add and remove 'noout' flag from node =====
```
* ceph osd set-group noout {node}
* ceph osd unset-group noout {node}


```
===== Enable/disable HA maintenance on a node =====
* ha-manager crm-command node-maintenance enable {node}
* ha-manager crm-command node-maintenance disable {node}


Destroy OSD. Needs to be executed on the node with the OSD
```
ceph osd safe-to-destroy osd.{id}
systemctl stop ceph-osd@{id}
pveceph osd destroy {id}
ceph-volume lvm zap /dev/sd[X] --destroy
```


Create OSD. Needs to be executed on the node with the OSD
=== Permutation related ===
```
 
pveceph osd create /dev/sd[X] --encrypted 1
===== Destroy OSD =====
```
Needs to be executed on the node with the OSD
* ceph osd safe-to-destroy osd.{id}
* systemctl stop ceph-osd@{id}
* pveceph osd destroy {id}
*ceph-volume lvm zap /dev/sd[X] --destroy
 
===== Create OSD =====
Needs to be executed on the node with the OSD
* pveceph osd create /dev/sd[X] --encrypted 1 --crush-device-class hdd
 
===== Change device class =====
* ceph osd crush rm-device-class osd.{id}
* ceph osd crush set-device-class [hdd|ssd|nvme] osd.{id}
 
===== Reweight OSD =====
* ceph osd reweight {id} {weight}

Latest revision as of 15:48, 8 January 2026

Configuring maintenance related

Add and remove `noout` flag on specific osd
  • ceph osd add-noout osd.{id}
  • ceph osd rm-noout osd.{id}
Add and remove 'noout' flag from node
  • ceph osd set-group noout {node}
  • ceph osd unset-group noout {node}
Enable/disable HA maintenance on a node
  • ha-manager crm-command node-maintenance enable {node}
  • ha-manager crm-command node-maintenance disable {node}


Permutation related

Destroy OSD

Needs to be executed on the node with the OSD

  • ceph osd safe-to-destroy osd.{id}
  • systemctl stop ceph-osd@{id}
  • pveceph osd destroy {id}
  • ceph-volume lvm zap /dev/sd[X] --destroy
Create OSD

Needs to be executed on the node with the OSD

  • pveceph osd create /dev/sd[X] --encrypted 1 --crush-device-class hdd
Change device class
  • ceph osd crush rm-device-class osd.{id}
  • ceph osd crush set-device-class [hdd|ssd|nvme] osd.{id}
Reweight OSD
  • ceph osd reweight {id} {weight}