LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 03-18-2009, 01:19 AM   #1
bharatlalgupta
Member
 
Registered: Aug 2008
Posts: 79
Blog Entries: 1

Rep: Reputation: 16
Question how to extend md device


hello
i'm using RHEL5.0 with kernel-2.6.18-8.el5 now i implement raid{0,1,5} on redhat installed pc but only one md device is available /dev/md0
so how i extend my md device for implement more raid device at one time..
note:-- i'm taking about SOFTWARE RAID.....
 
Old 03-18-2009, 03:05 AM   #2
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 360

Rep: Reputation: 41
Without more context this question is weird to interpret.

md0 indicates a raid device already. It will be constructed based on raid physical devices.. if you want to implement raid{0,1,5}, saying all three of them, you will end up with an md0 md1 and md2, each of one of the three types. You don't need to extend an md0 device per say to achieve this.

If you are talking about an md0 device, covered on multiple physical disks that are bigger than the area designated to the md0 device, you should resize all partitions on all physical drives and try to use mdadm --grow, if at all possible..

If this does not answer your question, please rephrase or explain some more your situation.
 
Old 03-20-2009, 01:35 AM   #3
bharatlalgupta
Member
 
Registered: Aug 2008
Posts: 79
Blog Entries: 1

Original Poster
Rep: Reputation: 16
actully sir
in RHEL5 when i implement software any raid such as raid5
1:--create 3 partition /dev/hdc{8,9,10} with fd id then run partprobe for kernel reinitialize.
2:--mdadm --create /dev/md0 --level=5 --raid-devices=3 /dev/hdc{8,9,10}
now array created on /dev/md0 device
3:--mkfs.ext3 /dev/md0
now create a directory then set the mount point ,write entry in /etc/fstab
for parmanent mounting.
now i want at this runing linux pc one more raid 1 implement
1:--i create two more partition such as /dev/hdc{11,12} with fd id then run partprobe for kernel reinitialize.
2:--mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/hdc{11,12}
now array not creat on /dev/md1 device
one error message is showing "/dev/md1" device is not availabel
so now what i do..
this means how to extend md device ....
but when i used RHEL4 then 3raid device such as raid 0,1,5 was implemented
at a time..on only one runing rhel pc
 
Old 03-20-2009, 02:00 AM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Just got to ask. What is the point of creating a raid array on a single disk? You do not increase speed. If the drive has a failure, you do not have any backup.
 
Old 03-20-2009, 02:49 AM   #5
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 360

Rep: Reputation: 41
I suppose this is for some testing purpose, on which it is totally understandable. If not, like lazlow says, it is rather useless, neither performance, nor safety will be increased..

I would have to look into this myself. I will do so though...

Technically (that made it unclear to me) you are not exactly extending an existing md device, but rather you want to create an additional md device...
 
  


Reply

Tags
device, extend, how, md, raid


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to extend a live cd/usb? ciden Linux - General 1 04-10-2008 02:58 PM
how to extend partition? Sushy *BSD 2 01-25-2007 01:29 PM
How to extend /home fw12 Linux - Software 5 09-06-2006 08:04 PM
How do I extend an ext3 partition? chrislev Linux - Hardware 2 01-27-2006 11:35 AM
How to extend network range? G-Fox Linux - Hardware 3 11-14-2003 12:09 AM


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