Veritas Volume Manager (VxVM) cheatsheet

ComputerCarriage > Posts > Commands > Veritas Volume Manager (VxVM) cheatsheet
VxVM cheatsheet

Introduction

VxVM cheatsheet

Veritas Volume Manager (VxVM) enables us to manage physical drives as logical devices. Applications and the operating system see a veritas disk/volume as a physical disc with configurable file systems, databases, and other managed data objects.

For computer and Storage Area Network (SAN) systems, VxVM offers simple online disc storage management. In order to boost I/O throughput and safeguard against hardware failure, VxVM can be configured to support the Redundant Array of Independent Disks (RAID) concept. Moreover, VxVM has capabilities that improve disc failure quick recovery and fault tolerance.

By offering a logical volume management layer, VxVM gets around the physical limitations imposed by hardware disc devices. Volumes can now span several discs thanks to this.

VxVM offers the resources needed to boost efficiency and guarantee the availability and integrity of data. While the system is running, you can utilise VxVM to dynamically configure disc storage.

Veritas Volume Manger cheat sheet

In this blog we are going to see VxVM commands cheatsheet, this may help you find all commands in a single page

Create Volume:

# vxassist -g <diskgroup> make <volname> <size>

Example:

# vxassist -g mydg make myvol 10g

Create Subdisk:

# vxassist -g <diskgroup> makesd <subdiskname> <diskname>

Example:

# vxassist -g mydg makesd mysubdisk c1t1d0

Create Volume Layout:

# vxassist -g <diskgroup> make <volname> layout=<layout> <subdisk1> <subdisk2> <subdisk3>

Example:

vxassist -g mydg make myvol layout=raid5 mysubdisk1 mysubdisk2 mysubdisk3

Create Mirrored Volume:

# vxassist -g <diskgroup> make <volname> layout=mirror <subdisk1> <subdisk2>

Example:

vxassist -g mydg make myvol layout=mirror mysubdisk1 mysubdisk2

Create Striped Volume:

# vxassist -g <diskgroup> make <volname> layout=stripe <subdisk1> <subdisk2>

Example:

vxassist -g mydg make myvol layout=stripe mysubdisk1 mysubdisk2

Create Volume with Multiple Subdisks:

# vxassist -g <diskgroup> make <volname> layout=<layout> <subdisk1> <subdisk2> <subdisk3> <subdisk4>

Example:

vxassist -g mydg make myvol layout=raid5 mysubdisk1 mysubdisk2 mysubdisk3 mysubdisk4

Create Volume with Multiple Stripes:

# vxassist -g <diskgroup> make <volname> layout=stripe stripe=<number> <subdisk1> <subdisk2>

Example:

vxassist -g mydg make myvol layout=stripe stripe=3 mysubdisk1 mysubdisk2

Create Volume with Multiple Mirrors:

# vxassist -g <diskgroup> make <volname> layout=mirror mirror=<number> <subdisk1> <subdisk2>

Example:

vxassist -g mydg make myvol layout=mirror mirror=2 mysubdisk1 mysubdisk2

Create Volume with Concatenation:

# vxassist -g <diskgroup> make <volname> layout=concat <subdisk1> <subdisk2>

Example:

vxassist -g mydg make myvol layout=concat mysubdisk1 mysubdisk2

Create Volume with RAID-1+0:

# vxassist -g <diskgroup> make <volname> layout=raid10 <subdisk1> <subdisk2> <subdisk3> <subdisk4>

Example:

vxassist -g mydg make myvol layout=raid10 mysubdisk1 mysubdisk2 mysubdisk3 mydisk5>

Example:

vxassist -g mydg make myvol layout=raid60 mysubdisk1 mysubdisk2 mysubdisk3 mysubdisk4 mysubdisk5 mysubdisk6

Add Subdisk to Volume:

# vxassist -g <diskgroup> add <volname> <subdiskname

Example:

vxassist -g mydg add myvol mysubdisk4

Remove Subdisk from Volume:

# vxassist -g <diskgroup> remove <volname> <subdiskname>

Example:

vxassvol -g mydg remove myvol mysubdisk4

Expand Volume:

# vxassist -g <diskgroup> expand <volname> <size>

Example:

vxassist -g mydg expand myvol 20g

Reduce Volume:

# vxassist -g <diskgroup> reduce <volname> <size

Example:

vxassist -g mydg reduce myvol 10g

Rename Volume:

# vxassist -g <diskgroup> rename <oldvolname> <newvolname>

Example:

vxassist -g mydg rename myvol mynewvol

Delete Volume:

# vxassist -g <diskgroup> rm <volname>

Example:

vxassist -g mydg rm myvol

Conclusion

Hope this cheatsheet will help you in Veritas Volume manager commands, Let us know your views and comments,

Also read the below topics

VxVM Wiki – https://en.wikipedia.org/wiki/Veritas_Volume_Manager

VxVM Official site – https://www.veritas.com/support/en_US/doc/52074765-52074945-0/index

Multipass – http://Multipass Installer for Mac/Linux

Troubleshooting commands in Linux – https://computercarriage.com/2023/02/16/troubleshooting-commands-in-linux/

Knowledge Base – https://sort.veritas.com/documents

LVM Filesystem creation in Linux – https://computercarriage.com/2020/06/07/lvm-filesystem-creation-in-linux/

About Author

One thought on “Veritas Volume Manager (VxVM) cheatsheet

Leave a Reply

%d bloggers like this: