NOTE THESE ARE NOT TO BE APPLIED TO 2.0 TESTING, USE THE QUICKSTARTS IN THE 2.0 ON-LINE DOCUMENTATION
Table of Contents
...
Code Block |
---|
|
# create pool
dmg pool create --config-path=/etc/daos/daos_control.yml pool createlabel=pool_2 --size=800G
Creating DAOS pool with automatic storage allocation: 800 GB NVMe + 6.00% SCM
Pool created with 6.00% SCM/NVMe ratio
---------------------------------------
UUID : b22220ea-740d-46bc-84ad-35ed3a28aa31
Service Ranks : [1-3]
Storage Ranks : [0-7]
Total Size : 848 GB
SCM : 48 GB (6.0 GB / rank)
NVMe : 800 GB (100 GB / rank)
# List pool
dmg --config-path=/etc/daos/daos_control.yml pool list
Pool UUID Svc Replicas
--------- ------------
b22220ea-740d-46bc-84ad-35ed3a28aa31 [1-3]
# assign pool uuid to DAOS_POOL variable
export DAOS_POOL=b22220ea-740d-46bc-84ad-35ed3a28aa31
# Pool Query
dmg --config-path=/etc/daos/daos_control.yml pool query --pool $DAOS_POOL
Pool b22220ea-740d-46bc-84ad-35ed3a28aa31, ntarget=64, disabled=0, leader=1, version=1
Pool space info:
- Target(VOS) count:64
- SCM:
Total size: 48 GB
Free: 48 GB, min:750 MB, max:750 MB, mean:750 MB
- NVMe:
Total size: 800 GB
Free: 660 GB, min:10 GB, max:10 GB, mean:10 GB
Rebuild idle, 0 objs, 0 recs
# create container of type POSIX
daos container create --pool=$DAOS_POOL --type=POSIX
Successfully created container cd46cf6e-f886-4682-8077-e3cbcd09b43a
# assign container uuid to DAOS_CONT variable
export DAOS_CONT=cd46cf6e-f886-4682-8077-e3cbcd09b43a
# create dir for dfuse mountpoint on all client nodes
pdsh -w $CLIENT_NODES 'mkdir /tmp/daos_dfuse'
# mount dfuse
pdsh -w $CLIENT_NODES dfuse --pool=$DAOS_POOL --cont=$DAOS_CONT --mountpoint=/tmp/daos_dfuse/
#verify dfuse got mounted.
pdsh -w $CLIENT_NODES df /tmp/daos_dfuse
wolf-86: Filesystem 1K-blocks Used Available Use% Mounted on
wolf-86: dfuse 828125000 136841868 691283133 17% /tmp/daos_dfuse
wolf-88: Filesystem 1K-blocks Used Available Use% Mounted on
wolf-88: dfuse 828125000 136841868 691283133 17% /tmp/daos_dfuse
wolf-87: Filesystem 1K-blocks Used Available Use% Mounted on
wolf-87: dfuse 828125000 136841868 691283133 17% /tmp/daos_dfuse |
...
Code Block |
---|
|
dmg pool query --pool $DAOS_POOL
Pool b22220ea-740d-46bc-84ad-35ed3a28aa31, ntarget=64, disabled=0, leader=1, version=1
Pool space info:
- Target(VOS) count:64
- SCM:
Total size: 48 GB
Free: 47 GB, min:738 MB, max:739 MB, mean:739 MB
- NVMe:
Total size: 800 GB
Free: 338 GB, min:5.1 GB, max:5.5 GB, mean:5.3 GB
Rebuild idle, 0 objs, 0 recs |
...
Code Block |
---|
|
mkdir /tmp/daos_dfuse/daos_container_copy
daos filesystem copy --src daos://$DAOS_POOL/$DAOS_CONT2 --dst /tmp/daos_dfuse/daos_container_copy
mkdir /tmp/daos_dfuse/daos_contcontainer_copy//
failed,mkdir: Filecannot existscreate Successfully copied to POSIX: directory ‘/tmp/daos_dfuse/daos_cont_copy/container_copy’: File exists |
Pool Query to confirm data got copied:
Code Block |
---|
|
dmg pool query --pool $DAOS_POOL
Pool b22220ea-740d-46bc-84ad-35ed3a28aa31, ntarget=64, disabled=0, leader=1, version=1
Pool space info:
- Target(VOS) count:64
- SCM:
Total size: 48 GB
Free: 47 GB, min:732 MB, max:733 MB, mean:732 MB
- NVMe:
Total size: 800 GB
Free: 128 GB, min:1.8 GB, max:2.3 GB, mean:2.0 GB
Rebuild idle, 0 objs, 0 recs |
...