|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] how to put partitions on RAID?
|
After reading your post a bit I decided to stop and just post useful info.
/dev/md0 is the partition.
make sure you have a superblock set up on your raid partitions. you need
them if you want to run a total raid system.
after you create your raid partition format it and copy your data over to
it. Don't use it again as a seperate partition.
here is my /etc/raidtab
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 4
persistent-superblock 1
device /dev/sda1
raid-disk 0
device /dev/sdb1
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/sda4
raid-disk 0
device /dev/sdb4
raid-disk 1
raiddev /dev/md2
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 4
persistent-superblock 1
device /dev/sda2
raid-disk 0
device /dev/sdb2
raid-disk 1
here is my mounted partitions
/dev/md1 on / type reiserfs (rw,errors=remount-ro)
/dev/md0 on /boot type ext2 (rw,errors=remount-ro)
md0 is boot
md1 is root
md2 is my swap ( is raid1 so that if 1 disc goes and swap is being used the system will stay up.)
in lilo.conf i set these options
boot=/dev/md0
raid-extra-boot=mbr-only
root=/dev/md1
hope that helps a bit.
N-Tropy
_________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
General Discussion -- http://lists.netisland.net/mailman/listinfo/plug
|
|