LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   SOLARIS software RAID 1 - RECOVERY (https://www.linuxquestions.org/questions/solaris-opensolaris-20/solaris-software-raid-1-recovery-659537/)

czezz 07-31-2008 11:41 AM

SOLARIS software RAID 1 - RECOVERY
 
I have preapared raid-1 (mirror) on my Solaris 10.
2 disks have been used - (disk0) c0t0d0 and (disk1) c0t1d0.
The /etc/vfstab looks like this now:
Code:

/dev/md/dsk/d0  /dev/md/rdsk/d0 /      ufs    1      no      -
/dev/md/dsk/d4  /dev/md/rdsk/d4 /export/home    ufs    2      yes    -
/dev/md/dsk/d1  /dev/md/rdsk/d1 /opt    ufs    2      yes    -
/dev/md/dsk/d3  /dev/md/rdsk/d3 /opt2 ufs    2      yes    -

metastat shows all disks are OK.

Now I need to do a test. I want to remove disk c0t1d0 (disk1) and plug on this place compltly new disk. (not formated and with no slices but exactelly this same vendor and geometry!).

Question is:
what to do to make new disk take role of previous disk c0t1d0 (disk1) ?
Is there any procedure ?

ilikejam 08-01-2008 08:12 AM

There is indeed.

This page has a pretty good rundown of what's required:
http://slacksite.com/solaris/disksuite/SDSrecovery.php

Dave

javier.e.menendez 08-02-2008 05:11 AM

Kind of confused, but if you want to test the mirror, poweroff the machine, take out the original boot drive, the system should boot up from the mirror if you configured it properly at the ok prompt as well, type metastat and you should see all your mirrors degraded.

metareplace would be the command to fix a broken mirror, you can see the syntax of such command when you type metastat d? (whatever metadevice/volume you have).

czezz 08-04-2008 03:12 AM

javier - it is exactelly whay you written.
Allready read what ilikejam posted - lot of things to do there.
What you written looks like recovery-by-one-command... am I right.
Will investigate more "metareplace" - thanx to both of you guys.


All times are GMT -5. The time now is 07:55 PM.