LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I need to Clone a Red Hat drive and install clone in HP server (https://www.linuxquestions.org/questions/linux-newbie-8/i-need-to-clone-a-red-hat-drive-and-install-clone-in-hp-server-709113/)

drummer54 03-04-2009 08:21 AM

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

yancek 03-04-2009 08:50 AM

http://www.clonezilla.org/

drummer54 03-04-2009 12:44 PM

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

yancek 03-04-2009 05:13 PM

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.

drummer54 03-05-2009 09:29 AM

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?

yancek 03-05-2009 11:22 AM

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.

drummer54 03-06-2009 07:27 AM

Yancek,
I tried the the commands from a terminal window in Ubuntu and received the following: error 21 Selected drive does not exist.
Drummer54

yancek 03-06-2009 08:25 AM

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.

drummer54 03-06-2009 09:46 AM

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

yancek 03-06-2009 04:01 PM

Post the output of fdisk -l if you still don't have it working.

drummer54 03-07-2009 09:34 AM

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

drummer54 03-07-2009 09:37 AM

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

yancek 03-07-2009 10:41 AM

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

drummer54 03-07-2009 12:23 PM

Yancek,
the output after Setup (hd0)command: "unable to mount drive"

drummer54

yancek 03-07-2009 04:15 PM

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.


All times are GMT -5. The time now is 05:09 PM.