Re: Default partitions allocate only 1GB to /

2021-03-01 Thread tetrahedra

On Sun, Feb 28, 2021 at 08:30:14PM +0100, Janne Johansson wrote:

Is /var a filesystem of its own? Otherwise it could be /var/tmp or
some other place under /var which is used for unpacking packages.


Yes, /var is on its own filesystem, with 10.4G available.



Re: Default partitions allocate only 1GB to /

2021-03-01 Thread tetrahedra

On Sun, Feb 28, 2021 at 05:17:15PM +, James Cook wrote:

> This makes little sense to me. Why should deleting a 20MB file on a
> filesystem with >700MB free space be sufficient for the install to go
> through? Especially when the install obviously doesn't need that much space
> on the filesystem in question?

That doesn't make sense to me either. Something strange is going on.
Maybe someone else will have a guess.


It did occur to me that between the first (unsuccessful) and 2nd 
(successful) attempts I also rebooted the machine and ran `pkg_add -u`.




Re: Default partitions allocate only 1GB to /

2021-02-28 Thread Janne Johansson
Den sön 28 feb. 2021 kl 14:51 skrev :
> I deleted the file and `pkg_add libreoffice` worked as expected.
> Post-install I still have 746MB free in /, according to `df -h`.
>
> This makes little sense to me. Why should deleting a 20MB file on a
> filesystem with >700MB free space be sufficient for the install to go
> through? Especially when the install obviously doesn't need that much
> space on the filesystem in question?
>
> (space available in /usr/local went from 11.4G, pre-install, to 10.8G,
> post-install... was `pkg_add` trying to stage files in /, even though
> /tmp is a separate filesystem?)

Is /var a filesystem of its own? Otherwise it could be /var/tmp or
some other place under /var which is used for unpacking packages.

-- 
May the most significant bit of your life be positive.



Re: Default partitions allocate only 1GB to /

2021-02-28 Thread tetrahedra

On Sat, Feb 27, 2021 at 11:52:39PM +, James Cook wrote:


Sorry, you're right, pkg_add can add files to /. But generally those
will be quite small (/etc/make2fs.conf sounds like a configuration
file).

How big is your root partition, and how much space is used? For example
mine is like this after several months of use and many packages
installed, indicating the installer's default behaviour has worked well
for me:


falsifian angel ~ $ df -h /
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/sd2a  989M199M741M21%/


My root partition is about the same -- circa 1GB in size, about 700MB 
free.


According to `df -h` my /user/local has 11.4GB available and /usr has 
3.5GB, so there *should* be plenty of space for Libreoffice.




Re: Default partitions allocate only 1GB to /

2021-02-28 Thread tetrahedra

On Sat, Feb 27, 2021 at 11:52:39PM +, James Cook wrote:

If you have a lot more space used, you could try to figure out what's
using it. My go-to command is "du -xah /|sort -h|less"


That's a neat command, and amazingly enough it did the trick: there was 
a 20MB file, INS@yjf(...) located in the root directory. It looked like 
a copy of the kernel binary which had been saved while I was messing 
about with kernel configuration options.


I deleted the file and `pkg_add libreoffice` worked as expected.

Post-install I still have 746MB free in /, according to `df -h`.

This makes little sense to me. Why should deleting a 20MB file on a 
filesystem with >700MB free space be sufficient for the install to go 
through? Especially when the install obviously doesn't need that much 
space on the filesystem in question?


(space available in /usr/local went from 11.4G, pre-install, to 10.8G, 
post-install... was `pkg_add` trying to stage files in /, even though 
/tmp is a separate filesystem?)




Re: Default partitions allocate only 1GB to /

2021-02-27 Thread tetrahedra

On Sat, Feb 27, 2021 at 03:27:41PM -0600, Edgar Pettijohn wrote:
Its more likely that you accidentaly used dd to write to a usb stick 
and instead

wrote to a file in /dev.  Thats the only way I've ever had this
problem.


You're right -- I had written a file to /dev. After deleting it, the 
problem still comes up, unfortunately.




Re: Default partitions allocate only 1GB to /

2021-02-27 Thread tetrahedra

On Sat, Feb 27, 2021 at 08:27:07PM +, James Cook wrote:

Something's strange about your setup. The installer normally creates a
separate partition for /usr and maybe /usr/local. If you're using
pkg_add, then packages go in /usr/local, so they shouldn't end up on
your root partition.

If your disk is really tiny the installer won't create a separate /usr
partition, but in that case it won't make a separate /home either.


As far as I know everything was installed using defaults.

Doing `pkg_add libreoffice` the installer is definitely looking at both 
/ and /usr/local/ ... and it gives an odd bytecount for /:


```
Error: /dev/sda1 on / is not large enough (/etc/mke2fs.conf)
/dev/sda1 on /: 956 bytes (missing 86470 blocks)
/dev/sd1h on /usr/local: 4513435 bytes
```

Later it gives different byte counts for both values.



