Skip to content

Commit

Permalink
rocky8
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbandjl committed Sep 16, 2023
1 parent 2e86a26 commit 556e5e9
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# scons --jobs 1 install PREFIX=/opt/daos TARGET_TYPE=debug
# rm -rf /root/project/stor/daos/main/daos/build/external/debug/argobots
# 删除缓存: rm -rf build .sconf_temp .sconsign.dblite
# change DefaultSysMemRsvd to 1
scons --jobs 32 install PREFIX=/opt/daos BUILD_TYPE=debug TARGET_TYPE=debug --build-deps=yes # for qemu: scons-3 --jobs 1 install PREFIX=/opt/daos BUILD_TYPE=debug TARGET_TYPE=debug --build-deps=yes
# scons --jobs 1 install PREFIX=/opt/daos BUILD_TYPE=debug TARGET_TYPE=debug --build-deps=yes --implicit-deps-changed --config=force
# scons --jobs 1 install PREFIX=/opt/daos BUILD_TYPE=debug TARGET_TYPE=debug --build-deps=no --implicit-deps-changed --config=force
51 changes: 51 additions & 0 deletions daos_server_rocky8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# For a single-server system

name: daos_server
access_points:
- 192.168.1.8
port: 10001
provider: ofi+sockets
control_log_mask: DEBUG
control_log_file: /tmp/daos_server.log
helper_log_file: /tmp/daos_server_helper.log
transport_config:
allow_insecure: false
client_cert_dir: /etc/daos/certs/clients
ca_cert: /etc/daos/certs/daosCA.crt
cert: /etc/daos/certs/server.crt
key: /etc/daos/certs/server.key

engines:
-
targets: 1
first_core: 0
nr_xs_helpers: 0
fabric_iface: ens3
fabric_iface_port: 31416
log_mask: DEBUG
log_file: /tmp/daos_engine.0.log

env_vars:
- FI_LOG_LEVEL=warn
- FI_SOCKETS_MAX_CONN_RETRY=1
- FI_SOCKETS_CONN_TIMEOUT=2000
- D_LOG_MASK=DEBUG
- DD_SUBSYS=all
- DD_MASK=all
- HG_LOG_LEVEL=debug

# Storage definitions

# When scm_class is set to ram, tmpfs will be used to emulate SCM.
# The size of ram is specified by scm_size in GB units.
scm_mount: /mnt/daos # map to -s /mnt/daos
scm_class: ram
scm_size: 4 #内存模拟scm

# When bdev_class is set to file, Linux AIO will be used to emulate NVMe.
# The size of file that will be created is specified by bdev_size in GB units.
# The location of the files that will be created is specified in bdev_list.
bdev_class: nvme
bdev_list:
# get_pci: nvme list -v
- "0000:00:08.0"
6 changes: 6 additions & 0 deletions readme
Original file line number Diff line number Diff line change
Expand Up @@ -5725,6 +5725,12 @@ ln -s $daospath/include /usr/share/spdk/include

/opt/daos/prereq/debug/spdk/share/spdk/scripts/setup.sh

spdk setup.sh问题解决: src/control/server/init/setup_spdk.sh 脚本会去以下目录找spdk脚本
mkdir -p /usr/share/spdk/scripts
ln -sf $daospath/prereq/debug/spdk/share/spdk/scripts/setup.sh /usr/share/spdk/scripts
ln -sf $daospath/prereq/debug/spdk/share/spdk/scripts/common.sh /usr/share/spdk/scripts



func (p *Provider) mountRamdisk
ramFsType = system.FsTypeTmpfs
Expand Down
1 change: 1 addition & 0 deletions src/control/server/init/setup_spdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ echo "start of script: $thisscriptpath/$thisscriptname"

rootdir="$(readlink -f "$(dirname "$0")")"/../..
scriptpath="$rootdir/spdk/scripts/setup.sh"
echo "scriptpath:$scriptpath, rootdir:$rootdir"
if [ ! -f "$scriptpath" ]; then
if [ -f /usr/share/spdk/scripts/setup.sh ]; then
scriptpath=/usr/share/spdk/scripts/setup.sh
Expand Down
7 changes: 6 additions & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@ umount /mnt/daos

#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
Expand Down

0 comments on commit 556e5e9

Please sign in to comment.