免费注册 查看新帖 |

Chinaunix

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

请问条带化的卷如何扩展到新加入的磁盘上? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-14 11:40 |只看该作者 |倒序浏览
采用的是VxVM进行卷管理\r\n \r\n建立了DG datadg \r\n# vxdg init datadg datadg01=sdb\r\n# vxdg -g datadg adddisk datadg02=sdc\r\n\r\n#vxassist -g datadg make datavol 50g layout=stripe datadg01 datadg02\r\n\r\n建立datavol,采用了软条带,建立在datadg01 datadg02\r\n\r\n现在又新增加了一个磁盘,加入到datadg中\r\n#vxdg -g datadg adddisk datadg03=sdd\r\n\r\n请问是否能将datavol卷的条带化扩展到datadg03中? 怎么样操作?\n\n[ 本帖最后由 滑翔的蜗牛 于 2010-1-14 12:00 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2010-01-14 13:41 |只看该作者
没有人知道吗?

论坛徽章:
0
3 [报告]
发表于 2010-01-14 14:00 |只看该作者

回复 #3 wolfheader 的帖子

应该是可以的,我也正在查资料,如果这有TX会,就更方便了 \r\n\r\n现在的情况是这样的\r\nvxprint datavol\r\nDisk group: datadg\r\n\r\nTY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0\r\nv  datavol      fsgen        ENABLED  104857600 -       ACTIVE   -       -\r\npl datavol-01   datavol      ENABLED  104857600 -       ACTIVE   -       -\r\nsd datadg01-02  datavol-01   ENABLED  52428800 0        -        -       -\r\nsd datadg02-02  datavol-01   ENABLED  52428800 0        -        -       -\r\n\r\n要达到的目的是,在不破坏原有数据的情况下,将datavol条带扩展到datadg03上

论坛徽章:
1
CU十二周年纪念徽章
日期:2013-10-24 15:41:34
4 [报告]
发表于 2010-01-14 14:01 |只看该作者
vxassist -g datadg relayout datavol ncol=+1 alloc=datadg03

论坛徽章:
0
5 [报告]
发表于 2010-01-14 14:21 |只看该作者
找到资料了,贴上来一起分享\r\nPerforming online relayout\r\nYou can use the vxassist  relayout command to reconfigure the layout of a\r\nvolume without taking it offline. The general form of this command is:\r\n#  vxassist  [-b]  [-g  diskgroup]  relayout  volume  [layout=layout]  \\\r\n[relayout_options]\r\nIf specified, the -b option makes relayout of the volume a background task.\r\nThe following destination layout configurations are supported.\r\nconcat-mirror   concatenated-mirror\r\nconcat            concatenated\r\nnomirror          concatenated\r\nnostripe          concatenated\r\nraid5              RAID-5 (not supported for shared disk groups)\r\nspan              concatenated\r\nstripe             striped

论坛徽章:
0
6 [报告]
发表于 2010-01-14 14:24 |只看该作者
继续\r\n\r\nSpecifying a non-default layout\r\nYou can specify one or more relayout options to change the default layout\r\nconfiguration. The following are examples of using these options:\r\nncol=number      Specifies the number of columns.\r\nncol=+number    Specifies the number of columns to add.\r\nncol=-number    Specifies the number of colums to remove.\r\nstripeunit=size   Specifies the stripe width.\r\n\r\nSee the vxassist(1M) manual page.\r\nThe following are some examples of using vxassist to change the stripe width and\r\nnumber of columns for a striped volume in the disk group dbaseg:\r\n#  vxassist  -g  dbaseg  relayout  vol03  stripeunit=64k  ncol=6\r\n#  vxassist  -g  dbaseg  relayout  vol03  ncol=+2\r\n#  vxassist  -g  dbaseg  relayout  vol03  stripeunit=128k\r\nThe next example changes a concatenated volume to a RAID-5 volume with four\r\ncolumns:\r\n#  vxassist  -g  fsgrp  relayout  vol04  layout=raid5  ncol=4

论坛徽章:
0
7 [报告]
发表于 2010-01-14 14:30 |只看该作者

完成50%了

#vxrelayout -g datadg status datavol\r\n STRIPED,  columns=2,  stwidth=128 -->  STRIPED,  columns=3,  stwidth=128 \r\n Relayout running,  50.00% completed.

论坛徽章:
0
8 [报告]
发表于 2010-01-14 14:32 |只看该作者

Viewing the status of a relayout

继续学习\r\n\r\nOnline relayout operations take some time to perform. You can use the vxrelayout\r\ncommand to obtain information about the status of a relayout operation. For\r\nexample, the command:\r\n#  vxrelayout  -g  mydg  status  vol04\r\nmight display output similar to this:\r\nSTRIPED,  columns=5,  stwidth=128-->  STRIPED,  columns=6,\r\nstwidth=128\r\nRelayout  running,  68.58%  completed.\r\nIn this example, the reconfiguration of a striped volume from 5 to 6 columns is\r\nin progress, and is just over two-thirds complete.\r\nSee the vxrelayout(1M) manual page.\r\n\r\nIf you specified a task tag to vxassist when you started the relayout, you can use\r\nthis tag with the vxtask command to monitor the progress of the relayout. For\r\nexample, to monitor the task tagged as myconv, enter:\r\n#  vxtask  monitor  myconv

论坛徽章:
0
9 [报告]
发表于 2010-01-15 09:36 |只看该作者
扩展前后对比:\r\n\r\n扩展前:\r\n#vxprint -g datadg datavol\r\nTY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0\r\nv  datavol      fsgen        ENABLED  104857600 -       ACTIVE   -       -\r\npl datavol-01   datavol      ENABLED  104857600 -       ACTIVE   -       -\r\nsd datadg01-02  datavol-01   ENABLED  52428800 0        -        -       -\r\nsd datadg02-02  datavol-01   ENABLED  52428800 0        -        -       -\r\n\r\n# vxdg -g datadg free\r\nDISK         DEVICE       TAG          OFFSET    LENGTH    FLAGS\r\ndatadg01     sdb          sdb          178257920 31358720  -\r\ndatadg02     sdc          sdc          178257920 31358720  -\r\ndatadg03     sdd          sdd          0         209616640 -\r\n\r\n扩展后:\r\n##vxprint -g datadg datavol\r\nDisk group: datadg\r\nTY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0\r\nv  datavol      fsgen        ENABLED  104857600 -       ACTIVE   -       -\r\npl datavol-01   datavol      ENABLED  104857728 -       ACTIVE   -       -\r\nsd datadg01-14  datavol-01   ENABLED  34952576 0        -        -       -\r\nsd datadg02-13  datavol-01   ENABLED  34952576 0        -        -       -\r\nsd datadg03-03  datavol-01   ENABLED  34952576 0        -        -       -\r\n\r\n# vxdg -g datadg free\r\nDISK         DEVICE       TAG          OFFSET    LENGTH    FLAGS\r\ndatadg01     sdb          sdb          55924096  17476224  -\r\ndatadg01     sdb          sdb          178257920 31358720  -\r\ndatadg02     sdc          sdc          55924096  17476224  -\r\ndatadg02     sdc          sdc          178257920 31358720  -\r\ndatadg03     sdd          sdd          34952576  174664064 -
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP