Re: ceph-conf doesn't return not declared variables?

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

 



On Fri, 28 Jun 2013, Gregory Farnum wrote:
> It's the tool. We definitely want a way to find out if a config option is
> set or not, but I think patches here would be welcome. :)
> You can also look at ceph-disk's get_conf and get_conf_with_default methods
> for how I handle this.

If you do

 ceph-conf --name osd.0 --show-config-value osd_data

the result will reflect the compiled-in defaults and not just the contents 
of the ceph.conf file.  This is at least true with current master; for 
certain options it will not work with cuttlefish.

sage

> -Greg
> 
> On Friday, June 28, 2013, Wido den Hollander wrote:
>       Hi,
> 
>       I was doing some Bash scripting and I'm not sure if it's me or
>       the ceph-conf tool.
> 
>       I'm trying to retrieve the "osd data" dir for osd.0, but that
>       fails since I haven't declared that variable in the conf file
>       because I'm using the default setting.
> 
>       root@data1:~# ceph-conf --name osd.0 --lookup "devs"
>       /dev/disk/by-id/scsi-SATA_WDC_WD2000FYYZ-_WD-WCC1P0083706
>       root@data1:~# ceph-conf --name osd.0 --lookup "osd data"
>       root@data1:~#
> 
>       The OSD configuration section looks like this:
> 
>       [osd]
>           osd journal = /dev/ceph-journal/osd-$id
> 
>           osd mount options = rw,noatime,inode64
>           osd mkfs type = xfs
>           osd mkfs options xfs = -f -l size=1024m -n size=64k -i
>       size=2048
> 
>           osd op threads = 8
>           journal aio = true
> 
>       [osd.0]
>           host = data1
>           devs =
>       /dev/disk/by-id/scsi-SATA_WDC_WD2000FYYZ-_WD-WCC1P0083706
> 
>       So why doesn't ceph-conf return the "osd data" directory? Is
>       this a feature or a bug?
> 
>       I also tried this:
> 
>       root@data1:~# ceph-conf "osd data" -s osd
>       root@data1:~#
> 
>       I think that the tool should also return non declared variables
>       by giving back the defaults, but I don't know what the idea
>       behind this tool was/is?
> 
>       --
>       Wido den Hollander
>       42on B.V.
> 
>       Phone: +31 (0)20 700 9902
>       Skype: contact42on
>       _______________________________________________
>       ceph-users mailing list
>       ceph-users@xxxxxxxxxxxxxx
>       http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
> 
> 
> 
> --
> Software Engineer #42 @ http://inktank.com | http://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]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux