Bobcares

Proxmox Ceph add OSD – Here is how we do it

by | Jan 14, 2020

While expanding a cluster you might always felt a need to add Ceph OSD in Proxmox.

We help you to do this via both Proxmox VE GUI and command-line interface.

At Bobcares, we often get requests to manage Proxmox Ceph, as a part of our Infrastructure Management Services.

Today, let’s see how our Support Engineers add Ceph OSD in Proxmox.

 

Role of Ceph OSD in Proxmox

Managing separate SAN, NAS can make things complicated. To ease out such efforts Proxmox can be integrated with Ceph storage.

This unifies the compute and storage system. And this makes it easier to run and manage the Ceph storage directly via the hypervisor nodes.

And it is quite easier to set up and manage via both CLI and GUI.

 

How to add Ceph OSD in Proxmox?

As we have said it is possible to add a Ceph OSD in Proxmox via both GUI and CLI. Now let’s see how our Support Engineers do this.

 

Adding Ceph OSD via GUI

Let’s see how we do the same via the GUI.

After installation of Ceph, we login to Proxmox GUI.

Here we select the required Proxmox node and click on the tab Ceph from the side panel. And this window appears as,

Proxmox Ceph add OSD.

Then we add the disk to the Ceph cluster. This disk then acts as the storage pool for Ceph.

Next, we click on the required disk and select the option Create: OSD. If the disk has some partitions then we will not be able to add this as OSD. Then we remove such partitions to use this disk.

Now to create a storage pool, we click the Pool tab and create it. The next window will ask details on disk parameters. We add it correctly.

So, this is how we add Ceph OSD via Proxmox GUI.

 

Adding via command-line interface

Similarly, we can add Ceph OSD via the command-line interface. Here is how our Support Engineers do it.

For manually adding the OSD, we first create it. We do this using the command,

ceph osd create [{uuid} [{id}]]

Then we create a directory for it. For this, we ssh into the host and make a directory,

mkdir /var/lib/ceph/osd/ceph-{osd-number}

To initialize this directory we use the command,

ceph-osd -i {osd-num} --mkfs --mkkey

Next, we need to register the OSD auth key. For this, we run the command,

ceph auth add osd.{osd-num} osd 'allow *' mon 'allow rwx' -i /var/lib/ceph/osd/ceph-{osd-num}/keyring

Then we add the OSD in the CRUSH map. And the command to do this is,

ceph osd crush add {id} {name} {weight} [{bucket-type}={bucket-name} ...]

Finally, we verify the task of adding OSD by starting it. For the Ubuntu system, we do this as follows,

start ceph-osd id={osd-num}

Later we observe the data migration to the newly added OSD.

[Having trouble in adding Ceph OSD in Proxmox? – We can help you.]

 

Conclusion

So far, we saw the steps to add a Ceph OSD in Proxmox via both the GUI and CLI. In addition, we always take proper care to successfully add it by either of the ways. Today, we saw how our Support Engineers do this without fail.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF