Re: bluestore OSD did not start at system-boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



`systemctl list-dependencies ceph.target`

Do you have ceph-osd.target listed underneath it with all of your OSDs under that?  My guess is that you just need to enable them in systemctl to manage them.  `systemctl enable ceph-osd@${osd}.service` where $osd is the osd number to be enabled.  For example for osd.12 you would run `systemctl enable ceph-osd@12.service`.

On Thu, Apr 5, 2018 at 7:09 AM Nico Schottelius <nico.schottelius@xxxxxxxxxxx> wrote:

Hey Ansgar,

we have a similar "problem": in our case all servers are wiped on
reboot, as they boot their operating system from the network into
initramfs.

While the OS configuration is done with cdist [0], we consider ceph osds
more dynamic data and just re-initialise all osds on boot using the
ungleich-tools [1] suite, which we created to work with ceph clusters
mostly.

Especially [2] might be of interest for you.

HTH,

Nico

[0] https://www.nico.schottelius.org/software/cdist/
[1] https://github.com/ungleich/ungleich-tools
[2] https://github.com/ungleich/ungleich-tools/blob/master/ceph-osd-activate-all



Ansgar Jazdzewski <a.jazdzewski@xxxxxxxxxxxxxx> writes:

> hi folks,
>
> i just figured out that my ODS's did not start because the filsystem
> is not mounted.
>
> So i wrote a script to Hack my way around it
> #####
> #! /usr/bin/env bash
>
> DATA=( $(ceph-volume lvm list | grep -e 'osd id\|osd fsid' | awk
> '{print $3}' | tr '\n' ' ') )
>
> OSDS=$(( ${#DATA[@]}/2 ))
>
> for OSD in $(seq 0 $(($OSDS-1))); do
>  ceph-volume lvm activate "${DATA[( $OSD*2 )]}" "${DATA[( $OSD*2+1 )]}"
> done
> #####
>
> i'am sure that this is not the way it should be!? so any help i
> welcome to figure out why my BlueStore-OSD is not mounted at
> boot-time.
>
> Thanks,
> Ansgar
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


--
Modern, affordable, Swiss Virtual Machines. Visit www.datacenterlight.ch
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux