| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1576 人关注过本帖
标题:大佬们求解!!!
只看楼主 加入收藏
田旭
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2018-11-2
收藏
 问题点数:0 回复次数:0 
大佬们求解!!!
一道编程小练习,镜像关系检查
输入数据如附件,样例如下
练习题(1).rar (2.59 KB)

lv_edb20adata            vg_edb20adata rwi---r--- 549.98g                                                     lv_edb20adata_rimage_0(0),lv_edb20adata_rimage_1(0)

  [lv_edb20adata_rimage_0] vg_edb20adata Iwi---r--- 549.98g                                                     /dev/sdr(1)                                       

  [lv_edb20adata_rimage_0] vg_edb20adata Iwi---r--- 549.98g                                                     /dev/sds(0)                                       

  [lv_edb20adata_rimage_0] vg_edb20adata Iwi---r--- 549.98g                                                     /dev/sdv(0)                                       

  [lv_edb20adata_rimage_0] vg_edb20adata Iwi---r--- 549.98g                                                     /dev/sdw(0)                                       

  [lv_edb20adata_rimage_0] vg_edb20adata Iwi---r--- 549.98g                                                     /dev/sdae(0)                                       

  [lv_edb20adata_rimage_1] vg_edb20adata Iwi---r--- 549.98g                                                     /dev/sdal(1)                                      

  [lv_edb20adata_rimage_1] vg_edb20adata Iwi---r--- 549.98g                                                     /dev/sdm(0)                                       

  [lv_edb20adata_rimage_1] vg_edb20adata Iwi---r--- 549.98g                                                     /dev/sdn(0)                                       

  [lv_edb20adata_rimage_1] vg_edb20adata Iwi---r--- 549.98g                                                     /dev/sdo(0)                                       

  [lv_edb20adata_rimage_1] vg_edb20adata Iwi---r--- 549.98g                                                     /dev/sdad(0)                                      

  [lv_edb20adata_rmeta_0]  vg_edb20adata ewi---r---   4.00m                                                     /dev/sdr(0)                                       

  [lv_edb20adata_rmeta_1]  vg_edb20adata ewi---r---   4.00m                                                     /dev/sdal(0)                                      

 

请确认 “lvs -a -o +devices”输出的所有lv_xxxx 下rimage, rmeta 配置,属于分别属于不同盘阵,比如lv_edb20adata_rmeta_0 ,lv_edb20adata_rmeta_1 所属的/dev/sdr 与/dev/sdal 属于不同的磁盘阵列,rimage_0 与rimage_1 所涉及的磁盘不属于同一磁盘阵列,若否报异常,并返回错误的配置信息。其中,sdr 或者sdal的盘阵信息由如下信息获得


 

----------------------------------------------------------------------------------------------------------------------------------------------------

