On Sun, Mar 03, 2024 at 12:14:14PM -0000, beecdadd...@danwin1210.de wrote:

> On Sun, March 3, 2024 12:07 pm, Otto Moerbeek wrote:
> > On Sun, Mar 03, 2024 at 12:01:12PM -0000, beecdadd...@danwin1210.de
> > wrote:
> >
> >
> >> oh okay reserved for root? I ran those commands as root, or you mean
> >> something else? I didn't know overhead was that big.. so this is okay,
> >> then? thanks for very fast reply
> >
> > 3.5G meta data overhead is less than 1.5% of your partition. Not that
> > high, I'd say.
> 
> 235-223 is 8G, not 3.5G?

Your 238.5 partition maps to a filesystem of size 235G, of which 5% is
reserved (but usable by root).

> 
> > Only root processes can write crossing the reserved space limit. The
> > disk will than show a Capacity number larger than 100%.
> 
> so root process, not root user? ok

Any proces has a uid as well.

> 
> > Non-root proceses will see failed writes.
> >
> >
> > You can change that 5% by using tunefs, or when doing newfs from the
> > start).
> >
> > -Otto
> 
> newfs from the start? I did newfs from the start?
> https://www.openbsd.org/faq/faq14.html#softraidcrypto
> is this not what you mean by newfs from the start?

When doing newfs, you can specify a non-default reserved space by
supplying a -m parameter. For example, newfs -m 0 ... will not reserve
any space for root, and the FS Size will be equal to Available (if the
FS is empty).

The reserved space can *also* be changed after FS creatiomn, using
tunefs(8).

        -Otto

> 
> >
> >>
> >> On Sun, March 3, 2024 11:57 am, Otto Moerbeek wrote:
> >>
> >>> On Sun, Mar 03, 2024 at 11:48:01AM -0000, beecdadd...@danwin1210.de
> >>> wrote:
> >>>
> >>>
> >>>
> >>>>
> >>>> disklabel -h sd3 shows this
> >>>>
> >>>> # /dev/rsd3c:
> >>>> type: SCSI
> >>>> disk: SCSI disk
> >>>> label: SR CRYPTO
> >>>> duid: some-number
> >>>> flags:
> >>>> bytes/sector: 512
> >>>> sectors/track: 63
> >>>> tracks/cylinder: 255
> >>>> sectors/cylinder: 16065
> >>>> cylinders: 31130
> >>>> total sectors: 500117600 # total bytes: 238.5G boundstart: 64
> >>>> boundend: 500117600
> >>>>
> >>>>
> >>>>
> >>>> 16 partitions:
> >>>> #                size           offset  fstype [fsize bsize   cpg]
> >>>> c:           238.5G                0  unused
> >>>> i:           238.5G               64  4.2BSD   4096 32768 26062 #
> >>>> /mnt/extssd
> >>>>
> >>>>
> >>>>
> >>>> but df -h shows that sd3i is of size 235G but only 223G is
> >>>> available, and the Used space is 4.0k.. SSD is new and I followed
> >>>>
> >>>
> >>> A fileystem has meta data overhead. That space is not avalailable for
> >>>  user files. Also, by default 5% of available space is reserved for
> >>> root only. That fraction is represented in available space. See
> >>> newfs(8).
> >>>
> >>> -Otto
> >>>
> >>>
> >>>
> >>
> >>
> >
> 
> 

Reply via email to