Re: unstable crushtool fails to open log file

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

 



Hi Jim,

This should be fixed by 8adaa0478a94b5f731ee77e12a8dac29e3a7b46a

Command line (non-daemon) programs should now log to stderr, always,
rather than trying to open logfiles or syslog.

cheers,
Colin


On Wed, Jan 5, 2011 at 10:49 AM, Jim Schutt <jaschut@xxxxxxxxxx> wrote:
> Hi Colin,
>
> On Wed, 2011-01-05 at 11:46 -0700, Colin McCabe wrote:
>> Hi Jim,
>>
>> We should be defaulting to sending logs to stderr for command-line
>> tools like crushtool.
>>
>> I'll resolve this in a bit.
>
> Cool, thanks.
>
> -- Jim
>
>>
>> C.
>>
>>
>> On Wed, Jan 5, 2011 at 10:39 AM, Jim Schutt <jaschut@xxxxxxxxxx> wrote:
>> > Hi,
>> >
>> > unstable branch crushtool is failing for me like this:
>> >
>> > # crushtool --num_osds 32 -o test.crushmap --build shelf uniform 8 host uniform 1 root straw 0
>> > failed to open log file '/var/log/ceph/': error 21: Is a directory
>> >
>> > This error seems to happen at crushtool.cc:925:
>> >
>> > 925           dout(0) << "layer " << type
>> > 926                   << "  " << l.name
>> > 927                   << "  bucket type " << l.buckettype
>> > 928                   << "  " << l.size
>> > 929                   << dendl;
>> >
>> >
>> > AFAICS commit 986c2af4aeb switched dout to use DoutStreambuf,
>> > and by default (commit 952111451c3) everything now logs to a
>> > file.
>> >
>> > What's the right way to get crushtool to log to stdout or
>> > stderr?  Or, how to I get crushtool to use a log file
>> > of my choice?
>> >
>> > Thanks -- Jim
>> >
>> >
>> >
>> > --
>> > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>> > the body of a message to majordomo@xxxxxxxxxxxxxxx
>> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> >
>>
>
>
>
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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