It boots fine off primary disk but having issues booting off mirror
disk.
I get this error:
Booting 'Solaris 10 ... Mirror disk'
root (hd1,0,a)
Error 22: No such partition
Press any key to continue...
Any idea what's going on? I followed this procedure:
http://it.toolbox.com/wiki/index.php/Solaris_x86_root_filesystem_mirroring
# metastat
d2: Mirror
Submirror 0: d20
State: Okay
Submirror 1: d21
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 8401995 blocks (4.0 GB)
d20: Submirror of d2
State: Okay
Size: 8401995 blocks (4.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t0d0s1 0 No Okay Yes
d21: Submirror of d2
State: Okay
Size: 8401995 blocks (4.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t1d0s1 0 No Okay Yes
d1: Mirror
Submirror 0: d10
State: Okay
Submirror 1: d11
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 241858575 blocks (115 GB)
d10: Submirror of d1
State: Okay
Size: 241858575 blocks (115 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t0d0s0 0 No Okay Yes
d11: Submirror of d1
State: Okay
Size: 241858575 blocks (115 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t1d0s0 0 No Okay Yes
Device Relocation Information:
Device Reloc Device ID
c1t1d0 Yes id1,sd@n5000c5000652a133
c1t0d0 Yes id1,sd@n5000c50003cca7a3
# cat /grub/boot/menu.lst
#############################################################
title Solaris 10 5/08 s10x_u5wos_10 X86
kernel /platform/i86pc/multiboot
module /platform/i86pc/boot_archive
#############################################################
title Solaris failsafe
kernel /boot/multiboot kernel/unix -s
module /boot/x86.miniroot-safe
#############################################################
title Solaris 10 5/08 s10x_u5wos_10 X86 Mirror Disk
root (hd1,0,a)
kernel /platform/i86pc/multiboot
module /platform/i86pc/boot_archive
#############################################################
title Windows XP
rootnoverify (hd2,0)
map (hd0) (hd2)
map (hd2) (hd0)
chainloader +1
#---------------------END BOOTADM--------------------
#: l /dev/rdsk/c1t0d0s0 # primary disk
lrwxrwxrwx 1 root root 63 Sep 14 2008 /dev/rdsk/
c1t0d0s0 -> ../../devices/pci@0,0/pci10de,376@a/pci1000,3150@0/
sd@0,0:a,raw
#: l /dev/rdsk/c1t1d0s0 # mirror disk
lrwxrwxrwx 1 root root 63 Sep 17 2008 /dev/rdsk/
c1t1d0s0 -> ../../devices/pci@0,0/pci10de,376@a/pci1000,3150@0/
sd@1,0:a,raw
# /sbin/installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/
c1t1d0s0
It is in the man pages for mirroring.
"SQ" <onesta...@yahoo.com> wrote in message
news:a31c6743-1724-48b4...@b9g2000yqm.googlegroups.com...
Yes, I did the following:
#: ll /dev/dsk/${MIR_DISK}s0
lrwxrwxrwx 1 root root 59 Sep 17 2008 /dev/dsk/
c1t1d0s0 -> ../../devices/pci@0,0/pci10de,376@a/pci1000,3150@0/
sd@1,0:a
echo eeprom altbootpath=/pci@0,0/pci10de,376@a/pci1000,3150@0/
sd@1,0:a
#: eeprom | grep -i bootpath
bootpath=/pci@0,0/pci10de,376@a/pci1000,3150@0/sd@0,0:a
altbootpath=/pci@0,0/pci10de,376@a/pci1000,3150@0/sd@1,0:a
# /sbin/installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/$
{MIR_DISK}2
That seems to have fixed the problem and I can now boot off mirror
disk.
Now the weird thing is, no matter which disk I boot off, I always get
the same df output.
Shouldn't I get d2 if I booted off mirror? I always get d1, which
makes me think something
is not going right.
#: df -kFufs
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d1 119098248 12884983 105022283 11% /
/dev/dsk/c1t0d0s4 51634246 51217 51066687 1% /part1
--------
Things are right, just need to understand what is happening. You are also
mirroring some of that disk.