Experience: Different from the X86 server hard disk replacement, the general minicomputer does not use RAID card management, it is necessary to replace the hard disk before the replacement of the steps, may be appropriate according to the standard process of modification, if you are not sure, you can find experienced colleagues to review the next step. The approximate replacement drive is as follows:
First, confirm the status information
METADB #查看状态数据状态
Metastat-pc
Metastat #查看SVM镜像对应关系.
Iostat-en #查看硬盘的型号信息以及是否存在报错
Second, remove the need to replace the image information on the hard drive (bad disk)
1 Use the "Metadetach" command to remove the submirror of the hard drive that needs to be replaced from metadevices # metadetach-f <mirror> <submirror>
2 Use the "metaclear" command to remove Submirror # Metaclear with a status of failed <submirror>
3 Use the "metadb-d" command to delete the metadb copy on the failed disk and confirm
# metadb-i
# metadb-d c#t#d#s#
# metadb
4 Save partition Table with "PRTVTOC" command # prtvtoc/dev/rdsk/c#t#d#s2 > file
Third, replace the hard drive (here to note that the FC drive and SAS hard disk operation, v440,v890 is generally FC disk, the new machine is used SAS disk)
(a), if it is an FC hard disk, use the following command:
A. Using the "luxadm" command to remove an FC disk with a status of failed, the team light will light up after successful execution # Luxadm remove_device-f/dev/rdsk/c#t#d#s2
B. Physically remove the FC disk from the host and run the "devfsadm" command to rebuild the device tree #/USR/SBIN/DEVFSADM-C-C disk
C. Insert a new FC disk, rebuild the device tree #/USR/SBIN/DEVFSADM-CV or
D./usr/sbin/luxadm Insert_device
E.metadevadm-u c1t0d0 #更新下硬盘信息.
(b), if it is a SAS hard disk, use the following command:
a). Cfgadm-al |grep DSK #用于查看对应的硬盘
b). Cfgadm-c unconfigure C #::d sk/c#t#d# &NBSP; #取消硬盘的配置状态
The official manual has a remove command (cfgadm-x remove_device C #::d sk/c#t#d#), the hard drive will light up after execution * * * Remove the light to help us locate the hard disk, but in practice, the basic useless, Because the hard disk needs to hang all the hard drives that the C # Controller is attached to, such as C0t0d0 c0t1d0, the two disks are typically mirrored and cannot be suspended. If you need to locate the hard disk, you can test it with DD.
DD If=/dev/rdsk/c#t#d#s2 of=/dev/null #从硬盘中读取数据然后丢弃, will observe the hard drive read and write lantern flashing, to achieve the purpose of positioning.
c). Replace the hard drive and run the "devfsadm" command to rebuild the device tree # DEVFSADM-CC disk
D). See if a new disk is identified,cfgadm-al |grep DSK
e). metadevadm-u c1t0d0 #更新下硬盘信息.
Re-partition the hard disk and re-add the mirror
8 Partitioning a new FC disk with "format" or "Fmthard" # fmthard-s FILE/DEV/RDSK/C#T#D#S2
9 Create a new submirror with the "Metainit" and "Metattach" commands and join the metadevices for data synchronization
# metainit <submirror> 1 1 c#t#d#s#
# Metattach <mirror> <submirror>
10 rebuilding a metadb replica using the "METADB-AFC 3" command
# METADB-AFC3 c#t#d#s#
11 If the root disk is replaced, use the "EEPROM" command to Change "Boot-device" (used for V440-level older machines)
# EEPROM "Boot-device=/[email protected],600000/sunw,[email protected]/[email protected],0/[email protected],0:a"
or use the Installboot command (this is recommended, especially on newer machines)
# installboot/usr/platform/' uname-m '/lib/fs/ufs/bootblk/dev/rdsk/c1t2d0s0
This article is from the "Operations Learning sharing" blog, please be sure to keep this source http://kakayang.blog.51cto.com/6112132/1745453
Sun/fujitsu minicomputer mirrored hard drive replacement scheme