Re: Default partitions allocate only 1GB to /

2021-02-27 Thread Edgar Pettijohn
On Sat, Feb 27, 2021 at 11:21:45PM +, tetrahe...@danwin1210.me wrote:
> On Sat, Feb 27, 2021 at 08:27:07PM +, James Cook wrote:
> > Something's strange about your setup. The installer normally creates a
> > separate partition for /usr and maybe /usr/local. If you're using
> > pkg_add, then packages go in /usr/local, so they shouldn't end up on
> > your root partition.
> > 
> > If your disk is really tiny the installer won't create a separate /usr
> > partition, but in that case it won't make a separate /home either.
> 
> As far as I know everything was installed using defaults.
> 
> Doing `pkg_add libreoffice` the installer is definitely looking at both /
> and /usr/local/ ... and it gives an odd bytecount for /:
> 
> ```
> Error: /dev/sda1 on / is not large enough (/etc/mke2fs.conf)
> /dev/sda1 on /: 956 bytes (missing 86470 blocks)
> /dev/sd1h on /usr/local: 4513435 bytes
> ```
> 
> Later it gives different byte counts for both values.
>

doas du -xh /

should help you locate whats going on.

Edgar



Default partitions allocate only 1GB to /

2021-02-27 Thread tetrahedra
When installing OpenBSD, the default partition layout only allocates 1GB 
to / ... most of the disk space is allocated to /home.


Once you start installing packages, / quickly grows beyond 1GB, and it 
looks like even some large packages exceed the available space on their 
own:

Error: /dev/sda1 on / is not large enough

Is there an easy fix for this that I'm missing somewhere, or is this a 
poorly chosen default?




Re: Default partitions allocate only 1GB to /

2021-02-27 Thread James Cook
On Sat, Feb 27, 2021 at 11:21:45PM +, tetrahe...@danwin1210.me wrote:
> On Sat, Feb 27, 2021 at 08:27:07PM +, James Cook wrote:
> > Something's strange about your setup. The installer normally creates a
> > separate partition for /usr and maybe /usr/local. If you're using
> > pkg_add, then packages go in /usr/local, so they shouldn't end up on
> > your root partition.
> > 
> > If your disk is really tiny the installer won't create a separate /usr
> > partition, but in that case it won't make a separate /home either.
> 
> As far as I know everything was installed using defaults.
> 
> Doing `pkg_add libreoffice` the installer is definitely looking at both /
> and /usr/local/ ... and it gives an odd bytecount for /:
> 
> ```
> Error: /dev/sda1 on / is not large enough (/etc/mke2fs.conf)

Sorry, you're right, pkg_add can add files to /. But generally those
will be quite small (/etc/make2fs.conf sounds like a configuration
file).

How big is your root partition, and how much space is used? For example
mine is like this after several months of use and many packages
installed, indicating the installer's default behaviour has worked well
for me:


falsifian angel ~ $ df -h /
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/sd2a  989M199M741M21%/


If you have a lot more space used, you could try to figure out what's
using it. My go-to command is "du -xah /|sort -h|less"


> /dev/sda1 on /: 956 bytes (missing 86470 blocks)
> /dev/sd1h on /usr/local: 4513435 bytes
> ```
> 
> Later it gives different byte counts for both values.

-- 
James



Re: Default partitions allocate only 1GB to /

2021-02-27 Thread Edgar Pettijohn
On Sat, Feb 27, 2021 at 03:32:44PM +, tetrahe...@danwin1210.me wrote:
> When installing OpenBSD, the default partition layout only allocates 1GB to
> / ... most of the disk space is allocated to /home.
> 
> Once you start installing packages, / quickly grows beyond 1GB, and it looks
> like even some large packages exceed the available space on their own:
>   Error: /dev/sda1 on / is not large enough
> 
> Is there an easy fix for this that I'm missing somewhere, or is this a
> poorly chosen default?
> 

Its more likely that you accidentaly used dd to write to a usb stick and instead
wrote to a file in /dev.  Thats the only way I've ever had this problem.

Edgar



Re: Default partitions allocate only 1GB to /

2021-02-27 Thread James Cook
On Sat, Feb 27, 2021 at 03:32:44PM +, tetrahe...@danwin1210.me wrote:
> When installing OpenBSD, the default partition layout only allocates 1GB to
> / ... most of the disk space is allocated to /home.
> 
> Once you start installing packages, / quickly grows beyond 1GB, and it looks
> like even some large packages exceed the available space on their own:
>   Error: /dev/sda1 on / is not large enough
> 
> Is there an easy fix for this that I'm missing somewhere, or is this a
> poorly chosen default?

Something's strange about your setup. The installer normally creates a
separate partition for /usr and maybe /usr/local. If you're using
pkg_add, then packages go in /usr/local, so they shouldn't end up on
your root partition.

If your disk is really tiny the installer won't create a separate /usr
partition, but in that case it won't make a separate /home either.

-- 
James