Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to create a new osd manually

Shulou Source: shulou.com Published: 2022-05-31 15:17:59 10月06日 Update

This article mainly explains "how to build a new osd by hand". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to build a new osd by hand.

Add ceph.conf content

[osd.5] host = hostname addr = 10.xx.xx.xx user = ceph osd data = / home/ceph/var/lib/osd/ceph-5 osd journal = / home/ceph/var/lib/osd/ceph-5/journal

Newly created osd information

Ceph osd create

Set up an osd directory

Mkdir-p / home/ceph/var/lib/osd/ceph-5

Initialize osd data and journal

Eph-osd-I 5-- mkfs-- mkkey chown-R ceph:ceph / home/ceph/var/lib/osd/ceph-5

Add cephx authorization information

Ceph-authtool-n osd.5-- cap osd 'allow *'-- cap mon 'allow rwx' / home/ceph/var/lib/osd/ceph-5/keyring ceph- k / etc/ceph/keyring auth add osd.5-I / home/ceph/var/lib/osd/ceph-5/keyring

Start the service

/ etc/init.d/ceph start osd.5

Thank you for your reading, the above is the content of "how to build a new osd manually". After the study of this article, I believe you have a deeper understanding of how to build a new osd manually, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Manual content learning information that is ideas situations data articles more catalogues knowledge knowledge points articles follow questions practice push service research Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Xiaomi Apple MySQL Linux