免费注册 查看新帖 |

Chinaunix

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

vxprint -ht显示dm状态是failing,还有两个pl DETACHED IOFAIL怎么修复 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-06-18 11:39 |只看该作者 |倒序浏览
vxprint -ht显示dm状态是failing,还有两个pl DETACHED IOFAIL怎么修复


root # vxprint -ht
Disk group: ipasdg

DG NAME         NCONFIG      NLOG     MINORS   GROUP-ID
DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   STATE
RV NAME         RLINK_CNT    KSTATE   STATE    PRIMARY  DATAVOLS  SRL
RL NAME         RVG          KSTATE   STATE    REM_HOST REM_DG    REM_RLNK
V  NAME         RVG          KSTATE   STATE    LENGTH   READPOL   PREFPLEX UTYPE
PL NAME         VOLUME       KSTATE   STATE    LENGTH   LAYOUT    NCOL/WID MODE
SD NAME         PLEX         DISK     DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
SV NAME         PLEX         VOLNAME  NVOLLAYR LENGTH   [COL/]OFF AM/NM    MODE
DC NAME         PARENTVOL    LOGVOL
SP NAME         SNAPVOL      DCO

dg ipasdg       default      default  88000    1038460487.1126.jms-db1

dm ipasdg-01    fabric_0     sliced   28671    1000624128 FAILING
dm ipasdg-02    fabric_1     sliced   28671    1000624128 -

v  arch_vol     -            ENABLED  ACTIVE   125829120 SELECT   -        fsgen
pl arch_vol-01  arch_vol     ENABLED  ACTIVE   125841408 CONCAT   -        RW
sd ipasdg-01-05 arch_vol-01  ipasdg-01 419500032 125841408 0      fabric_0 ENA
pl arch_vol-02  arch_vol     ENABLED  ACTIVE   125841408 CONCAT   -        RW
sd ipasdg-02-07 arch_vol-02  ipasdg-02 587288576 125841408 0      fabric_1 ENA

v  backup_vol   -            ENABLED  ACTIVE   83886080 SELECT    -        fsgen
pl backup_vol-01 backup_vol  ENABLED  ACTIVE   83894272 CONCAT    -        RW
sd ipasdg-01-06 backup_vol-01 ipasdg-01 545341440 83894272 0      fabric_0 ENA
pl backup_vol-02 backup_vol  ENABLED  ACTIVE   83894272 CONCAT    -        RW
sd ipasdg-02-04 backup_vol-02 ipasdg-02 398512128 83894272 0      fabric_1 ENA

v  db02_vol     -            ENABLED  ACTIVE   167772160 SELECT   -        fsgen
pl db02_vol-01  db02_vol     DETACHED IOFAIL   167788544 CONCAT   -        RW
sd ipasdg-01-02 db02_vol-01  ipasdg-01 209735680 167788544 0      fabric_0 RLOC
pl db02_vol-02  db02_vol     ENABLED  ACTIVE   167788544 CONCAT   -        RW
sd ipasdg-02-02 db02_vol-02  ipasdg-02 209735680 167788544 0      fabric_1 ENA

v  db03_vol     -            ENABLED  ACTIVE   20971520 SELECT    -        fsgen
pl db03_vol-01  db03_vol     ENABLED  ACTIVE   20987904 CONCAT    -        RW
sd ipasdg-01-03 db03_vol-01  ipasdg-01 377524224 20987904 0       fabric_0 ENA
pl db03_vol-02  db03_vol     ENABLED  ACTIVE   20987904 CONCAT    -        RW
sd ipasdg-02-03 db03_vol-02  ipasdg-02 377524224 20987904 0       fabric_1 ENA

v  db04_vol     -            ENABLED  ACTIVE   20971520 SELECT    -        fsgen
pl db04_vol-01  db04_vol     ENABLED  ACTIVE   20987904 CONCAT    -        RW
sd ipasdg-01-04 db04_vol-01  ipasdg-01 398512128 20987904 0       fabric_0 ENA
pl db04_vol-02  db04_vol     ENABLED  ACTIVE   20987904 CONCAT    -        RW
sd ipasdg-02-05 db04_vol-02  ipasdg-02 482406400 20987904 0       fabric_1 ENA

v  nms_vol      -            ENABLED  ACTIVE   83886080 SELECT    -        fsgen
pl nms_vol-01   nms_vol      ENABLED  ACTIVE   83894272 CONCAT    -        RW
sd ipasdg-01-07 nms_vol-01   ipasdg-01 629235712 83894272 0       fabric_0 ENA
pl nms_vol-02   nms_vol      ENABLED  ACTIVE   83894272 CONCAT    -        RW
sd ipasdg-02-06 nms_vol-02   ipasdg-02 503394304 83894272 0       fabric_1 ENA

v  wacos_vol    -            ENABLED  ACTIVE   209715200 SELECT   -        fsgen
pl wacos_vol-01 wacos_vol    DETACHED IOFAIL   209735680 CONCAT   -        RW
sd ipasdg-01-01 wacos_vol-01 ipasdg-01 0       209735680 0        fabric_0 RLOC
pl wacos_vol-02 wacos_vol    ENABLED  ACTIVE   209735680 CONCAT   -        RW
sd ipasdg-02-01 wacos_vol-02 ipasdg-02 0       209735680 0        fabric_1 ENA


论坛徽章:
0
2 [报告]
发表于 2012-06-18 14:16 |只看该作者
IOFAIL plex 状态与持久性状态记录相关联。如果 vxconfigd 后台驻留程序在 ACTIVE
plex 上检测到无法纠正的 I/O 故障,它会将该 plex 置于 IOFAIL 状态,以便在卷启动时将
其排除在恢复选择进程之外。
该状态表明 plex 相对于卷已过期,要求进行完全恢复。很可能应该替换与 plex 关联的一
个或多个磁盘。
应该是ipasdg-01 这个磁盘有坏道了,导致有些plex无法访问了。最好更换吧。
你可以用format工具的analyse->read工具测试下磁盘是否可以正常读。如果读的过程中被中断,可以肯定有坏道了。

论坛徽章:
0
3 [报告]
发表于 2012-06-18 14:30 |只看该作者
hanchaohang 发表于 2012-06-18 14:16
IOFAIL plex 状态与持久性状态记录相关联。如果 vxconfigd 后台驻留程序在 ACTIVE
plex 上检测到无法纠正的 ...



这个卷是一台T3阵列,阵列的vol都是正常的。

我用的是vxvm3.2,是不是可以用以下命令修复?
vxedit -g ipasdg set failing=off ipasdg-01
vxplex -g ipasdg att db02_vol db02_vol-01

论坛徽章:
0
4 [报告]
发表于 2012-06-18 14:34 |只看该作者
哦。带控制器的磁阵啊。链路的闪断也可能造成磁盘状态时failing。

可以尝试下,因为你的这些卷基本有两个plex,相等于做了raid 1,所以卷状态都正常。

论坛徽章:
0
5 [报告]
发表于 2012-06-18 14:52 |只看该作者
hanchaohang 发表于 2012-06-18 14:34
哦。带控制器的磁阵啊。链路的闪断也可能造成磁盘状态时failing。

可以尝试下,因为你的这些卷基本有两个 ...



pl DETACHED IOFAIL状态可以直接attach吗?我的那两个命令有没有问题?还有没有需要补充的?

论坛徽章:
0
6 [报告]
发表于 2012-06-18 15:48 |只看该作者
没事,你这些命令对系统的影响都不大,如果操作不能正常进行,就会有输出。

论坛徽章:
20
申猴
日期:2013-09-12 19:39:05狮子座
日期:2014-07-20 21:19:51寅虎
日期:2014-08-16 18:37:47水瓶座
日期:2014-10-15 18:58:25天蝎座
日期:2015-01-22 18:19:15NBA常规赛纪念章
日期:2015-05-04 22:32:032015亚冠之胡齐斯坦钢铁
日期:2015-06-03 11:28:502015亚冠之吉达阿赫利
日期:2015-09-19 12:41:47午马
日期:2013-09-18 14:36:40戌狗
日期:2013-09-18 14:44:39处女座
日期:2013-09-24 17:46:41CU十二周年纪念徽章
日期:2013-10-24 15:41:34
7 [报告]
发表于 2012-06-19 11:44 |只看该作者
vxprint的输出太难看了。

论坛徽章:
0
8 [报告]
发表于 2012-06-19 12:12 |只看该作者
znnnz 发表于 2012-06-19 11:44
vxprint的输出太难看了。



怎么了??太难看是什么意思?

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
9 [报告]
发表于 2012-06-19 16:08 |只看该作者
可以用下面命令修改:
vxmend fix empty plex
vxmend fix clean plex
vxmend fix active plex
vxplex (-f) att vol plex

论坛徽章:
0
10 [报告]
发表于 2012-06-20 09:13 |只看该作者
东方蜘蛛 发表于 2012-06-19 16:08
可以用下面命令修改:
vxmend fix empty plex
vxmend fix clean plex


蜘蛛大侠,非常感谢您的支持。
我用的是VxVM 3.2,会不会有些不同版本的命令不一样?查了man手册,对部分命令还有一些疑问,盼解答。

1、手册中提到vxmend fix都需要“The associated volume must  be disabled”,我的vol现在都是enable状态,而且业务暂时也不能停;
2、手册中只有vxmend fix empty volume,没有vxmend fix empty plex


fix       The fsgen and gen usage types support the  follow-
               ing vxmend fix operations:

               vxmend fix active plex
                         Sets the state for  the  named  plex  to
                         ACTIVE.  The state for the volume is set
                         to SYNC.  The associated volume must  be
                         disabled,  and the named plex must be in
                         the STALE state.

                         When  starting  a  volume  in  the  SYNC
                         state, all ACTIVE plexes are enabled and
                         are synchronized to have the  same  con-
                         tents  using  a  special read/write-back
                         recovery mode.   Any  STALE  plexes  are
                         then  recovered by copying data from the
                         ACTIVE plexes.

               vxmend fix clean plex  
                       Sets the state for  the  named  plex  to
                         CLEAN.   The  associated  volume must be
                         disabled
, the named plex must be in  the
                         STALE state, and the volume must have no
                         additional plexes in the CLEAN state.

                         A volume is not startable if one plex is
                         in  the  CLEAN state and some plexes are
                         in  the  ACTIVE  state.   Thus,  several
                         vxmend  fix operations are normally used
                         in conjunction to set all  plexes  in  a
                         volume to STALE and then to set one plex
                         to CLEAN.  A volume start operation will
                         then  enable  the CLEAN plex and recover
                         the STALE plexes by  copying  data  from
                         the one CLEAN plex.

               vxmend fix empty volume  
                       Sets the named volume  and  all  of  its

VxVM 3.2            Last change: 31 Jul 2001                    5

Maintenance Commands                                   vxmend(1M)

                         associated  plexes  to  the EMPTY state.
                         The volume can  then  be  re-initialized
                         using  vxvol  start  or any of the vxvol
                         init   operations.     This    operation
                         requires that the volume be disabled.

               vxmend fix stale plex
                         Sets the state for  the  named  plex  to
                         STALE.   The  associated  volume must be
                         disabled, and the  named  plex  must  be
                         ACTIVE  or  CLEAN.  This operation names
                         plexes that will be recovered by copying
                         data  from other plexes by a vxvol start
                         operation.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP