On 2024-12-10, Divan Santana <di...@santanas.co.za> 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"

Can you raise ulimit -d? Not sure if login.conf on the ramdisk will
allow.

> 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.

mount the relevant partition (e.g. /dev/sd0a) on /mnt and you can use ed.
You may need to create device nodes first (cd /dev; sh MAKEDEV sd0).

> 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
>
>


-- 
Please keep replies on the mailing list.

Reply via email to