Re: [CentOS] Clone ATA to SATA HDD

2008-11-29 Thread John R Pierce

Shade.GE wrote:

The only problem now is, i cannot boot from the new SATA drive. I run
into a kernel panic (Kernel not syncing). I try'd everything possible,
in mtab of the sata was the LVM path, i changed it and also the grub
menue the fstab and so on...
  


mtab is a dynamic file anyways, fstab and grub is all that should 
matter.   hard to say what went wrong.   sure the SATA drivers got 
included in the initrd ?



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Clone ATA to SATA HDD

2008-11-29 Thread Joseph L. Casale
How can i get of that LVM and clone it to the new SATA drive?

Well, you need modules in your new initrd for the sata controller.
It looks like you have everything else in order.

FWIW, I do softraid under LVM no problem and I like the flexibility
of LVM so I always use it now.

jlc
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Clone ATA to SATA HDD

2008-11-29 Thread Shade.GE
Joseph L. Casale schrieb:
 How can i get of that LVM and clone it to the new SATA drive?
 

 Well, you need modules in your new initrd for the sata controller.
 It looks like you have everything else in order.

 FWIW, I do softraid under LVM no problem and I like the flexibility
 of LVM so I always use it now.

 jlc
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
   
Yea the SATA modules are included in the initrd. Grub boots but i cannot
get over to init. Well, its not important if LVM is there or not. Its
the intel board with the singel core atom cpu. so 2 sata and one ide
port. It looks like that the kernel cannot find the root device. One
message i got is the swap cannot be enabled because no swap device was
found.

Wolfgang
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Clone ATA to SATA HDD

2008-11-29 Thread MHR
On Sat, Nov 29, 2008 at 12:35 PM, Shade.GE [EMAIL PROTECTED] wrote:

 Here comes the challende, i need to clone that ATA disc to a SATA disc.
 The thing is, i don't longer need the LVM structure because i need so
 make a softraid 1 later.
 My plan was:

 1. Boot from a live cd and rsync all content to the sata disc.
 2. Partition /boot (sda1), / (sda3), and swap (sda2)  (sda1 bootable)
 2. Make a new initrd image without LVM
 3. Install grub on /dev/sda1
 3. Boot as test
 4. Make a softraid 1 with the second SATA drive.


May I suggest a different approach?

0. Set your boot PROM to treat your SATA disk as a non-RAID drive (ATA or AHCI).
1. Boot from your ATA disk (no need to boot from anywhere else).
2. Partition the SATA disk (or wipe the ones you already made clean).
3. Copy all files from the ATA disk to the SATA disk.
4. Grub-install the SATA disk.
5. Re-boot and change the boot drive settings in the PROM.
6. Reboot into your shiny new SATA CentOS!

Be aware that if you change the order of the boot drives, that can
confuse grub, so you may need to intervene manually at stage 2 to make
sure it loads from the right drive.

