DISPLAY and MONITORING
List all disks used by Veritas (VX).
Display detailed information about a
single disk, including mutlipathing
information, size, type, Vx version,
Display report style information about
the current status of all Vx componants,
including disks, subdisks, plexes, and
Display report style information about
the current status of ONLY the componant
you request. So for instance,
"vxprint vol01" shows information about
all subcomponants of vol01. This works
for plexes, disk groups, etc.
Display detailed information about all
Vx componanats, including stwdith,
ncolumns, offsets, layout type, read-
policy, and more. This is best for
a true picture of your configuration.
Display listing and state information
of all Disk Groups.
Display detailed information about
a diskgroup, including flags, version,
logs status, etc.
Display volume status and volume type.
By default, only displays "rootdg",
to display a diffrent Disk Group,
use "vxinfo -g
This command will output the maximum size
the volume specified can increased by,
specified in sectors.
DISK TASKS and COMMANDS
Adds a disk to Vx by Initializing and Encapsolating
it. Specified by its device name (ex: c0t1d0s2).
NOTE: You’ll need to reboot to finalize the
This command, can also be used to add a disk to
a specified disk group. Just follow the prompts.
No reboots needed for changing DG’s.
Rename a Vx disk. Ex: "vxedit rename disk01 disk05"
vxedit set reserve=on
Sets the "reserve" flag to a Vx disk. This
is used to keep specific disks from being
accidentally, or generally used.
Used to "offline" a disk. The disk should
be removed from its diskgroup before being
Used to remove disks from Vx control completely.
Ex: "vxdisk rm c0t1d0s2" Make sure to
removed the disk from its diskgroup, and offline
the disk before removing it.
vxedit set spare=on
Sets the "spare" flag to a Vx disk. This is used
to make the specified disk a hot spare, which
is then added to the "hot spare pool".
vxedit set spare=off
Same as above but removes the disk from the
"hot spare pool".
DISK GROUPS and COMMANDS
Creates a new disk group, and assigns the naming
scheme to the first disk added to the group.
ex: "vxdg init newdg newdg01=c0t10d0s2".
NOTE: This is kinda tricky because the disk that
you’re adding can’t be a member of ANY DG, but
must be initialized. It’s easier to use
"vxdiskadd", and add the disk to a newdg by
specifying a new DG name for the DG field.
Disabled a diskgroup, but doesn’t remove it. Often
used as an organized pool of disk to realocate, and
to moved DG’s from one system to another.
Reverse of above. Enables local access to the specified
Use this to check the version numbers of Disk
Groups. Shows other details about the DG too.
Removes the specified DG, and frees all its disks
back to general use by Vx.
-= Quick Chart!: Disk Group Version Number Translation
VxVM Introduced Supported
Release Version Versions
——- ———— ———
1.2 10 10
1.3 15 15
2.0 20 20
2.2 30 30
2.3 40 40
2.5 50 50
3.0 60 20-60
SUBDISKS and COMMANDS
Creates a subdisk with the specified name,
and by the offset and length specified.
ex: "vxmake sd disk02-01 disk02,0,8000"
NOTE: If you are going to add this subdisk
to a plex, its good to check the other
subdisks in that plex to see what their
lengths and offsets are, use the command:
Removes a subdisk.
Associates the specified subdisks to
the specified plex. Example:
"vxsd assoc vol01-03 disk01-01,disk02-01"
NOTE: Striped volumes are diffrent,
you need to specify the column# so
use the following:
Same as above, but used for associating
subdisks to a striped plex. Use the command
"vxprint -st" to see what other subdisk
in the plex look like, and then set the
new subdisks column number and offset
(found in the seventh column of output)
to the appropriate value.
Adds a log subdisk to the specified plex.
Ex: "vxsd aslog vol01-02 disk03-01"
Disassociates the specified subdisk from its
PLEXS and COMMANDS
Creates a new plex by the name specified and
assigns the specified subdisks to it.
Like above command, but specifies layout type
as defined by
of striped and RAID5 plexes. The layout is
constrained by the defined number of columns,
and stripe width. Subdisks specified are
added to the created plex.
(Adds a mirror)
NOTE: Attachment will take a while. Watch
it with Vxtask, or via vxprint
vxedit -r rm
volume, but maintians association with it’s
volume. The plex is no longer used
for I/O untill it is (re)attached.
vxmend fix clean
"unclean" state. Used with unstartable
Moves the data content from the origonal
plex onto a new plex.
NOTE: The old plex must be active (ENABLED).
The new plex should be the same length, or
larger than the old plex. The new plex
must not be associated with another volume.
Copies the data from the specified volume
to a new plex.
NOTE: The new plex cannot be associated
with any other volume. The new plex,
further, will NOT be attached to
the specified volume. (Also, see notes
VOLUMES and COMMANDS
Creates a new volume with the name specified
and is made to the length specified.
Ex: "vxassist make newvol 10m"
NOTE: This command will pull disk space
from the generally avalible Vx disk space.
Like the above command, but with layout specified.
The most common layouts are: striped and raid5
ex: "vxassist make newvol 100m layout=raid5 disk01 disk02 disk03"
NOTE: See the vxassist(1M) man page for more information.
Creates a new volume of specified length (usually
in sectors), and attachs the specified plexes to that
volume. Useful for creating volumes to house
copied or moved plexes.
NOTE: See the vxmake(1M) man page for more information.
Manually sets the state of a volume.
NOTE: Not for the squimish.
vxassist maxsize [layout=raid5]
Returns the maximum size avalible via Vx to create
a new volume. By adding "layout=raid5" to the command
the calulations take into account losse due
to raid5. Output is in sectors and Megs.
Returns the maximum ammount of Vx space that
can be added to the specified volume.
Creates a mirror for the specified volume.
NOTE: Think of this as "handsfree plex creation".
This is fast, but the disks you want used
may not be used… often best to do manually.
Adds a Dirty Region Log (DRL) for the specified volume.
vxassist remove log
Reverse of above.
Starts a volume
Stops a volume. Alternately you can use command as
such: "vxvol stopall" in order to stop all volumes.
Resizes the volume specified. Use one of the
following: growto, growby, shrinkto, and shrinkby
in order to descide what
By default length is specified in sectors.
This does not resize the filesystem inside the volume.
NOTE: Don’t shrink volumes to be less that
its contained filesystem! (duh)
vxvol set len=
An alternate to above command. Sets the absolute
lenths of the specified volume to the length
specified, by default, in sectors. This
does not resize the filesystem inside the volume.
NOTE: There is also a resize(1M) command, used
for resizing both volume AND filesytem. See
the man page for that one.
Removes the specified volume. (poof!)
NOTE: If the volume specified is in the ENABLED
state, you will need to use the command
with "f" will remove all plexes and subdisks
with the volume. If you didn’t guess, "r"
is Recursive, and "f" is Force.