LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 07-02-2013, 09:33 PM   #1
nicklay
LQ Newbie
 
Registered: Apr 2013
Distribution: CentOS,Oracle,Fedora
Posts: 8

Rep: Reputation: Disabled
Cloning and booting a cloned drive


Hi everybody, hope y'all going well. I'm here today with a question that is a bit complicated. First of all, I driving a server on a Dell Poweredge 1950 II. This one runs on Oracle Entreprise Linux and is installed on a 250gb SATA drive. Since I got a 146 15K.6 SAS drive, i'm trying to clone the OS on this new drive. I cloned (I hope with the right way) using
Code:
dd if=/dev/sda of=/dev/sdb
. The drive begin to boot but end to a kernel panic. I'm pretty sure there a way to rebuild the booting information to work with the new drive but that is over my knowledge

If some of you could explain how I could repair the boot information would be very nice.

Thanks a lot for your help
 
Old 07-02-2013, 10:49 PM   #2
buttugly
Member
 
Registered: Feb 2006
Distribution: distrohopper
Posts: 40

Rep: Reputation: 11
can you mount the clone? are the drivers for the sas in the initfs? is the fstab correct for what it is?

What is this 146 15K.6 SAS drive? Are you saying it is a 146GB drive? the 15k.6 is whoopin my a##.

How can you clone 250GB to 146GB? Where did the other 104GB go?

I presume this new drive is something spiffy/special to make you want to make it the system drive, since this appears to be the case why not install from scratch. Spiffy os for a spiffy new drive.

Whats the last thing to wiz by before the panic?
 
Old 07-03-2013, 11:40 PM   #3
nicklay
LQ Newbie
 
Registered: Apr 2013
Distribution: CentOS,Oracle,Fedora
Posts: 8

Original Poster
Rep: Reputation: Disabled
Sorry, I know the name of the HDD wasn't clear, first it's an SAS drive (Serial Attached SCSI). It's like adding kind of super sayan in a SATA drive ahah, the 15K.6 means that the drive spins at 15 600 rpm (which is fast as hell!) and it's a 146gb. The 250 is not full, it only have a maximum of 90-100gb data on it that's why. I'm cloning it because the SAS is REALLLLLY faster. Some dude says that I only have to reinstall grub on the drive and it should boot... But I'm not sure. The panic appears with nothing else in the screen with the red Oracle's progress bar
 
Old 07-04-2013, 04:17 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,487

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
If you are getting a kernel panic, grub has done its job. We can't help without messages - either a log or a photo.
Using "dd" like that, your SAS drive may now only be 250 Gig. Boot the original disk (with the SAS installed) and from a terminal let's see the result of this as root/sudo
Code:
parted -l
 
Old 07-04-2013, 06:32 AM   #5
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 2,330

Rep: Reputation: 593Reputation: 593Reputation: 593Reputation: 593Reputation: 593Reputation: 593
One possibility is that the initrd doesn't recognize the drive (missing default drivers).

But we can't tell without the error messages.
 
Old 07-04-2013, 08:58 AM   #6
wstewart90
Member
 
Registered: May 2013
Distribution: Arch Linux
Posts: 79

Rep: Reputation: Disabled
Like everybody said, error messages. For all we know, grub could be looking for the uuid of your old drive which is likely the case. If you can't get an error then boot to a live cd and mount the new drive. bind the /dev /proc and /sys directories, chroot in and rebuild your grub configuration. If that doesn't work then find an error message prior to the kernel panic.
 
Old 07-04-2013, 01:01 PM   #7
nicklay
LQ Newbie
 
Registered: Apr 2013
Distribution: CentOS,Oracle,Fedora
Posts: 8

Original Poster
Rep: Reputation: Disabled
Here is the output of the sudo partes -l :
Code:
Modèle: ATA WDC WD2500JS-60N (scsi)
Disque /dev/sda : 250GB
Taille des secteurs (logiques/physiques): 512B/512B
Table de partitions : msdos

Numéro  Début   Fin     Taille  Type     Système de fichiers  Fanions
 1      1049kB  4195MB  4194MB  primary  linux-swap(v1)
 2      4195MB  250GB   246GB   primary  ext4                 démarrage


Modèle: SEAGATE ST3146356SS (scsi)
Disque /dev/sdb : 147GB
Taille des secteurs (logiques/physiques): 512B/512B
Table de partitions : msdos

Numéro  Début   Fin    Taille  Type     Système de fichiers  Fanions
 1      32,3kB  147GB  147GB   primary  ext4


Erreur: Impossible d'ouvrir /dev/zram0 - étiquette de disque non reconnue.
 
Old 07-04-2013, 08:36 PM   #8
jefro
Guru
 
Registered: Mar 2008
Posts: 12,082

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
I'd guess that grub points to devices or names or how it is attached to the system. When you clone it those same settings would need to be made generic or changed to specific for new drive.
 
Old 07-06-2013, 04:10 AM   #9
propofol
Member
 
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 298

Rep: Reputation: 55
I just want to check I understand correctly: you are using dd to clone from a 250Gb drive to a 146Gb drive?

If so the partition table on the new drive will be incorrect. You will either have to resize the partitions on the 250Gb drive to 146Gb (preferably after a backup), then use dd. Alternatively clone the root folder with tar or rsync.

Regards,
Stefan
 
Old 07-06-2013, 09:57 AM   #10
nicklay
LQ Newbie
 
Registered: Apr 2013
Distribution: CentOS,Oracle,Fedora
Posts: 8

Original Poster
Rep: Reputation: Disabled
I dropped dd off and try using something else. First I found a great way here : http://bremford.org/tips/MigrateDiskInUbuntu.html

I did it all but I had problems running
Code:
grub-install --recheck /dev/sdc
So I exited the chrooted dir and try this instead
Code:
grub-install --root-directory=/mnt /dev/sdc
The process ended well, but haven't tried to boot on it, I'll try it tonight and get back with information

Thank you all for your help!
 
  


Reply

Tags
clone, linux, oracle, poweredge, server


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Booting a Cloned Drive and booting with both drives plugged in. NYCmitch25 Linux - General 2 02-18-2013 11:49 AM
Cloned drive fails to boot njstol Red Hat 10 04-11-2012 10:11 PM
Can't boot cloned drive richabblett Linux - Laptop and Netbook 1 06-28-2009 02:43 PM
Problems booting after cloning hard drive using clonezilla madicoe Linux - Newbie 2 06-18-2009 02:18 PM
Cloned image using Acronis not booting dogbreath_NZ Linux - Kernel 2 08-10-2006 12:35 AM


All times are GMT -5. The time now is 06:39 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration