pmem / ndctl

A "device memory" enabling project encompassing tools and libraries for CXL, NVDIMMs, DAX, memory tiering and other platform memory device topics.
Other
271 stars 139 forks source link

ndctl create-namespace failed : validate_namespace_options:663: region0: disabled, skipping... #251

Open cudll opened 1 year ago

cudll commented 1 year ago

I have succussed creating a cxl region , however this error frequently occurs. I tried my best to figure this problem, but it seems like an random issue, It sometimes can be solved by just reboot the VM I have enabled the region by ndctl enable-region all

# ndctl create-namespace  -t pmem -vvv

 libndctl: __sysfs_device_parse: base: '/sys/class/nd' dev: 'ndctl'
 libndctl: __sysfs_read_attr: failed to open /sys/class/nd/ndctl0/device/nfit/revision: No such file or directory
 libndctl: __sysfs_read_attr: failed to open /sys/class/nd/ndctl0/device/of_node/compatible: No such file or directory
 libndctl: __sysfs_read_attr: failed to open /sys/class/nd/ndctl0/device/nfit/dsm_mask: No such file or directory
 libndctl: __sysfs_read_attr: failed to open /sys/class/nd/ndctl0/device/firmware/activate: No such file or directory
 libndctl: __sysfs_read_attr: failed to open /sys/class/nd/ndctl0/device/firmware/capability: No such file or directory
 libndctl: __sysfs_device_parse: ndctl0: processed
 libndctl: __sysfs_device_parse: base: '/sys/devices/platform/ACPI0017:00/root0/nvdimm-bridge0/ndbus0' dev: 'region'
 libndctl: __sysfs_read_attr: failed to open /sys/devices/platform/ACPI0017:00/root0/nvdimm - 
 bridge0/ndbus0/region0/papr/range_index: No such file or directory
 libndctl: __util_modalias_to_module: alias: nd:t2 module: libnvdimm
 libndctl: region_set_type: region0: iset-0000000000000000 added
 libndctl: __sysfs_device_parse: region0: processed
 validate_namespace_options:663: region0: disabled, skipping...
 failed to create namespace: No space left on device
Deepakukey1989 commented 1 year ago

I am also facing the same issue with same above-mentioned logs and no space left on device. Sometime issue goes off if I recompiled the kernel for first time but after that issue persist. Is there any workaround or fix for this issue provided.

pankul-zhang commented 5 months ago

any update for this kind of issue? hit such issue too.