ndctl ver 63: Basic newbie query: Unable to destroy namespaces
A message that is not in the archive (sent off-list or not yet received): [email protected]
h/w: HP ProLiant Gen10 box with 4 nvdimms (16gb each)
# uname -aLinux fox22hv.lab.netapp.com 4.19.0-1.el7.elrepo.x86_64 #1 SMP Mon Oct 22 10:40:32 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux
# ndctl --version 63+
Im not sure if I have label-less namespace or not. My intention was to play around with ndctl, destroy default 16gb namespaces and create some of my own. This may be due to user error or config error but I am not able to get past this. I have dug through every bit of info available online and have exhausted my options, hence this email.
I have not been able to destroy the default 16gb namespace. I get this error:
# ndctl destroy-namespace namespace0.0destroyed 0 namespaces # ndctl destroy-namespace -f namespace0.0 -v libndctl: __sysfs_device_parse: base: /sys/class/nd dev: ndctl libndctl: __sysfs_device_parse: ndctl0: processed libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0 dev: region libndctl: to_module: failed to find module for alias: nd:t2 0 list: empty libndctl: __sysfs_device_parse: region2: processed libndctl: to_module: failed to find module for alias: nd:t2 0 list: empty libndctl: __sysfs_device_parse: region0: processed libndctl: to_module: failed to find module for alias: nd:t2 0 list: empty libndctl: __sysfs_device_parse: region3: processed libndctl: to_module: failed to find module for alias: nd:t2 0 list: empty libndctl: __sysfs_device_parse: region1: processed libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region1 dev: namespace1. libndctl: to_module: alias: nd:t4 module: nd_pmem libndctl: __sysfs_device_parse: namespace1.0: processed libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region3 dev: namespace3. libndctl: to_module: alias: nd:t4 module: nd_pmem libndctl: __sysfs_device_parse: namespace3.0: processed libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region0 dev: namespace0. libndctl: to_module: alias: nd:t4 module: nd_pmem libndctl: __sysfs_device_parse: namespace0.0: processed libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region0 dev: pfn0. libndctl: to_module: alias: nd:t4 module: nd_pmem libndctl: __sysfs_read_attr: failed to read /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region0/pfn0.0/resource: No such device or address libndctl: __sysfs_read_attr: failed to read /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region0/pfn0.0/size: No such device or address libndctl: __sysfs_device_parse: pfn0.0: processed libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region0 dev: dax0. libndctl: to_module: alias: nd:t7 module: dax_pmem libndctl: __sysfs_read_attr: failed to read /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region0/dax0.0/resource: No such device or address libndctl: __sysfs_read_attr: failed to read /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region0/dax0.0/size: No such device or address libndctl: __sysfs_device_parse: dax0.0: processed libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region0 dev: btt0. libndctl: to_module: alias: nd:t4 module: nd_pmem libndctl: parse_lbasize_supported: btt0.0: 512 520 528 4096 4104 4160 4224 libndctl: __sysfs_read_attr: failed to read /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region0/btt0.0/size: No such device or address libndctl: __sysfs_device_parse: btt0.0: processed libndctl: write_attr: failed to write to /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region0/namespace0.0/holder_class: No such device or address libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region2 dev: namespace2. libndctl: to_module: alias: nd:t4 module: nd_pmem libndctl: __sysfs_device_parse: namespace2.0: processed destroyed 0 namespaces
Then I tried to disable the region and see s little different error msg:# ndctl disable-region region0 disabled 1 region
# ndctl destroy-namespace namespace0.0 -v libndctl: __sysfs_device_parse: base: /sys/class/nd dev: ndctl libndctl: __sysfs_device_parse: ndctl0: processed libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0 dev: region libndctl: to_module: failed to find module for alias: nd:t2 0 list: empty libndctl: __sysfs_device_parse: region2: processed libndctl: to_module: failed to find module for alias: nd:t2 0 list: empty libndctl: __sysfs_device_parse: region0: processed libndctl: to_module: failed to find module for alias: nd:t2 0 list: empty libndctl: __sysfs_device_parse: region3: processed libndctl: to_module: failed to find module for alias: nd:t2 0 list: empty libndctl: __sysfs_device_parse: region1: processed libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region1 dev: namespace1. libndctl: to_module: alias: nd:t4 module: nd_pmem libndctl: __sysfs_device_parse: namespace1.0: processed libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region3 dev: namespace3. libndctl: to_module: alias: nd:t4 module: nd_pmem libndctl: __sysfs_device_parse: namespace3.0: processed libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region0 dev: namespace0. libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region2 dev: namespace2. libndctl: to_module: alias: nd:t4 module: nd_pmem libndctl: __sysfs_device_parse: namespace2.0: processed error destroying namespaces: No such device or address destroyed 0 namespaces
Trying to read the labels is also not working:# ndctl read-labels nmem1 -v
libndctl: __sysfs_device_parse: base: /sys/class/nd dev: ndctl
libndctl: __sysfs_device_parse: ndctl0: processed
libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0 dev: nmem
libndctl: to_module: failed to find module for alias: nd:t1 0 list: empty
libndctl: parse_dimm_flags: nmem2:
libndctl: __sysfs_read_attr: failed to open /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/nmem2/nfit/dirty_shutdown: No such file or directory
libndctl: parse_nfit_mem_flags: nmem2: smart_notify
libndctl: __sysfs_device_parse: nmem2: processed
libndctl: to_module: failed to find module for alias: nd:t1 0 list: empty
libndctl: parse_dimm_flags: nmem0:
libndctl: __sysfs_read_attr: failed to open /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/nmem0/nfit/dirty_shutdown: No such file or directory
libndctl: parse_nfit_mem_flags: nmem0: smart_notify
libndctl: __sysfs_device_parse: nmem0: processed
libndctl: to_module: failed to find module for alias: nd:t1 0 list: empty
libndctl: parse_dimm_flags: nmem3:
libndctl: __sysfs_read_attr: failed to open /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/nmem3/nfit/dirty_shutdown: No such file or directory
libndctl: parse_nfit_mem_flags: nmem3: smart_notify
libndctl: __sysfs_device_parse: nmem3: processed
libndctl: to_module: failed to find module for alias: nd:t1 0 list: empty
libndctl: parse_dimm_flags: nmem1:
libndctl: __sysfs_read_attr: failed to open /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/nmem1/nfit/dirty_shutdown: No such file or directory
libndctl: parse_nfit_mem_flags: nmem1: smart_notify
libndctl: __sysfs_device_parse: nmem1: processed
libndctl: ndctl_dimm_cmd_new_cfg_size: unsupported cmd
read 0 nmem
Here are my kernel options:CONFIG_LIBNVDIMM=yCONFIG_BLK_DEV_PMEM=mCONFIG_ND_BLK=mCONFIG_ND_CLAIM=yCONFIG_ND_BTT=mCONFIG_BTT=yCONFIG_ND_PFN=mCONFIG_NVDIMM_PFN=yCONFIG_NVDIMM_DAX=yCONFIG_DAX_DRIVER=yCONFIG_DAX=yCONFIG_DEV_DAX=mCONFIG_DEV_DAX_PMEM=mCONFIG_NVMEM=y
Would appreciate if someone can help.
Thanks,KK
_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm
Verma, Vishal L
maintainerQuoted 8 lines · Kamal Kakri
h/w: HP ProLiant Gen10 box with 4 nvdimms (16gb each)
# uname -aLinux fox22hv.lab.netapp.com 4.19.0-1.el7.elrepo.x86_64 #1 SMP Mon Oct 22 10:40:32 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux# ndctl --version 63+
Quoted 8 lines
Im not sure if I have label-less namespace or not. My intention was to play around with ndctl, destroy default 16gb namespaces and create some of my own. This may be due to user error or config error but I am not able to get past this. I have dug through every bit of info available online and have exhausted my options, hence this email.
I have not been able to destroy the default 16gb namespace. I get this error:
The semantics of destroy-namespace have certainly been cause of confusion in the past - but my understanding is that HP nvdimms are indeed label-less, and the namespaces on them can't be destroyed.
You should however be able to reconfigure them to use a different mode using the create-namespace --reconfigure option.
Quoted 177 lines
# ndctl destroy-namespace namespace0.0destroyed 0 namespaces # ndctl destroy-namespace -f namespace0.0 -v libndctl: __sysfs_device_parse: base: /sys/class/nd dev: ndctl libndctl: __sysfs_device_parse: ndctl0: processed libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0 dev: region libndctl: to_module: failed to find module for alias: nd:t2 0 list: empty libndctl: __sysfs_device_parse: region2: processed libndctl: to_module: failed to find module for alias: nd:t2 0 list: empty libndctl: __sysfs_device_parse: region0: processed libndctl: to_module: failed to find module for alias: nd:t2 0 list: empty libndctl: __sysfs_device_parse: region3: processed libndctl: to_module: failed to find module for alias: nd:t2 0 list: empty libndctl: __sysfs_device_parse: region1: processed libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region1 dev: namespace1. libndctl: to_module: alias: nd:t4 module: nd_pmem libndctl: __sysfs_device_parse: namespace1.0: processed libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region3 dev: namespace3. libndctl: to_module: alias: nd:t4 module: nd_pmem libndctl: __sysfs_device_parse: namespace3.0: processed libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region0 dev: namespace0. libndctl: to_module: alias: nd:t4 module: nd_pmem libndctl: __sysfs_device_parse: namespace0.0: processed libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region0 dev: pfn0. libndctl: to_module: alias: nd:t4 module: nd_pmem libndctl: __sysfs_read_attr: failed to read /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region0/pfn0. 0/resource: No such device or address libndctl: __sysfs_read_attr: failed to read /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region0/pfn0. 0/size: No such device or address libndctl: __sysfs_device_parse: pfn0.0: processed libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region0 dev: dax0. libndctl: to_module: alias: nd:t7 module: dax_pmem libndctl: __sysfs_read_attr: failed to read /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region0/dax0. 0/resource: No such device or address libndctl: __sysfs_read_attr: failed to read /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region0/dax0. 0/size: No such device or address libndctl: __sysfs_device_parse: dax0.0: processed libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region0 dev: btt0. libndctl: to_module: alias: nd:t4 module: nd_pmem libndctl: parse_lbasize_supported: btt0.0: 512 520 528 4096 4104 4160 4224 libndctl: __sysfs_read_attr: failed to read /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region0/btt0. 0/size: No such device or address libndctl: __sysfs_device_parse: btt0.0: processed libndctl: write_attr: failed to write to /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region0/names pace0.0/holder_class: No such device or address libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region2 dev: namespace2. libndctl: to_module: alias: nd:t4 module: nd_pmem libndctl: __sysfs_device_parse: namespace2.0: processed destroyed 0 namespacesThen I tried to disable the region and see s little different error msg:# ndctl disable-region region0
disabled 1 region# ndctl destroy-namespace namespace0.0 -v libndctl: __sysfs_device_parse: base: /sys/class/nd dev: ndctl libndctl: __sysfs_device_parse: ndctl0: processed libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0 dev: region libndctl: to_module: failed to find module for alias: nd:t2 0 list: empty libndctl: __sysfs_device_parse: region2: processed libndctl: to_module: failed to find module for alias: nd:t2 0 list: empty libndctl: __sysfs_device_parse: region0: processed libndctl: to_module: failed to find module for alias: nd:t2 0 list: empty libndctl: __sysfs_device_parse: region3: processed libndctl: to_module: failed to find module for alias: nd:t2 0 list: empty libndctl: __sysfs_device_parse: region1: processed libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region1 dev: namespace1. libndctl: to_module: alias: nd:t4 module: nd_pmem libndctl: __sysfs_device_parse: namespace1.0: processed libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region3 dev: namespace3. libndctl: to_module: alias: nd:t4 module: nd_pmem libndctl: __sysfs_device_parse: namespace3.0: processed libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region0 dev: namespace0. libndctl: __sysfs_device_parse: base: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/region2 dev: namespace2. libndctl: to_module: alias: nd:t4 module: nd_pmem libndctl: __sysfs_device_parse: namespace2.0: processed error destroying namespaces: No such device or address destroyed 0 namespacesTrying to read the labels is also not working:# ndctl read-labels nmem1 -v
libndctl:__sysfs_device_parse: base:/sys/class/nddev: ndctl
libndctl:__sysfs_device_parse: ndctl0: processed
libndctl:__sysfs_device_parse: base:
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0 dev: nmem
libndctl:to_module: failed to find module for alias: nd:t1 0 list:
empty
libndctl:parse_dimm_flags: nmem2:
libndctl:__sysfs_read_attr: failed to open /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/nmem2/nfit/dirty_shutdown: No such file or directory
libndctl:parse_nfit_mem_flags: nmem2:smart_notify
libndctl:__sysfs_device_parse: nmem2: processed
libndctl:to_module: failed to find module for alias: nd:t1 0 list:
empty
libndctl:parse_dimm_flags: nmem0:
libndctl:__sysfs_read_attr: failed to open /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/nmem0/nfit/dirty_shutdown: No such file or directory
libndctl:parse_nfit_mem_flags: nmem0:smart_notify
libndctl:__sysfs_device_parse: nmem0: processed
libndctl:to_module: failed to find module for alias: nd:t1 0 list:
empty
libndctl:parse_dimm_flags: nmem3:
libndctl:__sysfs_read_attr: failed to open /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/nmem3/nfit/dirty_shutdown: No such file or directory
libndctl:parse_nfit_mem_flags: nmem3:smart_notify
libndctl:__sysfs_device_parse: nmem3: processed
libndctl:to_module: failed to find module for alias: nd:t1 0 list:
empty
libndctl:parse_dimm_flags: nmem1:
libndctl:__sysfs_read_attr: failed to open /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0012:00/ndbus0/nmem1/nfit/dirty_shutdown: No such file or directory
libndctl:parse_nfit_mem_flags: nmem1:smart_notify
libndctl:__sysfs_device_parse: nmem1: processed
libndctl:ndctl_dimm_cmd_new_cfg_size: unsupported cmd read 0 nmemHere are my kernel options:CONFIG_LIBNVDIMM=y
CONFIG_BLK_DEV_PMEM=mCONFIG_ND_BLK=mCONFIG_ND_CLAIM=yCONFIG_ND_BTT=mCONFIG_BTT=yCONFIG_ND_PFN=mCONFIG_NVDIMM_PFN=yCONFIG_NVDIMM_DAX=yCONFIG_DAX_DRIVER=yCONFIG_DAX=yCONFIG_DEV_DAX=mCONFIG_DEV_DAX_PMEM=mCONFIG_NVMEM=y
Quoted 6 lines
Would appreciate if someone can help.
Thanks,KK
_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm
_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm