- 论坛徽章:
- 0
|
下面的命令是用来创建SV的:
# vxmake -g <dg-name> sd <subdisk-name> <sub-volume-name>,0,<length>
使用指定的磁盘来创建plex,并且指定layout和其他的属性:
# vxmake -g <dg-name> plex <plex-name> layout=<layout-type> stwidth=<unit-size> sd=<subdisk-name#1>[,<subdisk-name#2,...]
举例说明:
在下面这个例子中, a磁盘组"scottdg" 存在着 2-列有问题的 stripe-mirror 卷 ( stripe-pro )
创建 "sv" 的命令语法:
创建了2个目标SV联结的子卷,比如:其中的一个子卷的大小 "stripey-L01"的大小是3145728 sectors.
# vxmake -g scottdg sd stripey-S01 stripey-L01,0,3145728
# vxmake -g scottdg sd stripey-S02 stripey-L02,0,3145728
下面的命令显示已经在磁盘组"scottdg"中存在的子磁盘。
下面的命令是用来创建"plex"
下面的例子中 plex "stripey-03" 有2个子磁盘, "stripey-S01" 和 "stripey-S02", 条带单元的大小是128k.
挂接的语法命令:
# vxplex -g <dg-name> att <volume-name> <plex-name>
下面的命令是挂接 plex "stripey-03" 到卷 "stripey"
# vxplex -g scottdg att stripey stripey-03
vxprint 的输出显示已经挂接成功
一旦plex挂接成功就需要重新启动卷:
# vxvol -g scottdg start stripey
# vxvol -g scottdg start stripey-L01
# vxvol -g scottdg start stripey-L02
现在所有的卷的状态都显示为 "ENABLED ACTIVE", th文件系统也可以进行mount了。( 比如mount到/scott ).
# mount -F vxfs /dev/vx/dsk/scottdg/stripey /scott
英文原版地址:http://support.veritas.com/docs/240963 |
|