forked from daos-stack/daos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.sh
executable file
·46 lines (36 loc) · 942 Bytes
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
echo -e "start"
# source /root/.bashrc
# run_all "pkill daos_agent;pkill daos_server"
source /root/.bashrc
pkill daos_agent
pkill daos_server
rm -f /tmp/daos*.log
rm -f /tmp/.daos_engine.0.log.swp
rm -f /tmp/daos_engine*
umount /mnt/daos
#export FI_LOG_LEVEL=debug
#export FI_LOG_LEVEL=warn
#export HG_LOG_LEVEL=debug
#export HG_LOG_LEVEL=warn
daospath=/opt/daos
mkdir -p /var/run/daos_agent/
daos_agent &
# echo -e "dmg storage format"
# ./build/external/debug/spdk/scripts/setup.sh
# ./build/external/debug/spdk/scripts/setup.sh reset
mkdir -p /var/run/daos_server
daos_server start &
# count=0
# while true;do
# joined_num=`dmg sys query -v|grep Joined|wc -l`
# if [[ $joined_num -eq 3 ]];then
# break
# fi
# echo -e "wait all rank join, $count times"
# count=$((count+1))
# sleep 1
# done
sleep 5
dmg storage format
# centos7
# cp -r /home/xb/project/stor/daos/main/daos/daosCA/certs /etc/daos/