ceph 0.23 ,sudo /etc/init.d/init-ceph cleanalllogs , delete / folder
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
;;
esacdone
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
Hi Jeff,
Quoted 4 lines · Jeff Wu
[...]
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" ;;
Quoted 4 lines
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
Quoted 25 lines · 在 2010-12-03五的 03:22 +0800,Sage Weil写道:
Hi Jeff,
Quoted 4 lines · Jeff Wu
[...]
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" ;;
Quoted 8 lines
Quoted 4 lines
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.
Quoted 3 lines
Thanks!
sage
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 25 lines · 在 2010-12-03五的 03:22 +0800,Sage Weil写道:
Hi Jeff,
Quoted 4 lines · Jeff Wu
[...]
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" ;;
Quoted 9 lines
Quoted 4 lines
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 ?
Quoted 2 lines
Thanks!
sage
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · Jeff Wu
Quoted 4 lines
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
Quoted 12 lines
Quoted 5 lines
Thanks!
sage--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 10 lines · 在 2010-12-04六的 01:20 +0800,Sage Weil写道:
Quoted 5 lines · Jeff Wu
Quoted 4 lines
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.
Quoted 15 lines
Thanks!
sageQuoted 12 lines
Quoted 5 lines
Thanks!
sage--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html