Some of the terms and objects that are used with the Logical Storage Manager are defined here.
volsave(8)
command and can be used to restore an LSM configuration.
By default, an LSM description set is saved in a timestamped
directory under the
/usr/var/lsm/db
directory.
Through the use of disk IDs, the Logical Storage Manager allows disks to be moved between controllers, or to different locations on a controller. When a disk is moved, a different disk access record will be used when accessing the disk, although the disk media record will continue to track the actual physical disk.
On some systems, the Logical Storage Manager will build a list of disk access
records automatically, based on the list of all devices attached to
the system. On these systems, it is not necessary to define disk
access records explicitly. On other systems, disk access records must
be defined explicitly with the
/sbin/voldisk define
operation. Specialty disks (such as RAM disks or floppy disks) are likely to
require explicit
/sbin/voldisk define
operations on all systems.
Disk access records are identified by their disk access names (also known as DA names).
Disk groups provide a method to partition the configuration database, so that the database size is not too large and so that database modifications do not affect too many drives. They also allow the Logical Storage Manager to operate with groups of physical disk media that can be moved between systems.
Disks and disk groups have a circular relationship: disk groups are formed from disks, and disk group configurations are stored on disks. All disks in a disk group are stamped with a disk group ID, which is a unique identifier for naming disk groups. Some or all disks in a disk group also store copies of the configuration of the disk group.
/sbin/voldg init.
This
identifier is in addition to the disk group name, which is assigned by
the administrator. The disk group ID is used to check for disk groups
that have the same administrator-assigned name but are actually
distinct.
rootdg
disk group.
/sbin/voldisk init
operation. The disk ID is stored in the disk media record so
that the physical disk can be related to the disk media record at
system startup.
Operations are provided to set or remove the disk ID stored in a disk media record. Such operations have the effect of removing or replacing disks, with any associated subdisks being removed or replaced along with the disk.
/sbin/voldisk clearimport
operation can be used to clear the host ID stored on a disk.
If a disk is a member of a disk group and has a host ID that matches a particular host, then that host will import the disk group as part of system startup.
vold
can be guaranteed to detect the state changes even in the
event of a system failure.
mirror.
A volume can have up to eight plexes associated
with it. Each plex is, at least conceptually, a copy of the volume
that is maintained consistently in the presence of volume I/O and
reconfigurations. Plexes represent the primary means of configuring
storage for a volume. Plexes can have a striped or concatenated
organization (layout).
The private region of a disk contains various on-disk structures that are used by the Logical Storage Manager for various internal purposes. Each private region begins with a disk header which identifies the disk and its disk group. Private regions can also contain copies of a disk group's configuration, and copies of the disk group's kernel log.
For every other read operation, switch to a different plex from the previous read operation. Given three plexes, this will switch between each of the three plexes, in order.
preferred plex
This read policy specifies a particular named plex that is used to satisfy read requests. In the event that a read request cannot be satisfied by the preferred plex, this policy changes to round-robin.
This read policy is the default policy, and adjusts to use an appropriate read policy based on the set of plexes associated with the volume. If exactly one enabled read-write striped plex is associated with the volume, then that plex is chosen automatically as the preferred plex; otherwise, the round-robin policy is used. If a volume has one striped plex and one non-striped plex, preferring the striped plex often yields better throughput.
rootdg.
This group is generally the default for most utilities. In addition to
defining the regular disk group information, the configuration for the
root disk group contains local information that is specific to a disk
group and that is not intended to be movable between systems.
volboot
file
volboot
file is a special file (usually stored in
/etc/vol/volboot)
that is used to bootstrap the root disk group
and to define a system's host ID. In addition to a host ID, the
volboot
file contains a list of disk access records. On system
startup, this list of disks is scanned to find a disk that is a member
of the
rootdg
disk group and that is stamped with this system's
host ID. When such a disk is found, its configuration is read and is
used to get a more complete list of disk access records that are used
as a second-stage bootstrap of the root disk group, and to locate all
other disk groups.
/dev/vol
and
/dev/rvol
directories. The
block device for a particular volume (which can be used as an argument
to the
mount
command (see
mount(8))
has the path
/dev/vol/groupname/volume.