[expert] disk partitioning help for new server

2000-04-25 Thread Gavin Clark

Hi,
I'm setting up a box to be a webserver with mysql as the backend database
and I need a little advise about hot I should partition things.

I have 3 drives:

2 - 18 gig SCSIs set up as a level 1 raid
1 - 20 gig ide

What are good sizes for the partitions?

I want to put everything on the raid array: /, /home, /usr, /var, etc. and
use the ide drive as internal backup.

Are there any problems with mounting / from a raid array?
How about /boot ?
Should I mount the raid as /home and put the rest of the system on the ide
drive?


the RPMs install MySQL in /var/lib/mysql
/var seems like a dumb place for it, with the recommended size for the /var
partition it would run out of space when the DB gets large.
Where do other people put it? I was thinking of /home/mysql

thanks for any thoughts,
Gavin



RE: [expert] disk partitioning help for new server

2000-04-25 Thread Bill Shirley

I just moved my / and /boot over to raid1 partitions.  It works.  There is a
trick to setting up lilo for /boot on raid1.   I uninstalled lilo and
installed lilo-21.4.1 from a ftp site before I got it working.  However, I
think it may work with the stock Mandrake lilo.

I started off with Mandrake / on /dev/hda1 and setup the raid on /dev/hdb1
and /dev/hdc1.  I created the raid array and mounted it as /mnt/newroot.
Then I did a cp -ax / /mnt/newroot.  Then I swapped jumpers on the hard
drives so now /dev/hdb1 is /hda1.  After booting be sure to correct your
/etc/raidtab!!


My /etc/lilo.conf is:

boot = /dev/md1 === the trick that makes it work
timeout = 50
prompt
  message = /boot/message
  default = linux
  vga = 0x0f05
  read-only
map=/boot/map
install=/boot/boot.b
keytable=/boot/us.klt

image = /boot/vmlinuz
  label = linux
  append = "max_scsi_luns=5"
  root = /dev/md0

image = /boot/vmlinuz.old
  label = oldlinux
  append = "max_scsi_luns=5"
  root = /dev/md0

other = /dev/fd0
  label = floppy
  unsafe

My /etc/fstab is:

#/dev/hda1  /   ext2defaults1 1
/dev/md0/   ext2defaults1 1
/dev/md1/boot   ext2defaults1 1

#/dev/hda2  swapswapdefaults0 0
/dev/hda2   noneswappri=100,exec,dev,suid,rw 1 1
/dev/hdc2   noneswappri=100,exec,dev,suid,rw 1 1

none/proc   procdefaults0 0
none/dev/ptsdevpts  mode=0620   0 0

/dev/fd0/mnt/floppy auto sync,user,noauto,nosuid,nodev,unhide 0
0
/dev/cdrom  /mnt/cdrom  auto user,noauto,nosuid,exec,nodev,ro   0 0

elmo:/home/Mandrake /mnt/nfs nfs noauto,ro,nosuid,rsize=8192,wsize=8192 0 0

My /etc/raidtab is:

# Sample raid-1 configuration
raiddev /dev/md0
raid-level  1
nr-raid-disks   2
nr-spare-disks  0
chunk-size  4
persistent-superblock   1

device  /dev/hda1
raid-disk   0

device  /dev/hdc1
raid-disk   1

raiddev /dev/md1
raid-level  1
nr-raid-disks   2
nr-spare-disks  0
chunk-size  4
persistent-superblock   1

device  /dev/hda3
raid-disk   0

device  /dev/hdc3
raid-disk   1

Basically, just follow the instructions in
/usr/doc/raidtools-0.90/Software-RAID.HOWTO.txt


Hope this helps,

Bill

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Gavin Clark
Sent: Tuesday, April 25, 2000 3:28 AM
To: [EMAIL PROTECTED]
Subject: [expert] disk partitioning help for new server


Hi,
I'm setting up a box to be a webserver with mysql as the backend database
and I need a little advise about hot I should partition things.

I have 3 drives:

2 - 18 gig SCSIs set up as a level 1 raid
1 - 20 gig ide

What are good sizes for the partitions?

I want to put everything on the raid array: /, /home, /usr, /var, etc. and
use the ide drive as internal backup.

Are there any problems with mounting / from a raid array?
How about /boot ?
Should I mount the raid as /home and put the rest of the system on the ide
drive?


the RPMs install MySQL in /var/lib/mysql
/var seems like a dumb place for it, with the recommended size for the /var
partition it would run out of space when the DB gets large.
Where do other people put it? I was thinking of /home/mysql

thanks for any thoughts,
Gavin




Re: [expert] disk partitioning help for new server

2000-04-25 Thread Gavin Clark

thanks!
I was expecting responses like "yes" 
;-)

Gavin

--
From: "Bill Shirley" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: [expert] disk partitioning help for new server
Date: Tue, Apr 25, 2000, 4:23 AM


 I just moved my / and /boot over to raid1 partitions.  It works.  There is a
 trick to setting up lilo for /boot on raid1.   I uninstalled lilo and
 installed lilo-21.4.1 from a ftp site before I got it working.  However, I
 think it may work with the stock Mandrake lilo.