[BUG] ceph 0.23 ,sudo /etc/init.d/init-ceph cleanalllogs , delete / folder

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

 



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










--
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