Vlun ID      Disk                   Name                           Lun WWN               Status Capacity Ctrl(Own/Work)   Array Name   Dev Lun ID

    0         sdd         TR730G69_TR730T69_lundata0    69ce3741006a6e7ff0834ba800000244  Normal 100.00GB       0A/0A     huawei-5800h      580   

    1         sde         TR730G69_TR730T69_lundata1    69ce3741006a6e7ff0834bd300000245  Normal 100.00GB       0B/0B     huawei-5800h      581   

    2         sdh         TR730G69_TR730T69_lundata2    69ce3741006a6e7ff0834c0800000246  Normal 100.00GB       0A/0A     huawei-5800h      582   

    3         sdi         TR730G69_TR730T69_lundata3    69ce3741006a6e7ff0834c3e00000247  Normal 100.00GB       0B/0B     huawei-5800h      583   

    4         sdm         TR730G69_TR730T69_lundata4    69ce3741006a6e7ff0834c6c00000248  Normal 100.00GB       0A/0A     huawei-5800h      584   

    5         sdn         TR730G69_TR730T69_lundata5    69ce3741006a6e7ff0834cb100000249  Normal 100.00GB       0B/0B     huawei-5800h      585   

    6         sdo         TR730G69_TR730T69_lundata6    69ce3741006a6e7ff0834ce70000024a  Normal 100.00GB       0A/0A     huawei-5800h      586   

    7         sdad        TR730G69_TR730T69_lundata7    69ce3741006a6e7ff0834d0e0000024b  Normal 100.00GB       0B/0B     huawei-5800h      587   

    8         sdaf      TR730G69_TR730T69_lunxlogarch0  69ce3741006a6e7ff0834d3c0000024c  Normal 100.00GB       0A/0A     huawei-5800h      588   

    9         sdag      TR730G69_TR730T69_lunxlogarch1  69ce3741006a6e7ff0834d710000024d  Normal 100.00GB       0B/0B     huawei-5800h      589   

   10         sdah      TR730G69_TR730T69_lunxlogarch2  69ce3741006a6e7ff0834da90000024e  Normal 100.00GB       0A/0A     huawei-5800h      590   

   11         sdai      TR730G69_TR730T69_lunxlogarch3  69ce3741006a6e7ff0834dd20000024f  Normal 100.00GB       0B/0B     huawei-5800h      591   

   12         sdaj      TR730G69_TR730T69_lunxlogarch4  69ce3741006a6e7ff0834e0b00000250  Normal 100.00GB       0A/0A     huawei-5800h      592   

   13         sdak      TR730G69_TR730T69_lunxlogarch5  69ce3741006a6e7ff0834e3700000251  Normal 100.00GB       0B/0B     huawei-5800h      593   

   14         sdp         tr730g69_tr730t69_lundata0    604fe8d100f438dd6bea5ce8000001b1  Normal 100.00GB       0B/0B     huawei-5800g      433   

   15         sdq         tr730g69_tr730t69_lundata1    604fe8d100f438dd6bea6929000001b2  Normal 100.00GB       0A/0A     huawei-5800g      434   

   16         sdr         tr730g69_tr730t69_lundata2    604fe8d100f438dd6bea7503000001b3  Normal 100.00GB       0B/0B     huawei-5800g      435   

   17         sds         tr730g69_tr730t69_lundata3    604fe8d100f438dd6bea80f7000001b4  Normal 100.00GB       0A/0A     huawei-5800g      436   

   18         sdt         tr730g69_tr730t69_lundata4    604fe8d100f438dd6bea8cd8000001b5  Normal 100.00GB       0B/0B     huawei-5800g      437   

   19         sdu         tr730g69_tr730t69_lundata5    604fe8d100f438dd6bea98b2000001b6  Normal 100.00GB       0A/0A     huawei-5800g      438   

   20         sdv         tr730g69_tr730t69_lundata6    604fe8d100f438dd6beaa4b1000001b7  Normal 100.00GB       0B/0B     huawei-5800g      439   

   21         sdw         tr730g69_tr730t69_lundata7    604fe8d100f438dd6beab0e0000001b8  Normal 100.00GB       0A/0A     huawei-5800g      440   

   22         sdx       tr730g69_tr730t69_lunxlogarch0  604fe8d100f438dd6beabcd0000001b9  Normal 100.00GB       0B/0B     huawei-5800g      441   

   23         sdy       tr730g69_tr730t69_lunxlogarch1  604fe8d100f438dd6beac8c8000001ba  Normal 100.00GB       0A/0A     huawei-5800g      442   

   24         sdz       tr730g69_tr730t69_lunxlogarch2  604fe8d100f438dd6bead4ef000001bb  Normal 100.00GB       0B/0B     huawei-5800g      443   

   25         sdaa      tr730g69_tr730t69_lunxlogarch3  604fe8d100f438dd6beae0e9000001bc  Normal 100.00GB       0A/0A     huawei-5800g      444   

   26         sdab      tr730g69_tr730t69_lunxlogarch4  604fe8d100f438dd6beaef5c000001bd  Normal 100.00GB       0B/0B     huawei-5800g      445   

   27         sdac      tr730g69_tr730t69_lunxlogarch5  604fe8d100f438dd6beafb65000001be  Normal 100.00GB       0A/0A     huawei-5800g      446   

   28         sdal        TR730G69_TR730T69_lundata8    69ce3741006a6e7ff083bd1d00000252  Normal 150.00GB       0A/0A     huawei-5800h      594   

   29         sdae        tr730g69_tr730t69_lundata8    604fe8d100f438dd6332d53b00000169  Normal 150.00GB       0A/0A     huawei-5800g   
搜索更多相关主题的帖子: dev 属于 不同 磁盘 信息 
2018-11-02 17:18
快速回复:大佬们求解!!!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.032427 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved