Hello, I''m doing one emergencial migrate for one very old machine, because we will have one IMPLOSION (!!!) very close from here, and I''m thinking that this old IDE disk will not survive... :-/ [root@registro-2 /root]# df -h Filesystem Size Used Avail Use% Mounted on /dev/ida/c0d0p2 3.8G 2.3G 1.4G 62% / /dev/ida/c0d0p8 26G 20G 4.4G 82% /data /dev/ida/c0d0p6 984M 128k 934M 0% /tmp /dev/ida/c0d0p7 984M 166M 768M 18% /var Red Hat Linux release 6.2 (Zoot) Kernel 2.4.16 on a 4-processor i686 I did one copy with ''dd'' of device /dev/ida/c0d0 and imported inside one LVM device, called "/dev/Vol_LVM/registro-2", but I''m getting problems to boot this VM: Booting from Hard Disk Boot from Hard Disk Failed: Could not read the boot disk FATAL: no bootable device I don''t know how can I configure the /etc/fstab of this VM... using "/dev/ida/c0d0px" or the good and old "/dev/hdax". I''ve tried a lot of combinations, but I really can''t boot this: name = "registro-2" builder = "hvm" memory = "500" disk = [ "phy:/dev/Vol_LVM/registro-2,hda2,w","phy:/dev/Vol_LVM/registro-2,hda5,w" ] root = "/dev/ida/hda2 ro" extra = "3" vif = [ "type=ioemu, mac=00:16:3e:60:92:5d, bridge=xenbr0", ] I''ve tried too: root = "/dev/ida/c0d0p2 ro" disk = [ "phy:/dev/Vol_LVM/registro-2,c0d0p2,w","phy:/dev/Vol_LVM/registro-2,c0d0p5,w" ] But without success. Can anyone help me? Thanks -- Tiago Cruz http://everlinux.com Linux User #282636 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tiago Cruz
2008-Feb-14 20:01 UTC
Re: [Xen-users] Problem with p2v - device /dev/ida/c0d0p2
Hello, using: disk = [ "phy:/dev/Vol_LVM/registro-2,hda,w",] The boot as been better :) But I have one kernel-panic because kernel can''t mount the root filesystem. Using rsync+ssh and copy all "/" from inside LVM device, I can''t boot too ("Searching for boot device..."). Question: Whats the better way to "migrate" the MBR? Using dd getting the 512 bytes was not work (the lilo was frozen with a "LI" screen). Thanks!! On Thu, 2008-02-14 at 11:46 -0200, Tiago Cruz wrote:> [root@registro-2 /root]# df -h > Filesystem Size Used Avail Use% Mounted on > /dev/ida/c0d0p2 3.8G 2.3G 1.4G 62% / > /dev/ida/c0d0p8 26G 20G 4.4G 82% /data > /dev/ida/c0d0p6 984M 128k 934M 0% /tmp > /dev/ida/c0d0p7 984M 166M 768M 18% /var > > Red Hat Linux release 6.2 (Zoot) > Kernel 2.4.16 on a 4-processor i686_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Dominique Rousseau
2008-Feb-15 09:05 UTC
Re: [Xen-users] Problem with p2v - device /dev/ida/c0d0p2
Le Thu, Feb 14, 2008 at 06:01:19PM -0200, Tiago Cruz [tiagocruz@forumgdh.net] a écrit:> Hello, using: > > disk = [ "phy:/dev/Vol_LVM/registro-2,hda,w",] > > The boot as been better :) But I have one kernel-panic because kernel > can''t mount the root filesystem. > > Using rsync+ssh and copy all "/" from inside LVM device, I can''t boot > too ("Searching for boot device..."). > > Question: Whats the better way to "migrate" the MBR? Using dd getting > the 512 bytes was not work (the lilo was frozen with a "LI" screen).You didn''t say if you use HVM or PV for the domain. If going HVM, you should check that your kernel and/or initrd contains support for IDE (hdax). And also update the "root=xxx" parameter to be the correct hdaX -- Dominique Rousseau Neuronnexion, Prestataire Internet & Intranet 57, route de Paris 80000 Amiens tel: 03 22 71 61 90 - fax: 03 22 71 61 99 - http://www.neuronnexion.fr _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thursday 14 February 2008 08:46:06 am Tiago Cruz wrote:> I''m doing one emergencial migrate for one very old machine, because we > will have one IMPLOSION (!!!) very close from here, and I''m thinking > that this old IDE disk will not survive... :-/ > > [root@registro-2 /root]# df -h > Filesystem Size Used Avail Use% Mounted on > /dev/ida/c0d0p2 3.8G 2.3G 1.4G 62% / > /dev/ida/c0d0p8 26G 20G 4.4G 82% /data > /dev/ida/c0d0p6 984M 128k 934M 0% /tmp > /dev/ida/c0d0p7 984M 166M 768M 18% /var > > Red Hat Linux release 6.2 (Zoot) > Kernel 2.4.16 on a 4-processor i686Very old, probably doesn''t have a xenified version of the kernel.> I did one copy with ''dd'' of device /dev/ida/c0d0 and imported inside oneI assume that means you copied the whole disk, not just a partition.> LVM device, called "/dev/Vol_LVM/registro-2", but I''m getting problems > to boot this VM: > > Booting from Hard Disk > Boot from Hard Disk Failed: Could not read the boot disk > FATAL: no bootable device > > I don''t know how can I configure the /etc/fstab of this VM... using > "/dev/ida/c0d0px" or the good and old "/dev/hdax". I''ve tried a lot of > combinations, but I really can''t boot this: > > name = "registro-2" > builder = "hvm" > memory = "500" > disk = [ > "phy:/dev/Vol_LVM/registro-2,hda2,w","phy:/dev/Vol_LVM/registro-2,hda5,w" ] > root = "/dev/ida/hda2 ro" > extra = "3" > vif = [ "type=ioemu, mac=00:16:3e:60:92:5d, bridge=xenbr0", ] > > I''ve tried too: > root = "/dev/ida/c0d0p2 ro" > disk = [ > "phy:/dev/Vol_LVM/registro-2,c0d0p2,w","phy:/dev/Vol_LVM/registro-2,c0d0p5, >w" ]Since there is probably not a xen version of the kernel, you want hvm, so you are missing the lines: kernel = "/usr/lib/xen/boot/hvmloader" device_model = "/usr/lib/xen/bin/qemu-dm" and the disk line should be as in your followup post: disk = [ "phy:/dev/Vol_LVM/registro-2,hda,w",] You probably don''t need the root= line, then. The ''dd'' got the MBR. Good luck. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tiago Cruz
2008-Feb-18 15:32 UTC
Re: [Xen-users] Problem with p2v - device /dev/ida/c0d0p2
Solved. On Sat, 2008-02-16 at 22:29 -0500, jim burns wrote:> > Red Hat Linux release 6.2 (Zoot) > > Kernel 2.4.16 on a 4-processor i686 > > Very old, probably doesn''t have a xenified version of the kernel.Yeah. The original kernel of Red Hat 6.2 was 2.2.x series, and not work on Xen. This 2.4.x was one special prepared for xen.> You probably don''t need the root= line, then. The ''dd'' got the MBR. > Good luck.Yeah... the ''root='' line was not working. I''ve got one image from Red Hat 6.2 on vmware website, and I''ve used this to solve my problem. Thanks -- Tiago Cruz http://everlinux.com Linux User #282636 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users