LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   remove RAID (https://www.linuxquestions.org/questions/linux-general-1/remove-raid-231028/)

russell_farnell 09-15-2004 03:52 PM

remove RAID
 
I have a small RAID with some old disks that work fine under Fedora Core 1. However I need to remove the array to replace it with a much larger SATA disk.
I have no problem with installation. I simply cannot find any instructions in the HOWTOs regaurding stopping, removing MD0, and removing the array.

The original set up was all done during the Fedora 1 installation. Four SCSI disks and the hda3 partition on my main IDE drive were arrayed. ( This is one reason that I wanted to change my setup!)

I have removed the md0 from my fstab, but every time that I reboot, I must have my SCSI drives attached, or I get a kernal panic because md0 is not available.----but mdo is not mounted.

What am I missing?

Thanks,

Russell Farnell

bdp 09-16-2004 01:24 AM

did you edit your md0 out of /etc/raidtab ?

russell_farnell 09-16-2004 12:01 PM

Here is my raidtab I commented everything out with '#'

#raiddev /dev/md0
#raid-level 0
#nr-raid-disks 5
#chunk-size 64
#persistent-superblock 1
#nr-spare-disks 0
# device /dev/hda3
# raid-disk 0
# device /dev/sda1
# raid-disk 1
# device /dev/sdb1
# raid-disk 2
# device /dev/sdc1
# raid-disk 3
# device /dev/sdd1
# raid-disk 4

twantrd 09-16-2004 01:59 PM

OK, in order to remove or replace a disk you run 'raidhotremove /dev/md? /dev/sd??' (those ?'s are filled in by you). Remove the disk and insert the new one and then issue a 'raidhotadd /dev/md? /dev/sd??'. Then you will see the sync times.

However, why you are replacing the disk with a bigger one? The RAID will only be as big as your smaller disk. So putting in a bigger disk does no benefit to you and you are wasting that valuable disk space in the bigger disk.

Oh yea, you said SATA. Just quick question, is that recognized as /dev/sd or /dev/hd? Thanks!

-twantrd

russell_farnell 09-16-2004 02:54 PM

Thanks for the RAIDtools info, but what I am attempting to do is REPLACE my RAID (which is linear mode with four 9 gig drives) with the standard IDE setup. I am disconnecting the RAID box altogether. I now have a 120gig IDE disk in its place.
It is already working, and I don't have any RAID devices (or SCSI devices) mounted.
I simply want to disconnect the SCSI cable from my controler, but everytime I do that, I have problems at boot time because the kernel is expecting to have put the SCSI devices together to make md0.

Any other ideas?

Thanks


All times are GMT -5. The time now is 05:15 PM.