RE: Cannot execute rados.py with sudoer

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

 



Hi, Tommi,

Here is my ceph.conf. The "/var/log/ceph" folder is created by myself. 

Because the script in 0.37 didn't create it. 

Maybe the problem is I did not set correct permission to the folder.

; global
[global]
        auth supported = cephx
        max open files = 131072
        log file = /var/log/ceph/$name.log
        pid file = /var/run/ceph/$name.pid
        keyring = /etc/ceph/$name.keyring

[mon]
        mon data = /srv/mon.$id

[mon.a]
        host = ubuntu1104-64-5
        mon addr = 172.16.33.5:6789

[mds]

[mds.a]
        host = ubuntu1104-64-5

[osd]
        osd data = /srv/osd.$id
        osd journal = /srv/osd.$id.journal
        osd journal size = 1000 ; journal size, in megabytes

 [osd.0]
        host = ubuntu1104-64-6
        btrfs devs = /dev/mapper/ubuntu1104--64--6-lvol0

[osd.1]
        host = ubuntu64-33-7
        btrfs devs =  /dev/mapper/ubuntu64--33--7-lvol0

[osd.2]
        host = ubuntu1104-64-5
        btrfs devs =  /dev/mapper/ubuntu1104--64--5-lvol0

regards,

Eric/Pjack

-----Original Message-----
From: Tommi Virtanen [mailto:tommi.virtanen@xxxxxxxxxxxxx] 
Sent: Friday, November 04, 2011 1:51 AM
To: Eric YH Chen/WHQ/Wistron
Cc: gregory.farnum@xxxxxxxxxxxxx; ceph-devel@xxxxxxxxxxxxxxx
Subject: Re: Cannot execute rados.py with sudoer

On Wed, Nov 2, 2011 at 22:24,  <Eric_YH_Chen@xxxxxxxxxxx> wrote:
> The log is generated by ceph service at runtime.
>
> Even I change the permission, it would be overwritten by the service someday.

Did you change ceph.conf and set one of the log options? The default
config writes to /var/log only from the daemons, not from the
libraries. Can you please share your configuration.

As for needing to be able to read client.admin, that file is not
changed by the ceph services starting, you can safely chown/chmod it.
Alternatively, give the non-root user a new key, and authorize that
with "ceph auth add".
��.n��������+%������w��{.n����z��u���ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux