?
Solved

Setting up Solaris 9 RAID 1. Second hd can't boot after sync

Posted on 2005-05-07
8
Medium Priority
?
422 Views
Last Modified: 2013-12-27
Hi,

I'm trying to setup RAID 1 with Solaris 9. I've got the mirroring working with metadb, metinit and metattach

prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2

metastat shows both hard disks are sycn and mounting the second hard disk verifies that everything is there

installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c1t1d0s0

ls -l /dev/rdsk/c1t1d0s0

at OBP

nvalias disk1 /pci@1f,0/pci@1/scsi@8/sd@1,0:a
setenv boot-device disk disk1
nvstore
boot disk1

and it gives me the error, "Can't open boot device" and goes back to booting up from disk

Any help? thanks

0
Comment
Question by:smw42
  • 4
  • 4
8 Comments
 
LVL 10

Accepted Solution

by:
neteducation earned 1600 total points
ID: 13954105
the correct path for nvalias is most probably

/pci@1f,0/pci@1/scsi@8/disk@1,0:a

Even though it shows up as "sd" in the booted unix, at OBP it most probably shows up as "disk".

you may also try (at OBP)

cd /pci@1f,0/pci@1/scsi@8
ls

there you will see the correct name
0
 

Author Comment

by:smw42
ID: 13957407
Hi neteducation,

I went into that folder and it shows everything starts with sd. Anyway i went ahead and changed it to disk and its working now.

But after i booted up, (i removed the first hard disk for testing, leaving it to boot up in the second hard disk) and it gives me error that the d10,d11,d13... (mirror for first hard disk) is missing and boots into s mode instead. how do i remove or make it go offline until i can replace a new hard disk in again?
0
 
LVL 10

Expert Comment

by:neteducation
ID: 13957441
The reason it is booting into singleuser mode is that you only have half of the metadb's available. For security reasons it will only boot into singleuser mode then.

In order to get up to multiuser again, remove the replicas of the metadb that are no longer existing (the ones on the failed drive) using metadb -d

It will boot to multiuser if you have at least one more than half of the replicas of the metadb (which you achieve by removing the failed ones)

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:smw42
ID: 13957643
I removed the failed replicas and it allowed me to boot up. but after i put back in the other hard disk (both working discs working) in now, it gives me erros

WARNING: /pci@1f,0/pci@1/scsi@8 (glm0):
        Connected command timeout for Target 1.0
WARNING: /pci@1f,0/pci@1/scsi@8 (glm0):
        Target 1 reducing sync. transfer rate
WARNING: /pci@1f,0/pci@1/scsi@8 (glm0):
        got SCSI bus reset

and now i cannot add back the original metadb
0
 
LVL 10

Expert Comment

by:neteducation
ID: 13957725
are you sure you connected it correctly (especially concerning the SCSI-Termination)? These Error Messages sound like bad cabling or wrong termination.
0
 

Author Comment

by:smw42
ID: 13957733
i managed to force it to boot with the other disk and added the metadb. but now when i boot up and i do a metastat and it shows the seond submirror needs maintenance

how do i get them to sync in this case, sycnchronising with the second(replacement harddisk)?
0
 
LVL 10

Expert Comment

by:neteducation
ID: 13957801
use metasync on the mirror device.
0
 

Author Comment

by:smw42
ID: 13957813

I tried metadsync and it didn't work, so I used metareplace instead

Thank you very much for your help.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month17 days, left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question