Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > The Community > The Coffee Lounge
Reload this Page Hi n00b here... :)
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

The Coffee Lounge General chat about anything that goes, a good place to introduce yourself and say hi, tell a Joke, or just relax.

Site Navigation
Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 03-22-2008   #1 (permalink)
Just Joined!
 
Mohammed Najem's Avatar
 
Join Date: Mar 2008
Posts: 0
Smile Hi n00b here... :)

hi everyone! I'm new here and this is my first post... I'll get straight to the point lol

well the issue is I need a solution for a problem that's been plaguing my poor life for a while now... simply put, my manager wants a PERMANENT solution to take an image of Linux/UNIX OS and then restore it on another hardware... just like an ANY 2 ANY restoration... we've already done that on windows, using Netbackup BMR, and it worked fine with a few tweaks... we were able to restore from a windows server image on HP server, to an IBM blade server with different setup completely...

I know Linux isn't one OS... we're using Red Hat.. Now can someone at least put me on the right track? any help is appreciated and I'm willing to discuss it all... thanks.
__________________
gem.ini
Systems Engineer
BSc. Computer Science
Red Hat Certified Technician
Symantec Certified Specialist
Microsoft Certified Systems Engineer
Cisco Certified Network Associate
CompTIA Security+/Linux+
ITIL
Mohammed Najem is offline   Reply With Quote
Old 03-22-2008   #2 (permalink)
Just Joined!
 
Join Date: Mar 2008
Location: Canada
Posts: 42
Hey, welcome to Linux Forums. What exact kind of cloning are you trying to do? If you want to do an exact byte-for-byte clone, your source and destination partitions must be the same size. I usually make an image of my operating system like this:
Code:
dd if=/dev/sda1 of=/mnt/external-source/my-os.img
You'll have to repeat this for every partition you need to copy. Then I copy the image(s) onto the destination host (if it's only supposed to be running a single operating system, I boot off a Linux LiveCD first.) Then I do something like
Code:
dd if=my-os.img of=/dev/sda1
etc.

If you want to simply copy files, that's fairly straightforward, too. Mount the destination partition on your source host, something like this (this example uses NFS):
Code:
mount -t nfs 192.168.1.2:/media/partition2 /mnt/pnt
Then just cp the files, taking care to preserve permissions and symbolic links:
Code:
cp -a /* /mnt/pnt/
You'll probably have to use --exclude-dir on the /dev and other pseudofilesystems, though, and then recreate the nodes with mknod.

Finally, you don't want to forget about your bootloader... it might already work if you installed it to your root partition and it's been marked 'active'; if it's installed to your MBR, you might have to use dd to copy it:
Code:
dd if=/dev/sda of=mbr-of-os.img bs=446 count=1
Then copy the image to the other computer, and copy it into its MBR:
Code:
dd if=mbr-of-os.img of=/dev/sda bs=446 count=1
Or, you could chroot into your environment and use the 'grub' and 'lilo' installer tools to reinstall it. Or, you could boot off a Linux CD and reinstall the bootloader from there. Or, I could stop making suggestions. :P

Hope that helped and made some sense to you, sorry if it didn't (it's 3:45 AM here).
__________________
Tuxation
John A is offline   Reply With Quote
Old 03-22-2008   #3 (permalink)
Just Joined!
 
Mohammed Najem's Avatar
 
Join Date: Mar 2008
Posts: 0
thanks for the rep...

honestly i tried all of the above... i have no problem cloning a system image then restoring it on the SAME filesystem and hardware...

My problem is, i'm restoring a red hat image from an HP server onto a fujitsu-seimens blade server... problem is, the modules for CICSS are different for fujitsu than those of HP... i tried excluding /dev, /etc/, /proc and all other virtual FS... but in vain. I've also modified GRUB to point to the partitions and modified /etc/fstab and others as well...

i cannot seem to find a universal way of backing up and restoring red hat on another hardware... it's just impossible me thinks...
__________________
gem.ini
Systems Engineer
BSc. Computer Science
Red Hat Certified Technician
Symantec Certified Specialist
Microsoft Certified Systems Engineer
Cisco Certified Network Associate
CompTIA Security+/Linux+
ITIL
Mohammed Najem is offline   Reply With Quote
Old 03-22-2008   #4 (permalink)
Just Joined!
 
Join Date: Mar 2008
Location: Canada
Posts: 42
Hmm... have you tried creating the image when the source partitions weren't booted? In some cases, I've had less problems if I boot off a Linux install CD (or just a regular LiveCD), then mount network filesystems etc. and then do my cp'ing or dd'ing directly onto the remote filesystem. Things like device nodes will copy perfectly if the operating system isn't booted.
__________________
Tuxation
John A is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Job Search
keyword location
Post a Job »
job title, keywords or company
city, state or zip jobs by job search

Free Magazines
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say. So when it comes right down to it, how does the Google selection stack up against the rest of messaging security's big guns?
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 01:06 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0