Move a Redhat installation to another server with devices
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Move a Redhat installation to another server with devices
Hello,
I am using Ibm Tivoli Storage manager (TSM) for backup servers. I created a bootable cd for restore data when server crash.
I would like to "copy" (in fact restore from TSM server) all data to another server which contain other raid controller (I want to restore data from HP server to DELL server).
I meet some problems when all data have been restored and my server is rebooting (take a look on the picture in attachment).
Hp raid controller call hard drive device like "/dev/cciss/c0d0" and Dell raid controller call HD like : "/dev/sda".
Also i modified /etc/mtab, /etc/fstab, /boot/grub/device.map, and i built again the partition labels with "e2label /dev/sdaX /home" for example.
When the server rebooting, i think it loading the old raid controller module (cciss.ko) and try to mount partition but it failed.
If anybody is interesting about this study case please,... help !
I am using Ibm Tivoli Storage manager (TSM) for backup servers. I created a bootable cd for restore data when server crash.
I would like to "copy" (in fact restore from TSM server) all data to another server which contain other raid controller (I want to restore data from HP server to DELL server).
I meet some problems when all data have been restored and my server is rebooting (take a look on the picture in attachment).
Hp raid controller call hard drive device like "/dev/cciss/c0d0" and Dell raid controller call HD like : "/dev/sda".
Also i modified /etc/mtab, /etc/fstab, /boot/grub/device.map, and i built again the partition labels with "e2label /dev/sdaX /home" for example.
When the server rebooting, i think it loading the old raid controller module (cciss.ko) and try to mount partition but it failed.
If anybody is interesting about this study case please,... help !
Thanks,
Seb
What did you make the bootable CD with? Use something like systemimager, mkcdrec, or mondoarchive, which handles different hardware better, but it still won't be perfect. Kernel modules may have to be loaded/unloaded/loaded-with-options, to make new servers work, and it's tricky.
If you can't go to identical hardware, I'd make sure that you have your OS on one partition, and data/software/everything else on another. Do a fresh Linux build to the new hardware, install the TSM client, and a quick restore of the data partition, and you're back in business.
My Bootable Cdrom is a slax distribution and use for restore data of clients (i installed the tsm client on it and recompiled it). I tried a restoration on other server with same configuration, it works in few time !
Re-install the server for restore data after is not optimized for me. I have to use a cd and restore data directly from tsm server.
Yes i had backup severate partitions /, /var, /home, ...
How to change the loading of modules for take in account the new raid controller ? Is it possible ?
My Bootable Cdrom is a slax distribution and use for restore data of clients (i installed the tsm client on it and recompiled it). I tried a restoration on other server with same configuration, it works in few time !
Re-install the server for restore data after is not optimized for me. I have to use a cd and restore data directly from tsm server.
Yes i had backup severate partitions /, /var, /home, ...
How to change the loading of modules for take in account the new raid controller ? Is it possible ?
Yes, that's what I said...you CAN manually load modules, etc., to get different hardware working. But you have to KNOW what they are, and have them built into your recovery CD to start with.
Your /, /var, /usr, etc., are your operating system. They get built when you do an OS load. What I said was to keep your SOFTWARE (/home, your databases, images, whatever....), on a separate partition. A fresh install takes less than an hour...TSM install is a couple minutes, and restoring one partition goes very quick.
And, as I suggested earlier, check out mondoarchive, mkcdrec, or systemimager. All of those I mentioned do what you're looking for....but again, identical hardware is easy....different hardware is not.
Yes, that's what I said...you CAN manually load modules, etc., to get different hardware working. But you have to KNOW what they are, and have them built into your recovery CD to start with.
Ok but my recovery cd already include some raid modules else i won't be able to start dell and hp servers from cd and see disk, partitions,...
As you said, i have to find which modules are used. But when i located files what i supposed to do ? Modify initrd of my /boot/ restore partition ? i don't know....
Quote:
....but again, identical hardware is easy....different hardware is not.
Ok but my recovery cd already include some raid modules else i won't be able to start dell and hp servers from cd and see disk, partitions,...
As you said, i have to find which modules are used. But when i located files what i supposed to do ? Modify initrd of my /boot/ restore partition ? i don't know....
I hope it's clear for you
Very clear to me...but you're missing what I'm saying. When you build your recovery CD, it looks at what you've GOT, and builds the kernel accordingly.
The bare-metal recovery products I mentioned, let you load modules from the command line. Since they're modules, you load them with modprobe...you don't have to modify initrd. As for finding out which ones? Who knows....that depends on your hardware, and if you go to newer hardware, an older version of Linux may not be able to work with the new devices at ALL. Hence, the suggestion that you do a fresh install, and just restore data/software via TSM.......
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.