Veritas Volume Manager (VXVM) For Hp-Ux: Russell I. Henmi Technical Instructor Veritas Education Services
Veritas Volume Manager (VXVM) For Hp-Ux: Russell I. Henmi Technical Instructor Veritas Education Services
Russell I. Henmi
Technical Instructor
VERITAS Education Services
Russell Henmi
1 of 24
Objectives
Russell Henmi
2 of 24
Topics
• Structure Names
• Physical Allocation
• Physical to Logical Mapping
• Striping
• Online Resizing
• RAID-5
• Mirroring
Russell Henmi
3 of 24
VxVM to LVM Translations
Russell Henmi
5 of 24
LVM Physical Allocation
PVRA/VGRA
physical extent
Russell Henmi
6 of 24
LVM: Extents
• Defined as the smallest unit of space allocatable in LVM
• PVs are made up of physical extents;
LVs are made up of logical extents
• Extents must be used whole – no volume can have only
a partial extent
• The flexible structures in LVM are achieved one-to-one
mapping of physical to logical extents
• Extent size is fixed at VG creation and cannot be
changed dynamically
Russell Henmi
7 of 24
LVM Physical to Logical Mapping
volume group
vgtest
physical extents
logical volume
lvol2
Russell Henmi
8 of 24
LVM: Striping
• LVM allows striping within the individual extents using
a unit known as a stripe unit
• Extent-based striping is also supported
• Does not support RAID-5, RAID-0+1, RAID-1+0
Russell Henmi
9 of 24
LVM: Resizing
• LVs can be resized real-time
• File systems contained within the LV must be resized as
part of a separate command
Russell Henmi
10 of 24
LVM: RAID-5
• LVM does not support RAID-5
Russell Henmi
11 of 24
LVM: Mirroring
• Requires MirrorDisk/UX
• Mirroring is achieved by mapping a single logical extent
to multiple physical extents
• Mirrored physical extents must exist on different disk
devices by default; this requirement can be overridden
• Mirrors can be “broken” so that different copies can be
used independently then remirrored
Russell Henmi
12 of 24
Mirroring with MirrorDisk/UX
vgmirror volume group
logical extents
c1t0d0
physical volumes
lvmirror
logical volume
physical extents
c0t0d0
Russell Henmi
13 of 24
VxVM: VM Disk
• Term “VM Disk” refers to the data space
(public region) of a configured disk
private region • Initialized when the public and private
regions are added to the disk
• Activated when added to a DG
• Private region contains a configuration
public region database which contains all DG
information
• Referred to by a “disk media name” after
addition to a DG (i.e. datadg01) for ease
of management
Russell Henmi
14 of 24
VxVM Physical Allocation
VM Disk
private region
subdisk
public region
Russell Henmi
17 of 24
VxVM Physical to Logical Mapping
testdg disk group
testdg01 subdisk
plex
testdg01-01 vol01-01
c0t0d0 volume
VM disk
vol01
testdg02
subdisk
c1t0d0 testdg02-01
Russell Henmi
18 of 24
VxVM: Striping
• VxVM stripes by interleaving pieces of the individual
subdisks within a plex
• Supports RAID-0+1 and RAID-1+0 when combined
with the mirroring functionality
Russell Henmi
19 of 24
VxVM: Resizing
• Volumes can be resized real-time
• The command vxassist can be used to resize just the
volume
• The command vxresize will adjust both the volume and
the file system within
Russell Henmi
20 of 24
VxVM: RAID-5
• VxVM supports the use of RAID-5 plexes in volumes
• Cannot be combined with other types of plexes or
mirrored
• RAID-5 plexes are created with an additional log plex
by default
Russell Henmi
21 of 24
VxVM: Mirroring
• Mirroring is a feature of the base VxVM product – no
additional licenses required
• Mirroring is achieved creating additional plexes within a
single volume (up to 31 plexes)
• Mirrored physical extents must exist on different disk
devices; this requirement cannot be overridden
• Mirroring options can instruct VxVM to mirror across
disk devices or controllers
• Mirror plexes can be concatenated or striped; mirroring
of RAID-5 plexes is not allowed
Russell Henmi
22 of 24
VxVM: Volume Snapshots
• Mirrors can be “broken” so that different copies can be
used independently then remirrored through a feature
called “volume snapshots”
• The volume snapshot feature adds a new plex to a
volume and then creates a new volume from the
additional plex
• VxVM maintains an association between the original
and snapshot volumes while separated
• Fast Mirror Resync (FMR), an optional licensed feature,
can speed up resynchronization of snapshot volume
Russell Henmi
23 of 24
Mirroring with VxVM
testdg disk group
VM disk VM disk
plex plex
volume
subdisk
subdisk
Russell Henmi
24 of 24