免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 5491 | 回复: 27
打印 上一主题 下一主题

A5000阵列更换硬盘步骤 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-11-04 15:43 |只看该作者 |倒序浏览
由于主机上的xyz磁盘组的一个硬盘损坏需要对这个硬盘进行更换,更换的步骤如下:
1、        通过vxdisk –g xyz list显示的信息确定磁盘已经损坏。(以及从图形界面上看到的相关信息)
bash-2.03# vxdisk -g xyz list
DEVICE       TYPE      DISK         GROUP        STATUS
c2t66d0s2    sliced    c2t66d0s2    xyz         online
c2t67d0s2    sliced    c2t67d0s2    xyz         online
c2t69d0s2    sliced    c2t69d0s2    xyz        online
c2t82d0s2    sliced    c2t82d0s2    xyz         online
c2t83d0s2    sliced    c2t83d0s2    xyz         online failing
c2t85d0s2    sliced    xyz01       xyz         online spare
由于损坏的磁盘为:c2t83d0s2根据磁盘的t83确定磁盘为A5000后部的第4块磁(slot (因为A5000是按照box ID 2的规则进行编码的)。(现在A5000的状况图如下:)

2、移出坏盘并且替换新盘(损坏的磁盘是建立在一个RAID5卷上的)
    1) 运行vxdiskadm,选择4:Remove a disk for replacement   使用list查看逻辑盘域物理盘的对应情况,然后选择故障盘c2t83d0s2,将该盘根据系统提示逐步移去。
2) 运行luxadm remove_device Aa,r3 将c0t83d0从系统中移出(我在运行这个步骤的时候,由于开始没有成功所以使用了-F参数,对后面没有影响)。具体过程如下:
   # luxadm remove_device  –F  Aa,r3
当提示回车继续时,从阵列上拆下硬盘。然后按回车键继续,直到硬盘成功从操作系统中移出。
3)将新硬盘插入阵列中,然后reboot,并利用ctrl+d进入系统。
4)系统启动完成后,运行
   # luxadm insert_device Aa,r3
   #vxdctl enable
将新盘加入到操作系统中。
5)运行vxdiskadm,选择5:Replace a failed or removed disk ,选择c2t83d0s2,在选择c0t83d0。
6)硬盘替换成功后,系统会根据你的log进行恢复你的RAID5卷的。可以使用vxtask list查看你同步运行的情况。
附:替换硬盘实例:

#################################
First :find the bad disk(c2t83d0s2)
#################################

(1)Remove the bad disk
#vxdiskadm
Volume Manager Support Operations
Menu: VolumeManager/Disk

1      Add or initialize one or more disks
2      Encapsulate one or more disks
3      Remove a disk
4      Remove a disk for replacement
5      Replace a failed or removed disk
6      Mirror volumes on a disk
7      Move volumes from a disk
8      Enable access to (import) a disk group
9      Remove access to (deport) a disk group
10     Enable (online) a disk device
11     Disable (offline) a disk device
12     Mark a disk as a spare for a disk group
13     Turn off the spare flag on a disk
list   List disk information

?      Display help about menu
??     Display help about the menuing system
q      Exit from menus

Select an operation to perform:4

Remove a disk for replacement
Menu: VolumeManager/Disk/RemoveForReplace

  Use this menu operation to remove a physical disk from a disk
  group, while retaining the disk name.  This changes the state
  for the disk name to a "removed" disk.  If there are any
  initialized disks that are not part of a disk group, you will be
  given the option of using one of these disks as a replacement.

Enter disk name [<disk>,list,q,?]
Remove a disk for replacement

Menu: VolumeManager/Disk/RemoveForReplace

  Use this menu operation to remove a physical disk from a disk
  group, while retaining the disk name.  This changes the state
  for the disk name to a "removed" disk.  If there are any
  initialized disks that are not part of a disk group, you will be
  given the option of using one of these disks as a replacement.

Enter disk name [<disk>,list,q,?] l
此处显示信息忽略。

Enter disk name [<disk>,list,q,?] c2t83d0s2

Volume Manager Support Operations

Remove a disk for replacement
Menu: VolumeManager/Disk/RemoveForReplace

  Use this menu operation to remove a physical disk from a disk

Volume Manager Support Operations
Menu: VolumeManager/Disk

1      Add or initialize one or more disks
2      Encapsulate one or more disks
3      Remove a disk
4      Remove a disk for replacement
5      Replace a failed or removed disk
6      Mirror volumes on a disk
7      Move volumes from a disk
8      Enable access to (import) a disk group
9      Remove access to (deport) a disk group
10     Enable (online) a disk device
11     Disable (offline) a disk device
12     Mark a disk as a spare for a disk group
13     Turn off the spare flag on a disk
list   List disk information

?      Display help about menu
??     Display help about the menuing system
q      Exit from menus

Select an operation to perform: q

Goodbye.
# luxadm remove_device  –F  Aa,r3


  WARNING!!! Please ensure that no filesystems are mounted on these device(s).
  All data on these devices should have been backed up.



The list of devices which will be removed is:
  1: Box Name "Aa" rear slot 3

Please enter 'q' to Quit or <Return> to Continue:    //从阵列上拆下硬盘

stopping:  Drive in "Aa" rear  slot 3....Done
offlining: Drive in "Aa" rear  slot 3....Done

Hit <Return> after removing the device(s).

  Drive in Box Name "Aa" rear slot 3
  Notice: Device has not been removed from the enclosure.
  It has been removed from the loop and is ready to be
  removed from the enclosure, and the LED is blinking.


