LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-30-2006, 09:30 AM   #1
imagineers7
Member
 
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310

Rep: Reputation: 30
Question kernel compiled with raid support?


Hello everyone,

I had a spare disk on my production server and I wanted to make the server to be on software raid 1 disks.
I have created a raid drive on the machine to be mounted as /tmp
(its on /dev/md0). I also want my / filesystem to be on raid 1 partition. Any suggestions? Is my kernel compiled with software raid support? How can I know that?
--------------------------------------------------------------
[root@shakti ~]# uname -r
2.6.9-22.ELsmp



FDISK::-----------------
[root@shakti ~]# fdisk -l

Disk /dev/sda: 73.4 GB, 73407820800 bytes
255 heads, 63 sectors/track, 8924 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 268 2048287+ 82 Linux swap
/dev/sda3 269 399 1052257+ fd Linux raid autodetect
/dev/sda4 400 8924 68477062+ 5 Extended
/dev/sda5 400 8924 68477031 83 Linux

Disk /dev/sdb: 73.4 GB, 73407820800 bytes
255 heads, 63 sectors/track, 8924 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 268 2048287+ 83 Linux
/dev/sdb3 269 399 1052257+ fd Linux raid autodetect
/dev/sdb4 400 8924 68477062+ 5 Extended
/dev/sdb5 400 8924 68477031 83 Linux

Disk /dev/md0: 1077 MB, 1077411840 bytes
2 heads, 4 sectors/track, 263040 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Device Boot Start End Blocks Id System


_---------------------------------------------------------------
MDADM DETAILS

[root@shakti ~]# mdadm --detail /dev/md0
/dev/md0:
Version : 00.90.01
Creation Time : Tue May 30 07:25:36 2006
Raid Level : raid1
Array Size : 1052160 (1027.50 MiB 1077.41 MB)
Device Size : 1052160 (1027.50 MiB 1077.41 MB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Tue May 30 07:53:17 2006
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0


Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 8 19 1 active sync /dev/sdb3
UUID : c52739c3:5b470b1c:e8c6d152:aebe1777
Events : 0.16

__________________________________________________________________

FSTAB

[root@shakti ~]# cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/sda5 / ext3 defaults 1 1
/dev/sda1 /boot ext3 defaults 1 2
/dev/md0 /tmp ext3 defaults,noexec 1 0 ##<<<<<
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/sda2 swap swap defaults 0 0
/dev/hdc /media/cdrom auto pamconsole,exec,noauto,managed 0 0







Thanks in advance
 
Old 05-30-2006, 09:30 AM   #2
imagineers7
Member
 
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310

Original Poster
Rep: Reputation: 30
Hello,

Forgot to throw some more stuff:--


DMESG
[root@shakti ~]# dmesg | grep md
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
ata1: SATA max UDMA/133 cmd 0xFE00 ctl 0xFE12 bmdma 0xFEA0 irq 185
ata2: SATA max UDMA/133 cmd 0xFE20 ctl 0xFE32 bmdma 0xFEA8 irq 185
md: Autodetecting RAID arrays.
md: autorun ...
md: considering sdb3 ...
md: adding sdb3 ...
md: adding sda3 ...
md: created md0
md: bind<sda3>
md: bind<sdb3>
md: running: <sdb3><sda3>
md: raid1 personality registered as nr 3
raid1: raid set md0 active with 2 out of 2 mirrors
md: ... autorun DONE.
EXT3 FS on md0, internal journal


Please help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel compiled with raid support? imagineers7 Linux - Kernel 1 05-30-2006 09:25 AM
Fedora Core 4 kernel RAID support benr77 Linux - General 0 09-01-2005 07:01 AM
Can't detect VIA network card with support compiled into 2.6.7 kernel. Joubert79 Linux - Hardware 2 08-05-2004 12:41 PM
slack 9.2? kernel 2.6? support for SATA raid?? scsikid Slackware 6 03-09-2004 09:53 PM
ALSA/ sound support compiled into kernel? centr0 Linux - Software 4 03-05-2003 10:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration