Soft Partitions
Soft Partitions
As disks become larger, and disk arrays present ever larger logical devices to Solaris
systems, users need to be able to subdivide disks or logical volumes into more than eight
partitions, often to create manageable file systems or partition sizes. Solaris Volume
Manager’s soft partition feature addresses this need. Solaris Volume Manager can
support up to 8192 logical volumes per disk set (including the local, or unspecified, disk
set), but is configured for 128 (d0–d127) by
default. To increase the number of logical volumes, see “Changing Solaris Volume
Manager Defaults” on page 249.
Note – Do not increase the number of possible logical volumes far beyond the number
that you will actually use. Solaris Volume Manager creates a device node
(/dev/dsk/md/*) and associated data structures for every logical volume that is permitted
by the maximum value. These additional possible volumes can result in a substantial
performance impact.
You use soft partitions to divide a disk slice or logical volume into as many partitions as
needed. You must provide a name for each division or soft partition, just like you do for
other storage volumes, such as stripes or mirrors. A soft partition, once named, can be
accessed by applications, including file systems, as long as the soft partition is not
included in another volume. Once included in a volume, the soft partition should no
longer be directly accessed.
Soft partitions can be placed directly above a disk slice, or on top of a mirror, stripe or
RAID 5 volume. A soft partition may not be both above and below other volumes. For
example, a soft partition built on a stripe with a mirror built on the soft partition is not
allowed.
A soft partition appears to file systems and other applications to be a single contiguous
logical volume. However, the soft partition actually comprises a series of extents that
could be located at arbitrary locations on the underlying media.
_ From the Enhanced Storage tool within the Solaris Management Console, open the
Volumes node. Choose Action->Create Volume, then follow the instructions in the
wizard.
_ To create a soft partition, use the following form of the metainit command:
metainit [-s set] soft-partition -p [-e] component size
-s is used to specify which set is being used. If -s isn’t specified, the local (default) disk
set is used.
-e is used to specify that the entire disk should be reformatted. The format provides a
slice 0, taking most of the disk, and a slice 7 of a minimum of 4 Mbytes in size to contain
a state database replica.
soft-partition is the name of the soft partition. The name is of the form dnnn, where nnn
is a number in the range of 0 to 8192.
component is the disk, slice, or (logical) volume from which to create the soft partition.
All existing data on the component is destroyed because the soft partition headers are
written at the beginning of the component. Size is the size of the soft partition, and is
specified as a number followed by one
of the following:
_ M or m for megabytes
_ G or g for gigabytes
_ T or t for terabyte
_ B or b for blocks (sectors)
Creating a Soft Partition
Example 13–4
Expanding a Soft Partition
This example shows how to attach space to a soft partition and then expand the file
system on it while the soft partition is online and mounted: