As a high-end system-level disk/storage array solution, the Veritas VM is powerful and commands a lot. This article summarizes some of the CLI commands commonly used in the maintenance process to make it easy to use.
Resources:
VERITAS Volume Manager Command line Interface Administrator ' s Guide
Veritas Volume Manager Quick Start Classic tutorial
Common commands:
#Vxdisk管理字符驱动工具
Vxdiskadm
#查看存在的卷管理对象信息
Vxprint [-G <diskgroup>] [-hrt]
#列出所有磁盘
Vxdisk List
#查看某个diskgroup可用的空间
Vxdg-g <diskgroup> Free
#创建简单卷
Vxassist-g <diskgroup> u <usagetype> make <volume> <size>
Usagetype=fsgen (general); Gen (bare device)
#创建RAID0卷
Vxassist-g <diskgroup> u <usagetype> make <volume> <size> layout=<layouttype> stwidth=& lt;width> ncolumn=<#> <disk1> <disk2> <disk3> ...
Layouttype=stripe
stwidth,ncolumn,disk# can be omitted
#创建RAID1卷
Vxassist-g <diskgroup> u <usagetype> make <volume> <size> layout=<layouttype> nmirror=& Lt;#> <disk1> <disk2> <disk3>, ....
Layouttype=mirror-concat
Nmirror can be omitted, the default creation of 2 mirrors (including their own), disk# can be omitted
#为已有卷添加一个镜像
Vxassist-g <diskgroup> Mirror <volume>
#创建RAID0 + 1 Rolls
Vxassist-g <diskgroup> u <usagetype> make <volume> <size> layout=<layouttype> stwidth=& lt;width> ncolumn=<#> nmirror=<#> <disk1> <disk2> <disk3> ...
Layouttype=mirror-stripe
stwidth,ncolumn,nmirror,disk# can be omitted
#创建RAID5卷
Vxassist-g <diskgroup> u <usagetype> make <volume> <size> layout=<layouttype> <disk1 > <disk2> <disk3>, ....
Layout=raid5
#查看卷可扩最大容量
Vxassist-g <diskgroup> maxgrow <volume> [<disk1> <disk2> <disk3> ...]
disk# can be omitted;
List disk indicates the maximum capacity that can be reached only on the listed disk;
Not listed indicates the maximum capacity that can be achieved by occupying all the remaining space on the DiskGroup
#为volume增加/Reduced size
Vxassist-g <diskgroup> Growby/shrinkby <volume> <len_to_grow/shrink_by>
#将volume增加/reduce to a certain size
Vxassist-g <diskgroup> Growto/shrinkto <volume> <new_length>
(Continuous update)
My summary of common CLI commands for Veritas Volume Manager