LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-02-2006, 02:51 PM   #1
iceman42
LQ Newbie
 
Registered: Jul 2003
Posts: 23

Rep: Reputation: 15
having trouble with RAID and FC5


If this is in the wrong forum I apologize.


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.

Last edited by iceman42; 11-02-2006 at 02:52 PM.
 
Old 11-02-2006, 09:11 PM   #2
iceman42
LQ Newbie
 
Registered: Jul 2003
Posts: 23

Original Poster
Rep: Reputation: 15
Okay so here is where I am at, besides frustrated to no end.

[root@mail1 ~]# fdisk /dev/sda

The number of cylinders for this disk is set to 19457.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): t
Partition number (1-6): 5
Hex code (type L to list codes): fd
Changed system type of partition 5 to fd (Linux raid autodetect)

Command (m for help): p

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 fd Linux raid autodetect
/dev/sda6 13329 19457 49231161 83 Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

... did it over to
[root@mail1 ~]# fdisk /dev/sdb

so I think I am in like flynn.

[root@mail1 ~]# mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/sda5 /dev/sdb5

mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/sda5 /dev/sdb5
mdadm: chunk size defaults to 64K
mdadm: Cannot open /dev/sda5: Device or resource busy
mdadm: Cannot open /dev/sdb5: Device or resource busy
mdadm: create aborted
[root@mail1 ~]# umount /dev/sda5
umount: /dev/sda5: not mounted

???? What! I am getting so frustrated.
 
Old 11-03-2006, 07:31 AM   #3
iceman42
LQ Newbie
 
Registered: Jul 2003
Posts: 23

Original Poster
Rep: Reputation: 15
I turned on the display that is connected to the server and there is a bunch of output on the screen because I am back in the cage.

INIT version 2.86 reloading
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
sda: Write protect is off
SCSI device sda: drive cache: write back
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
sda: Write protect is off
SCSI device sda: drive cache: write back
SCSI device sdb: 312581808 512-byte hdwr sectors (160042 MB)
sdb: Write protect is off
SCSI device sdb: drive cache: write back
SCSI device sdb: 312581808 512-byte hdwr sectors (160042 MB)
sdb: Write protect is off
SCSI device sdb: drive cache: write back

cat /proc/swaps
Filename Type Size Used Priority
/dev/dm-5 partition 2096440 0 -1
 
  


Reply

Tags
fedora 5, raid0



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM + RAID-1 on FC5 running system randolpholiveira Linux - Server 0 10-12-2006 08:17 AM
cannot boot with new kernel.Raid.FC5 Guignol Linux - Software 0 07-25-2006 07:28 AM
FC5 install: cannot find HDD, looks for RAID... Barry Bingham Fedora - Installation 4 05-21-2006 06:53 AM
FC5 installation on sata raid Azhrarn Linux - Hardware 0 05-04-2006 02:50 AM
5 FC5 cd trouble tom_oa731 Fedora - Installation 3 04-10-2006 01:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration