免费注册 查看新帖 |

Chinaunix

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

How to deal withdg disabled (vxvm) [复制链接]

论坛徽章:
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
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-09 23:49 |只看该作者 |倒序浏览
Contributed from veritas.com
http://seer.entsupport.symantec.com/docs/229701.htm

DEVICE       TYPE      DISK         GROUP        STATUS
c0t0d0s2      sliced     disk03         rootdg         online
c1t12d0s2    sliced     disk12         raid5dg        online dgdisabled
c1t13d0s2    sliced     disk13         raid5dg        online dgdisabled
c1t14d0s2    sliced     disk14         raid5dg        online dgdisabled
c1t15d0s2    sliced     disk15         raid5dg        online dgdisabled
This situation can happen when every disk in a disk group is lost from a bad power supply, power turned off to the disk array, cable disconnected, etc.
This can also occur when a disk group consists of only simple and/or nopriv disks and is changed to the enclosure-based naming scheme with VERITAS Volume Manager (VxVM) 3.2.
The correction for this is explained in the VxVM 3.2 System Administrator's Guide, section 'Simple/Nopriv Disks in Non-Root Diskgroups'.
The disk group will not show in the output from vxprint -ht.
The disk group will show as disabled in vxdg list:

    NAME         STATE           ID
    rootdg       enabled  957541872.1025.scrollsaw
    raid5dg      disabled 960304056.1215.scrollsaw

This is the output of vxdg list raid5dg:

    Group:     raid5dg
    dgid:      960304056.1215.scrollsaw
    import-id: 0.1214
    flags:     disabled
    version:   0
    copies:    nconfig=default nlog=default
    config:    seqno=0.1052 permlen=1162 free=1154 templen=4 loglen=176
    config disk c1t12d0s2 copy 1 len=1162 state=iofail failed
          config-tid=0.1052 pending-tid=0.1052
          Error: error=Disk write failure
    config disk c1t13d0s2 copy 1 len=1162 state=iofail failed
          config-tid=0.1052 pending-tid=0.1052
          Error: error=Disk write failure
    config disk c1t14d0s2 copy 1 len=1162 state=iofail failed
          config-tid=0.1052 pending-tid=0.1052
          Error: error=Disk write failure
    config disk c1t15d0s2 copy 1 len=1162 state=iofail failed
          config-tid=0.1052 pending-tid=0.1052
          Error: error=Disk write failure
    log disk c1t12d0s2 copy 1 len=176 invalid
    log disk c1t13d0s2 copy 1 len=176 invalid
    log disk c1t14d0s2 copy 1 len=176 invalid
    log disk c1t15d0s2 copy 1 len=176 invalid

Once power to the disk has been restored, VxVM still will not see the disk group, but thinks the disk group is imported:

    root@scrollsaw# vxvol start raid5vol
    vxvm:vxvol: ERROR: raid5vol: Not in any imported disk group
    root@scrollsaw# vxdg import raid5dg
    vxvm:vxdg: ERROR: Disk group raid5dg: import failed: Disk group exists and is imported

This can be remedied by deporting,  then importing the disk group:

    vxdg deport raid5dg
    vxdg import raid5dg
The disk group now shows in vxprint -ht with the volume and plexes disabled:

    dg raid5dg      default      default  79000    960304056.1215.scrollsaw

    dm disk12       c1t12d0s2    sliced   1599     17910400 -
    dm disk13       c1t13d0s2    sliced   1599     17910400 -
    dm disk14       c1t14d0s2    sliced   1599     17910400 -
    dm disk15       c1t15d0s2    sliced   1599     17910400 -

    v  raid5vol     raid5        DISABLED ACTIVE   409600   RAID      -
    pl raid5vol-01  raid5vol     DISABLED ACTIVE   409600   RAID      2/32     RW
    sd disk12-01    raid5vol-01  disk12   0        409600   0/0       c1t12d0  ENA
    sd disk13-01    raid5vol-01  disk13   0        409600   1/0       c1t13d0  ENA
    pl raid5vol-02  raid5vol     DISABLED LOG      1600     CONCAT    -        RW
    sd disk14-01    raid5vol-02  disk14   0        1600     0         c1t14d0  ENA
    pl raid5vol-03  raid5vol     DISABLED LOG      1600     CONCAT    -        RW
    sd disk15-01    raid5vol-03  disk15   0        1600     0         c1t15d0  ENA

Now the volume can be started:

    vxvol start raid5vol
    v  raid5vol     raid5        ENABLED  ACTIVE   409600   RAID      -
    pl raid5vol-01  raid5vol     ENABLED  ACTIVE   409600   RAID      2/32     RW
    sd disk12-01    raid5vol-01  disk12   0        409600   0/0       c1t12d0  ENA
    sd disk13-01    raid5vol-01  disk13   0        409600   1/0       c1t13d0  ENA
    pl raid5vol-02  raid5vol     ENABLED  LOG      1600     CONCAT    -        RW
    sd disk14-01    raid5vol-02  disk14   0        1600     0         c1t14d0  ENA
    pl raid5vol-03  raid5vol     ENABLED  LOG      1600     CONCAT    -        RW
    sd disk15-01    raid5vol-03  disk15   0        1600     0         c1t15d0  ENA
Note: You may need to verify that there are no PIDs accessing the file systems associated to the disk group that is disabled.  If there are processes that are still pending on these volumes, you may need to stop or kill the PIDs or, if using Solaris 8 and either ufs files system or VxFS 3.4+patch02, force umount the file systems. Refer to the Man page for umount.

    Related Documents:
    240253
    : VERITAS Volume Manager 3.2 Administrator's Guide (Solaris)

    http://support.veritas.com/docs/240253


    Products Applied:
    Volume Manager for UNIX/Linux 3.0 (Solaris), 3.0.1 (Solaris), 3.0.2 (Solaris), 3.0.3 (Solaris), 3.0.4 (Solaris), 3.0.4+P05 (Solaris), 3.1 (Solaris), 3.1.1(Solaris), 3.2 (Solaris), 3.2.2.0 (AIX)
    Last Updated: January 04 2002 09:46 PM GMT
    Expires on: 365 days from publish date


    Subscribe to this document


    Subjects:
    Volume Manager for UNIX/Linux
       Application: Configuration, Device Management, Documentation, How To, Informational
    Languages:
    English (US)
    Operating Systems:
    Solaris
    2.5.1, 2.6, 7.0 (32-bit), 8.0 (32-bit)


    本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/43/showart_274438.html
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则 发表回复

      

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

    清除 Cookies - ChinaUnix - Archiver - WAP - TOP