ndctl
ndctl copied to clipboard
ndctl create namespace failed
Previously, I create a namespace using ndctl create-namespace -m devdax -r --region=region0 -s <size>
and reconfigure its mode to system-ram mode using daxctl
daxctl reconfigure-device -m system-ram <dax-id>
But I forgot to offline-memory and reconfigure it to devdav mode before I disable and destory this namespace.
and now I can't not create namespace on region0, how to fix this problem? thanks.
[chen@localhost home]$ sudo ndctl create-namespace --mode=devdax --region=region0 -n "redis-aof"
libndctl: ndctl_dax_enable: dax0.0: failed to enable
Error: namespace0.0: failed to enable
failed to create namespace: No such device or address
ndctl list
output nothing but through numactl -H
I can find numa node (node2) created by daxctl
[chen@localhost home]$ numactl -H
available: 3 nodes (0-2)
node 0 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
node 0 size: 192108 MB
node 0 free: 183493 MB
node 1 cpus: 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
node 1 size: 193504 MB
node 1 free: 191550 MB
node 2 cpus:
node 2 size: 502784 MB
node 2 free: 499647 MB
node distances:
node 0 1 2
0: 10 21 17
1: 21 10 28
2: 17 28 10
Rebooting the host will remove the online system-ram memory and allow you to create new namespaces again.