Re: Documentation of the LVM metadata format

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

 



So that's a bug ;)

https://github.com/ceph/ceph/blob/master/src/ceph-volume/ceph_volume/devices/lvm/activate.py#L248-L251

This doesn't honor the --no-systemd flag.

But this should work when you're not using the --all option.

Dimitri


On Mon, Apr 19, 2021 at 10:41 AM Nico Schottelius <
nico.schottelius@xxxxxxxxxxx> wrote:

>
> Hey Dimitir,
>
> because --no-systemd still requires systemd:
>
> [19:03:00] server20.place6:~# ceph-volume lvm activate --all --no-systemd
> --> Executable systemctl not in PATH:
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
> -->  FileNotFoundError: [Errno 2] No such file or directory: 'systemctl':
> 'systemctl'
>
> Best regards,
>
> Nico
>
> Dimitri Savineau <dsavinea@xxxxxxxxxx> writes:
>
> > Hi,
> >
> >> My background is that ceph-volume activate does not work on non-systemd
> >  Linux distributions
> >
> > Why not using the --no-systemd option during the ceph-volume activate
> > command?
> >
> > The systemd part is only enabling and starting the service but the tmpfs
> > part should work if you're not using systemd
> >
> >
> https://github.com/ceph/ceph/blob/master/src/ceph-volume/ceph_volume/devices/lvm/activate.py#L212
> >
> > Dimitri
> >
> > On Monday, April 19, 2021, Nico Schottelius <
> nico.schottelius@xxxxxxxxxxx>
> > wrote:
> >
> >>
> >> The best questions are the ones that one can answer oneself.
> >> The great documentation on
> >>
> >> https://docs.ceph.com/en/latest/dev/ceph-volume/lvm/
> >>
> >> gives the right pointers. The right search term is "lvm list tags" and
> >> results into something like this:
> >>
> >> [15:56:04] server20.place6:~# lvs -o lv_tags
> >>   /dev/sda: open failed: No medium found
> >>   /dev/sdb: open failed: No medium found
> >>   LV Tags
> >>   ceph.block_device=/dev/ceph-26fdb7c4-17af-42af-8353-
> >> 06d95b0071c7/osd-block-bb63e9b6-b2d7-40d1-83ee-815262ae8b45,...
> >>
> >> If anyone is interested in upstream ceph-volume support for non-systemd
> >> Linux distributions to activate the ceph-osds, let me know.
> >>
> >> In any case, we'll publish our new style scripts on [0].
> >>
> >> Best regards,
> >>
> >> Nico
> >>
> >> [0] https://code.ungleich.ch/ungleich-public/ungleich-tools
> >>
> >> Nico Schottelius <nico.schottelius@xxxxxxxxxxx> writes:
> >>
> >> > Good morning,
> >> >
> >> > is there any documentation available regarding the meta data stored
> >> > within LVM that ceph-volume manages / creates?
> >> >
> >> > My background is that ceph-volume activate does not work on
> non-systemd
> >> > Linux distributions, but if I know how to recreate the tmpfs, we can
> >> > easily start the osd without systemd.
> >> >
> >> > Any pointers in the right direction are appreciated.
> >> >
> >> > Best regards,
> >> >
> >> > Nico
> >>
> >>
> >> --
> >> Sustainable and modern Infrastructures by ungleich.ch
> >> _______________________________________________
> >> ceph-users mailing list -- ceph-users@xxxxxxx
> >> To unsubscribe send an email to ceph-users-leave@xxxxxxx
> >>
> >>
>
>
> --
> Sustainable and modern Infrastructures by ungleich.ch
> _______________________________________________
> ceph-users mailing list -- ceph-users@xxxxxxx
> To unsubscribe send an email to ceph-users-leave@xxxxxxx
>
>
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



[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