Re: Problem: How to resize FreeBSD "partitions" on a live system?



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
.



Relevant Pages

  • Re: OT: MySQL And Native File Writes Versus Ports and TCP/IP
    ... PHP works quite well with the native file system. ... MySQL uses TCP/IP ...
    (comp.lang.php)
  • Re: Files into MySQL
    ... in MySQL, ... need of a system where I can upload binary files like this, ... If I upload each file to a folder in the web server file system, ... PHP and MySQL. ...
    (comp.lang.php)
  • Re: PcLinux
    ... Linux is superior. ... I much prefer the unix hierarchical file system against the MS drive letters so was interested when I read that MS introduced the ability to mount a local drive into another local file system in a similar manner. ... I don't want to be forced to re-install all of my software from ... These things are trivial on Unix systems. ...
    (rec.crafts.metalworking)
  • Re: how to recover after power outage
    ... Note that if somehow permissions on the my.cnf file got changed MySQL won't ... given that the file system took a major hit, should I try to fix it, or just do a clean install? ... I'm leaning towards the clean install since I've been meaning to upgrade this machine to 7.1 anyway. ...
    (freebsd-questions)
  • Re: File system is Full
    ... on another HD are sucking much of my FBSD HD. ... to my file system. ... happens to be a condition just as serious as filling up /. ... Does anyone know of any reason, such as a port installation or a make ...
    (freebsd-stable)