View Single Post
  #2   (View Single Post)  
Old 6th January 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by IronForge View Post
Are there any "caches" to clear out so I can continue?
Judicious use of du(1) will help you answer your own question.

Given the continuing issues you have experienced with Xenocara (& because the df(1) output above does not show mountpoints for /usr/xenocara & /usr/xobj...), both /usr/xenocara & /usr/xobj will reside in your /usr partition. Given that the df(1) output also shows this partition to only be 2GB in size, this is most likely the cause for the /usr partition to fill up knowing what little I do about your past experiences.

In other words, the source to Xenocara & the artifacts of building may be consuming /usr.

At one time, I use to create individual partitions for /usr/xenocara & /usr/xobj which were 2GB each. However, this chews up two partitions, & OpenBSD currently has the limitation of 16 partitions total per drive (including partition'c'...). Now I simply create a larger /usr partition.

You may find that creating partitions for /usr/xenocara & /usr/xobj as being a viable solution, however, no one other than you knows everything you may have in /usr. 2GB for /usr seems rather small. Creating additional partitions for /usr/xenocara & /usr/xobj might solve your problem, but it might also only mask /usr being so meager.

Again, I can only guess given my limited knowledge of what you are doing.

Quote:
If I need to reconfigure (to expand /usr), what's the best way to do it...
Study growfs(8). However, growfs(8) requires that free space be found adjacent to the existing partition. Not knowing how you partitioned your disk (study the output of disklabel(8)...), I suspect that /usr is sandwiched between other partitions. If this is the case:
  • you might be able to shuffle partitions about backing one up followed by restoring it elsewhere, but you may or may not have another drive available to serve as temporary storage, or it may just be impossible to do so altogether. Shuffling is also involved enough that you may make a catastrophic mistake midway.
  • count this as a learning experience & reinstall.
Quote:
If I were to add the 2nd HDD, may I have a few examples of what a "good" partition allocation of a 40/100GB looks like?
A good partitioning scheme is one that works, what works is highly dependent upon usage patterns. Since no two people use OpenBSD in the same way, it is very difficult to suggest or dictate how you should partition your drive. Because of the vagaries anyone can experience (like that described above...), jggimi frequently makes the suggestion that new users simply allocate one large partition for / until users have had enough experience to understand their own specific needs.
Quote:
...can I "split" /home btwn the 2 drives, or "move" it to occupy the second HDD?
Yes, /home can be split or moved.
  1. Study Section 14.3.
  2. Partition the disk as desired using:
  3. mount(8) the disk.
  4. cp(1) or mv(1) files as needed Depending upon permission issues, dump(8) & restore(8) may be better choices.
  5. Make appropriate changes to /etc/fstab.
Again, consider the chances for error in such a manual process. Irregardless of what choice you make, back up everything of importance first, & consider reinstallation as being a prudent option.
Reply With Quote