diff --git a/build.sh b/build.sh index b01527e42b4..acd8c30eaca 100755 --- a/build.sh +++ b/build.sh @@ -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 \ No newline at end of file diff --git a/daos_server_rocky8.yml b/daos_server_rocky8.yml new file mode 100644 index 00000000000..7dd6eb23dec --- /dev/null +++ b/daos_server_rocky8.yml @@ -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" \ No newline at end of file diff --git a/readme b/readme index 1c6137567a6..513a8560538 100644 --- a/readme +++ b/readme @@ -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 diff --git a/src/control/server/init/setup_spdk.sh b/src/control/server/init/setup_spdk.sh index 7bf7766880d..770d8968ac9 100755 --- a/src/control/server/init/setup_spdk.sh +++ b/src/control/server/init/setup_spdk.sh @@ -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 diff --git a/start.sh b/start.sh index 8c2843408c9..fbca3105d51 100755 --- a/start.sh +++ b/start.sh @@ -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