Skip to content

Instantly share code, notes, and snippets.

@tanabarr
Created September 23, 2019 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanabarr/ac74085b3652fc575f00154bb40508ad to your computer and use it in GitHub Desktop.
Save tanabarr/ac74085b3652fc575f00154bb40508ad to your computer and use it in GitHub Desktop.
Creating Pool without specifying a client side config file in command
SERVER:
--- a/utils/config/examples/daos_server_sockets.yml
+++ b/utils/config/examples/daos_server_sockets.yml
@@@ -6,10 -6,8 +6,12 @@@ provider: ofi+sockets # map to CR
socket_dir: /tmp/daos_sockets
nr_hugepages: 4096
control_log_mask: DEBUG
- control_log_file: /tmp/daos_control.log
++#control_log_file: /tmp/daos_control.log
+## uncomment to manually assign management service leader, if left unset
+## this will be the first daos_server instance to start
+#access_points: ['hostname1:10001']
+ #access_points: ["wolf-72:10001"]
## uncomment to drop privileges before starting data plane
## (if started as root to perform hardware provisioning)
# user_name: daosuser
@@@ -70,7 -69,8 +73,8 @@@ servers
# If using NVMe SSD (will write /mnt/daos/daos_nvme.conf and start I/O
# service with -n <path>)
bdev_class: nvme
- bdev_list: ["0000:81:00.0"] # generate regular nvme.conf
++ bdev_list: ["0000:87:00.0"] # generate regular nvme.conf
[root@wolf-72 daos_m]# orterun -np 1 -H wolf-72 --allow-run-as-root --report-uri /tmp/urifile daos_server -o /home/tanabarr/projects/daos_m/utils/config/examples/daos_server_sockets.yml -i
CLIENT:
[tanabarr@wolf-72 daos_m]$ install/bin/daos_shell -l wolf-72:10001 -i storage format -f
Active connections: [wolf-72:10001]
This is a destructive operation and storage devices specified in the server config file will be erased.
Please be patient as it may take several minutes.
NVMe storage format results:
wolf-72:10001:
PCI Addr:0000:87:00.0 Status:CTRL_SUCCESS
SCM storage format results:
wolf-72:10001:
Mntpoint:/mnt/daos Status:CTRL_SUCCESS
[tanabarr@wolf-72 daos_m]$ daos_shell -i pool create -s 100G -n 1T bash: daos_shell: command not found
[tanabarr@wolf-72 daos_m]$ source scons_local/utils/setup_local.sh
/home/tanabarr/projects/daos_m
Build vars file found: ./.build_vars.sh
OLD_PATH is /usr/lib64/qt-3.3/bin /usr/local/bin /usr/bin /usr/local/sbin /usr/sbin /usr/lib/go-1.10/bin /usr/local/go/bin /usr/local/go/bin /home/tanabarr/bin /usr/lib/go-1.10/bin /usr/local/go/bin /usr/local/go/bin
[tanabarr@wolf-72 daos_m]$ daos_shell -i pool create -s 100G -n 1T
Active connections: [localhost:10001]
Creating DAOS pool with 100GB SCM and 1TB NvMe storage (0.098 ratio)
Pool-create command SUCCEEDED: UUID: 9410e6d5-73cf-4608-b13a-481c75b94246, Service replicas: 0
[tanabarr@wolf-72 daos_m]$ daos_shell -i pool destroy -u 9410e6d5-73cf-4608-b13a-481c75b94246
Active connections: [localhost:10001]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment