DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 9th March 2021
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default [SOLVED] 6.8 syspatch : No space left on sd0f, aborting

My df -h
Code:
PooBear# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/sd0a      986M    108M    829M    11%    /
/dev/sd0n      149G   29.9G    111G    21%    /home
/dev/sd0d      3.9G    942K    3.7G     0%    /tmp
/dev/sd0f      5.8G    5.8G   -294M   105%    /usr
/dev/sd0g      986M    242M    695M    26%    /usr/X11R6
/dev/sd0h     19.4G    5.7G   12.7G    31%    /usr/local
/dev/sd0m      5.8G    2.0K    5.5G     0%    /usr/obj
/dev/sd0l      1.9G    2.0K    1.8G     0%    /usr/src
/dev/sd0e     28.2G   83.2M   26.8G     0%    /var
My websearch found some circa 2018 threads suggesting
Code:
rm -r /usr/share/compile
but this file does not exist:
Code:
PooBear# ls /usr/share     
calendar doc      info     man      mk       snmp     terminfo zoneinfo
dict     games    locale   misc     relink   tabset   texinfo
Has the compile directory been renamed? I plan on a new install for 6.9, is it recommended to increase the /usr partition size from the defaults? Is the only fix reapportioning space from /home -> /usr?

Thanks in advance

Last edited by shep; 11th March 2021 at 12:57 AM.
Reply With Quote
  #2   (View Single Post)  
Old 9th March 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Your /usr partition is overfilled at 105% full. The "extra 5%" is the 5% freespace that should normally be kept unallocated in order for FFS to self-manage file fragmentation. This 5% is not available to normal users and can only be consumed by root-owned processes.

The du(1) command can help you determine what files are consuming space in /usr. With something as simple as $ du -shx /usr/* this will lead you into the directories consuming high space. You'll find /usr/share/compile is gone, but there is a large /usr/share/relink instead.
Reply With Quote
  #3   (View Single Post)  
Old 9th March 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Oh, for 6.8, you need a minimum of 1.1GB in /usr. Your partition is more than 5x that size, so you have some large consumer/consumers within your partition.
Reply With Quote
  #4   (View Single Post)  
Old 10th March 2021
ripe's Avatar
ripe ripe is offline
Package Pilot
 
Join Date: Feb 2013
Location: France
Posts: 175
Default

Just to know, it is an usb flash drive where your OpenBSD is installed?
Reply With Quote
  #5   (View Single Post)  
Old 10th March 2021
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Code:
PooBear# du -shx /usr/*
242M    /usr/X11R6
173M    /usr/bin
2.0K    /usr/games
48.4M   /usr/include
325M    /usr/lib
49.9M   /usr/libdata
2.8M    /usr/libexec
5.7G    /usr/local
602K    /usr/mdec
2.0K    /usr/obj
17.6M   /usr/sbin
5.2G    /usr/share
2.0K    /usr/src
2.0K    /usr/xobj
I found a left over python3.7 folder when I ran pkg_delete -a but I only gained 2% in /usr Have to keep looking - will try looking at package updates.
Edit: mariadb-client has had 3 updates
Code:
	mariadb-client-10.5.6v1.tgz	2021-03-09 12:06	11M	 
	mariadb-client-10.5.7v1.tgz	2021-03-09 12:06	11M	 
	mariadb-client-10.5.8v1.tgz	2021-03-09 12:06	11M
I mariadb-client is a dependency of libreoffice and I have recently generated a number of large illustrated documents in libreoffice.


Quote:
Originally Posted by ripe View Post
Just to know, it is an usb flash drive where your OpenBSD is installed?
My install is on spinning rust - a hard drive.

Last edited by shep; 10th March 2021 at 01:16 PM.
Reply With Quote
  #6   (View Single Post)  
Old 10th March 2021
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 304
Default

There should be no reason for /usr/share to be that big. run du in there.

Mine is about 500M on my systems.
Reply With Quote
  #7   (View Single Post)  
Old 10th March 2021
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

I'm getting the sense that something is out of sorts. I deleted firefox-esr, iridium, libreoffice and ran pkg_delete -a. The size of my /usr partition did not change. I also do not see anything in /usr/share that accounts for a 5.1G size:
Code:
PooBear# du -shx /usr/*
242M    /usr/X11R6
173M    /usr/bin
2.0K    /usr/games
48.4M   /usr/include
325M    /usr/lib
49.9M   /usr/libdata
2.8M    /usr/libexec
4.7G    /usr/local
602K    /usr/mdec
2.0K    /usr/obj
17.6M   /usr/sbin
5.1G    /usr/share
2.0K    /usr/src
2.0K    /usr/xobj
PooBear# ls -al /usr/share
total 68
drwxr-xr-x  17 root  wheel   512 Oct  4 16:48 .
drwxr-xr-x  16 root  wheel   512 Oct 18 14:33 ..
drwxr-xr-x   6 root  wheel  1024 Oct  4 16:47 calendar
drwxr-xr-x   4 root  wheel   512 Oct  4 16:47 dict
drwxr-xr-x   3 root  wheel   512 Oct  4 16:47 doc
drwxr-xr-x   7 root  wheel   512 Oct  4 16:47 games
drwxr-xr-x   2 root  wheel   512 Oct 18 12:54 info
drwxr-xr-x   3 root  wheel   512 Oct  4 16:47 locale
drwxr-xr-x  12 root  wheel   512 Oct  4 16:48 man
drwxr-xr-x   3 root  wheel   512 Oct 18 12:54 misc
drwxr-xr-x   2 root  wheel   512 Oct  4 16:47 mk
drwxr-xr-x   4 root  wheel   512 Mar 10 06:54 relink
drwxr-xr-x   3 root  wheel   512 Oct  4 16:47 snmp
drwxr-xr-x   2 root  wheel   512 Oct  4 16:47 tabset
drwxr-xr-x  44 root  wheel  1024 Oct  4 16:47 terminfo
drwxr-xr-x   2 root  bin     512 Oct  4 16:48 texinfo
drwxr-xr-x  18 root  bin    1536 Oct  4 16:47 zoneinfo
Reply With Quote
  #8   (View Single Post)  
Old 10th March 2021
LeFrettchen's Avatar
LeFrettchen LeFrettchen is offline
Marveled user
 
Join Date: Aug 2012
Location: France
Posts: 408
Default

Wow, share is 5+ GB !!!
Huuuuuge !

Edit : at least, you know where is the problem
__________________
ThinkPad W500 P8700 6GB HD3650 - faultry
ThinkStation P700 2x2620v3 32GB 1050ti 3xSSD 1xHDD
Reply With Quote
  #9   (View Single Post)  
Old 10th March 2021
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

It seems to all be in /usr/share/relink
Code:
PooBear# du -shx /usr/share/* 
332K    /usr/share/calendar
3.4M    /usr/share/dict
20.0K   /usr/share/doc
12.0K   /usr/share/games
8.3M    /usr/share/info
436K    /usr/share/locale
41.5M   /usr/share/man
2.2M    /usr/share/misc
74.0K   /usr/share/mk
5.0G    /usr/share/relink
92.0K   /usr/share/snmp
10.0K   /usr/share/tabset
5.7M    /usr/share/terminfo
28.0K   /usr/share/texinfo
1.1M    /usr/share/zoneinfo
Can I safely delete?
Code:
/usr/share/relink
Reply With Quote
Old 10th March 2021
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 304
Default

Quote:
Originally Posted by shep View Post
I also do not see anything in /usr/share that accounts for a 5.1G size:
Because ls is the wrong tool. Run du on /usr/share.

Packages go into /usr/local which is a separate partition.

Run du in relink. Narrow down what exactly is taking the space. You need what's in there for kernel and library relinking. But something went amiss.
Reply With Quote
Old 10th March 2021
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Code:
PooBear# du -shx /usr/share/relink 
5.1G    /usr/share/relink
Reply With Quote
Old 10th March 2021
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 304
Default

Sorry, *in* relink. /usr/share/relink/*

It's a hierarchy, keep going into the largest directory until you find a big file. There shouldn't be many directories in relink.
Reply With Quote
Old 10th March 2021
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Code:
PooBear# pwd
/usr/share/relink/kernel/GENERIC.MP
PooBear# du -shx 
5.1G    .
I do not fully understand the relink process but this is way bigger then my /bsd.rd. I recall manually relinking the kernel.
Reply With Quote
Old 10th March 2021
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

I found:
Code:
PooBear$ pwd
/usr/share/relink/usr/lib
PooBear$ ls -al
total 48488
drwxr-xr-x  2 root   bin         512 Feb  3 08:47 .
drwxrwx---  4 build  wheel       512 Oct  4 16:47 ..
-r--r--r--  1 root   bin     8293496 Oct  4 16:47 libc.so.96.0.a
-r--r--r--  1 root   bin    16474520 Feb  2 07:53 libcrypto.so.46.1.a
and

Code:
PooBear$ cd /usr/lib
PooBear$ ls -al libcry*
-r--r--r--  1 root  bin  16389548 Feb  2 07:53 libcrypto.a
-r--r--r--  1 root  bin   7958512 Mar 10 08:46 libcrypto.so.46.1
-r--r--r--  1 root  bin  15285444 Feb  2 07:53 libcrypto_p.a
This seems redundant - anyone else have this?
Reply With Quote
Old 10th March 2021
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 304
Default

lib is normal. Your problem is something in GENERIC.MP

$ du -sh GENERIC.MP/
472M GENERIC.MP/

What's in there?

ls -lhSr /usr/share/relink/kernel/GENERIC.MP/
Reply With Quote
Old 10th March 2021
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

@TronDD

I think you found it. There was an ld.core dump that was 4.7G. Deleted ld.core, syspatch 016 installed and after 2 reboots, the system is running/relinking without errors

Thanks
Reply With Quote
Old 11th March 2021
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 461
Default

Little bit late to the party (sorry) but for future reference I find sysutils/ncdu very useful for this sort of thing.
__________________
Are you infected with Wetiko?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to install - no space left on device stanl OpenBSD Installation and Upgrading 17 21st October 2019 03:14 PM
DVD burn error: No space left on device guitarscn OpenBSD General 1 22nd December 2009 07:50 PM
No ram left? knasbas OpenBSD General 11 26th September 2009 11:31 PM
no space left on drive while installing? knasbas OpenBSD Installation and Upgrading 2 20th July 2009 09:50 PM
erreur aborting boot darken FreeBSD General 10 5th May 2008 06:48 PM


All times are GMT. The time now is 02:11 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick