Skip to content

Conversation

@anthonyeleven
Copy link
Contributor

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

@anthonyeleven anthonyeleven force-pushed the improve-add-db-to-osd.sh branch from bac099a to f657006 Compare April 15, 2025 20:30
Copy link
Member

@bkelly16 bkelly16 left a comment

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

add-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
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
Contributor Author

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

add-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
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
Contributor Author

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 anthonyeleven force-pushed the improve-add-db-to-osd.sh branch from f657006 to 3187d58 Compare April 15, 2025 20:54
@baileyallison
Copy link
Member

lgtm, merging (sorry for taking so long hahahaha)

@baileyallison baileyallison merged commit 5b6d63e into 45Drives:main Nov 13, 2025
@anthonyeleven
Copy link
Contributor Author

No problem, good sir.

Sign up for free to 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