Configuring Swap for the New Boot Environment

You can configure a swap slice in three ways by using the lucreate command with the -m option:

If you do not specify a swap slice, the swap slices belonging
to the current boot environment are configured for the new boot environment.

If you specify one or more swap slices, these slices are the
only swap slices that are used by the new boot environment. The two boot environments
do not share any swap slices.

You can specify to both share a swap slice and add a new slice
for swap.

The following examples show the three ways of configuring swap. The
current boot environment is configured with the root (/)
file system on c0t0d0s0. The swap file system is on c0t0d0s1.

In the following example, no swap slice is specified. The
new boot environment contains the root (/) file system
on c0t1d0s0. Swap is shared between the current and new
boot environment on c0t0d0s1.

# lucreate -n be2 -m /:/dev/dsk/c0t1d0s0:ufs

In the following example, a swap slice is specified. The new
boot environment contains the root (/) file system on c0t1d0s0. A new swap file system is created on c0t1d0s1.
No swap slice is shared between the current and new boot environment.

In the following example, a swap slice is added and another
swap slice is shared between the two boot environments. The new boot environment
contains the root (/) file system on c0t1d0s0.
A new swap slice is created on c0t1d0s1. The swap slice
on c0t0d0s1 is shared between the current and new boot
environment.