Hi Jan thanks for your Reply and feedback, please find my replies in line ,
On Wed, 10 Jul 2024 at 16:28, Jan Stary <[email protected]> wrote: > > On Jul 10 14:44:28, [email protected] wrote: > > we have been using mfs mounted /var /dev and /tmp for years > > Why? so any writes to disk would be simply written a memory filesystem and if there was a power cut there would be no changes happening to the disk because it is being just written to memory > > > however the impact of mfs (/var in particular) on upgrades has been > > quite painful, > > How? Losing new files in /var if the box is rebooted without first copying the /var (in memory) to where the persistent storage is (on shutdown) > > > my latest iteration for fstab is to have > > / , /var /usr/local and /tmp with different mount points to support > > different mount options, (wxallowed for /usr/local) > > > > and to > > mfs mount /var/run, /var/logs /dev and /tmp > > I assume you mean /var/log (not /var/logs). Yes (sorry ) > > > #cat /etc/fstab > > > > ff0023511d131fc2.a / ffs rw,softdep,noatime 1 1 > > ff0023511d131fc2.b /usr/local ffs rw,wxallowed,nodev,softdep,noatime 1 2 > > ff0023511d131fc2.d /var ffs rw,nodev,nosuid,softdep,noatime 1 2 > > So you _don't_ have /var on mfs ... > Also, softdep no loger exists. Thanks it was an older option (now a noop (for backward compatibility ) just checked the manual there... Ill drop it off the deployment script > > > swap /tmp mfs rw,nosuid,noexec,nodev,-s=262144,-P=/persist-fs/tmp 0 0 > > swap /var/log mfs rw,nosuid,noexec,nodev,-s=524288,-P=/persist-fs/var/log 0 > > 0 > > swap /var/run mfs rw,nosuid,noexec,nodev,-s=262144,-P=/persist-fs/var/run 0 > > 0 > > swap /dev mfs rw,nosuid,noexec,-P=/persist-fs/dev,-i=2048,-s=32768 0 0 > > Why do you need /tmp to persist? Fair point I was more interested in getting /tmp to be memory mounted (dont care about persistence) in that case checking manual > Why do you have a separate /dev? when programs write to /dev/blah is there a possibility of the filesystem being updated... > Why don't you have a separate /home? it is a router /firewall / network appliance /not a standard desktop / server ... users are admins... etc . > > > ################################################### > > This seems to solve problems with upgrades and package updates, basically if the partition was not synced with a copy on shutdown you would lose the updated files ... > > What problem? > > Jan > -- Kindest regards, Tom Smyth.

