[Bug 279308] mdmfs does not work as documented

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 01 Oct 2024 20:40:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279308

--- Comment #12 from Michael Proto <mike@jellydonut.org> ---
(In reply to Xin LI from comment #10)

Not opining on the TRIM-as-default situation, but in regards to using md disks
over tmpfs I have one that I use regularly-- remote root-FS maintenance. I can
use a memory-backed md disk with "reboot -r" to ensure continuity of a memory
disk while rerooting a system.


  ** connect to a host via ssh

mdmfs -s 16g md /mnt
  ** creates a 16g disk as /dev/md0
cd /mnt
dump -0Laf - / | restore rf -
umount /dev/md0
kenv vfs.root.mountfrom="ufs:/dev/md0"
reboot -r

  ** reconnect to the host via ssh


Now I can do maintenance on the root-FS on the host remotely. This won't work
with tmpfs as the file system disappears as soon as it is unmounted.

-- 
You are receiving this mail because:
You are the assignee for the bug.