mount DCPMM fail with dax option

66 views
Skip to first unread message

yong li

unread,
Nov 18, 2020, 7:59:54 AM11/18/20
to pmem
hi, all
I had install DCPMM in my computer and format it with mkfs.ext4. However, it fails when I mount the /dev/pmem0 into /pmem. It can mount success without dax option.
How can resolve this problem?
mkfs.ext4 /dev/pmem0
mount -o dax /dev/pmem0 /pmem0
mount: /pmem0: wrong fs type, bad option, bad superblock on /dev/pmem0, missing codepage or helper program, or other error.


Thanks.
------------
Yong Li

Jeff Moyer

unread,
Nov 18, 2020, 8:39:49 AM11/18/20
to yong li, pmem
Is /dev/pmem0 an fsdax namespace? Is there any information in dmesg
that helps? If not, try:

echo 'file drivers/dax/super.c +p' > /sys/kernel/debug/dynamic_debug/control

and retry the mount. Have a look in dmesg for why the operation failed.

HTH,
Jeff

Steve Scargall

unread,
Nov 18, 2020, 11:37:18 AM11/18/20
to pmem
If you were using XFS, there is a know DAX and REFLINK incompatibility described in Mounting a DAX XFS file system can return "wrong fs type, bad option, bad superblock, missing code page or helper program, or other error" that would explain the behaviour. ext4 doesn't have reflink and is not affected by that issue. 

In addition to the info Jeff requested, can you also provide more info about your environment:

- Linux Distro:
- Kernel version:
- `ndctl list -N`
- `fsck /dev/pmem0`

/Steve

yong li

unread,
Nov 18, 2020, 10:32:35 PM11/18/20
to pmem
thanks Jeff and Steve, I had solved the problem. The default mode of aep is raw which not support dax. I changed the mode into fsdax and mount success with dax. 
sudo ndctl create-namespace -f -e namespace0.0 --mode=fsdax

Li

yong li <li.yo...@gmail.com> 于2020年11月18日周三 下午8:59写道:
--
You received this message because you are subscribed to the Google Groups "pmem" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pmem+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pmem/599021b6-1918-474a-b268-b3f53ebe304an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages