root@srl-mds1:~# dpkg -l | grep -i ndctl
ii libndctl6 61.2-0ubuntu1~18.04.1 amd64 Utility library for managing the libnvdimm subsystem
ii ndctl 61.2-0ubuntu1~18.04.1 amd64 Utility for managing the nvdimm subsystem
root@srl-mds1:~# ndctl create-namespace -e "namespace0.0" -m fsdax -f -vvv
enable_labels:945: region0: failed to initialize labels
namespace_reconfig:977: region0: no idle namespace seed
failed to reconfigure namespace: No such device
root@srl-mds1:~#
Tested latest kernel 4.15.0-72-generic on bionic.
root@srl-mds1:~# dpkg -l | grep -i ndctl 18.04.1 amd64 Utility library for managing the libnvdimm subsystem 18.04.1 amd64 Utility for managing the nvdimm subsystem
ii libndctl6 61.2-0ubuntu1~
ii ndctl 61.2-0ubuntu1~
root@srl-mds1:~# ndctl create-namespace -e "namespace0.0" -m fsdax -f -vvv reconfig: 977: region0: no idle namespace seed
enable_labels:945: region0: failed to initialize labels
namespace_
failed to reconfigure namespace: No such device
root@srl-mds1:~#
But if I add --no-autolabel it works
root@srl-mds1:~# ndctl create-namespace --no-autolabel --mode fsdax --map dev -e namespace0.0 -f -vvv :"namespace0. 0", :"4c9523f5- 8442-4356- 9133-0e48c88c8d 8f", size":512, :"pmem0" , :"namespace1. 0", :"2a16dd16- df10-4737- abb5-060266070d 7e", size":512, :"pmem1" ,
{
"dev"
"mode":"fsdax",
"map":"dev",
"size":"189.00 GiB (202.94 GB)",
"uuid"
"sector_
"blockdev"
"numa_node":0
}
root@srl-mds1:~# ndctl create-namespace --no-autolabel --mode fsdax --map dev -e namespace1.0 -f -vvv
{
"dev"
"mode":"fsdax",
"map":"dev",
"size":"189.00 GiB (202.94 GB)",
"uuid"
"sector_
"blockdev"
"numa_node":1
}
Bionic LTS kernel still needs kernel fix.