免费注册 查看新帖 |

Chinaunix

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

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

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-14 11:40 |只看该作者 |倒序浏览
采用的是VxVM进行卷管理

建立了DG datadg
# vxdg init datadg datadg01=sdb
# vxdg -g datadg adddisk datadg02=sdc

#vxassist -g datadg make datavol 50g layout=stripe datadg01 datadg02

建立datavol,采用了软条带,建立在datadg01 datadg02

现在又新增加了一个磁盘,加入到datadg中
#vxdg -g datadg adddisk datadg03=sdd

请问是否能将datavol卷的条带化扩展到datadg03中? 怎么样操作?

[ 本帖最后由 滑翔的蜗牛 于 2010-1-14 12:00 编辑 ]

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

论坛徽章:
0
3 [报告]
发表于 2010-01-14 13:51 |只看该作者
原帖由 滑翔的蜗牛 于 2010-1-14 13:41 发表
没有人知道吗?


我确定肯定可以扩进去DG,自动条带

现在的lv如果想跨三个disk不知道行不行,手册上好像看到过,但是我也只会简单的那些,懒得查


等无牙,他肯定会~

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

回复 #3 wolfheader 的帖子

应该是可以的,我也正在查资料,如果这有TX会,就更方便了

现在的情况是这样的
vxprint datavol
Disk group: datadg

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        -        -       -

要达到的目的是,在不破坏原有数据的情况下,将datavol条带扩展到datadg03上

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

论坛徽章:
0
6 [报告]
发表于 2010-01-14 14:07 |只看该作者
原帖由 无牙 于 2010-1-14 14:01 发表
vxassist -g datadg relayout datavol ncol=+1 alloc=datadg03


尝试执行了,等待结果……

论坛徽章:
0
7 [报告]
发表于 2010-01-14 14:21 |只看该作者
找到资料了,贴上来一起分享
Performing online relayout
You can use the vxassist  relayout command to reconfigure the layout of a
volume without taking it offline. The general form of this command is:
#  vxassist  [-b]  [-g  diskgroup]  relayout  volume  [layout=layout]  \
[relayout_options]
If specified, the -b option makes relayout of the volume a background task.
The following destination layout configurations are supported.
concat-mirror   concatenated-mirror
concat            concatenated
nomirror          concatenated
nostripe          concatenated
raid5              RAID-5 (not supported for shared disk groups)
span              concatenated
stripe             striped

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

Specifying a non-default layout
You can specify one or more relayout options to change the default layout
configuration. The following are examples of using these options:
ncol=number      Specifies the number of columns.
ncol=+number    Specifies the number of columns to add.
ncol=-number    Specifies the number of colums to remove.
stripeunit=size   Specifies the stripe width.

See the vxassist(1M) manual page.
The following are some examples of using vxassist to change the stripe width and
number of columns for a striped volume in the disk group dbaseg:
#  vxassist  -g  dbaseg  relayout  vol03  stripeunit=64k  ncol=6
#  vxassist  -g  dbaseg  relayout  vol03  ncol=+2
#  vxassist  -g  dbaseg  relayout  vol03  stripeunit=128k
The next example changes a concatenated volume to a RAID-5 volume with four
columns:
#  vxassist  -g  fsgrp  relayout  vol04  layout=raid5  ncol=4

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

完成50%了

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

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

Viewing the status of a relayout

继续学习

Online relayout operations take some time to perform. You can use the vxrelayout
command to obtain information about the status of a relayout operation. For
example, the command:
#  vxrelayout  -g  mydg  status  vol04
might display output similar to this:
STRIPED,  columns=5,  stwidth=128-->  STRIPED,  columns=6,
stwidth=128
Relayout  running,  68.58%  completed.
In this example, the reconfiguration of a striped volume from 5 to 6 columns is
in progress, and is just over two-thirds complete.
See the vxrelayout(1M) manual page.

If you specified a task tag to vxassist when you started the relayout, you can use
this tag with the vxtask command to monitor the progress of the relayout. For
example, to monitor the task tagged as myconv, enter:
#  vxtask  monitor  myconv
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP