Re: Problem: How to resize FreeBSD "partitions" on a live system?
- From: bv@xxxxxxx (Bill Vermillion)
- Date: Fri, 16 Jun 2006 04:35:01 GMT
In article <slrne92s59.11gh.steve@xxxxxxxxxxxxxxxxx>,
Steve Ackman <usenet2002@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
In <1150342017.343733.127600@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, on 14 Jun
2006 20:26:57 -0700, KimmoA wrote:
This is something I have thought about for a long time.
Is it really so bad to use / for the entire disk (except (MEM
* 2) for swap)? I have found that with the auto defaults, my
/var quickly grows out of control (heavy database; lots of spam
filling up logs, etc...).
This is partly the reason for dividing the drive
into partitions. In the event of, say, a mail flood,
you don't end up filling your drive and bringing the
whole system down.
And in the past I've found that when a file system gets corrupted
it's most always /. Having things separate prevents losing a whole
system. And by using the default defintions [names not necessarily
file sizes] you can re-install the OS in / and keep everything else
you have on the system working without worrying about extra things
that are no longer in the neweest OS version. You cn remake the
/ to be sure before the re-install.
Please tell me what to do! I can't make up my mind... and I
don't think I really know enough about this to make the right
choice. Yes, I have read the installer's explanations. They
sound reasonable, and I'd love to do it like you're supposed
to, but I'd like to hear your comments on this first.
So, to clearify: I would like to know how to expand my /var on a live
system, taking space from /usr! :-)
You can effectively do that without touching partitions
by creating a directory like /usr/var/db and moving all
your /var/db stuff to it. Now create the link
/var/db -> /usr/var/db
And if the database is MySQL - the only one I'm familiar with,
there are options you put in /etc/rc.conf [see the MySQL start
script in /usr/local/etc/rc.d] so that the database can be put
anywhere you wish.
All your other apps that were contributing to filling
up /var have more breathing room, and your db now has
full use of /usr.
That's one way to do it, anyway...
Bill
--
Bill Vermillion - bv @ wjv . com
.
- References:
- Problem: How to resize FreeBSD "partitions" on a live system?
- From: KimmoA
- Re: Problem: How to resize FreeBSD "partitions" on a live system?
- From: Steve Ackman
- Problem: How to resize FreeBSD "partitions" on a live system?
- Prev by Date: freebsd docbook extension
- Next by Date: Re: Problem: How to resize FreeBSD "partitions" on a live system?
- Previous by thread: Re: Problem: How to resize FreeBSD "partitions" on a live system?
- Next by thread: Re: Problem: How to resize FreeBSD "partitions" on a live system?
- Index(es):
Relevant Pages
|