2.要验证硬件磁盘镜像尚未存在,请键入: 代码: # raidctl No RAID volumes found.
3.创建内部硬件磁盘镜像: 代码: # raidctl -c c1t0d0 c1t1d0
创建RAID 镜像之后,从属驱动器(在本例中为c1t1d0)将从Solaris 设备树中消失。
4.检查RAID 镜像的状态: 代码: # raidctl RAID RAID RAID Disk Volume Status Disk Status -------------------------------------------------------- c1t0d0 RESYNCING c1t0d0 OK c1t1d0 OK 上面的示例表示RAID 镜像仍然正在与备份驱动器重新同步。
下面的示例表示RAID 镜像已完全恢复并且联机。 代码: # raidctl RAID RAID RAID Disk Volume Status Disk Status -------------------------------------------------------- c1t0d0 OK c1t0d0 OK c1t1d0 OK
二.如何删除硬件磁盘镜像 执行此过程可从系统中删除硬件磁盘镜像配置。
1. 确定镜像卷的名称: 代码: # raidctl RAID RAID RAID Disk Volume Status Disk Status -------------------------------------------------------- c1t0d0 OK c1t0d0 OK c1t1d0 OK
3. 确认已经删除了RAID 阵列: 代码: # raidctl No RAID volumes found.
三.如何恢复硬件磁盘镜像 执行此过程可从系统中恢复硬件磁盘镜像配置。
1.确认发生故障的磁盘: 代码: # raidctl RAID RAID RAID Disk Volume Status Disk Status ---------------------------------------------------------- c1t1d0 DEGRADED c1t0d0 OK c1t1d0 DEGRADED
4.检查RAID镜像的状态: 代码: # raidctl RAID RAID RAID Disk Volume Status Disk Status -------------------------------------------------------- c1t0d0 RESYNCING c1t0d0 OK 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 #