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.
-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
> [email protected]
> http://lists.ceph.com/**listinfo.cgi/ceph-users-ceph.**com<http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com>
>


-- 
Software Engineer #42 @ http://inktank.com | http://ceph.com
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to