Solved Where's /dev/md*

I remember that I can access /dev/md* under FreeBSD 11 according to Handbook 17.9 Memory Disks. But it seems that md devices disappear.

Code:
➜  ~ uname -a
FreeBSD  12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC  amd64
➜  ~ mdconfig -f foo.iso
md0
➜  ~ mdconfig -a -t swap -s 5m
md1
➜  ~ mdconfig -l
md0 md1
➜  ~ ls /dev/md0 /dev/md1
ls: /dev/md0: No such file or directory
ls: /dev/md1: No such file or directory

I also tried to append an 'unhide' rule for devfs, but it seems not working yet.

Code:
➜  ~ gpart show
=>       40  234441568  ada0  GPT  (112G)
         40       1024     1  freebsd-boot  (512K)
       1064        984        - free -  (492K)
       2048    4194304     2  freebsd-swap  (2.0G)
    4196352  230244352     3  freebsd-zfs  (110G)
  234440704        904        - free -  (452K)

=>       40  234441568  ada1  GPT  (112G)
         40       1024     1  freebsd-boot  (512K)
       1064        984        - free -  (492K)
       2048    4194304     2  freebsd-swap  (2.0G)
    4196352  230244352     3  freebsd-zfs  (110G)
  234440704        904        - free -  (452K)
➜  ~ devfs rule show
100 include 1
200 include 2
300 include 3
400 path fuse unhide
500 path zfs unhide
600 path 'md*' unhide

Could you please help me out?
 
No problem here.

uname -a
FreeBSD ***** 12.0-RELEASE-p7 FreeBSD 12.0-RELEASE-p7 GENERIC amd64

mdconfig -a -t swap -s 5m
md0

mdconfig -f foo.iso
md1

mdconfig -l
md0 md1

ls /dev/md0 /dev/md1
/dev/md0 /dev/md1

ll /dev/md0 /dev/md1
crw-r----- 1 root operator 0xa9 Jul 7 22:30 /dev/md0
crw-r----- 1 root operator 0xaa Jul 7 22:37 /dev/md1
 
No problem here.

uname -a
FreeBSD ***** 12.0-RELEASE-p7 FreeBSD 12.0-RELEASE-p7 GENERIC amd64

mdconfig -a -t swap -s 5m
md0

mdconfig -f foo.iso
md1

mdconfig -l
md0 md1

ls /dev/md0 /dev/md1
/dev/md0 /dev/md1

ll /dev/md0 /dev/md1
crw-r----- 1 root operator 0xa9 Jul 7 22:30 /dev/md0
crw-r----- 1 root operator 0xaa Jul 7 22:37 /dev/md1

Yes, it's supposed to be. But they were not there. They returned yesterday after rebooting.
 
Back
Top