Hello all,
After substitute a disk into a Raid1 system, i am unable to fix grub from Yast. The system startup only manually, with the command line of Grub.
Into yast, i don’t see as root device /dev/md0 (wich is the root partition), but only /dev/md2 and /dev/md3. As result, yast can’t re-install grub correctly.
Here is my blkid:
/dev/sda1: UUID="2a4e6095-a9c2-39f0-0477-060e49a1bbbe" UUID_SUB="78a1dac3-cbb6-7d01-2b6f-69c87585d409" LABEL="linux:0" TYPE="linux_raid_member"
/dev/sda2: UUID="1d39a2e1-22b1-d95d-d727-cf11d4dd65de" UUID_SUB="83ff9767-2be3-f24b-1904-c0a33d4b32df" LABEL="linux:1" TYPE="linux_raid_member"
/dev/sda3: UUID="96aaf4c0-5364-150c-1304-df883950f929" UUID_SUB="2fe57595-dcf6-49d3-08a9-43c6f584ddff" LABEL="linux:2" TYPE="linux_raid_member"
/dev/sda4: UUID="8a38879b-1f60-f4a7-7a3c-2d6ca1306844" UUID_SUB="eee184c0-44e9-0077-034d-2ed7567d630f" LABEL="linux:3" TYPE="linux_raid_member"
/dev/sdb1: UUID="2a4e6095-a9c2-39f0-0477-060e49a1bbbe" UUID_SUB="64b4fb23-883f-ac43-3962-ae3c60c118a8" LABEL="linux:0" TYPE="linux_raid_member"
/dev/sdb2: UUID="1d39a2e1-22b1-d95d-d727-cf11d4dd65de" UUID_SUB="c876ca43-e5f0-5693-dc21-cc7a07d2f76f" LABEL="linux:1" TYPE="linux_raid_member"
/dev/sdb3: UUID="96aaf4c0-5364-150c-1304-df883950f929" UUID_SUB="3d564fa9-fad8-f46f-f87f-01b7230393ec" LABEL="linux:2" TYPE="linux_raid_member"
/dev/sdb4: UUID="8a38879b-1f60-f4a7-7a3c-2d6ca1306844" UUID_SUB="8cac3c53-50a4-6e56-ca30-993b9661b7b5" LABEL="linux:3" TYPE="linux_raid_member"
/dev/md0: UUID="099e775b-2df0-4de8-a08e-b4920beff9d7" TYPE="ext3" PTTYPE="dos"
/dev/md2: UUID="abe4d05b-581b-44f5-a2e1-0ec14393f0ab" TYPE="swap"
/dev/md3: UUID="54c755bb-39f1-45c8-9871-519aab91fcab" TYPE="ext3"
/dev/md1: UUID="9aa63ee5-7c49-4ae2-b388-e3716b478d68" TYPE="ext3" PTTYPE="dos"
Notice the PTTYPE=“dos” for /dev/md0 and /dev/md1. I think is that the problem, because in yast i see as root device only md2 and md3. But i don’t know how to remove that PTTYPE…
Here is my result of bootinfo
Boot Info Script 0.61 [1 April 2012]
============================= Boot Info Summary: ===============================
=> Grub Legacy (v0.97) is installed in the MBR of /dev/sda and looks on the
same drive in partition #1 for /boot/grub/stage2 and /boot/grub/menu.lst.
=> Grub Legacy (v0.97) is installed in the MBR of /dev/sdb and looks on the
same drive in partition #1 for /boot/grub/stage2 and /boot/grub/menu.lst.
sda1: __________________________________________________________________________
File system: linux_raid_member
Boot sector type: Grub Legacy
Boot sector info: Grub Legacy (v0.97) is installed in the boot sector
of sda1 and looks at sector 4212736 of the same hard
drive for the stage2 file. A stage2 file is at this
location on /dev/sdb. Stage2 looks on partition #1
for /boot/grub/menu.lst.
sda2: __________________________________________________________________________
File system: linux_raid_member
Boot sector type: Grub Legacy
Boot sector info: Grub Legacy (v0.97) is installed in the boot sector
of sda2 and looks at sector 4427368 of the same hard
drive for the stage2 file. A stage2 file is at this
location on /dev/sdb. Stage2 looks on partition #1
for /boot/grub/menu.lst.
sda3: __________________________________________________________________________
File system: linux_raid_member
Boot sector type: -
Boot sector info:
sda4: __________________________________________________________________________
File system: linux_raid_member
Boot sector type: -
Boot sector info:
sdb1: __________________________________________________________________________
File system: linux_raid_member
Boot sector type: Grub Legacy
Boot sector info: Grub Legacy (v0.97) is installed in the boot sector
of sdb1 and looks at sector 4212736 of the same hard
drive for the stage2 file. A stage2 file is at this
location on /dev/sdb. Stage2 looks on partition #1
for /boot/grub/menu.lst.
sdb2: __________________________________________________________________________
File system: linux_raid_member
Boot sector type: Grub Legacy
Boot sector info: Grub Legacy (v0.97) is installed in the boot sector
of sdb2 and looks at sector 4427368 of the same hard
drive for the stage2 file. A stage2 file is at this
location on /dev/sdb. Stage2 looks on partition #1
for /boot/grub/menu.lst.
sdb3: __________________________________________________________________________
File system: linux_raid_member
Boot sector type: -
Boot sector info:
sdb4: __________________________________________________________________________
File system: linux_raid_member
Boot sector type: -
Boot sector info:
md0: ___________________________________________________________________________
File system: ext3
Boot sector type: Grub Legacy
Boot sector info: Grub Legacy (v0.97) is installed in the boot sector
of md0 and looks at sector 4212736 of the same hard
drive for the stage2 file. A stage2 file is at this
location on /dev/sdb. Stage2 looks on partition #1
for /boot/grub/menu.lst.
Operating System: Welcome to openSUSE 13.1
"Bottle" - Kernel ().
Boot files: /boot/grub/menu.lst /etc/fstab
md2: ___________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
md3: ___________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
md1: ___________________________________________________________________________
File system: ext3
Boot sector type: Grub Legacy
Boot sector info: Grub Legacy (v0.97) is installed in the boot sector
of md1 and looks at sector 4427368 of the same hard
drive for the stage2 file. A stage2 file is at this
location on /dev/sdb. Stage2 looks on partition #1
for /boot/grub/menu.lst.
Operating System:
Boot files:
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 360.1 GB, 360080695296 bytes, 703282608 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
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 * 2,048 20,965,375 20,963,328 fd Linux raid autodetect
/dev/sda2 20,965,376 83,875,839 62,910,464 fd Linux raid autodetect
/dev/sda3 83,875,840 88,068,095 4,192,256 fd Linux raid autodetect
/dev/sda4 88,068,096 488,396,799 400,328,704 fd Linux raid autodetect
Drive: sdb _____________________________________________________________________
Disk /dev/sdb: 750.2 GB, 750156374016 bytes, 1465149168 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
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sdb1 * 2,048 20,965,375 20,963,328 fd Linux raid autodetect
/dev/sdb2 20,965,376 83,875,839 62,910,464 fd Linux raid autodetect
/dev/sdb3 83,875,840 88,068,095 4,192,256 fd Linux raid autodetect
/dev/sdb4 88,068,096 488,396,799 400,328,704 fd Linux raid autodetect
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/md0 099e775b-2df0-4de8-a08e-b4920beff9d7 ext3
/dev/md1 9aa63ee5-7c49-4ae2-b388-e3716b478d68 ext3
/dev/md2 abe4d05b-581b-44f5-a2e1-0ec14393f0ab swap
/dev/md3 54c755bb-39f1-45c8-9871-519aab91fcab ext3
/dev/sda1 2a4e6095-a9c2-39f0-0477-060e49a1bbbe linux_raid_member linux:0
/dev/sda2 1d39a2e1-22b1-d95d-d727-cf11d4dd65de linux_raid_member linux:1
/dev/sda3 96aaf4c0-5364-150c-1304-df883950f929 linux_raid_member linux:2
/dev/sda4 8a38879b-1f60-f4a7-7a3c-2d6ca1306844 linux_raid_member linux:3
/dev/sdb1 2a4e6095-a9c2-39f0-0477-060e49a1bbbe linux_raid_member linux:0
/dev/sdb2 1d39a2e1-22b1-d95d-d727-cf11d4dd65de linux_raid_member linux:1
/dev/sdb3 96aaf4c0-5364-150c-1304-df883950f929 linux_raid_member linux:2
/dev/sdb4 8a38879b-1f60-f4a7-7a3c-2d6ca1306844 linux_raid_member linux:3
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/md0 / ext3 (rw,relatime,data=ordered)
/dev/md1 /srv ext3 (rw,relatime,data=ordered)
/dev/md3 /var ext3 (rw,relatime,data=ordered)
=========================== md0/boot/grub/menu.lst: ============================
--------------------------------------------------------------------------------
# Modified by YaST2. Last modification on Thu May 15 13:00:48 CEST 2014
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# For the new kernel it try to figure out old parameters. In case we are not able to recognize it (e.g. change of flavor or strange install order ) it it use as fallback installation parameters from /etc/sysconfig/bootloader
default 0
timeout 8
##YaST - activate
###Don't change this comment - YaST2 identifier: Original name: linux###
title Kernel-3.11.6-4-desktop
kernel root=/dev/sda1 vga=0x317
initrd
--------------------------------------------------------------------------------
================================ md0/etc/fstab: ================================
--------------------------------------------------------------------------------
/dev/disk/by-id/md-uuid-96aaf4c0:5364150c:1304df88:3950f929 swap swap defaults 0 0
/dev/disk/by-id/md-uuid-2a4e6095:a9c239f0:0477060e:49a1bbbe / ext3 acl,user_xattr 1 1
/dev/disk/by-id/md-uuid-1d39a2e1:22b1d95d:d727cf11:d4dd65de /srv ext3 acl,user_xattr 1 2
/dev/disk/by-id/md-uuid-8a38879b:1f60f4a7:7a3c2d6c:a1306844 /var ext3 acl,user_xattr 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
--------------------------------------------------------------------------------
==================== md0: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
=============================== StdErr Messages: ===============================
No volume groups found
cat: /tmp/BootInfo-KA6R3oda/Tmp_Log: No such file or directory
Help is needed, i don’t know how is it appening and why, and most important, how to resolve it…
Claudio.