VMStudy Guide
VMStudy Guide
The basic physical storage device that ultimately stores your data is the hard disk.
When you install Solaris, hard disks are formatted as part of the installation
program.
A disk must be initialized through vxinstall before it can be managed by
Volume Manager.
A Physical Disk is made up of a VTOC and partitions.
A volume table of contents (VTOC) stores information about the disk structure
and organization. 200k.
You locate and access the data on a physical disk by using a device name that
specifies the controller, target ID, and disk number. A typical device name uses the
format: c#t#d# and s#
Benefits of using Volume Manager for virtual storage management include:
Spanning disks
Volume Manager enables you to span data over multiple physical disks.
Mirroring of data
Performance improvements
High availability
Online administration
Volume manager also uses virtual objects to perform administrative tasks on
disks without interrupting service to applications and users.
Volume Manager rewrites the VTOC and creates two partitions on the physical disk.
One partition contains the private region, and the other contains the public region.
Disk groups
Volume Manager disks
Subdisks
Plexes
Volumes
Not LUN
A disk group is a collection of VxVM disks. You group disks into disk groups for
management purposes. Disk groups enable high availability, because a disk group
and its components can be moved as a unit from one host machine to another. Disk
drives can be shared by two or more hosts, but accessed by only one host at a time.
If one host crashes, the other host can take over the failed host's disk drives, as well
as its disk groups.
A Volume Manager (VxVM) disk is created from the public region of a physical
disk that is under Volume Manager control. Each VxVM disk corresponds to at least
one physical disk. Each VxVM Disk has a unique virtual disk name called a disk
media name. Once a VxVM disk is assigned a disk media name, the disk is no
longer referred to by its physical address of c#t#d#. The physical address of c#t#d#
becomes known as the disk access record.
The rootdg disk group is a special disk group that follows a different set of
naming conventions. For disks in the rootdg disk group, the default VxVM
disk names are disk01, disk02, and so on.
A VxVM disk can be divided into one or more subdisks. A subdisk is a set of
contiguous disk blocks that represent a specific portion of a VxVM disk, which is
mapped to a specific region of a physical disk. A subdisk is a subsection of a disk's
public region. A subdisk is the smallest unit of storage in Volume Manager. The
default name for a subdisk takes the form DMname-##.
Volume Manager uses subdisks to build virtual objects called plexes. A plex is a
structured or ordered collection of subdisks that represents one copy of the data in a
volume. The default naming convention for plexes in a volume is volumename-##.
A volume is a virtual storage device that is used by applications in a manner similar
to a physical disk. Due to its virtual nature, a volume is not restricted by the physical
size constraints that apply to a physical disk.A volume can span across multiple
disks. Volume Manager uses the default naming convention vol## for volumes.
Concatenated
Striped
Mirrored
RAID-5
To issue a new license key, VERITAS Customer Support requires the following
information: Host ID and Host machine type
The VERITAS Volume Manager product consists of the following software packages:
VRTSvxvm This package contains the VERITAS Volume Manager software, including
drivers, daemons, and utilities. This is only mandatory install.
VRTSvmdoc This package contains online copies of VERITAS Volume Manager
documentation and guides.
VRTSvmman This package contains the VxVM manual pages.
VRTSvmdev This package contains the optional VxVM developer's package and
consists of the library and header files.
VMSA is a Java-based interface that consists of a server and a client. The VMSA
server runs on a UNIX machine that is running the VERITAS Volume Manager. The
VMSA client runs on any machine that supports the Java Runtime Environment,
which can be Solaris, HP-UX, or Windows.
Some features of VMSA include:
Security
VMSA can only be run by users with appropriate privileges, and access can be
restricted to a specific set of users.
Read-Only Mode
You can run VMSA in read-only mode for monitoring, training, or browsing
purposes.
VMSA logs all task requests. You can view a history of VMSA tasks, including tasks in
progress, in two ways:
vxprint
vxdg
This command operates on disk groups; vxdg creates new disk groups,
and administers existing disk groups.
vxdisk
VERITAS Volume Manager version 3.1.x supports VMSA version 3.1.x only.
1. To start the VMSA client for administering a local UNIX machine, you type:
# vmsa
To confirm that the VMSA server is running, type:
# vmsa_server -q
To display the VMSA version number, type:
# vmsa_server -V
To start the client in read-only mode from the command line, you type:
# vmsa -r
Before a disk can be placed under Volume Manager control, the disk media must be
formatted outside of VxVM using the standard UNIX format command. SCSI disks
are usually preformatted.
An initialized disk is placed into the VxVM free disk pool.
When you add a disk to a disk group, it becomes a Volume Manager disk.
For example, to configure the disk c1t0d0, you type:
# vxdisksetup -i c1t0d0
For example, to add the disk c2t0d0 to the disk group newdg, and assign a disk
media name of newdg02, you type:
# vxdg -g newdg adddisk newdg02=c2t0d0
You use the vxdisk list command to display basic information about all disks
attached to the system.
To display detailed information about a disk, you use the vxdisk list command with
the name of the disk:
# vxdisk list datadg01
To view a summary of information for all disks, you use the -s option with the
vxdisk list command.
# vxdisk -s list
To evacuate a disk from the command line, use the vxevac command:
# vxevac -g datadg datadg02 datadg03
For example, to remove the disk newdg02 from the disk group newdg, you
type:
# vxdg -g newdg rmdisk newdg02
Once the disk has been removed from its disk group, you can remove it from Volume
Manager control completely by using the vxdiskunsetup command.
For example, to rename datadg01 to datadg03, you type:
# vxedit -g datadg rename datadg01 datadg03
For example, to move the physical disk c0t3d0, that has a disk media name of
datadg04, from disk group datadg to disk group mktdg, you type:
# vxdg -g datadg rmdisk datadg04
# vxdg -g mktdg adddisk mktdg02=c0t3d0
You can never have an "empty" disk group, because you cannot remove all disks
from a disk group without destroying the disk group.
Disk groups assist disk management in several ways:
Disk groups enable the grouping of disks into logical collections for a
particular set of users or applications.
Disk groups enable a set of disks to be easily moved from one host machine
to another.
Disk groups enable high availability. Disk drives can be shared by two or
more hosts, but accessed by only one host at a time. If one host crashes, the
other host can take over its disk groups and therefore its disks.
VxVM requires that the rootdg disk group exist and that it contain at least one disk.
Default disk media names. When you add a disk to the rootdg disk group, the
default disk media names are disk01, disk02, disk03, and so on. For all
other disk groups, the default disk media names are diskgroup01,
diskgroup02, diskgroup03, and so on. For example, if you add two disks to
the disk group datadg, the default disk media names are datadg01 and
datadg02.
The rootdg disk group cannot be destroyed and must exist on every system,
because it is an essential part of the VxVM boot process.
To create a disk group named newdg on device c1t1d0s2, and specify a disk media
name of newdg01, you type:
# vxdg init newdg newdg01=c1t1d0s2
To deport the disk group newdg and rename it as newerdg:
To protect data against disk failure, the volume layout must provide some form of
data redundancy. Redundancy is achieved in two ways:
RAID Level
Description
RAID-0
RAID-1
RAID-5
RAID 0+1
RAID 1+0
Striping: Advantages: Uses parallel data transfer to multiple disks for faster
reads on fragmented information. The data load is balanced.
Although a volume can have a single plex, at least two plexes are required to provide
redundancy of data.
The default stripe unit size for a RAID-5 volume is 32 sectors (16K).
RAID-5: Advantages: Data is recreated from parity, less space. This also
improves the read because less data is fragmented.
Before you create a volume, you should ensure that you have enough disks to
support the layout type.
Only concatenated or striped volumes can be mirrored. You cannot mirror a RAID-5
volume.
For example, to mirror the volume datavol, in the disk group datadg, you type:
# vxassist -g datadg mirror datavol
By enabling logging, VxVM tracks changed regions of a volume. Log information can
then be used to reduce plex synchronization times and speed the recovery of
volumes after a system failure. Logging is an optional feature, but is highly
recommended, especially for large volumes.
VxVM supports two types of logging:
DRL keeps track of the regions that have changed due to I/O writes to a mirrored
volume.
RAID-5 logs speed up the resynchronization time for RAID-5 volumes after a system
failure.
For example, to add a log to the volume datavol in the disk group datadg, you
type:
# vxassist -g datadg addlog datavol
For example, to remove the dirty region log from the volume datavol , you type:
# vxassist -g datadg remove log datavol
The read policy for a volume determines the order in which volume plexes are
accessed during I/O operations.
VxVM has three read policies:
Round robin
VxVM reads each plex in turn in "round-robin" manner for each nonsequential
I/O detected. Sequential access causes only one plex to be accessed in order
to take advantage of drive or controller read-ahead caching policies. If a read
is within 256K of the previous read, then the read is sent to the same plex.
Preferred plex
Volume Manager reads first from a plex that has been named as the preferred
plex. Read requests are satisfied from one specific plex, presumably the plex
with the highest performance. If the preferred plex fails, another plex is
accessed.
Selected plex
This is the default read policy. Under the selected plex policy, Volume
When a file system has been mounted on a volume, the data is accessed
through the mount point directory.
When data is written to files, it is actually written to the block device file:
/dev/vx/dsk/datadg/datavol
When fsck is run on the file system, the raw device file is checked:
/dev/vx/rdsk/datadg/datavol
The Object View window displays a graphical view of all VxVM objects.
The Volume Layout Details window displays a close-up graphical view of the layout,
components, and properties of a single volume.
The Volume to Disk Mapping window displays a tabular view of volumes and their
relationships to underlying disks.
Common Options
Option
-vpsd
Description
-h
-r
-t
-l
-a
-A
-e pattern
Additional Options
Option
-F[type:]
format_spec
-D -
Description
-m
-n
-G
-Q
-q
To display the volume, plex, and subdisk record information for all volumes in the
system, you use the command:
vxprint -ht
For example, to remove the volume datavol from the disk group datadg :
# vxassist -g datadg remove volume datavol
You can use the vxassist remove command with VxVM release 3.0 and later.
For earlier versions of VxVM, use the vxedit command:
vxedit [-g diskgroup] -rf rm volume_name
In the syntax: