-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Martin Glazer wrote: > Thanks for the response > np
>> >> Gustin Johnson wrote: >> >>> Martin Glazer wrote: >>> >>>> Hi, >>>> >>>> I'm trying to move 2 drives, setup in a mdraid 1 mirror, from >>>> one machine to another. The hardware is similar but not exactly >>>> the same. >>>> >>>> I am getting a kernel panic on boot in that it cannot find the >>>> ext partition. >>>> >> >> It sounds like the array is not being initialized after you get >> past the bootloader. Do you happen to know how the array was built >> (did they use the whole disk or use partitions)? In the fstab how >> is the partition referenced? What kernel version (distro and >> version might also be useful to know)? >> > > Yes, I think the array isn't being initialized. The array was built > using partitions md0 - sda1 and sdb1 contains /boot (100M) md1 - sda2 > and sdb2 contains swap (2G) md2 - sda3 and sdb3 contains root (490G) > > Using CentOS 5.2 and in the fstab, the drives are referenced via > /dev/md2, /dev/md0, etc and not via UUID. In mdadm.conf they are > referenced via UUID > The UUID should be the same, but it is worth checking the UUIDs in the mdadm.conf against what the (live) OS is actually seeing. These are symlinks in /dev/disk/by-uuid btw. >>>> Any suggestions on how to get this operational again (on the >>>> new machine, I don't have access to the old any longer)? Do I >>>> have to recreate the raid array? How? If you can mount the arrays and read data then there is nothing wrong with the arrays themselves. Chances are this is a grub problem. What is the default entry in /boot/grub/menu.lst? >> I am not sure if I was entirely clear before, but I would boot with >> a live distro, and then try mounting the array to make sure it is >> all there. I would also check that things like the fstab are >> appropriate (the device names may have changed), the modern >> approach is to use /dev/disk/by-uuid or /dev/disk/by-name that will >> not change from machine to machine (ie. my USB flash drive has the >> same name from machine to machine because I set and mount via the >> label field in ext2/3). > > I have managed to mount the drives using a boot disk and temporarily > recreating md0 and md2, but now what? > I would verify the partitions with fsck. Of course they should not be mounted when you do this. >> Hth, >> >> PS - I have been a fairly recent convert to the software RAID >> capabilities. Pretty awesome stuff. >> > > Until you start having "challenges" like me ;-) I prefer challenges as opposed to being up a creek without a paddle (imagine a hardware failure and the new cards require you to upgrade the array before it can be used with the new card, which is not feasible since the old card, say caught fire... not fun). At least with software RAID I can copy the data to a new machine. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkpoz9gACgkQwRXgH3rKGfNWdQCeJ5uo1LgdOjHZIy5eygh52gkB /jkAoICg9krMpf3UvCdlSv4TGrXRS3Rg =AbJk -----END PGP SIGNATURE----- _______________________________________________ clug-talk mailing list [email protected] http://clug.ca/mailman/listinfo/clug-talk_clug.ca Mailing List Guidelines (http://clug.ca/ml_guidelines.php) **Please remove these lines when replying

