LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-10-2009, 02:21 AM   #1
ojha_riddhish
LQ Newbie
 
Registered: Mar 2009
Location: Vapi, India
Distribution: RHEL 5, openSUSE 11.1, Ubuntu 8.10 / 9.04, Fedora 10
Posts: 19

Rep: Reputation: 0
Question Copying RAID configuration to another system with no RAID??


Dear friends,
I have just completed studying RAID and I like the concept very much. But I have an unsatisfied question about RAID? Please guide me further in the conquest of gaining enormous knowledge.
The Scenario : I have created a Software RAID1 setup of two hard disks sdb1 and sdc2 on my RHEL 5 box both of same size 5GB. I know that this information is stored in /proc/mdstat and /etc/mdadm.conf files in my OS(correct me if I'm wrong). Now, I want to ask whether I can generate this same RAID on another computer with same system config and RHEL 5 by copying the files containing RAID info. Or can I get information about this RAID setup and generate a bash script and execute it on the freshly installed system.
If this can happen, it is a great feature for enterprise level RAID setups where they can easily configure RAID without even requiring knowledge of RAID.

Thanks in advance!
 
Old 04-10-2009, 02:37 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
well the rhel5 installer can build raid as part of the installation, so there's no need to script any of this. You can define it in a kickstart file too so if building systems with a template it can be completely automated.

I'm not 100% sure you couldn't migrate the files across, but I think the files (of which I have none available right now) will contain drive serial numbers and such, so not transferable. creating raid "manually" is really very simple though. Probably harder to "migrate" even if it was possible"
 
Old 04-10-2009, 02:44 AM   #3
ojha_riddhish
LQ Newbie
 
Registered: Mar 2009
Location: Vapi, India
Distribution: RHEL 5, openSUSE 11.1, Ubuntu 8.10 / 9.04, Fedora 10
Posts: 19

Original Poster
Rep: Reputation: 0
Question

Thanks acid_kewpie for your information. I am sorry to ask but if I had not installed RAID on RHEL 5 and on another linux flavor, would it be still possible to use the kickstart file? And suppose if my OS on this system got corrupted some how and I had to install a fresh OS, what would happen to my RAID hard disks that contain my all important data. Can I recover? Please guide me if anyone knows about this?

Thanks in advance!!
 
Old 04-10-2009, 02:51 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
Well I *think* the kickstart file for any installed box will be in /boot for your inspection and you can modify that file to add raid manually or use the system-config-kickstart tool. Kickstart is redhat /fedora / centos specific though. No use under debian. If your OS does need reinstalling then during the installation process you can simply pick up the raid drives as you left them, no problem. Indeed with regards to raid configurations, there's no need for any actual files at all, it's all automatically detected, so the installer will just pick it up with no hassle at all.

To confuse you further, also note you can use LVM to provide mirroring instead of RAID, which means you can extend what would function as a RAID1 array to add additional drives to a single volume. Might want to keep it in mind for the future...
 
Old 04-10-2009, 04:58 AM   #5
ojha_riddhish
LQ Newbie
 
Registered: Mar 2009
Location: Vapi, India
Distribution: RHEL 5, openSUSE 11.1, Ubuntu 8.10 / 9.04, Fedora 10
Posts: 19

Original Poster
Rep: Reputation: 0
Wink

Thanks once again acid_kewpie. Thanks for the precious info. I might get back to you after experimenting. Thanks!
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert RAID 1 system into RAID 1+0 jostmart Linux - Server 8 11-06-2011 11:42 PM
LXer: Tutorial: Linux RAID Smackdown: Crush RAID 5 with RAID 10 LXer Syndicated Linux News 0 08-14-2008 11:20 PM
LXer: Linux RAID Smackdown: Crush RAID 5 with RAID 10 LXer Syndicated Linux News 0 02-26-2008 09:40 PM
Converting a non-RAID system to use RAID. Jrowat Ubuntu 3 06-08-2007 03:57 PM
moving system from ide software raid to new box with scsi raid ftumsh Linux - General 0 10-28-2003 09:34 AM


All times are GMT -5. The time now is 04:36 AM.

Main Menu
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