I don't think the LVM vs. manual VM will make much of a difference,
but the RAID might unless you go with a strictly software RAID
(because you'll almost certainly run into hardware issues).

Is your SATA drive mounted as a RAID drive or an ATA-extension (I
forget the exact terminology) in the boot PROM?  That can also make a
significant difference.

HTH

mhr
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Clone ATA to SATA HDD

2008-11-29 Thread MHR
On Sat, Nov 29, 2008 at 12:54 PM, Shade.GE [EMAIL PROTECTED] wrote:

 Yea the SATA modules are included in the initrd. Grub boots but i cannot
 get over to init. Well, its not important if LVM is there or not. Its
 the intel board with the singel core atom cpu. so 2 sata and one ide
 port. It looks like that the kernel cannot find the root device. One
 message i got is the swap cannot be enabled because no swap device was
 found.


That could be the drive order confusion I mentioned.

When you tell the PROM to boot from drive 1, for example, the PROM
will go to drive 1's MBR and try to boot from there, but one grub is
loaded and looking around for stage 2, it will see the drives in their
actual physical order, not the PROM's boot order.  You usually have to
intervene when it displays what OS grub thinks it's going to boot and
edit the boot hd to the right disk.

Or are you not getting that far?

mhr
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Clone ATA to SATA HDD

2008-11-29 Thread Joseph L. Casale
That could be the drive order confusion I mentioned.

Good point,
What happens if you yank the IDE drive and attempt to boot?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Clone ATA to SATA HDD

2008-11-29 Thread Shade.GE
MHR schrieb:
 On Sat, Nov 29, 2008 at 12:54 PM, Shade.GE [EMAIL PROTECTED] wrote:
   
 Yea the SATA modules are included in the initrd. Grub boots but i cannot
 get over to init. Well, its not important if LVM is there or not. Its
 the intel board with the singel core atom cpu. so 2 sata and one ide
 port. It looks like that the kernel cannot find the root device. One
 message i got is the swap cannot be enabled because no swap device was
 found.

 

 That could be the drive order confusion I mentioned.

 When you tell the PROM to boot from drive 1, for example, the PROM
 will go to drive 1's MBR and try to boot from there, but one grub is
 loaded and looking around for stage 2, it will see the drives in their
 actual physical order, not the PROM's boot order.  You usually have to
 intervene when it displays what OS grub thinks it's going to boot and
 edit the boot hd to the right disk.

 Or are you not getting that far?

 mhr
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
   
I try'd in different order. Disconnect the IDE drive, change only the
bootorder etc. Nothing, everytime the same message. Grub can boot it,
its running into kernel and one line before init is running kernel
panics. Seems like the kernel could not find the root device, the swap
is afaik not necessary to boot. Tomorrow i try to clone it with acronis
and resize the partition to the new drive. We will see if this is possible.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Clone ATA to SATA HDD

2008-11-29 Thread Joseph L. Casale
I try'd in different order. Disconnect the IDE drive, change only the
bootorder etc. Nothing, everytime the same message. Grub can boot it,
its running into kernel and one line before init is running kernel
panics. Seems like the kernel could not find the root device, the swap
is afaik not necessary to boot. Tomorrow i try to clone it with acronis
and resize the partition to the new drive. We will see if this is possible.

Well, focusing on something more fundamental then, what's your mkinitrd command?
And what mobo are you using (model #).

jlc
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Clone ATA to SATA HDD

2008-11-29 Thread Shade.GE
Joseph L. Casale schrieb:
 I try'd in different order. Disconnect the IDE drive, change only the
 bootorder etc. Nothing, everytime the same message. Grub can boot it,
 its running into kernel and one line before init is running kernel
 panics. Seems like the kernel could not find the root device, the swap
 is afaik not necessary to boot. Tomorrow i try to clone it with acronis
 and resize the partition to the new drive. We will see if this is possible.
 

 Well, focusing on something more fundamental then, what's your mkinitrd 
 command?
 And what mobo are you using (model #).

 jlc
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
   
Mobo is: Intel D945GCLF Little Falls
Iv'e try'd mkinitrd with mounted /sys, /proc and /dev from the live cd
without any special parameters, so my think was, sata is visible and
should be enabled by default. The LVM is not longer included in the new
initrd because the lvm messages are gone on booting kernel.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Clone ATA to SATA HDD

2008-11-29 Thread Joseph L. Casale
Mobo is: Intel D945GCLF Little Falls
Iv'e try'd mkinitrd with mounted /sys, /proc and /dev from the live cd
without any special parameters, so my think was, sata is visible and
should be enabled by default. The LVM is not longer included in the new
initrd because the lvm messages are gone on booting kernel.

I'd say that's your problem there :)
Add a --preload and load the applicable module based on how your bios is set up.
If it can do AHCI, and I think it can, use that.

Not sure how mkinitrd works from a livecd when your modprobe.conf is on the 
rescued
system. Maybe running from a chroot might overcome any ambiguity, but you most 
likely
don't have an appropriate modprobe.conf on the dead system that is even right.

--preload will force it in where it needs to be. You need some combination of 
ahci, ata_piix
and libata. Someone the wiser chime in. Those are what are applicable to this 
mobo under
any possible config, it's an ICH7 board.

jlc
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos