LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 07-31-2008, 11:41 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Rep: Reputation: 43
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 ?
 
Old 08-01-2008, 08:12 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
There is indeed.

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

Dave
 
Old 08-02-2008, 05:11 AM   #3
javier.e.menendez
Member
 
Registered: Jan 2006
Posts: 168

Rep: Reputation: 30
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).
 
Old 08-04-2008, 03:12 AM   #4
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Software Raid 5 (md) recovery using mdadm fakeroot Linux - Server 24 04-15-2013 09:19 AM
[SOLVED] Hardware RAID vs Software RAID and DATA RECOVERY bskrakes Linux - General 7 07-04-2008 01:09 PM
software raid recovery tim1235 Linux - Software 2 04-02-2006 12:54 AM
Software RAID 10: recovery hamish Linux - Software 1 10-27-2005 01:36 PM
Raid software recovery Iced Earth Linux - Software 0 08-12-2003 07:16 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 09:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration