On Tue, Dec 10, 2024 at 09:10:51PM +0200, Divan Santana wrote:

> Greetings and happy December :)
> 
> I have a 3.5TB ffs mounted at /data which is specified in fstab.
> 
> When there is a power outage this file system corrupts (I'll install
> another UPS shortly).
> 
> Is it possible to fsck_ffs a 3.5TB file system from the boot rescue
> environment?
> 
> When I've tried before I've got an error like:
> 
> "cannot alloc bytes"
> 
> If one can get the system to boot up normally, then one can fsck_ffs
> with no such error.
> 
> Secondly question, is it possible from the rescue environment to edit
> the real /etc/fstab file?  Because it would be handy for me in some
> cases to do so without booting from the install image.
> 
> Another question, is there a Linux like fstab option of 'nofail' for
> OpenBSD?  It seems like there isn't, because for me, it would be handy
> to specify that for my /data mount.
> 
> For now, I've added this to my rc.local file to work around the issue I
> sometimes have.
> 
> set -e
> mount 3b3840fcdf524721.c /data
> rcctl -f start vmd
> rcctl -f start portmap mountd nfsd
> rcctl -f start backuppc wwbackuppc nginx
> 

You need a large ulimit -d. fsck_ffs itself does do not set that.
but when called trough fsck fsck will take care. So use fsck.

        -Otto

Reply via email to