Skip to content

Improve add-db-to-osd.sh - #8

Merged
baileyallison merged 1 commit into
45Drives:mainfrom
anthonyeleven:improve-add-db-to-osd.sh
Nov 13, 2025
Merged

Improve add-db-to-osd.sh#8
baileyallison merged 1 commit into
45Drives:mainfrom
anthonyeleven:improve-add-db-to-osd.sh

Conversation

@anthonyeleven

Copy link
Copy Markdown
Contributor

Improve spelling and caps, add the ability to specify the number of offload slices per device, add an ok-to-stop check.

Comment threadadd-db-to-osd.sh
@anthonyeleven
anthonyelevenforce-pushed the improve-add-db-to-osd.sh branch from bac099a to f657006CompareApril 15, 2025 20:30

@bkelly16bkelly16 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the feedback Anthony

Comment threadadd-db-to-osd.sh
Comment threadadd-db-to-osd.sh Outdated
OSD_PER_DB_LIMIT=5

while getopts 'b:fo:d:h' OPTION; do
while getopts 'b:fo:d:h:r' OPTION; do

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

":" needs to trail the r here, not precede

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, haven't used getopts much and was confused re the subtleties. Pushed an ammendment

Comment threadadd-db-to-osd.sh Outdated
ceph osd set noout
echo "Stop OSD.$OSD_ID"
systemctl stop ceph-osd@$OSD_ID
# Is this a relic of Filestore and thus superfluous?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct - we can remove this

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushed

Signed-off-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
@anthonyeleven
anthonyelevenforce-pushed the improve-add-db-to-osd.sh branch from f657006 to 3187d58CompareApril 15, 2025 20:54
@baileyallison

Copy link
Copy Markdown
Member

lgtm, merging (sorry for taking so long hahahaha)

@baileyallison
baileyallison merged commit 5b6d63e into 45Drives:mainNov 13, 2025
@anthonyeleven

Copy link
Copy Markdown
ContributorAuthor

No problem, good sir.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@anthonyeleven@baileyallison@bkelly16