You are here: Home > Tips&Info, Unix > Replace faulty disk in Solaris

Replace faulty disk in Solaris

[Please proceed with your own risk]

Here’s simple tutorials on how to replace faulty disk on solaris, in this example my customer using RAID 0 (don’t ask me why RAID 0, cause they using this RAID partition is for development only, but sometimes there are many comapnies using RAID 0 because it’s has a highest performance rather than RAID 1 and RAID 5 even with No data protection at all; One drive fails, all data is lost forever), ok enough for the fairy tale :>>, so here we go
-)Figure out which one is the faulty disk and which array affected,you can use these commands

#iostat -En

-)umount mounted fs using umount command(you can refer to /etc/vfstab)
#umount /custimadb

-)turn off RAID0 array, in this example d0 is the RAID array, kindly note disks composition
#metaclear d0

-)release the faulty disk from os

#cfgadm -c unconfigure c6t11d0

-)replace faulty disk with the new one (do it carefully, it’s better to labeled all disks before do this step,if you are not too sure which disk is the fauly one, you can use format, select the disk and do a verification (target disk will blinking, but i warn you it’s too fast), and open your eyes, if you have many storages connected to one machine, ask your friends to helps you to keep their eyes on it :) )

-)force the Solaris to recognize new disk, you can either type

#cfgadm -C -c disk
#devfsadm -C

-)Recreate RAID0 array

#metainit d0 5 1 c6t11d0 c6t12d0 c6t13d0 c6t14d0 c6t15d0

-)Recreate fs on selected partition

#newfs /dev/md/rdsk/d0

-)Remount file system

#mount /custimadb

[Please proceed with your own risk]


Tags: , , ,

  • Digg
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

One Response to “Replace faulty disk in Solaris”

  1. This awesome blog is obviously interesting and informative. I have discovered a lot of handy tips out of it. I’d love to visit it every once in a while. Cheers!