Solaris 10: Problems booting off mirror drive -- Error 22: No such partition


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 10: Problems booting off mirror drive -- Error 22: No such partition
# 1  
Old 06-15-2009
Solaris 10: Problems booting off mirror drive -- Error 22: No such partition

Solaris 10 5/08 on Ultra 40 M2

It boots fine off primary disk but having issues booting off the mirror disk.
I get this error when booting off mirror disk:


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? What am I missing? (There is a 3rd disk in the system with Windows XP but I don't think it has anything to do with this error).

I followed this procedure to mirror the disks. They are mirrored but the mirror is not bootable, which defeats the purpose if the primary disk fails.

Solaris x86 root filesystem mirr...

Code:
# 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

# /sbin/installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/
c1t1d0s0

# 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

# 2  
Old 06-15-2009
I am not very familiar with Solaris for Intel but when making mirrors on SPARC Solaris you have to use installboot(1m) to make the second disk bootable, see: Solstice DiskSuite - Admin's Guide.
This page mentions using installboot on a Solaris for Intel system.
Perhaps that is the problem?
# 3  
Old 06-16-2009
The x86 version of installboot is called installgrub:



#: /sbin/installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/${MIR_DISK}s0
stage1 written to partition 0 sector 0 (abs 16065)
stage2 written to partition 0, 233 sectors starting at 50 (abs 16115)

A few links to installgrub:

Mirroring root With Solaris Volume Manager in the Solaris 9 and 10 OS - BigAdmin - wikis.sun.com

x86: How to Create a RAID-1 Volume From the root (/) File System (Solaris Volume Manager Administration Guide) - Sun Microsystems

The above doesn't work BTW, it won't boot off mirror. Have tried everything. Maybe my eeprom setting is not right??

Image

.
Image
# 4  
Old 06-16-2009
it doesn't work this way on x86 systems to boot from mirror. you've to pull out the first disk to boot from mirror disk.

also you should add an entry with "eeprom" called "altbootpath". have a look at the output of eeprom after booting from your normal disk to find how the entry should look like.
# 5  
Old 06-16-2009
Well, I think I should be able to boot off the mirror disk without removing the primary disk, after all, I can do that with Windows XP, which is the 3rd disk in the system.
But I did try that anyway and got the dreaded Error 22 for the thousand and one time.


I think this looks better:

# 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


BTW, found this line for x86, doesn't work either, neither file exists on my system:

# installboot /usr/platform/i86pc/lib/fs/ufs/pboot /usr/platform/i86pc/lib/fs/ufs/bootblk /dev/rdsk/${MIR_DISK}s2

#: ll /usr/platform/i86pc/lib/fs/ufs/pboot /usr/platform/i86pc/lib/fs/ufs/bootblk
/usr/platform/i86pc/lib/fs/ufs/pboot: No such file or directory
/usr/platform/i86pc/lib/fs/ufs/bootblk: No such file or directory

Update:

I was able to boot off the mirror disk, which was specified in the /grub/boot/menu.lst file.

Now question, just to be completely sure, how do I know which disk I booted off? Is there anything in the system logs that says "I booted off MIRROR disk and not primary"?

I did yank out the primary disk, tried to boot off mirror and went back to the Error 22 above.

How do I validate that the mirror disk is bootable? Can I swap primary and mirror disks and just let it boot?

Last edited by etc; 06-16-2009 at 01:20 PM..
# 6  
Old 06-17-2009
OK, I can boot off either disk but I am not real sure that when I boot off the mirror, I am actually booting off that mirror.

The reason I am saying this, when I look at output of df in either case, I always get the same disk:

Code:
#: df -kFufs
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/md/dsk/d1       119098248 12882647 105024619    11%    /
/dev/dsk/c1t0d0s4    51634246   51217 51066687     1%    /part2
/dev/dsk/c1t0d0s3    51634246   51217 51066687     1%    /part1
/dev/dsk/c1t0d0s5    51634246   51217 51066687     1%    /part3
/dev/dsk/c1t0d0s7    10331209   10265 10217632     1%    /export/home

# 7  
Old 06-17-2009
The disk mirroring makes the /etc/vstab file look the same on both sides, so once booted it will mount the same volumes unless you split the mirroring and then change the vfstab file on the second half of the mirror...
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Second Mirror is not booting !

zpool status -v below my mirrors in Solaris 10 config: NAME STATE READ WRITE CKSUM rpool ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 c3t0d0s0 ONLINE 0 0 0 ... (2 Replies)
Discussion started by: top.level
2 Replies

2. Solaris

solaris booting problems

hi am trying to get some knowledge on Solaris common trouble shooting problems.. can some one help me in getting most common issues.. and how to solve those issues. thanks in advance (4 Replies)
Discussion started by: aravindreddy
4 Replies

3. UNIX for Dummies Questions & Answers

Flash drive booting project questions

My current machine is a Macbook pro running Snow Leopard. I want to mess around with various *nix OSes but not in a way that threatens the current working condition of this machine. The way around this seems to be to install various operating systems on a largish flash drive, boot from that, and... (2 Replies)
Discussion started by: Zygomorph
2 Replies

4. AIX

Partition offset problem after re-mirror vg

We had a mirrored disk failed (not the rootvg), there are 3 lvs (transfer, applogs, arch) from extvg gone open/stale state. After replaced failed disk and run cfgmgr, the new replaced disk is visible: ) I did the following to re-mirror new disk: # extendvg prodvg hdisk3 # lspv (got new pvid on... (2 Replies)
Discussion started by: jalite19
2 Replies

5. Solaris

Error for booting zone in solaris 10

Dear All, After creating ,installing ,configuring zone in my solaris VMware . I am not able to Ready/Boot the zone. giving error as : Please help me out for the same Core part of zone.xml is as: Anythng which I missed in configuration.. Do let me know (1 Reply)
Discussion started by: bharat_
1 Replies

6. Red Hat

breaking a hard drive mirror

Hey guys i have a machine running redhat enterprise 3.8 (i believe) and it has two hard drives that are mirrored. what would i have to do to get them to act as two seperate hard drives so i have 120gb capacity total as opposed to just 60? also, what would i do if i just wanted to take one of... (4 Replies)
Discussion started by: pacman529
4 Replies

7. Solaris

Problems during booting from mirror disk

Hi All, I have detached a mirror and primary disk from my Solaris box. On trying to boot from Primary disk, It boots up good. But from my mirror disk, it is not booting and giving me the login prompt Instead it goes to maintenance state by issuing a coredump. Can you explain why... (9 Replies)
Discussion started by: jegaraman
9 Replies

8. UNIX for Dummies Questions & Answers

error booting solaris 10

Hello experts, I have installed solaris 10 on x86. When I try to boot I get an error with ablue screen login failed please try again. I am new to this o.s. It used to work nicely before what did I do wrong? Any guidance advice will be highly appreciated Thanks, (5 Replies)
Discussion started by: deepak1
5 Replies

9. UNIX for Advanced & Expert Users

booting problems on solaris

When i try to boot my solaris 2.6 E220R server, i get this error message > INIT: cannot create /var/adm/utmp or /var/adm/utmpx >INIT: failed write of utmpx entry:" " >INIT: failed write of utmpx entry:" " INIT Single User Mode Press Ctrl-d for normal boot process or enter roots password... (10 Replies)
Discussion started by: lealyz
10 Replies
Login or Register to Ask a Question