it's likely ok but the more headroom the less chance of running into a problem.
if it's a previously upgraded system I would check sysclean|grep ^/usr
first as there are easy gains to be had if you haven't cleaned before.
unless you've done something strange then anything sysclean shows in
usr/share, usr/include, usr/libdata will be ok to remove (and indeed will
avoid some potential problems from leaving them around).
unless you have compiled software outside of ports then anything listed by
sysclean in usr/lib also ok to remove (sysclean already tracks libraries
used by packages/installed ports).
even if you can't free up more then I'd give it a try anyway as long as you
have console access (local machine or remote serial console / idrac / similar).
--
Sent from a phone, apologies for poor formatting.
On 10 October 2025 21:35:14 J Doe <[email protected]> wrote:
On 10/9/25 05:05, Stuart Henderson wrote:
On 2025-10-08, J Doe <[email protected]> wrote:
This machine has a /usr _partition size_ of 1.9 GB and it is currently
91% full, with 171 MB _free space_.
rather tight. if you can't arrange a larger partition I suggest:
rm /usr/share/relink/kernel/*/newbsd.gdb (ref usr.sbin/config/mkmakefile.c
r1.49)
sysclean | grep ^/usr, review and remove
if still looking too tight
rm /usr/lib/*.a
sysupgrade -n
rm /home/_sysupgrade/comp*
reboot to upgrade
pkg_add -u
sysclean | grep ^/usr, review and remove
evaluate whether you have space to extract comp*.tgz
(for arranging a larger partition, look at what's next on disk after
/usr. I've often dropped /usr/X11R6, edited disklabel to enlarge
/usr into the space and growfs'd, then extracted x sets again to
fill out in /usr. or perhaps you don't use /usr/{src,obj} and can
do something with them).
Hi Stuart and list,
Thank you to everyone who has replied to this message thread - your
posts have been very helpful!
Moving forward with new installs, I will be allocating a larger
partition size to /usr, as I will want to sysupgrade my installs a
couple of times. I'd like to try and avoid a full re-install for the
server I mentioned, so I had some questions about removing files.
With the list of steps Stuart posted:
rm /usr/share/relink/kernel/*/newbsd.gdb
... doing this on the server in question would free: 225 MB. The server
currently has: 158 MB free in: /usr, so that would free a total of: 383 MB.
Would that on it's own be sufficient working space for a sysupgrade from
7.7 to 7.8 ?
Thanks,
- J