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

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

 



On 06/28/2013 05:02 PM, 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. :)


I'll see what I can do.

You can also look at ceph-disk's get_conf and get_conf_with_default
methods for how I handle this.

Thanks for the hints!

Wido

-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
    <http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com>



--
Software Engineer #42 @ http://inktank.com | http://ceph.com


--
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




[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