# reboot

# luxadm insert_device Aa,r3
#vxdctl enable
Volume Manager Support Operations

Replace a failed or removed disk
Menu: VolumeManager/Disk/ReplaceDisk

  Use this menu operation to specify a replacement disk for a disk
  that you removed with the "Remove a disk for replacement" menu
  operation, or that failed during use.  You will be prompted for
  a disk name to replace and a disk device to use as a replacement.
  You can choose an uninitialized disk, in which case the disk will
  be initialized, or you can choose a disk that you have already
  initialized using the Add or initialize a disk menu operation.

Select a removed or failed disk [<disk>,list,q,?] c2t83d0s2


Volume Manager Support Operations
Menu: VolumeManager/Disk

1      Add or initialize one or more disks
2      Encapsulate one or more disks
3      Remove a disk
4      Remove a disk for replacement
5      Replace a failed or removed disk
6      Mirror volumes on a disk
7      Move volumes from a disk
8      Enable access to (import) a disk group
9      Remove access to (deport) a disk group
10     Enable (online) a disk device
11     Disable (offline) a disk device
12     Mark a disk as a spare for a disk group
13     Turn off the spare flag on a disk
list   List disk information

?      Display help about menu
??     Display help about the menuing system
q      Exit from menus

Select an operation to perform: q

Goodbye
       #vxtask list
我在更换磁盘的时候遇到了以下的问题,在我执行vxdiskadm替换的时候报了lisence的错误,看了一下lisence以后感觉有问题,找了一个临时的lisence输入进去。在替换以后成功。

论坛徽章:
71
15-16赛季CBA联赛之同曦
日期:2018-08-23 15:41:42辰龙
日期:2014-08-15 09:07:43狮子座
日期:2014-06-03 13:55:33亥猪
日期:2014-06-02 11:17:08巨蟹座
日期:2014-05-06 10:02:03午马
日期:2014-05-04 08:18:27亥猪
日期:2014-04-29 11:11:32技术图书徽章
日期:2014-04-24 15:51:26技术图书徽章
日期:2014-04-17 11:01:53辰龙
日期:2014-04-15 12:45:46亥猪
日期:2014-04-11 09:06:23射手座
日期:2014-04-01 15:28:10
2 [报告]
发表于 2005-11-04 16:53 |只看该作者
问个问题

luxadm remove_device  –F  Aa,r3中的Aa和r3是什么意思呀
还有你的hot spare盘是怎么做的,谢谢

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
3 [报告]
发表于 2005-11-04 17:00 |只看该作者
呵呵,收了!

论坛徽章:
0
4 [报告]
发表于 2005-11-04 17:01 |只看该作者
Aa是你的A5000阵列的封装的名字.这个可以在A5000的面板菜单中设置.r3是指定你的磁盘是后板的第3个slot上的磁盘,记住slot是从0开始的.3实际上是第4个位置.前板用f表示.host spare的做法是当你放入一个新的磁盘的话,vxdiskadm中选1可以做,也可以直接选择设置hot spare的选项.也可以用命令.
比如:
vxedit -g diskgroup set spare=on diskname.

论坛徽章:
0
5 [报告]
发表于 2005-11-04 17:21 |只看该作者
没必要重启.

论坛徽章:
71
15-16赛季CBA联赛之同曦
日期:2018-08-23 15:41:42辰龙
日期:2014-08-15 09:07:43狮子座
日期:2014-06-03 13:55:33亥猪
日期:2014-06-02 11:17:08巨蟹座
日期:2014-05-06 10:02:03午马
日期:2014-05-04 08:18:27亥猪
日期:2014-04-29 11:11:32技术图书徽章
日期:2014-04-24 15:51:26技术图书徽章
日期:2014-04-17 11:01:53辰龙
日期:2014-04-15 12:45:46亥猪
日期:2014-04-11 09:06:23射手座
日期:2014-04-01 15:28:10
6 [报告]
发表于 2005-11-04 17:24 |只看该作者
原帖由 风之幻想 于 2005-11-4 17:01 发表
Aa是你的A5000阵列的封装的名字.这个可以在A5000的面板菜单中设置.r3是指定你的磁盘是后板的第3个slot上的磁盘,记住slot是从0开始的.3实际上是第4个位置.前板用f表示.host spare的做法是当你放入一个新的磁盘的话 ...



封装的名字不是XYZ吗?

加spare盘,我想让c0tod0s2做spare盘,是vxedit -g diskgroup set spare=on c0t0d0s2对吗

论坛徽章:
0
7 [报告]
发表于 2005-11-04 17:28 |只看该作者
XYZ是vertias封装的磁盘组.和A5000的封装名是2个概念.

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
8 [报告]
发表于 2005-11-04 17:31 |只看该作者
3)将新硬盘插入阵列中,然后reboot,并利用ctrl+d进入系统。

这步可以不做吧,呵呵!

论坛徽章:
0
9 [报告]
发表于 2005-11-04 17:35 |只看该作者
当时,为了安全期间所以做了.其实,可以不用做.但是,领导建立还是做.所以就做了.呵呵。

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
10 [报告]
发表于 2005-11-04 17:35 |只看该作者
failing状态不一定是磁盘坏了,要综合判断的,format;iostat -E;vxprint -ht;dmesg等,如果这些状态都是好的,可以用这个命令把failing状态清掉:# vxedit -g xyz set failing=off c2t83d0s2
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP