* [BUG] ceph 0.23 ,sudo /etc/init.d/init-ceph cleanalllogs , delete / folder
@ 2010-12-02 7:25 Jeff Wu
2010-12-02 19:22 ` Sage Weil
0 siblings, 1 reply; 6+ messages in thread
From: Jeff Wu @ 2010-12-02 7:25 UTC (permalink / raw)
To: sage, gregf, yehuda, colinm; +Cc: ceph-devel, mllv, wchen
Hi ,
We refer to ceph wiki :
http://ceph.newdream.net/wiki/Starting_and_stopping
,use the commands:
start|stop -- start or stop the daemon(s)
forcestop -- force stop (kill -9)
killall -- kill all instance of daemon type on the host (useful is
pid file is wrong or missing)
cleanlogs -- clean out log directory
cleanalllogs -- clean out _everything_ from log directory
If we execute the command : "init-ceph cleanalllogs" , which will
delete / folder (logs,see below ):
================================================
1. cleanalllogs
$ sudo /etc/init.d/init-ceph cleanalllogs
=== mon.0 ===
removing all logs
rm: cannot remove `/var/log/ceph/stat': Is a directory
rm: cannot remove `/bin': Is a directory
rm: cannot remove `/boot': Is a directory
rm: cannot remove `/cdrom': Is a directory
rm: cannot remove `/dev': Is a directory
rm: cannot remove `/etc': Is a directory
rm: cannot remove `/home': Is a directory
rm: cannot remove `/lib': Is a directory
rm: cannot remove `/lost+found': Is
rm: cannot remove `/media': Is a directory
rm: cannot remove `/mnt': Is a directory
rm: cannot remove `/opt': Is a directory
rm: cannot remove `/proc': Is a directory
rm: cannot remove `/root': Is a directory
rm: cannot remove `/sbin': Is a directory
rm: cannot remove `/selinux': Is a directory
rm: cannot remove `/srv': Is a directory
rm: cannot remove `/sys': Is a directory
rm: cannot remove `/tmp': Is a directory
rm: cannot remove `/usr': Is a directory
rm: cannot remove `/var': Is a directory
/etc/init.d/init-ceph: 1: cut: not found
/etc/init.d/init-ceph: 1: cut: not found
/etc/init.d/init-ceph: 1: sed: not found
/etc/init.d/init-ceph: 1: /usr/local/bin/cconf: not found
/etc/init.d/init-ceph: 1: /usr/local/bin/cconf: not found
/etc/init.d/init-ceph: 1: /usr/local/bin/cconf: not found
=== . ===
/etc/init.d/init-ceph: 1: /usr/local/bin/cconf: not found
/etc/init.d/init-ceph: 1: /usr/local/bin/cconf: not found
/etc/init.d/init-ceph: 1: /usr/local/bin/cconf: not found
/etc/init.d/init-ceph: 1: grep: not found
/etc/init.d/init-ceph: 1: /usr/local/bin/cconf: not found
/etc/init.d/init-ceph: 1: dirname: not found
removing all logs
/etc/init.d/init-ceph: 1: whoami: not found
/etc/init.d/init-ceph: 1: bash: not found
=========================================================
2.init-ceph script
.................................
.................................
force-reload | reload)
signal_daemon $name c$type $pid_file -1 "Reloading"
;;
restart)
$0 $options stop $name
$0 $options start $name
;;
cleanlogs)
echo removing logs
do_cmd "for f in $log_sym_dir/$name*; do rm -f \`readlink \
$f\` ; rm -f \$f ; done"
;;
cleanalllogs)
echo removing all logs
do_cmd "rm -f $log_dir/* $log_sym_dir/* || true"
;;
*)
usage_exit
;;
esac
done
exit 0
=================================================
Look into init-ceph codes, should be "$log_sym_dir/* " equal to "/*",
"cleanlogs" command also exist this issue. init-ceph script might be add
a check for "$log_dir" and "$log_sym_dir".
and If we detect some of bugs ,does it update to
http://tracker.newdream.net/projects/ceph ?
if yes ,how ?
thanks.
Jeff,wu
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG] ceph 0.23 ,sudo /etc/init.d/init-ceph cleanalllogs , delete / folder
2010-12-02 7:25 [BUG] ceph 0.23 ,sudo /etc/init.d/init-ceph cleanalllogs , delete / folder Jeff Wu
@ 2010-12-02 19:22 ` Sage Weil
2010-12-03 1:01 ` Jeff Wu
2010-12-03 1:22 ` Jeff Wu
0 siblings, 2 replies; 6+ messages in thread
From: Sage Weil @ 2010-12-02 19:22 UTC (permalink / raw)
To: Jeff Wu; +Cc: gregf, yehuda, colinm, ceph-devel, mllv, wchen
Hi Jeff,
On Thu, 2 Dec 2010, Jeff Wu wrote:
> [...]
> Look into init-ceph codes, should be "$log_sym_dir/* " equal to "/*",
> "cleanlogs" command also exist this issue. init-ceph script might be add
> a check for "$log_dir" and "$log_sym_dir".
This was updated in the 'rc' branch (soon to be 0.24). It's now
cleanlogs)
echo removing logs
if [ -n "$log_sym_dir" ]; then
do_cmd "for f in $log_sym_dir/$type.$id.*; do rm -f
\`readlink \$f\` ; rm -f \$f ; done ; rm -f $log_dir/$type.$id.*"
fi
[ -n "$log_dir" ] && do_cmd "rm -f $log_dir/$type.$id.*"
;;
cleanalllogs)
echo removing all logs
[ -n "$log_sym_dir" ] && do_cmd "rm -f $log_sym_dir/* || true"
[ -n "$log_dir" ] && do_cmd "rm -f $log_dir/* || true"
;;
> and If we detect some of bugs ,does it update to
> http://tracker.newdream.net/projects/ceph ?
>
> if yes ,how ?
Yes, please. You can create an account, log in, and then click the 'new
issue' button along the top. In this case the issue is fixed for the next
release though (I believe?) so we should be okay.
Thanks!
sage
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG] ceph 0.23 ,sudo /etc/init.d/init-ceph cleanalllogs , delete / folder
2010-12-02 19:22 ` Sage Weil
@ 2010-12-03 1:01 ` Jeff Wu
2010-12-03 1:22 ` Jeff Wu
1 sibling, 0 replies; 6+ messages in thread
From: Jeff Wu @ 2010-12-03 1:01 UTC (permalink / raw)
To: Sage Weil; +Cc: gregf, yehuda, colinm, ceph-devel, Andrew Lv, Kevin Chen
在 2010-12-03五的 03:22 +0800,Sage Weil写道:
> Hi Jeff,
>
> On Thu, 2 Dec 2010, Jeff Wu wrote:
> > [...]
> > Look into init-ceph codes, should be "$log_sym_dir/* " equal to "/*",
> > "cleanlogs" command also exist this issue. init-ceph script might be add
> > a check for "$log_dir" and "$log_sym_dir".
>
> This was updated in the 'rc' branch (soon to be 0.24). It's now
>
> cleanlogs)
> echo removing logs
> if [ -n "$log_sym_dir" ]; then
> do_cmd "for f in $log_sym_dir/$type.$id.*; do rm -f
> \`readlink \$f\` ; rm -f \$f ; done ; rm -f $log_dir/$type.$id.*"
> fi
> [ -n "$log_dir" ] && do_cmd "rm -f $log_dir/$type.$id.*"
> ;;
>
> cleanalllogs)
> echo removing all logs
> [ -n "$log_sym_dir" ] && do_cmd "rm -f $log_sym_dir/* || true"
> [ -n "$log_dir" ] && do_cmd "rm -f $log_dir/* || true"
> ;;
>
> > and If we detect some of bugs ,does it update to
> > http://tracker.newdream.net/projects/ceph ?
> >
> > if yes ,how ?
>
> Yes, please. You can create an account, log in, and then click the 'new
> issue' button along the top. In this case the issue is fixed for the next
> release though (I believe?) so we should be okay.
Hi ,sage, thank you for your reply so quickly.
>
> Thanks!
> sage
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG] ceph 0.23 ,sudo /etc/init.d/init-ceph cleanalllogs , delete / folder
2010-12-02 19:22 ` Sage Weil
2010-12-03 1:01 ` Jeff Wu
@ 2010-12-03 1:22 ` Jeff Wu
2010-12-03 17:20 ` Sage Weil
1 sibling, 1 reply; 6+ messages in thread
From: Jeff Wu @ 2010-12-03 1:22 UTC (permalink / raw)
To: Sage Weil; +Cc: gregf, yehuda, colinm, ceph-devel, Andrew Lv, Kevin Chen
在 2010-12-03五的 03:22 +0800,Sage Weil写道:
> Hi Jeff,
>
> On Thu, 2 Dec 2010, Jeff Wu wrote:
> > [...]
> > Look into init-ceph codes, should be "$log_sym_dir/* " equal to "/*",
> > "cleanlogs" command also exist this issue. init-ceph script might be add
> > a check for "$log_dir" and "$log_sym_dir".
>
> This was updated in the 'rc' branch (soon to be 0.24). It's now
>
> cleanlogs)
> echo removing logs
> if [ -n "$log_sym_dir" ]; then
> do_cmd "for f in $log_sym_dir/$type.$id.*; do rm -f
> \`readlink \$f\` ; rm -f \$f ; done ; rm -f $log_dir/$type.$id.*"
> fi
> [ -n "$log_dir" ] && do_cmd "rm -f $log_dir/$type.$id.*"
> ;;
>
> cleanalllogs)
> echo removing all logs
> [ -n "$log_sym_dir" ] && do_cmd "rm -f $log_sym_dir/* || true"
> [ -n "$log_dir" ] && do_cmd "rm -f $log_dir/* || true"
> ;;
>
> > and If we detect some of bugs ,does it update to
> > http://tracker.newdream.net/projects/ceph ?
> >
> > if yes ,how ?
>
> Yes, please. You can create an account, log in, and then click the 'new
> issue' button along the top. In this case the issue is fixed for the next
> release though (I believe?) so we should be okay.
>
Hi, if i create a new issue ,who should the bug be assigned to ?
> Thanks!
> sage
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG] ceph 0.23 ,sudo /etc/init.d/init-ceph cleanalllogs , delete / folder
2010-12-03 1:22 ` Jeff Wu
@ 2010-12-03 17:20 ` Sage Weil
2010-12-06 5:55 ` Jeff Wu
0 siblings, 1 reply; 6+ messages in thread
From: Sage Weil @ 2010-12-03 17:20 UTC (permalink / raw)
To: Jeff Wu; +Cc: gregf, yehuda, colinm, ceph-devel, Andrew Lv, Kevin Chen
On Fri, 3 Dec 2010, Jeff Wu wrote:
> > Yes, please. You can create an account, log in, and then click the 'new
> > issue' button along the top. In this case the issue is fixed for the next
> > release though (I believe?) so we should be okay.
> >
> Hi, if i create a new issue ,who should the bug be assigned to ?
In the cleanlogs case, no need to enter a bug, as it's fixed in
the 'rc' branch. In general for other bugs, just leave it unassigned.
Thanks!
sage
>
>
>
> > Thanks!
> > sage
>
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG] ceph 0.23 ,sudo /etc/init.d/init-ceph cleanalllogs , delete / folder
2010-12-03 17:20 ` Sage Weil
@ 2010-12-06 5:55 ` Jeff Wu
0 siblings, 0 replies; 6+ messages in thread
From: Jeff Wu @ 2010-12-06 5:55 UTC (permalink / raw)
To: Sage Weil; +Cc: gregf, yehuda, colinm, ceph-devel, Andrew Lv, Kevin Chen
在 2010-12-04六的 01:20 +0800,Sage Weil写道:
> On Fri, 3 Dec 2010, Jeff Wu wrote:
> > > Yes, please. You can create an account, log in, and then click the 'new
> > > issue' button along the top. In this case the issue is fixed for the next
> > > release though (I believe?) so we should be okay.
> > >
> > Hi, if i create a new issue ,who should the bug be assigned to ?
>
> In the cleanlogs case, no need to enter a bug, as it's fixed in
> the 'rc' branch. In general for other bugs, just leave it unassigned.
>
Hi sage, i get it ,thank you.
> Thanks!
> sage
>
> >
> >
> >
> > > Thanks!
> > > sage
> >
> > --
> > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> > the body of a message to majordomo@vger.kernel.org
> > 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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-12-06 5:53 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-02 7:25 [BUG] ceph 0.23 ,sudo /etc/init.d/init-ceph cleanalllogs , delete / folder Jeff Wu
2010-12-02 19:22 ` Sage Weil
2010-12-03 1:01 ` Jeff Wu
2010-12-03 1:22 ` Jeff Wu
2010-12-03 17:20 ` Sage Weil
2010-12-06 5:55 ` Jeff Wu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.