このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
01_linux:13_storage:24_ceph_add_osd [2021/01/07 04:56] – matsui | 01_linux:13_storage:24_ceph_add_osd [2021/06/26 22:58] (現在) – matsui | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== 24 Ceph Add OSD ====== | + | ====== 24 Ceph OSD 追加 |
+ | |||
+ | |||
+ | ===== 1.LVM prepare ===== | ||
+ | |||
+ | ceph-volume lvm prepare --bluestore --data / | ||
+ | |||
+ | ===== 2.起動 ===== | ||
+ | |||
+ | systemctl start ceph-osd@4 | ||
+ | |||
+ | ==== LVM prepare Error ==== | ||
+ | |||
+ | 前のOSDデータが残っている場合は、エラーになる。 | ||
+ | |||
+ | < | ||
+ | # ceph-volume lvm prepare --bluestore --data / | ||
+ | --> | ||
+ | </ | ||
+ | ==== 対応 ==== | ||
+ | |||
+ | OSDデータを消してあげる | ||
+ | < | ||
+ | # ceph-volume lvm zap / | ||
+ | --> Zapping: / | ||
+ | Running command: /usr/bin/dd if=/ | ||
+ | | ||
+ | 10+0 records out | ||
+ | 10485760 bytes (10 MB) copied | ||
+ | | ||
+ | --> Zapping successful for: <LV: / | ||
+ | </ | ||
+ | |||
+ | ===== Unable to create a new OSD id ===== | ||
+ | |||
+ | < | ||
+ | # ceph-volume lvm prepare --bluestore --data / | ||
+ | Running command: / | ||
+ | Running command: / | ||
+ | | ||
+ | --> | ||
+ | </ | ||
+ | |||
+ | ==== 対応 ==== | ||
+ | cephのキーが無いので、authキーをおいてあげればOK | ||
+ | |||
+ | |||
+ | < | ||
+ | # ceph auth get client.bootstrap-osd | ||
+ | exported keyring for client.bootstrap-osd | ||
+ | [client.bootstrap-osd] | ||
+ | key = AQAwT4de6ScSGBAAVohPwCT6irmyVH0PrnUT/ | ||
+ | caps mon = "allow profile bootstrap-osd" | ||
+ | |||
+ | # ceph auth get client.bootstrap-osd > / | ||
+ | |||
+ | </ | ||
{{tag> | {{tag> |