免费注册 查看新帖 |

Chinaunix

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

求助!!!T5220删除硬RAID 后续............. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-05-31 17:33 |只看该作者 |倒序浏览
实验环境:T5220 两块146G硬盘做硬RAID  安装系统solaris10U9

实验目的:删除硬RAID后  两块硬盘当下数据是否相同?
              能否从第二块硬盘启动?

实验: 在光盘单用户下
          1.  # raidctl -d c1t0d0                      删除硬RAID
          2. # mount /dev/dsk/c1t1d0s0 /a     将第二块硬盘挂接至光盘
          3. 修改vfstab表
         

—————————————————————————————————————————————————————————————————————————————————————
原vfstab表
-bash-3.00# more /etc/vfstab   
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c1t0d0s1       -       -       swap    -       no      -
/dev/dsk/c1t0d0s0       /dev/rdsk/c1t0d0s0      /       ufs     1       no      -
/dev/dsk/c1t0d0s5       /dev/rdsk/c1t0d0s5      /usr    ufs     1       no      -
/dev/dsk/c1t0d0s3       /dev/rdsk/c1t0d0s3      /var    ufs     1       no      -
/dev/dsk/c1t0d0s4       /dev/rdsk/c1t0d0s4      /opt    ufs     2       yes     -
/devices        -       /devices        devfs   -       no      -
sharefs -       /etc/dfs/sharetab       sharefs -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap    -       /tmp    tmpfs   -       yes     -
—————————————————————————————————————————————————————————————————————————————————————
修改后vfstab表
# more vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c1t1d0s1       -       -       swap    -       no      -
/dev/dsk/c1t1d0s0       /dev/rdsk/c1t1d0s0      /       ufs     1       no      -
/dev/dsk/c1t1d0s5       /dev/rdsk/c1t1d0s5      /usr    ufs     1       no      -
/dev/dsk/c1t1d0s3       /dev/rdsk/c1t1d0s3      /var    ufs     1       no      -
/dev/dsk/c1t1d0s4       /dev/rdsk/c1t1d0s4      /opt    ufs     2       yes     -
/devices        -       /devices        devfs   -       no      -
sharefs -       /etc/dfs/sharetab       sharefs -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap    -       /tmp    tmpfs   -       yes     -
—————————————————————————————————————————————————————————————————————————————————————

          4. boot disk1     从第二块硬盘启动
          失败......
          报错如下......
______________________________________________________________________________________________________________________________________
{0} ok boot disk1
Boot device: /pci@0/pci@0/pci@2/scsi@0/disk@1  File and args:
SunOS Release 5.10 Version Generic_142909-17 64-bit
Copyright (c) 1983, 2010, Oracle and/or its affiliates. All rights reserved.
kljk^HERROR: svc:/system/filesystem/root:default failed to mount /usr  (see 'svcs -x' for details)
Requesting System Maintenance Mode
(See /lib/svc/share/README for more information.)
Console login service(s) cannot run

Root password for system maintenance (control-d to bypass): Requesting System Maintenance Mode
(See /lib/svc/share/README for more information.)
Console login service(s) cannot run

Root password for system maintenance (control-d to bypass):
single-user privilege assigned to /dev/console.
Entering System Maintenance Mode

May 31 08:51:03 su: 'su root' succeeded for root on /dev/console
su: No shell /bin/bash.  Trying fallback shell /sbin/sh.
-sh: /bin/i386: not found
-sh: /usr/sbin/quota: not found
-sh: /bin/cat: not found
-sh: /bin/mail: not found
_____________________________________________________________________________________________________________________________________

          5. boot disk 从第一块硬盘启动
          正常!

请问是什么原因?我的步骤有误?还是删除硬RAID会直接毁坏第二块盘的数据?

论坛徽章:
7
荣誉会员
日期:2011-11-23 16:44:17水瓶座
日期:2013-08-28 21:20:16丑牛
日期:2013-10-02 21:01:462015年迎新春徽章
日期:2015-03-04 09:54:45操作系统版块每日发帖之星
日期:2016-06-05 06:20:0015-16赛季CBA联赛之吉林
日期:2016-06-20 08:24:0515-16赛季CBA联赛之四川
日期:2016-08-18 15:02:02
2 [报告]
发表于 2011-05-31 18:27 |只看该作者
摘要:做hardware RAID会更改分区表,反之亦然。


