Solved

Proper way to move a Linux MD Raid6 array to another server?

Posted on 2008-06-26
2
1,076 Views
Last Modified: 2013-11-15
I am wanting to move a linux md raid6 array to a new server.  I want to know the proper way of doing this without losing my data:

The new system has all the appropriate tools AND drivers installed so it will recognize all 16 disks and have mdadm running in the background ready.

I have NOT configured mdadm.conf on the new system.

The current drives do NOT have partitions set to 'fd' Linux RAID Auto-Detect.

The RAID devices should have the md uuid in their superblock right?


I have all of my data backed up.


Also, for the future, should you 100% always make partitions for a software raid?
0
Comment
Question by:daylightdm
2 Comments
 
LVL 5

Accepted Solution

by:
maques earned 250 total points
ID: 21891041
If you don't change hostname or mix with different array, then it would pretty much work the way in a different hardware environment as now.
If you changed hostname and your raid6 was created with superblock style above 0.90 then you would have to issue a command to update homehost, like:
mdadm --assemble --update homehost=xxx ...
http://linux.die.net/man/8/mdadm

Of course if it is/was your boot array then it is not so good [need to boot and issue it from a "helper" harddisk with linux installed].

Backing up data is always a good thing, so that's good, but in general you shouldn't lose data (unless you do some stupid thing like force an array to be up with several disks missing or recreate the array, etc. or of course hardware failure). Without doing stupid things, the "worst" thing can occur is that the array won't became up (no disk driver loaded, missing members, changed hostname etc.), but then you can still examine and do accordingly or move back the array to the old system if there are some problems cannot be solved for some time.

Some interesting stuff on auto-assembly for mdadm:
(http://neil.brown.name/blog/20060521092609)
0
 

Author Closing Comment

by:daylightdm
ID: 31471020
Thanks!
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Guacamole cut and paste issue 3 75
Why VNC doesn't work in Redhat? 11 61
CentOS 7 Installation 7 75
Dell R710 raid config 9 19
Hyper-convergence systems have taken the IT world by storm and have quickly started to change our point of view of how the data center should and could be architected. In this article, I’ll explain the benefits of employing a hyper-converged system …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

822 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question