LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
LinkBack Search this Thread
Old 06-05-2009, 03:56 PM   #1
pshoaf
LQ Newbie
 
Registered: Feb 2005
Location: Charleroi, PA 30 mi SE of Pgh
Distribution: RedHat, Fedora, Oracle
Posts: 13

Rep: Reputation: 0
Question Need to stop using software raid level 1


I have a RedHat ES 4 server with 2 drives sda & sdb. Each drive has 3 partitions (/boot, swap, and /). /dev/md0 is /dev/sda1 & /dev/sdb1 and /dev/md1 is /dev/sda3 and /dev/sdb3, while /dev/sda2 and /dev/sda3 are used for swap.

I need to remove the raid from /boot (/dev/md0) and revert back to a single drive. I found an earlier post from 1-17-2005 that said...

Quote:
With RAID1 its easy.

Step 1. Locate your raid configuration file under /etc/raidtab.
If you dont find one, have mdadm generate one for you.
Step 2.
Identify the child partitions that make up md0 and md1.
The SATA disks may appear as SCSI devices sda and sdb, not sure on FC3, otherwise they would be ide. (hda, hdb)

For this discussion, I will assume md0 is made of sda1 + sdb1 and md1 is sda2 + sdb2

Step 3. Modify you /etc/fstab file and replay md0 with sda1, then replace md1 with sda2.

Step 4. Cross your fingers

Step 5. Reboot, If all goes well, your should now be running on the first disk.

Good luck!
Has anyone done this? I am working with a production server and don't like step #4. Any all help is greatly appreciated.
 
Old 06-05-2009, 04:21 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 38,407

Rep: Reputation: 885Reputation: 885Reputation: 885Reputation: 885Reputation: 885Reputation: 885Reputation: 885
step 4 is optional. ;-)

Seriously though, there's nothing to go wrong. Software RAID 1 is just two normal identical file systems with a RAID identifier. The worst that would happen is that after you have mounted a single partition then it no longer starts as a RAID 1, but you don't wwant that to happen anyway.
 
Old 06-10-2009, 09:01 AM   #3
pshoaf
LQ Newbie
 
Registered: Feb 2005
Location: Charleroi, PA 30 mi SE of Pgh
Distribution: RedHat, Fedora, Oracle
Posts: 13

Original Poster
Rep: Reputation: 0
Unhappy Did not work

Well, I went in to the /etc/fstab and made the changes, abd /boot did not mount. I changed everything back and gave up. I copied the /md partitions to a new drive the booted that. I truly wish there was a way to convert from Raid Level 1 (mirroring) back to single drive no raid.
 
  


Reply

Tags
raid, software


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dell/Intel ICH7 soft-RAID and mdadm raid-level mistake PhilipTheMouse Linux - General 0 03-16-2009 03:44 AM
Adding an old software-RAID array to a software-RAID installation.. Boot problems GarethM Linux - Hardware 2 05-05-2008 04:16 PM
Setting up a root software RAID level 1 with SuSE 10.1 pschoenb Linux - Kernel 0 11-26-2006 08:34 PM
How to stop at run level 3 when booting cnm Linux - General 3 11-04-2006 03:45 AM
Raid Level 5 HELP!! Please... Daveinflorida Linux - Networking 3 01-20-2006 02:04 PM


All times are GMT -5. The time now is 01:25 PM.

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
Open Source Consulting | Domain Registration