On Tue, 2004-07-13 at 02:12, Craig Ringer wrote: > On Tue, 2004-07-13 at 00:37, Krsnendu dasa wrote: > > Any recommendations how to partition the hard drive? > > A small-ish root FS, then a gigantic LVM PV for the rest. That gives you > the flexibility to reallocate storage as and when you need it. Running > out of space on /var? Add 10 gigs to the mounted, active partition on > the running server. > I like to use LVM and keep separate: > / > /home > /var > /usr > /usr/local > /opt > > because there's little wasted storage. I allocate relatively minimal > amounts of space to each initially, then expand them as needed. You > could probably safely lose the /opt and /usr/local ;-) though.
I'll second this suggestion. I usually allocate 75MB for a boot partition (/boot) and put everything else (including /) into the LVM. > You'll also never understand how you lived without LVM snapshots. They > makes things like mail spool backups so much easier (and less > disruptive) that it's incredible. Hear, hear! With LVM, /home is unavailable for perhaps 20 seconds each night. My backup script looks something like this: umount /home lvcreate --snapshot \ --size 200M \ --name Daily-`date +%j` \ /dev/vg00/lv_home mkdir /backups/`Daily-`date +%j` mount /home mount /dev/vg00/Daily-`date +%j` /backups/`Daily-`date +%j` tar -czf /dev/tape /backups/Daily-`date +%j` umount /backups/* lvremove /dev/vg00/Daily-`date +%j` In the real version, I just run `date +%j` once; I've written it out longhand for clarity. `date +%j` gives you a Julian date, so you get backups named Daily-187 on the 187th day of the year. You can do the same thing with Postgres databases if you add "service postgres stop" and "service postgres start" to the beginning and end of this script. There are patches that will allow you to do this without umounting home, but I have gotten better results doing it this way. -- David Johnston <[EMAIL PROTECTED]> ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _____________________________________________________________________ Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: https://lists.sourceforge.net/lists/listinfo/ltsp-discuss For additional LTSP help, try #ltsp channel on irc.freenode.net