The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Hard disk replacement adelgadom Linux 3 03-13-2008 08:56 AM
Disk replacement with svm BG_JrAdmin SUN Solaris 3 05-31-2007 06:58 PM
Regarding Replacement rajx UNIX for Dummies Questions & Answers 2 05-22-2007 06:19 AM
Newbie: Sun Ultra 5 Disk Replacement kalm UNIX for Dummies Questions & Answers 2 06-30-2005 08:04 AM
Replacement using sed handak9 UNIX for Dummies Questions & Answers 5 07-13-2004 08:28 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-06-2008
Registered User
 

Join Date: Jan 2007
Posts: 4
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Disk Replacement SVM

Hello,

Can someone advise the proper procedure for replacing a mirrored disk in SVM. I have checked the docs and various websites but the procedure seems to vary. This is what I would do...

1. Remove the db replicas from the bad disk.
2. Detach it from the mirror
3. Clear it with metaclear.
4. Replace the Disk
5. Copy the label from the good disk using prtvtoc and ftmhard
6. Create new db replicas
7. Create all the metadevices again then attach them which should start the resync?

Is this all necessary or can I just do a metareplace -e ?

I hope this is roughly right, What im not sure about is the need to use cfgadm to deconfig the failed disk then configure the new on back in, is this dependant on what hardware you are running?

Also, is a reboot required for any of this?

Many Thanks.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-06-2008
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,332
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Even if you use metareplace you will have to partition the disk first.

From your list you would have to do

1,4,5,6 then metareplace -e.
Reply With Quote
  #3 (permalink)  
Old 05-17-2008
Registered User
 

Join Date: Jan 2007
Posts: 4
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Thanks for the reply, however when I keep getting errors from metadevadm relating to invalid device information on the replaced disk. This has led me to believe that I need to configure the new disk to get a new DevID generated.
Reply With Quote
  #4 (permalink)  
Old 05-19-2008
Registered User
 

Join Date: Jan 2007
Posts: 22
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by Actuator View Post
Thanks for the reply, however when I keep getting errors from metadevadm relating to invalid device information on the replaced disk. This has led me to believe that I need to configure the new disk to get a new DevID generated.

I would use the method you have listed in the original post. I never use metareplace.

It seems tedious however, it is a lot cleaner in the end.
Reply With Quote
  #5 (permalink)  
Old 05-20-2008
Registered User
 

Join Date: May 2007
Posts: 24
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
I have sued both! The trick is to use 'metareplace' in case the entire disk goes bad!! That is faster and works okay

If only some slices are bad, then you need to follow the 'tedious' procedure that you mentioned in the very first post.

Extra:
Concerning usuing the cfgadm command, I have seen most sun engineers not using them while many sys admins use that - may be for security / satisfaction sake. Remember, cfgadm will eb used if you have scsi disks on your machine. ** 'luxadm' command is used instead of cfgadm incase your machine has fiber channel disks. (To find out if your system has FCAL disks, run format command and see if there is a long series of numbers after t (target) of the disks).

Hope that helps
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 04:35 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102