Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Detailed steps for distributed Ceph save set clustering

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the knowledge of "detailed steps of distributed Ceph save set cluster". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

First, a few pictures show the general situation of the current Ceph storage, simulate the replacement of the data hard disk on the server CLIENT3, the ceph storage device has stored data, and observe the replacement process and recovery changes.

[root@client3 ~] # systemctl stop ceph-osd@2.service

[root@client3 ~] # umount / var/lib/ceph/osd/ceph-2

[root@client3 ~] # ceph osd out osd.2

[root@client3 ~] # ceph auth del osd.2

[root@client3 ~] # ceph osd rm 2

Clear disk information:

[root@client3 ~] # wipefs-af / dev/sdb

Disk changes: (delete the old disk, replace the new disk, delete the original 50g hard disk in the virtual machine, and add a new 80g hard disk.

Cluster status at this time

The original hard disk will be 80g after 50g replacement.

[root@master ~] # cd / data/idc-cluster/

[root@master idc-cluster] # ceph-deploy osd prepare client3:/dev/sdb

The storage space has also become larger (from 135G to 165G after changing the hard drive).

The data still exist and remain unchanged.

CEPH cluster recovery:

[root@BDDB cephfs] # ceph health

Recovery completed: [root@BDDB cephfs] # ceph health

That's all for the detailed steps of distributed Ceph save set clustering. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report