My summary of common CLI commands for Veritas Volume Manager

Source: Internet
Author: User

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:

    1. VERITAS Volume Manager Command line Interface Administrator ' s Guide

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.