所以你的测试失败,简直是一定的。


硬RAID的测试,只能做拔盘测试。

删除RAID就等于删除数据!!能启动那么一点点证明不了什么。

论坛徽章:
0
3 [报告]
发表于 2011-05-31 22:09 |只看该作者
谢谢 那是两块盘的数据都丢了么?还是主盘的会保留?因为我主盘起来的  只装了系统

不知道如果装应用的话,删除硬RAID 数据会不会丢

论坛徽章:
0
4 [报告]
发表于 2011-06-01 09:03 |只看该作者
我记得2个盘都得丢失数据 2个盘就都毁了

论坛徽章:
0
5 [报告]
发表于 2011-06-02 10:32 |只看该作者
删除硬RAID 2块盘数据都会丢失 请问谁告诉你的啊

论坛徽章:
0
6 [报告]
发表于 2011-06-02 10:51 |只看该作者
删除硬raid不会丢数据,之所以启动有问题,是因为你只修改了vfstab是没用的,还要重新刷新设备的。

论坛徽章:
7
荣誉会员
日期:2011-11-23 16:44:17水瓶座
日期:2013-08-28 21:20:16丑牛
日期:2013-10-02 21:01:462015年迎新春徽章
日期:2015-03-04 09:54:45操作系统版块每日发帖之星
日期:2016-06-05 06:20:0015-16赛季CBA联赛之吉林
日期:2016-06-20 08:24:0515-16赛季CBA联赛之四川
日期:2016-08-18 15:02:02
7 [报告]
发表于 2011-06-02 11:56 |只看该作者
回复 1# zpffzz

为啥删除硬RAID会丢数据,请看官方文档的官方说法。(文档下载地址:http://download.oracle.com/docs/ ... -15/820-4933-15.pdf


In some cases, the creation of a RAID volume may cause data on specified
disks to be lost (for instance, on LSI1020, LSI1030, LSI1064, or LSI1068 HBAs),
and raidctl prompts the user for confirmation about the creation. Use the -f
option to force the volume creation without prompting the user for
confirmation.

When a volume is deleted, all data is lost. Therefore, unless the -f option is
specified, raidctl prompts the user for confirmation before deleting the volume.
When a RAID 1 volume is deleted from a LSI1020, LSI1030, LSI1064, or LSI1068
HBA, the primary and secondary disks are “split”. If the volume was in
SYNCING state, the primary will contain the data, and the secondary will not.
If the volume state was OPTIMAL, both disks will contain a complete image of
the data.

论坛徽章:
0
8 [报告]
发表于 2011-06-02 12:59 |只看该作者
LS的解释权威。

论坛徽章:
0
9 [报告]
发表于 2011-06-02 17:15 |只看该作者
回复  zpffzz

为啥删除硬RAID会丢数据,请看官方文档的官方说法。(文档下载地址:)


In some cas ...
nimysun 发表于 2011-06-02 11:56



    注意官方的用词,“In some cases”。硬raid1拆开镜像肯定不会丢数据的,前提,你要在ok下操作,也就是停下操作系统了。我在摩托T2000上都做过,没问题的。

论坛徽章:
0
10 [报告]
发表于 2011-06-03 09:59 |只看该作者
大家好:
问题解决了,方法是重新修改/etc/vfstab文件,除了根/和swap挂接选项是no以外,其他分区都必须是yes,
-bash-3.00# more /etc/vfstab   
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c1t0d0s1       -       -       swap    -       no      -
/dev/dsk/c1t0d0s0       /dev/rdsk/c1t0d0s0      /       ufs     1       no      -
/dev/dsk/c1t0d0s5       /dev/rdsk/c1t0d0s5      /usr    ufs     1       yes      -
/dev/dsk/c1t0d0s3       /dev/rdsk/c1t0d0s3      /var    ufs     1       yes      -
/dev/dsk/c1t0d0s4       /dev/rdsk/c1t0d0s4      /opt    ufs     2       yes     -
/devices        -       /devices        devfs   -       no      -
sharefs -       /etc/dfs/sharetab       sharefs -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap    -       /tmp    tmpfs   -       yes     -

然后boot disk1 -r 系统就可以启动了,

证明了,删除硬raid后,两个盘的数据都存在,没有丢失。

评分

参与人数 1可用积分 +5 收起 理由
nimysun + 5 做的好!

查看全部评分

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP