LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-04-2009, 08:21 AM   #1
drummer54
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Rep: Reputation: 0
I need to Clone a Red Hat drive and install clone in HP server


I'm new to this forum and need help with a Red hat server I inherited.

This server is on it's last legs and needs to be replaced with new hardware; I have no copies of original Accounting software (rubicon) and no support from Rubicon (They no longer support the product)the version of Red Hat is old and probably never been updated.
I was thinking of cloning the drive and installing to a HP server (DL380-G4). This will be a total hardware change from what the systems running on now. My second choice would be to clone the drive, and install into a system that is a closer match to the existing hardware.
Has anyone had a similar situation, and if so what software did you use to clone the drive? Also, I need to know if I'm way off base with this plan. How about an alternate scheme/s?

Any help would be appreciated. Thanks,

Drummer54
 
Old 03-04-2009, 08:50 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,517

Rep: Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493
http://www.clonezilla.org/
 
Old 03-04-2009, 12:44 PM   #3
drummer54
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Clonezilla

Thanks for the suggestion. I downloaded and burned Clonezilla to a CD, and fired it up. It seemed to do the job for me, however I could not get the new system to boot off the cloned drive. I think I'll changes a couple of settings in Clonezilla and try re-cloning the drive.

One additional bit of information is that the destination drive for the clone is a Raid5 array on my HP server. I wonder if that will cause a problem with cloning process or boot?

Drummer54
 
Old 03-04-2009, 05:13 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,517

Rep: Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493
I haven't used clonezilla for a while but I believe there are several options including copying mbr or not. You'll need that to boot the new drive. I'm not sure if RAID will create a problem, never used it.
 
Old 03-05-2009, 09:29 AM   #5
drummer54
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Original Poster
Rep: Reputation: 0
copied MBR

Yancek, Thanks for the quick response and suggestion. I looked at my notes for my first clone attempt and it looks as if I did clone the MBR on my first go around using Clonezilla. So, I'm not sure where to go from here except retry the clone and double check every setting.

One additional item is; when the new system attempts to boot(off the Clone), it starts the process, gets hung up, and freezes. Displayed on screen is: LI and blinking cursor. What do you think?
 
Old 03-05-2009, 11:22 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,517

Rep: Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493
If you have a Live CD of Linux you could use on the new server, try loading it and running "fdisk -l" command as root (lower case Letter L), post output. As root, type "grub" at prompt and then do following commands:

geometry (hd0)
find /boot/grub/stage1

Post output.
 
Old 03-06-2009, 07:27 AM   #7
drummer54
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Yancek,
I tried the the commands from a terminal window in Ubuntu and received the following: error 21 Selected drive does not exist.
Drummer54
 
Old 03-06-2009, 08:25 AM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,517

Rep: Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493
Quote:
I tried the the commands from a terminal window in Ubuntu and received the following: error 21 Selected drive does not exist.
Drummer54
You're doing this on the new machine? Are there any other drives on it? Doesn't make sense? What happened when you ran: sudo fdisk -l? That should give partition information on the drives on the machine and would not produce the error you indicated as it is not looking for a specific partition.

The find /boot/grub/stage1 would produce an error of ' file not found' if it is not there.
 
Old 03-06-2009, 09:46 AM   #9
drummer54
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Original Poster
Rep: Reputation: 0
yancek,
yes you are correct. I was not @ root when I ran fdisk -l. Duh!
This time I did get partition info. however, I did rec. file not found after the find/....... command.

drummer54
 
Old 03-06-2009, 04:01 PM   #10
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,517

Rep: Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493
Post the output of fdisk -l if you still don't have it working.
 
Old 03-07-2009, 09:34 AM   #11
drummer54
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Original Poster
Rep: Reputation: 0
yancek,
Here's the output of fdisk -l

Disk /dev/cciss/c0d0: 218.5 GB, 218501038080 bytes
255 heads, 32 sectors/track, 52299 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 1005 4096543+ 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/cciss/c0d0p2 1005 4393 13823932+ 5 Extended
/dev/cciss/c0d0p5 1005 2009 4096543+ fd Linux raid autodetect
/dev/cciss/c0d0p6 2009 2511 2048256 fd Linux raid autodetect
/dev/cciss/c0d0p7 2511 3013 2048256 fd Linux raid autodetect
/dev/cciss/c0d0p8 3013 3515 2048256 fd Linux raid autodetect
/dev/cciss/c0d0p9 3515 4017 2048256 fd Linux raid autodetect
root@ubuntu:~#

drummer54
 
Old 03-07-2009, 09:37 AM   #12
drummer54
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Original Poster
Rep: Reputation: 0
yancek,
Here is the output of find /boot........

grub> geometry (hd0)
drive 0x80: C/H/S = 52299/255/32, The number of sectors = 426759840, /dev/cciss/c0d0
Partition num: 0, Filesystem type unknown, partition type 0x83
Partition num: 4, Filesystem type unknown, partition type 0xfd
Partition num: 5, Filesystem type unknown, partition type 0xfd
Partition num: 6, Filesystem type unknown, partition type 0xfd
Partition num: 7, Filesystem type unknown, partition type 0xfd
Partition num: 8, Filesystem type unknown, partition type 0xfd

grub> find /boot/grub/stage1

Error 15: File not found

grub>

drummer54
 
Old 03-07-2009, 10:41 AM   #13
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,517

Rep: Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493
Your last post shows no stage1 Grub file and Grub won't boot without it. If you have no other OS bootloader on a machine you cannot boot without stage1 in mbr. So Grub was not correctly copied/installed? Your fdisk output shows partition 0 from the Grub geometry command as the Linux partition and the others as raid partitions. I would assume you need to install Grub to that partition but I have never used raid and don't know what impact that might have. You could try using the Ubuntu CD and install Grub from the command line with:

Quote:
sudo grub
root (hd0,0)
setup (hd0)
quit
 
Old 03-07-2009, 12:23 PM   #14
drummer54
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Yancek,
the output after Setup (hd0)command: "unable to mount drive"

drummer54
 
Old 03-07-2009, 04:15 PM   #15
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,517

Rep: Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493
Quote:
the output after Setup (hd0)command: "unable to mount drive"
That's interesting. Usually get that error message trying to mount windows or other unsupported filesystem. Might be raid but I really don't know what else to suggest.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: X/OS is an undistinguished Red Hat clone LXer Syndicated Linux News 0 10-24-2007 06:50 PM
Best way to clone hard drive to server sharptech Linux - Newbie 5 06-23-2007 08:18 AM
Mounting a clone drive turbokid Fedora 8 12-09-2004 09:18 AM
how to clone a Red Hat 9 system (870 MB) with all the partitions (/ and swap) dravya Linux - General 3 05-07-2004 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration