Skip to contentSkip to conversation

Unmount btrfs when stopping OSD's

DISCUSSION Wido den Hollander 2 participants 4 messages Mar 27, 2012

lore
Share & tools
lore
#0 lore raw

Hi,

It's something I noticed some time ago, but never really paid attention to.

When we start an OSD we automatically mount the btrfs filesystem if "btrfs devs" is set, but we do not unmount when we stop the OSD.

I see the init script is prepared for this:

dobtrfsumount=0
..
--btrfsumount)
dobtrfsumount=1
..
if [ $dobtrfsumount -eq 1 ] && [ -n "$btrfs_devs" ]; then

Why would this be set to 0 by default? Any reason?

I like my daemons/init scripts to clean up their 'mess' when they stop.

I'd vote for setting this to 1 by default.

Wido

#1 lore raw
Quoted 2 lines · Wido den Hollander

When we start an OSD we automatically mount the btrfs filesystem if "btrfs devs" is set, but we do not unmount when we stop the OSD.

...

Quoted 1 line

I'd vote for setting this to 1 by default.

btrfs_devs was meant to make Sage's development use easier. We don't want to support it on actual use (we'd need to expand it to cover all the filesystems, etc), and intend to remove it. Please do not use it -- we sure don't.

The proper location for this functionality is in Chef/Puppet/etc automation.

Earlier conversation:
http://marc.info/?l=ceph-devel&m=133044999403426&w=2

#2 lore raw

Hi,

Quoted 4 lines · Tommi Virtanen
Quoted 2 lines · Wido den Hollander

When we start an OSD we automatically mount the btrfs filesystem if "btrfs devs" is set, but we do not unmount when we stop the OSD.

...

Quoted 8 lines
Quoted 1 line

I'd vote for setting this to 1 by default.

btrfs_devs was meant to make Sage's development use easier. We don't want to support it on actual use (we'd need to expand it to cover all the filesystems, etc), and intend to remove it. Please do not use it -- we sure don't.

The proper location for this functionality is in Chef/Puppet/etc automation.

Ah, I think I became a bit rusty with the old configuration :)

Quoted 3 lines

Earlier conversation:
http://marc.info/?l=ceph-devel&m=133044999403426&w=2

I've been following it, but not that closely.

Any plans yet on removing "btrfs devs" from the configuration?

Wido

#3 lore raw
Quoted 1 line · Wido den Hollander

Any plans yet on removing "btrfs devs" from the configuration?

It's a low-priority cleanup, but it will happen.