LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-09-2007, 11:04 AM   #1
goliathlibrary
LQ Newbie
 
Registered: Sep 2005
Posts: 15

Rep: Reputation: 0
Exclamation red hat 8 - disk mirroring after OS install


Hello All,

I am having a hard time finding any information (other than "dont do it") when i search for directions on how to setup software raid on a red hat system which is currently installed on with no mirroring or anything presently. Basically I've been handed an older server that is in prod and ive been asked to configure some sort of mirroring on this server that has been running without mirroring for a good 3 years.

The only mirroring experience i have in mirroring after the fact with software raid is with solaris using metadevices, and unfortunetly from what i am reading LVM has a few similar concepts to metas but for the most part its very very different.

Discription:

OS: Red Hat Enterprise 8
Hard Disks: 2
Disk Layout: The box was incorrectly built and majority is under /.
Also have a /boot /home and /local partitions.

Task:
So i guess i want to mirror all thats under the root and /home and local partitions to a blank disk that was just added.

Procedure:
???

Does anyone know how to do this correctly and preferrably with minimal data loss and downtime (i assume i would need to reboot into single user mode to mirror the root partition.) Everything is currently backed up nightly as well, so if we do loose the data we are not totally screwed.

Any tips, suggestions, comments etc would be greatly appreciated.

Thanks in Advance.
 
Old 10-09-2007, 12:46 PM   #2
goliathlibrary
LQ Newbie
 
Registered: Sep 2005
Posts: 15

Original Poster
Rep: Reputation: 0
Ok i actually found a site with a bit more info. Here is what i found, going to try this next maintenance window. Make sure you have a backup when your trying this. Maybe even a backup of your backup.

Code:
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/hda3 /dev/hdc3
Explanation: This creates a mirror named md0 comprising of /dev/hda3 as the main partition to be mirrored and /dev/hdc3 as the miroree. Note: I'm sure doing the root partition is a bit more painful, but i will see when i drop it into single user mode.

After the mirrors are created check them using this command:

Code:
watch cat /proc/mdstat
Wait for the disks to finish syncing and then make the entry change in /etc/fstab. Change /dev/hda3 to /dev/md0 for example. Trying to find more info about mirroring the root partition now. Any thoughts or suggestions fire away.
 
  


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
Install Red Hat 7.3 on Flash Disk Felipe Martin Linux - Hardware 1 07-13-2006 03:03 PM
Install Red Hat linux on separate disk Micik Linux - Newbie 4 12-06-2004 09:58 AM
How to install Red Hat 9 on ext. USB hard disk? nedaf7 Red Hat 3 03-24-2004 07:15 PM
Red Hat 7.1 Install error - insufficient disk space KIRKR Linux - Software 5 01-09-2002 04:56 PM
Want to install Red Hat 7.0 on Win2k with NTFS disk stereoboy20 Linux - Software 12 11-09-2001 02:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02: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
Open Source Consulting | Domain Registration