LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Moving a software raid to a new computer (https://www.linuxquestions.org/questions/linux-general-1/moving-a-software-raid-to-a-new-computer-329851/)

phil.d.g 06-03-2005 05:21 AM

Moving a software raid to a new computer
 
I have a software RAID-1 using two IDE harddrives, and I need to move it to another computer, I'm not sure how to do this. Is it just a matter of plugging the hdds in and mounting /dev/md0? Do I need to plug the harddrives into the same channels, ie the two harddrives are currently hdb and hdc, so do i need to plug them into the primary slave and secondary master (respectively) on the new system? Is there anything to set up in the system? The computer with the raid uses Slackware 10 and I'm going to use Slackware 10.1 on the new machine.

musicman_ace 06-03-2005 06:25 AM

Is it just a matter of plugging the hdds in and mounting /dev/md0?
You would need to create the /etc/raidtab file and using the correct /dev/hdx devices.

Do I need to plug the harddrives into the same channels, ie the two harddrives are currently hdb and hdc, so do i need to plug them into the primary slave and secondary master (respectively) on the new system?
Plugging them into the same exact channels being primary slave/seconday master will most likely keep them as /dev/hdb and /dev/hdc. If they do come up as the same letters as in the old system, you could copy the raidtab exactly and mount /dev/md0.

Is there anything to set up in the system?
Make sure the raid-toolkit is installed, the drives you use in the raidtab match the drive letters in the new system, and of course

BACK UP EVERYTHING BEFORE YOU DO ANYTHING.

phil.d.g 06-03-2005 09:11 AM

The thing is I have had to resinstall slackware on the current machine (the system files are another disk, the raid is for home dirs) and it automatically recognised the RAID without having to set up the raidtab file again. So I'm wondering if it will automatically recognised by Slackware in the new system, especially if I plug the hdds in the same physical locations

If I set up the RAIDTAB and do a `mkraid /dev/md0` won't that format my disks and I will lose all my data?


All times are GMT -5. The time now is 05:42 AM.