Sun V440下如何创建、删除及恢复硬RAID 1的方法( 二 )


c1t1d0 OK
上面的示例表示RAID 镜像仍然正在与备份驱动器重新同步 。

下面的示例表示RAID 镜像已完全恢复并且联机 。
代码: # raidctl
RAID RAID RAID Disk
Volume Status Disk Status
--------------------------------------------------------
c1t0d0 OK c1t0d0 OK
c1t1d0 OK

四.如何执行非镜像磁盘热插拔操作 -------附加

1.查看SCSI 设备的状态:
代码: # cfgadm -al
Ap_Id Type Receptacle Occupant Condition
c0 scsi-bus connected configured unknown
c0::dsk/c0t0d0 CD-ROM connected configured unknown
c1 scsi-bus connected configured unknown
c1::dsk/c1t0d0 disk connected configured unknown
c1::dsk/c1t1d0 disk connected configured unknown
c1::dsk/c1t2d0 disk connected configured unknown
c1::dsk/c1t3d0 disk connected configured unknown
c2 scsi-bus connected configured unknown
c2::dsk/c2t2d0 disk connected configured unknown
usb0/1 unknown empty unconfigured ok
usb0/2 unknown empty unconfigured ok
usb1/1 unknown empty unconfigured ok
usb1/2 unknown empty unconfigured ok
#
注 – 逻辑设备名称在您的系统上的显示方式可能有所不同,这取决于所安装的附加磁盘控制器的数量和类型 。

-al 选项返回所有SCSI 设备(包括总线和USB 设备)的状态 。(在此示例中,系统没有连接USB 设备 。)

注意 :虽然您可以使用Solaris 操作环境cfgadm install_device 和cfgadm
remove_device 命令来执行磁盘驱动器的热插拔过程,但是,如果您在包含系统磁盘的总线上调用这些命令,那么,这些命令会发出如下的警告消息:
代码: # cfgadm -x remove_device c1::dsk/c1t1d0
Removing SCSI device: /devices/pci@1f,4000/scsi@3/sd@1,0
This operation will suspend activity on SCSI bus: c1
Continue (yes/no)? y
dev = /devices/pci@1f,4000/scsi@3/sd@1,0
cfgadm: Hardware specific failure: failed to suspend:
Resource Information
------------------ -------------------------
/dev/dsk/c1t0d0s0 mounted filesystem "/"
/dev/dsk/c1t0d0s6 mounted filesystem "/usr"

发布此警告是因为这些命令试图使Ultra-4 SCSI 总线停止活动,但是Sun Fire V440 服务器固件不让它停止活动 。在Sun Fire V440 服务器上,可以安全地忽略此警告消息,而下面的过程可以避免出现这一警告消息 。

2.从设备树中删除该磁盘驱动器:
代码: # cfgadm -c unconfigure c1::dsk/c1t3d0
此示例从设备树中删除c1t3d0 。蓝色“可以拆卸” LED 发光 。

3.验证已从设备树中删除该设备:
代码: # cfgadm -al
Ap_Id Type Receptacle Occupant Condition
c0 scsi-bus connected configured unknown
c0::dsk/c0t0d0 CD-ROM connected configured unknown
c1 scsi-bus connected configured unknown
c1::dsk/c1t0d0 disk connected configured unknown
c1::dsk/c1t1d0 disk connected configured unknown
c1::dsk/c1t2d0 disk connected configured unknown
c1::dsk/c1t3d0 unavailable connected unconfigured unknown
c2 scsi-bus connected configured unknown
c2::dsk/c2t2d0 disk connected configured unknown
usb0/1 unknown empty unconfigured ok
usb0/2 unknown empty unconfigured ok
usb1/1 unknown empty unconfigured ok
usb1/2 unknown empty unconfigured ok

请注意,当前c1t3d0是不可用的和尚未配置的 。相应磁盘驱动器的“可以拆卸”
LED 发光 。拆下磁盘驱动器后,蓝色“可以拆卸” LED 熄灭 。

4.更换新硬盘,重新配置:
代码: # cfgadm -c configure c1::dsk/c1t3d0
当c1t3d0 处的新磁盘添加到设备树后,绿色“活动” LED 闪烁 。

5.验证新的磁盘驱动器已添加到设备树中:
代码: # cfgadm -al
Ap_Id Type Receptacle Occupant Condition
c0 scsi-bus connected configured unknown
c0::dsk/c0t0d0 CD-ROM connected configured unknown
c1 scsi-bus connected configured unknown
c1::dsk/c1t0d0 disk connected configured unknown

推荐阅读