[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Disk Mirroring in Sarge howto



hi ya

On Tue, 14 Jun 2005, Siju George wrote:

> I want to have the following partitions in both the hard disk
> 
> / - 500 MB - Primary

good

> swap - 2 GB - Primary

bad location ??  if it is partition#2

> /usr - 5 GB - Primary

ok

> /home - 500 MB - Logical

extreme bad idea if you have users 

> /tmp - 5 GB - Logical

extreme bad idea unless oyu have specific applications
that will run that requires /tmp to be that big

most apps uses less than 100mb of /tmp or /var/tmp or /usr/tmp

> /var/log - 5 GB -logical

wow .. you're collecting tons of log data ??
	- how much data do you have now  in /var/log

> /var - rest of the disk - logical

extreme bad idea ... unless you have users

- if you are intending to make a complete debian mirror
  in /var/apt and equiv .. than it might be okay, but i'd
  separate /var for users vs /var for system to keep itself running

you cannot ever provide enough disk space for uwers or your own
applications .. you will always run out of space ..

some apps require /opt in which case / is too small

> I prefer ext3 or ReiserFS for file systems.

or xfs or jfs ..

for disks that are say 500GB or more ... i'm not even gonna try
using ext3 ... 

for partitions over 2TB ... its gonna be a fun testing game of
which apps crash first because it used the wrong libs

> How should I go about it???

manually fdisk it ... or write a small script ( 5-10 minutes )

write a 2nd script to copy over the data

mount /dev/somthing newdisk
cp -dpar  /lib /boot /bin /sbin /home /var /newdisk
sync
chroot /newdisk 
	rerun lilo or grub or dd the mbr
reboot

c ya
alvin



Reply to: