博客首页 注册 建议与交流 排行榜 加入友情链接
推荐 投诉 搜索: 帮助

EastSpider's Favorites

既然爱了就不要后悔,再多的苦,也愿背! 不管未来的多难、多远,我都要和你在一起,永不分离!
EastSpider.cublog.cn


如何更换Sun StorEdge A1000的电池[分享]
下面主要是教你怎么去检查电池的健康状态和如何更换过期电池的。

1.在命令行运行A1000的管理软件Sun StorEdge RAID Manager 6(RM6)的下面命令:

确认设备名称:

# /usr/lib/osa/bin/lad
   c1t0d0 1T93803809 LUNS: 0 1
确认电池的健康状态,使用的device名称就是上面用lad看到的:

# /usr/lib/osa/bin/raidutil -c <device> -B  
  For example:
               #/usr/lib/osa/bin/raidutil -c c1t0d0 -B
               LUNs found on c1t0d0.
               LUN 0    RAID 0    10 MB
               LUN 1    RAID 5    1000 MB
               Battery age is between 720 days and 810 days.
               raidutil succeeded!
               battery age between 630 and 720 days - near expiration
               battery age greater than 720 days    - expired
上面可以看到,电池已经过期,需要更换了!需要注意的是:A1000的电池不可热交换!

启动rm6的GUI界面的命令是:

# /usr/lib/osa/bin/rm6 &
如果你想disable A1000的写缓存,下面会告诉你用GUI和命令行的方法去设置。但是在这个案例里面,电池已经过去,写缓存的功能已经被自动关闭了。

2.运行rm6 GUI界面,打开the Maintenance and Tuning application;

3.选择Sun StorEdge A1000的RAID模块;

4.点击Cache参数按钮,或者选择Option,选择下拉菜单中的Cache Parameters;

5.Disable写缓存选项,或者使用RM6命令行命令操作:

# /usr/lib/osa/bin/lad
           c1t0d0 1T93803809 LUNS: 0 1
# /usr/lib/osa/bin/raidutil -c <device> -w off <lun numbers>
# /usr/lib/osa/bin/raidutil -c c1t0d0 -w off 0,1
LUNs found on c5t5d0.
        LUN 0    RAID 5    8100 MB
        LUN 1    RAID 5    8108 MB
6.停掉连接Sun StorEdge A1000存储的主机:

# init 0
7.在关闭Sun StorEdge A1000存储之前,需要等待2分钟已确保残留在cache中的数据同步到硬盘上。
关闭Sun StorEdge A1000存储换电池,如何从硬件上更换电池请参考《Sun StorEdge A1000 and D1000 Installation, Operations, and Service Manual》,文档地址是:http://www.sun.com/products-n-solutions/hardware/docs/Network_Storage_Solutions/Workgroup/A1000D1000/index.html,然后给Sun StorEdge A1000存储加电等到所有硬盘灯状态全部正常后(常绿),继续下面操作;

8.使用-r选项启动主机系统;

9.使用RM6命令reset电池使用期限:raidutil -c <device> -R

# /usr/lib/osa/bin/raidutil -c c1t0d0 -R
               LUNs found on c1t0d0.
               LUN 0    RAID 0    10 MB
               LUN 1    RAID 5    1000 MB
               raidutil succeeded!  
10.检查新电池的使用期限:

# /usr/lib/osa/bin/raidutil -c c1t0d0 -B
               LUNs found on c1t0d0.
               LUN 0    RAID 0    10 MB
               LUN 1    RAID 5    1000 MB
               Battery age is between 0 days and 90 days.
               raidutil succeeded!  
11.使用RM6的GUI界面或命令行重新enable写缓存:

# /usr/lib/osa/bin/raidutil -c c1t0d0 -w on 0,1
LUNs found on c5t5d0.
        LUN 0    RAID 5    8100 MB
        LUN 1    RAID 5    8108 MB
12.12个小时之后,检查电池的工作状态,可以通过RM6的GUI界面或命令行:

# /usr/lib/osa/bin/healthck -a

发表于: 2007-03-19 ,修改于: 2007-03-19 15:39,已浏览1761次,有评论4条 推荐 投诉


网友评论
内容:
查看了201次,竟然没有人回帖鼓掌,我都看不下去了。^_^
nimysun 评论于:2007-04-16 19:10:26 (221.221.37.★)
内容:
谢谢兄弟捧场,哈哈哈。。。。
东方蜘蛛 评论于:2007-04-16 21:38:17 (58.62.118.★)
内容:
上次跟SUN公司的哥们儿去换某电信厂商门户网站的A1000电池,直接查看了一下状态后热拔下来了,没有停机。
freeware评论于:2008-01-24 13:05:26 (220.231.29.★)
内容:
very good
mescal 评论于:2008-02-29 14:18:55 (60.219.225.★)

发表评论