|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
||||
For disk drives over 10GB, the partition containing /usr/local is targetted to 15% of the drive, with a minimum of 1GB and a maximum of 20GB. See the disklabel(8) man page, which has a section titled AUTOMATIC ALLOCATION.
Quote:
# pkg_delete -a or # pkg_delete -ac . If that doesn't alleviate your capacity problem, then you will need to reorganize your disk space on your drive.--- Edited to add: let us know if you need any guidance to reorganize the drive. You can post the output of $ df -h and # disklabel -p g <your.drive> here to get step-by-step recommendations.
Last edited by jggimi; 26th December 2018 at 08:17 PM. |
|
||||
Quote:
The output of df -h: Code:
Filesystem Size Used Avail Capacity Mounted on /dev/sd0a 1005M 82.9M 872M 9% / /dev/sd0k 8.0G 211M 7.4G 3% /home /dev/sd0d 1.7G 2.2M 1.6G 0% /tmp /dev/sd0f 1.8G 704M 1.1G 39% /usr /dev/sd0g 978M 189M 741M 20% /usr/X11R6 /dev/sd0h 3.9G 3.7G -798K 100% /usr/local /dev/sd0j 5.7G 2.0K 5.4G 0% /usr/obj /dev/sd0i 1.6G 2.0K 1.6G 0% /usr/src /dev/sd0e 2.6G 45.3M 2.4G 2% /var Code:
disklabel -p g sd0 # /dev/rsd0c: type: SCSI disk: SCSI disk label: OCZ-VERTEX duid: 07f72ff6186f16ad flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 3892 total sectors: 62533296 # total bytes: 29.8G boundstart: 64 boundend: 62524980 drivedata: 0 16 partitions: # size offset fstype [fsize bsize cpg] a: 1.0G 64 4.2BSD 2048 16384 12958 # / b: 2.1G 2097216 swap # none c: 29.8G 0 unused d: 1.7G 6428288 4.2BSD 2048 16384 12958 # /tmp e: 2.7G 10007776 4.2BSD 2048 16384 12958 # /var f: 1.9G 15588960 4.2BSD 2048 16384 12958 # /usr g: 1.0G 19515744 4.2BSD 2048 16384 12958 # /usr/X11R6 h: 4.0G 21552320 4.2BSD 2048 16384 12958 # /usr/local i: 1.7G 29900256 4.2BSD 2048 16384 12958 # /usr/src j: 5.8G 33396096 4.2BSD 2048 16384 12958 # /usr/obj k: 8.1G 45548736 4.2BSD 2048 16384 12958 # /home
__________________
Supermicro X9DRD-7LN4F-JBOD | (2) Xeon E5-2670 | 32GB DDR3 ECC Registered |OpenBSD 6.4 Endeavoring to resolve my Linux dependancies. |
|
|||
Quote:
Code:
# pkg_delete -a |
|
||||
So it looks like /usr/local/share is where the added packages end up:
Code:
# du -hs * | sort -hr 2.3G lib 1.1G share 232M include 77.8M bin 35.2M man 7.8M libexec 5.5M info 3.2M libdata 3.0M sbin
__________________
Supermicro X9DRD-7LN4F-JBOD | (2) Xeon E5-2670 | 32GB DDR3 ECC Registered |OpenBSD 6.4 Endeavoring to resolve my Linux dependancies. |
|
|||
No, packages end up in /usr/local
/usr/local/share is a catch-all directory for package items that are not binaries, libraries, headers, manual pages, etc. |
|
||||
There is a simple solution, since the unused partitions "i" (/usr/src) and "j" (/usr/obj) follow immediately after partition "h" (/usr/local) on the drive. You can delete them, and grow /usr/local into these unused 7.5GB. Those two unused partitions are for building the system from source code.
Last edited by jggimi; 27th December 2018 at 03:00 AM. Reason: added red highlights in the examples |
|
||||
I'm going to cultivate some experience in conducting these operations with copies of an OpenBSD VM, before I make these changes to my OpenBSD desktop system.
__________________
Supermicro X9DRD-7LN4F-JBOD | (2) Xeon E5-2670 | 32GB DDR3 ECC Registered |OpenBSD 6.4 Endeavoring to resolve my Linux dependancies. |
|
||||
OK, operation's a success- thanks again!
I made a careless mistake at first, I just went down the list: Code:
> d i > d j > m h
__________________
Supermicro X9DRD-7LN4F-JBOD | (2) Xeon E5-2670 | 32GB DDR3 ECC Registered |OpenBSD 6.4 Endeavoring to resolve my Linux dependancies. |
|
||||
My "growfs" operation wasn't successful as it appears. Went to add another package and got:
Code:
/dev/sd0h on /usr/local: 12701746 bytes (missing 17469 blocks) "growfs: we are not growing (2086984- >2086984)" Hmmm.
__________________
Supermicro X9DRD-7LN4F-JBOD | (2) Xeon E5-2670 | 32GB DDR3 ECC Registered |OpenBSD 6.4 Endeavoring to resolve my Linux dependancies. |
|
||||
Inspect your disklabel - I will guess that you missed the increase in size of your "h" partition. Above, in my example, you will see that I used an "*" character for the new size of "h". The disklabel(8) man page states, "At prompts that request a size, `*' may be entered to indicate the rest of the available space..."
|
|
||||
Quote:
__________________
Supermicro X9DRD-7LN4F-JBOD | (2) Xeon E5-2670 | 32GB DDR3 ECC Registered |OpenBSD 6.4 Endeavoring to resolve my Linux dependancies. |
|
||||
Code:
smallbeigebox# df -h Filesystem Size Used Avail Capacity Mounted on /dev/sd0a 1005M 82.9M 872M 9% / /dev/sd0k 8.0G 553M 7.0G 7% /home /dev/sd0d 1.7G 80.0K 1.6G 0% /tmp /dev/sd0f 1.8G 704M 1.1G 39% /usr /dev/sd0g 978M 189M 741M 20% /usr/X11R6 /dev/sd0h 11.1G 3.7G 6.8G 35% /usr/local /dev/sd0e 2.6G 45.2M 2.4G 2% /var
__________________
Supermicro X9DRD-7LN4F-JBOD | (2) Xeon E5-2670 | 32GB DDR3 ECC Registered |OpenBSD 6.4 Endeavoring to resolve my Linux dependancies. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Volume Control (in Java) | mattthumper | Programming | 1 | 6th August 2015 03:23 PM |
Systray Audio Volume control | shep | OpenBSD Packages and Ports | 2 | 30th April 2013 02:29 PM |
log from rc.conf.local and rc.local | sdesilet | OpenBSD General | 1 | 21st January 2010 02:37 AM |
MS DOS volume labels? | bigearsbilly | FreeBSD General | 2 | 1st April 2009 10:50 PM |
mplayer volume cannot increase. | bsdnewbie999 | OpenBSD General | 3 | 19th June 2008 03:16 PM |