LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-14-2005, 01:47 PM   #1
curlyroger
LQ Newbie
 
Registered: Jun 2002
Posts: 4

Rep: Reputation: 0
Undo a RAID mirror


I have a FC1 system with a RAID mirror that I want to undo. Basically, I want to remove the secondary disk and use the primary as a normal drive.

The way I think it should be done is:

1 - Remove secondary drive
2 - Boot off CD
3 - Edit /etc/fstab and change mdX to hdaX
4 - Run fdisk on /dev/hda and change the partition types from 'Linux raid autodetect' to Linux (and Linux swap)
5 - Boot up

Is this possible/correct? What about the MBR? Here's the config:

Code:
[root@host root]# cat /etc/raidtab
raiddev             /dev/md2
raid-level                  1
nr-raid-disks               2
chunk-size                  64
persistent-superblock       1
nr-spare-disks              0
    device          /dev/hda3
    raid-disk     0
    device          /dev/hdc3
    raid-disk     1
raiddev             /dev/md0
raid-level                  1
nr-raid-disks               2
chunk-size                  64
persistent-superblock       1
nr-spare-disks              0
    device          /dev/hda1
    raid-disk     0
    device          /dev/hdc1
    raid-disk     1
raiddev             /dev/md1
raid-level                  1
nr-raid-disks               2
chunk-size                  64
persistent-superblock       1
nr-spare-disks              0
    device          /dev/hda2
    raid-disk     0
    device          /dev/hdc2
    raid-disk     1

[root@host root]# cat /etc/fstab
/dev/md2        /       ext3    usrquota,grpquota,defaults      1       1
/dev/md0                /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/md1                swap                    swap    defaults        0 0

[root@host root]# fdisk -l

Disk /dev/hdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdc1   *         1        13    104391   fd  Linux raid autodetect
/dev/hdc2            14       241   1831410   fd  Linux raid autodetect
/dev/hdc3           242      9729  76212360   fd  Linux raid autodetect

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1        13    104391   fd  Linux raid autodetect
/dev/hda2            14       241   1831410   fd  Linux raid autodetect
/dev/hda3           242      9729  76212360   fd  Linux raid autodetect
Thanks!
 
Old 07-14-2005, 03:12 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
What you say makes sense, but there's no guarantee that it would get f'ed up in the process.

I would make sure things are thoroughly backed up before attempting this.

As a general FYI: why did you raid mirror swap? Just for the stability in case of a disk failure?
 
Old 09-18-2005, 01:54 PM   #3
lacerto
Member
 
Registered: Oct 2003
Location: South London
Distribution: Gentoo.
Posts: 297

Rep: Reputation: 30
I've did exactly the same thing - two 250gb sata drives mirrored.

I initially did it just to see it it worked..and it did. I then customised my system, and would rather not have to re-install. I now want the extra drives space back though.

How did you get on with this?

L

EDIT: I sould add that I'm using Linux raid, not hardware or BIOS raid.


Last edited by lacerto; 09-18-2005 at 02:14 PM.
 
  


Reply



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
Recovering Software RAID Mirror rootking Linux - Software 1 11-01-2004 07:32 PM
Remove raid and mirror Chaiyakorn Linux - General 0 07-06-2004 01:59 AM
Mirror Raid support? Mediocre_Driver Linux - Hardware 1 01-20-2004 08:14 PM
software raid/mirror in MDK 9.1? basicaccess Mandriva 2 09-19-2003 04:03 AM
Dual CPU, Raid Mirror glock19 Linux - General 1 05-01-2002 01:10 PM

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

All times are GMT -5. The time now is 10:43 PM.

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