Thanks got it to work! On 11/4/06, Gilboa Davara <gilboad@xxxxxxxxx> wrote:
On Thu, 2006-11-02 at 19:49 -0500, Dan McCullough wrote: > Okay I am trying to setup RAID on FC5, almost all the examples that I > have found are for raidtools2, however FC5 does not have raidtools2. > so i have been trying to use mdadm to do it, but I keep getting > errors. > > So anyway I need some help in setting up RAID to work on my system. > Here is some preliminary information. > > ################################################## > > fdisk -l > > Disk /dev/sda: 160.0 GB, 160041885696 bytes > 255 heads, 63 sectors/track, 19457 cylinders > Units = cylinders of 16065 * 512 = 8225280 bytes > > Device Boot Start End Blocks Id System > /dev/sda1 * 1 13 104391 83 Linux > /dev/sda2 14 6540 52428127+ 83 Linux > /dev/sda3 6541 13067 52428127+ 83 Linux > /dev/sda4 13068 19457 51327675 5 Extended > /dev/sda5 13068 13328 2096451 82 Linux swap / Solaris > /dev/sda6 13329 19457 49231161 83 Linux > > Disk /dev/sdb: 160.0 GB, 160041885696 bytes > 255 heads, 63 sectors/track, 19457 cylinders > Units = cylinders of 16065 * 512 = 8225280 bytes > > Device Boot Start End Blocks Id System > /dev/sdb1 * 1 13 104391 83 Linux > /dev/sdb2 14 6540 52428127+ 83 Linux > /dev/sdb3 6541 13067 52428127+ 83 Linux > /dev/sdb4 13068 19457 51327675 5 Extended > /dev/sdb5 13068 13328 2096451 82 Linux swap / Solaris > /dev/sdb6 13329 19457 49231161 83 Linux > > ################################################## > > df -h > Filesystem Size Used Avail Use% Mounted on > /dev/dm-6 46G 1.6G 42G 4% / > /dev/dm-1 99M 9.2M 85M 10% /boot > tmpfs 473M 0 473M 0% /dev/shm > /dev/dm-3 49G 181M 46G 1% /home > /dev/dm-2 49G 233M 46G 1% /var > > any other questions please ask away. > > I had been told to use fdisk to change the ID of the drive and to make > it a "Linux raid auto detect" and then do that on the other disk. > That seemed to be okay, but then that was some instructions for > raidtools2. mdadm I couldn't even get past the first one as it > couldn't find sda5 or sdb5, it told me to use the swap partition is > there is an increased chance of data loss with RAID 0, to use a > partition that does hold any important data. so as you can see I am > right now floating along and I need some help. If you have a better > way I am all ears. > I assume that you want to create raid0/1 on sda6/sdb6, right? Once you change sd[ab]6 to partition ID to fd (Raid auto detect), just run (of the top of my hand... I'm not sure... Check the mdadm man page): $ mdadm --build --level=0 --raid-devices=2 /dev/hda6 /dev/hdb6 (Change to --level=1 if you want RAID1) You -may- need to run: (Again, check the man pages) $ mdadm --assemble /dev/md0 /dev/sda6 /dev/sdb6 -Gilboa -- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list