Chinaunix首页 | 论坛 | 博客
  • 博客访问: 115881
  • 博文数量: 90
  • 博客积分: 1370
  • 博客等级: 中尉
  • 技术积分: 1005
  • 用 户 组: 普通用户
  • 注册时间: 2011-12-20 20:37
文章分类

全部博文(90)

文章存档

2012年(90)

分类: IT业界

2012-01-08 14:54:29

以上 方法是本人 亲自实验 。如有什么问题 本人解答。谢谢!



一、如何创建硬件磁盘镜像

# raidctl
No RAID volumes found.

上面的示例表示尚不存在RAID 卷。另外一种情况:

# raidctl
RAID RAID RAID Disk
Volume Status Disk Status
----------------------------------------
c1t1d0 OK c1t1d0 OK
c1t2d0 OK

上表示已创建硬件磁盘镜像.


下面是创建硬件磁盘镜像操作步骤
1. 键入以下命令:
# raidctl -c 主设备 从设备
例如:
# raidctl -c c1t1d0 c1t2d0

创建RAID 镜像之后,从属驱动器(在本例中为c1t2d0)将从Solaris 设备树中消失。

2. 要检查RAID 镜像的状态,请键入以下命令:

# raidctl
RAID RAID RAID Disk
Volume Status Disk Status
--------------------------------------------------------
c1t1d0 RESYNCING c1t1d0 OK
c1t2d0 OK

上面的示例表示RAID 镜像仍然正在与备份驱动器重新同步。
下面的示例表示RAID 镜像已完全恢复并且联机。
# raidctl
RAID RAID RAID Disk
Volume Status Disk Status
------------------------------------
c1t1d0 OK c1t1d0 OK
c1t2d0 OK


二、如何删除硬件磁盘镜像

操作步骤
1. 确定镜像卷的名称。键入以下命令:
# raidctl -d 镜像卷
例如:
# raidctl -d c1t2d0
RAID Volume ’c1t2d0’ deleted

3. 要确认已经删除了RAID 阵列,请键入以下命令:
# raidctl
例如:
# raidctl
No RAID volumes found


三、如何执行镜像磁盘热插拔操作

# raidctl
RAID RAID RAID Disk
Volume Status Disk Status
----------------------------------------
c1t1d0 DEGRADED c1t1d0 OK
c1t2d0 DEGRADED

本示例表示由于磁盘c1t2d0 上出现故障而导致磁盘镜像失效。

操作步骤
1. 要从设备树中删除该磁盘驱动器,请键入以下命令:
# cfgadm -x unconfigure /dev/rdsk/c1t2d0
或cfgadm -c unconfigure c1::dsk/c1t2d0

如果驱动器失效且“可以拆卸” LED 已亮,则不必发出软件命令使驱动器脱机。
where c1t2d0 is the name of the disk drive to be removed.
The blue OK-to-Remove disk drive LED lights.

插入新盘,RAID 实用程序自动在此磁盘上恢复数据。
# cfgadm -x configure /dev/rdsk/c1t2d0
或cfgadm -c unconfigure c1::dsk/c1t2d0

此时“可以拆卸”LED熄灭,绿色活动灯闪烁,该磁盘加入到设备树
where c1t2d0 is the name of the disk drive to be configured.
The blue OK-to-Remove LED goes out, and the green Activity LED flashes as the
disk drive is added to the device tree.

要检查已重建的RAID 的状态,请键入以下命令:
# raidctl

# raidctl
RAID RAID RAID Disk
Volume Status Disk Status
----------------------------------------
c1t1d0 RESYNCING c1t1d0 OK
c1t2d0 OK

此示例表示RAID 卷c1t1d0 正在重新同步,同步需几分钟,再执行raidctl。

# raidctl
RAID RAID RAID Disk
Volume Status Disk Status
----------------------------------------
c1t1d0 OK c1t1d0 OK
c1t2d0 OK


几分钟后 就OK了

就是这么简单
阅读(466) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~