How to repalce a failed disk?

Answer Posted / priya

Check the status of the disks using command: iostat -e
or if the disk is a metadevice then use metastat -p

If the disk is faulty and needs to be removed then use the
prtvtoc /dev/rdsk/c#t#d#s2 > /diskprtvtoc to save the disk
partition.

Use the command cfgadm -c unconfigure c1::dsk/c1t1do to
unconfigure the device
verify using cfgadm -al if the disk is unconfigured

remove the failed disk using command cfgadm -x
remove_device c1::/dsk/c1t1do

run devfsadm -C -c disk to invoke cleanup to remove device
pathsand unreferenced links
verify it ls -ld /dev/rdsk/c1t1dos2 this should return no
devices

it is safe to physically remove the disk n replace
cfgadm -x insert_device c1::/dsk/c1t1do

now configure it cfgadm -c configure c1::dsk/c1t1do

Run devfsadm and verify about the configured disk using ls -
ld command.

Run the fmthard -s /diskprtvtoc /dev/rdsk/c1t1d0s2 to copy
back the saved partitions to the new configured and
inserted disk

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do u know that,what patch can be applicable on the system?

1815


What is cachefs?

1941


hi to all,, i need few real time issues please provide me,, if you have any,,,

1761


What is the zone in DNS?

1910


In a two node cluster i have typed #hastart command in one node.The cluster is starting in second node also,what is going in background?

1760






Local zone in shutting down state.how to bring state of zone to installed?

1632


how can u give space garentee for volume in netapp storage

2822


What is the use of Sam utility in solaris

2375


Hi, I need information regarding LDOMS.Like What is LDOMS ,Creation of LDOMS, errors on LDOMS, troubleshooting LDOMS...etc.... pls post the info. Regards, Naresh

2759


when i am starting solaris10 with 'fail safe mode' on intel machine it is asking "#starting shell".what is it and how to solve this problem?

2041


How to create a gateway?

6374


what is mean by netfmd in sun cluster what is the use of netfmd and what is the relation between ccd and netfmd?

2267