[opensuse] moving half a raid drive to a new pc
I am upgrading my system at my office and at home, and right now I am in a bit of a limbo state because I can't get my new pc to boot from the hard disk. Maybe some help with grub can get me going, or with a degraded raid. Right now I am using a live kde cd (I am so pleased at how easy it is to use one of these :) ) So here is the way things are. I was running raid 0 on my old desktop. I have built a new desktop (with a better processor and more ram) and I took one of the raid drives off my old desktop and installed it in in my new desktop. I have also added a 2nd tb drive and partitioned it to exactly match the sizes on my old one, with the ultimate goal of having raid 0 on all partitions of both drives (before I was only using raid 0 on half the drive because I was mirroring a 500gb with half of a 1 tb drive). However, I have not yet installed anything on the new drive. Here you can see my partition tables: linux:/home/linux # fdisk -l Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0001fa6f Device Boot Start End Blocks Id System /dev/sda1 2048 4192255 2095104 82 Linux swap / Solaris /dev/sda2 * 4192256 46139391 20973568 fd Linux raid autodetect /dev/sda3 46139392 976752639 465306624 fd Linux raid autodetect /dev/sda4 976752640 1953523711 488385536 f W95 Ext'd (LBA) /dev/sda5 976754688 1018697727 20971520 83 Linux /dev/sda6 1018699776 1060642815 20971520 83 Linux /dev/sda7 1060644864 1953503231 446429184 83 Linux Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00030fbd Device Boot Start End Blocks Id System /dev/sdb1 2048 4192255 2095104 82 Linux swap / Solaris /dev/sdb2 4192256 46139391 20973568 83 Linux /dev/sdb3 46139392 976752639 465306624 83 Linux /dev/sdb4 976752640 1953523711 488385536 5 Extended /dev/sdb5 976754688 1018697727 20971520 83 Linux /dev/sdb6 1018699776 1060642815 20971520 83 Linux /dev/sdb7 1060644864 1953503231 446429184 83 Linux So, I have used grub in a konsole to do the following: grub> find /boot/grub/stage1 (hd0,1) (hd0,4) grub> root (hd0,1) Filesystem type is ext2fs, partition type 0xfd grub> setup (hd0) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/e2fs_stage1_5" exists... yes Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are embedded. succeeded Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,1)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded Done. Now when I try and boot, I get the following error: kernel (hd0)/vmlinuz-3.1.0-1.2-deskop root-/dev/disk/by-id/ata-ST1000DM003-9YN162_S1D069EC-part6 resume-/dev/disk/by-id/ata-Hitachi_HDS721050CLA362_JP85 21HR2HU93V-part1 splash-silent quiet showopts vga=0x317 Error 17: Cannot mount selected partition Press any key to continue... I am finding that when I boot up in the live linux cd, like I am now, I cannot mount the raid partitions to modify the menu.lst file or anything like that because they are looked at as "Linux raid autodetect" instead of ext4. So my question is, is there a way for me to boot up into /dev/sda2 as a degraded raid, so as to begin setting up my system on this new hardware? I thought that perhaps if I just used the install disk of opensuse 12.1 and did an "upgrade" on the old raid partition, it would fix everything so that I could boot into that drive. However, nothing really changed, except that some new packages were installed. George -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
SO SORRY I meant Raid 1, not Raid 0. I was mirroring the drives. On Thu, Jun 21, 2012 at 11:50 AM, George Olson <grglsn765@gmail.com> wrote:
I am upgrading my system at my office and at home, and right now I am in a bit of a limbo state because I can't get my new pc to boot from the hard disk. Maybe some help with grub can get me going, or with a degraded raid.
Right now I am using a live kde cd (I am so pleased at how easy it is to use one of these :) )
So here is the way things are. I was running raid 0 on my old desktop. I have built a new desktop (with a better processor and more ram) and I took one of the raid drives off my old desktop and installed it in in my new desktop. I have also added a 2nd tb drive and partitioned it to exactly match the sizes on my old one, with the ultimate goal of having raid 0 on all partitions of both drives (before I was only using raid 0 on half the drive because I was mirroring a 500gb with half of a 1 tb drive). However, I have not yet installed anything on the new drive.
Here you can see my partition tables:
linux:/home/linux # fdisk -l
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0001fa6f
Device Boot Start End Blocks Id System /dev/sda1 2048 4192255 2095104 82 Linux swap / Solaris /dev/sda2 * 4192256 46139391 20973568 fd Linux raid autodetect /dev/sda3 46139392 976752639 465306624 fd Linux raid autodetect /dev/sda4 976752640 1953523711 488385536 f W95 Ext'd (LBA) /dev/sda5 976754688 1018697727 20971520 83 Linux /dev/sda6 1018699776 1060642815 20971520 83 Linux /dev/sda7 1060644864 1953503231 446429184 83 Linux
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00030fbd
Device Boot Start End Blocks Id System /dev/sdb1 2048 4192255 2095104 82 Linux swap / Solaris /dev/sdb2 4192256 46139391 20973568 83 Linux /dev/sdb3 46139392 976752639 465306624 83 Linux /dev/sdb4 976752640 1953523711 488385536 5 Extended /dev/sdb5 976754688 1018697727 20971520 83 Linux /dev/sdb6 1018699776 1060642815 20971520 83 Linux /dev/sdb7 1060644864 1953503231 446429184 83 Linux
So, I have used grub in a konsole to do the following: grub> find /boot/grub/stage1 (hd0,1) (hd0,4)
grub> root (hd0,1) Filesystem type is ext2fs, partition type 0xfd
grub> setup (hd0) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/e2fs_stage1_5" exists... yes Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are embedded. succeeded Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,1)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded Done.
Now when I try and boot, I get the following error:
kernel (hd0)/vmlinuz-3.1.0-1.2-deskop root-/dev/disk/by-id/ata-ST1000DM003-9YN162_S1D069EC-part6 resume-/dev/disk/by-id/ata-Hitachi_HDS721050CLA362_JP85 21HR2HU93V-part1 splash-silent quiet showopts vga=0x317
Error 17: Cannot mount selected partition Press any key to continue...
I am finding that when I boot up in the live linux cd, like I am now, I cannot mount the raid partitions to modify the menu.lst file or anything like that because they are looked at as "Linux raid autodetect" instead of ext4.
So my question is, is there a way for me to boot up into /dev/sda2 as a degraded raid, so as to begin setting up my system on this new hardware? I thought that perhaps if I just used the install disk of opensuse 12.1 and did an "upgrade" on the old raid partition, it would fix everything so that I could boot into that drive. However, nothing really changed, except that some new packages were installed.
George -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 06/21/2012 02:02 PM, George Olson wrote:
SO SORRY I meant Raid 1, not Raid 0. I was mirroring the drives.
Here you can see my partition tables:
linux:/home/linux # fdisk -l
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0001fa6f
Device Boot Start End Blocks Id System /dev/sda1 2048 4192255 2095104 82 Linux swap / Solaris /dev/sda2 * 4192256 46139391 20973568 fd Linux raid autodetect /dev/sda3 46139392 976752639 465306624 fd Linux raid autodetect /dev/sda4 976752640 1953523711 488385536 f W95 Ext'd (LBA) /dev/sda5 976754688 1018697727 20971520 83 Linux /dev/sda6 1018699776 1060642815 20971520 83 Linux /dev/sda7 1060644864 1953503231 446429184 83 Linux
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00030fbd
Device Boot Start End Blocks Id System /dev/sdb1 2048 4192255 2095104 82 Linux swap / Solaris /dev/sdb2 4192256 46139391 20973568 83 Linux /dev/sdb3 46139392 976752639 465306624 83 Linux /dev/sdb4 976752640 1953523711 488385536 5 Extended /dev/sdb5 976754688 1018697727 20971520 83 Linux /dev/sdb6 1018699776 1060642815 20971520 83 Linux /dev/sdb7 1060644864 1953503231 446429184 83 Linux
Now when I try and boot, I get the following error:
kernel (hd0)/vmlinuz-3.1.0-1.2-deskop root-/dev/disk/by-id/ata-ST1000DM003-9YN162_S1D069EC-part6 resume-/dev/disk/by-id/ata-Hitachi_HDS721050CLA362_JP85 21HR2HU93V-part1 splash-silent quiet showopts vga=0x317
Error 17: Cannot mount selected partition Press any key to continue...
Ok, since I last posted, here is basically what I did. I installed a new opensuse12.1 on /dev/sdb6 partition. I then modified the /etc/fstab file so that it would load the raid home partition like so: /dev/disk/by-label/home /home ext4 acl,user_xattr 1 2 The reason I was able to do this is because when I give the command ls -l /dev/disk/by-label I get the following output: george@linux-dwcl:~> ls -l /dev/disk/by-label total 0 lrwxrwxrwx 1 root root 9 Jun 21 11:22 home -> ../../md1 lrwxrwxrwx 1 root root 10 Jun 21 11:22 linux-aw-90:2 -> ../../sdb2 lrwxrwxrwx 1 root root 10 Jun 21 11:22 linux-aw90:3 -> ../../sdb3 lrwxrwxrwx 1 root root 10 Jun 21 11:22 newkde -> ../../sdb7 lrwxrwxrwx 1 root root 9 Jun 21 11:22 root -> ../../md0 lrwxrwxrwx 1 root root 10 Jun 21 11:22 root1 -> ../../sdb5 lrwxrwxrwx 1 root root 10 Jun 21 11:22 root2 -> ../../sda5 lrwxrwxrwx 1 root root 10 Jun 21 11:22 roottemp -> ../../sdb6 lrwxrwxrwx 1 root root 10 Jun 21 11:22 swap1 -> ../../sdb1 lrwxrwxrwx 1 root root 10 Jun 21 11:22 swap2 -> ../../sda1 lrwxrwxrwx 1 root root 10 Jun 21 11:22 xtradata -> ../../sda7 So when I am running from a new installation of 12.1 from partition /dev/sdb6, it sees my 2 degraded raid partitions, md0 and md1. These correspond to /dev/sda2 and /dev/sda3. (when I booted from the live linux cd, it didn't recognize the raid partitions and only saw them as /dev/sda2 and /dev/sda3.) In any case, I wanted to at least load opensuse 12.1 with all my old kde settings, and I was able to do that (minus some of my applications) by booting fro /dev/sdb6. However, the problem is still grub. When I go to grub and set the root to (hd1,5) and then do setup (hd1), it does not seem to do what it is supposed to do, because I still get an error similar to the one I got before:
kernel (hd0)/vmlinuz-3.1.0-1.2-deskop root-/dev/disk/by-id/ata-ST1000DM003-9YN162_S1D069EC-part6 resume-/dev/disk/by-id/ata-Hitachi_HDS721050CLA362_JP85 21HR2HU93V-part1 splash-silent quiet showopts vga=0x317
Error 17: Cannot mount selected partition Press any key to continue...
The really weird thing is, that root line does not match menu.lst in the partition it is supposed to be pointing to. In order to boot, I had to go to the grub menu and manually type in the lines from menu.lst: root (hd1,5) kernel /boot/vmlinuz-3.1.0-1.2-desktop root=/dev/disk/by-label/roottemp resume=/dev/disk/by-id/ata-ST31000524AS_5VP9GJXF-part1 splash=silent quiet showopts vga=0x317 initrd /boot/initrd-3.1.0-1.2-desktop When grub was loaded on boot, I typed "root", and it was still looking at (hd0,1) even though before I rebooted I had made sure to give the command in a grub shell root (hd1,5). So can someone help me to at least get grub to point to the right file so that I don't have to manually type in all that line? Then I will worry about getting my raid going again. -- G.O. Box #1: 12.1 | KDE 4.8.4 | AMD Athlon X3 | 64 | nVidia C61 GeForce 7025 | 4GB RAM Box #2 12.1 | KDE 4.8.4 | Pentium 4 (2core) | 32 | Intel 82915G | 2GB RAM Lap #1: 12.1 | KDE 4.8.3 | Core2 Duo T8100 | 64 | Intel 965GM | 4GB RAM Lap #2: 12.1 | KDE 4.8.2 | Core Duo T2400 | 32 | NVIDIA Quadro NVS 120 | 2GB RAM learning openSUSE and loving it -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 06/21/2012 02:02 PM, George Olson wrote:
So my question is, is there a way for me to boot up into /dev/sda2 as a degraded raid, so as to begin setting up my system on this new hardware? I thought that perhaps if I just used the install disk of opensuse 12.1 and did an "upgrade" on the old raid partition, it would fix everything so that I could boot into that drive. However, nothing really changed, except that some new packages were installed.
George
I can see I made my inquiries too lengthy to be of value, so I will kill this thread and start a new one. -- G.O. Box #1: 12.1 | KDE 4.8.4 | AMD Phenom IIX4 | 64 | ATI Radeon HD 3300 | 16GB Box #2: 12.1 | KDE 4.8.4 | AMD Athlon X3 | 64 | nVidia C61 GeForce 7025 | 4GB Laptop: 12.1 | KDE 4.8.3 | Core2 Duo T8100 | 64 | Intel 965GM | 4GB RAM learning openSUSE and loving it -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (1)
-
George Olson