免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: 滑翔的蜗牛
打印 上一主题 下一主题

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

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

Controlling the progress of a relayout

You can use the vxtask command to stop (pause) the relayout temporarily, or to
cancel it altogether (abort). If you specified a task tag to vxassist when you
started the relayout, you can use this tag to specify the task to vxtask. For example,
to pause the relayout operation tagged as myconv, enter:
#  vxtask  pause  myconv
To resume the operation, use the vxtask command:
#  vxtask  resume  myconv
For relayout operations that have not been stopped using the vxtask  pause
command (for example, the vxtask  abort command was used to stop the task,
the transformation process died, or there was an I/O failure), resume the relayout
by specifying the start keyword to vxrelayout, as shown here:
#  vxrelayout  -g  mydg  -o  bg  start  vol04
If you use the vxrelayout  start command to restart a relayout that you previously
suspended using the vxtask  pause command, a new untagged task is created to
complete the operation. You cannot then use the original task tag to control the
relayout.
The -o  bg option restarts the relayout in the background. You can also specify
the slow and iosize option modifiers to control the speed of the relayout and the
size of each region that is copied. For example, the following command inserts a
delay of 1000 milliseconds (1 second) between copying each 10-megabyte region:
#  vxrelayout  -g  mydg  -o  bg,slow=1000,iosize=10m  start  vol04
The default delay and region size values are 250 milliseconds and 1 megabyte
respectively.
To reverse the direction of relayout operation that is currently stopped, specify
the reverse keyword to vxrelayout as shown in this example:
#  vxrelayout  -g  mydg  -o  bg  reverse  vol04

This undoes changes made to the volume so far, and returns it to its original
layout.
If you cancel a relayout using vxtask  abort, the direction of the conversion is
also reversed, and the volume is returned to its original configuration.
See “Managing tasks with vxtask” on page 324.
See the vxrelayout(1M) manual page.
See the vxtask(1M) manual page.

论坛徽章:
0
12 [报告]
发表于 2010-01-15 09:36 |只看该作者
扩展前后对比:

扩展前:
#vxprint -g datadg datavol
TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
v  datavol      fsgen        ENABLED  104857600 -       ACTIVE   -       -
pl datavol-01   datavol      ENABLED  104857600 -       ACTIVE   -       -
sd datadg01-02  datavol-01   ENABLED  52428800 0        -        -       -
sd datadg02-02  datavol-01   ENABLED  52428800 0        -        -       -

# vxdg -g datadg free
DISK         DEVICE       TAG          OFFSET    LENGTH    FLAGS
datadg01     sdb          sdb          178257920 31358720  -
datadg02     sdc          sdc          178257920 31358720  -
datadg03     sdd          sdd          0         209616640 -

扩展后:
##vxprint -g datadg datavol
Disk group: datadg
TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
v  datavol      fsgen        ENABLED  104857600 -       ACTIVE   -       -
pl datavol-01   datavol      ENABLED  104857728 -       ACTIVE   -       -
sd datadg01-14  datavol-01   ENABLED  34952576 0        -        -       -
sd datadg02-13  datavol-01   ENABLED  34952576 0        -        -       -
sd datadg03-03  datavol-01   ENABLED  34952576 0        -        -       -

# vxdg -g datadg free
DISK         DEVICE       TAG          OFFSET    LENGTH    FLAGS
datadg01     sdb          sdb          55924096  17476224  -
datadg01     sdb          sdb          178257920 31358720  -
datadg02     sdc          sdc          55924096  17476224  -
datadg02     sdc          sdc          178257920 31358720  -
datadg03     sdd          sdd          34952576  174664064 -
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP