[sheepdog] [PATCH] sheep: add an option for selecting the output directory of sheep.log
Liu Yuan
namei.unix at gmail.com
Tue Dec 10 05:36:06 CET 2013
On Mon, Dec 09, 2013 at 08:49:45PM +0900, Teruaki Ishizaki wrote:
> Previously sheep.log was saved in the Sheepdog store directory,
> and used size of Sheepdog store directory included log file size.
> So, administrator couldn't do capacity planning simply.
>
> This patch adds an option for setting the output directory of sheep.log.
>
> Usage:
> $ sheep -L dir=<log_output_dir>
>
> Example:
> $ sheep -L dir=/logdir /datastore
I think it is a good time to group logger parameters into a single option, that
is
-l level=xxx,dir=yyy,formatter=zzz.
> Signed-off-by: Teruaki Ishizaki <ishizaki.teruaki at lab.ntt.co.jp>
> ---
> sheep/sheep.c | 36 ++++++++++++++++++++++++++++++++++--
> 1 files changed, 34 insertions(+), 2 deletions(-)
>
> diff --git a/sheep/sheep.c b/sheep/sheep.c
> index 9d9afa0..fc4982c 100644
> --- a/sheep/sheep.c
> +++ b/sheep/sheep.c
> @@ -98,6 +98,12 @@ static const char cache_help[] =
> "This tries to use /my_ssd as the cache storage with 200G allocted to the\n"
> "cache in directio mode\n";
>
> +static const char logdir_help[] =
> +"Example:\n\t$ sheep -L dir=/var/log/ ...\n"
> +"Available arguments:\n"
> +"\tdir=: path to the location of sheep.log\n"
> +"if not specified use datastore directory\n";
"use metastore direcotry"
Thanks
Yuan
More information about the sheepdog
mailing list