Closed gwnet closed 3 years ago
libpmempool has the same thing. I can run pmemkv successfully on this machine.
==== murray-rust:/tmp/wayne/pmem/pmdk/src/examples/libpmempool # ./manpage pmempool_check_init: No such file or directory
murray-rust:/tmp/wayne/pmem/pmdk/src/examples/libpmemobj/array # ./array /mnt/wayne/testfile alloc test1 10 TOID failed to create pool
==bad strace result=== munmap(0x7f38fc9a8000, 4096) = 0 mprotect(0x7f38f9800000, 4096, PROT_READ|PROT_WRITE) = 0 msync(0x7f38f9800000, 4096, MS_SYNC) = 0 munmap(0x7f38f9800000, 8388608) = 0 close(3) = 0 access("/mnt/wayne/testfile", F_OK) = 0 stat("/mnt/wayne/testfile", {st_mode=S_IFREG, st_size=8388608, ...}) = 0 unlink("/mnt/wayne/testfile") = 0 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f38fc9a8000 write(1, "failed to create pool\n", 22failed to create pool ) = 22 exit_group(1) = ? +++ exited with 1 +++ murray-rust:/tmp/wayne/pmem/pmdk/src/examples/libpmemobj/array #
===good strace result from libpmem== close(4) = 0 fchdir(3) = 0 close(3) = 0 access("/mnt/wayne/test0", F_OK) = 0 stat("/mnt/wayne/test0", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 open("/mnt/wayne/test0", O_RDWR|O_CREAT, 0666) = 3 ftruncate(3, 4096) = 0 fallocate(3, 0, 0, 4096) = 0 mmap(NULL, 2101248, PROT_READ, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7efc4e940000 munmap(0x7efc4e940000, 2101248) = 0 mmap(0x7efc4ea00000, 4096, PROT_READ|PROTWRITE, 0x3 /* MAP??? */|0x80000, 3, 0) = 0x7efc4ea00000 close(3) = 0 munmap(0x7efc4ea00000, 4096) = 0 exit_group(0) = ? +++ exited with 0 +++
==full debug log for libpmemblk== murray-rust:/tmp/wayne/pmem/pmdk/src/examples/libpmemblk # PMEMBLK_LOG_LEVEL=4 ./manpage
looks like this works, can you give me all the *_CONF for all the examples? murray-rust:/tmp/wayne/pmem/pmdk/src/examples/libpmemblk # PMEMBLK_CONF="sds.at_create=0" ./manpage file holds 1044204 elements
===only libpmempool sample does not work now, please guide murray-rust:/tmp/wayne/pmem/pmdk/src/examples/libpmempool # PMEMOBJ_CONF="sds.at_create=0" ./manpage pmempool_check_init: No such file or directory
ISSUE:
Environment Information
PMDK package version(s): (HEAD detached at 1.8)
OS(es) version(s): SLES12SP4
ndctl version(s):
kernel version(s): 4.12.14
compiler, libraries, packaging and other related tools version(s):
Please provide a reproduction of the bug:
pmemlog example has the same issue.
murray-rust:/tmp/wayne/pmem/pmdk/src/examples/libpmemblk # ./manpage /mnt/wayne/testblk: No such file or directory murray-rust:/tmp/wayne/pmem/pmdk/src/examples/libpmemblk #
pmem1 259:45 0 124G 0 disk /mnt/wayne admin@murray-rust:/mnt/wayne> ls -l total 1048580 -rw-r--r-- 1 root root 4096 Mar 28 03:38 test0 -rwx------ 1 root root 1073741824 Mar 28 03:00 test1 drwxr-xr-x 2 root root 285 Mar 28 02:57 test2 admin@murray-rust:/mnt/wayne> mount | grep dax /dev/pmem1 on /mnt/wayne type xfs (rw,relatime,attr2,dax,inode64,noquota)
How often bug is revealed: (always, often, rare):
Actual behavior:
Expected behavior:
Details
Additional information about Priority and Help Requested:
Are you willing to submit a pull request with a proposed change? (Yes, No)
Requested priority: (Showstopper, High, Medium, Low)