Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Oct 2024 20:40:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 279308] mdmfs does not work as documented
Message-ID:  <bug-279308-227-rvS5xYCLsK@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-279308-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

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.

help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-279308-227-rvS5xYCLsK>