On 2015-08-06, Quartz <qua...@sneakertech.com> wrote: > We have an older system running 4.9 that acts as a sort of > dev/test/scratch machine for messing around. When it was set up it we > threw a 10gb drive in there and did a generic install with all the > defaults. Over time, as we've used this for various stuff, we've > realized that that partitioning scheme turned out to be decidedly non > optimal. /usr/obj and /usr/src are eating up a gig each but only have > 2kb of data on them (this machine has never compiled anything). /home > and /usr/local are using less than 45mb combined. Meanwhile /var was > only set up at a few hundred megs and is bursting at the seams. Over > half the drive's capacity is being wasted. > > I'm not super familiar with how OpenBSD does disks and all of the > caveats. How easy would it be to nuke some of these partitions and > recombine the space? Is it something that could be done with a couple > fdisk commands or would it involve a lot of screwing around? I've looked > though the manual regarding fdisk and disklabel but I'm still not sure I > really understand how everything works together.
How about taking some directory that is currently under /var (depending on what you're doing with the machine, maybe log or www or mysql or something?) and moving the contents to /usr/obj or /usr/src (or if they're together on disk, remove /usr/obj and /usr/src and create a new partition covering the space that was used by both)? (Then change the mountpoint in /etc/fstab). If that gives you enough capacity, that might be easier than some big shuffle-around.