Next | Prev | Up | Top | Contents | Index

Adding a Volume Element to a Plex (Growing a Logical Volume)

Growing a logical volume (increasing its size) can be done by adding one or more volume elements to the end of one or more of its plexes. (If you don't add volume elements to all plexes, data stored in the added volume elements won't be replicated in all plexes.)

The procedure below assumes that you are starting with a logical volume. If you are starting with a filesystem on a single disk partition that you want to turn into a logical volume and grow onto an additional disk partition, use the procedure in the section "Growing an XFS Filesystem Onto Another Disk" in Chapter 4 or the section "Growing an EFS Filesystem Onto Another Disk" in Chapter 4 instead.

  1. If any of the volume elements you plan to add to the volume don't exist yet, create them with xlv_make. For example, follow this procedure to create a volume element out of a new disk, /dev/dsk/dks0d4s7:

    # xlv_make

    xlv_make> ve spare_ve dks0d4s7

    new_ve

    xlv_make> end

    Object specification completed

    xlv_make> exit

    Newly created objects will be written to disk.

    Is this what you want?(yes) yes

    Invoking xlv_assemble

    The ve command creates a volume element name, spare_ve. The name is required because the volume element is not part of a larger hierarchy; it is the top level object in this case.

  2. Use the attach command of the xlv_mgr command to add each volume element. For example, to add the volume element from step 1 to plex 0 of the data subvolume of the volume xlv0, use this procedure:

    # xlv_mgr

    xlv_mgr> attach ve spare_ve xlv0.data.0

  3. Quit out of xlv_mgr:

    xlv_mgr> quit

  4. If you are growing an XFS filesystem, mount the filesystem if it isn't already mounted:

    # mount volume mountpoint

    volume is the device name of the logical volume, for example /dev/dsk/xlv/xlv0, and mountpoint is the mount point directory for the logical volume.

  5. If you are growing an XFS filesystem, use xfs_growfs to grow the filesystem:

    # xfs_growfs -d mountpoint

    mountpoint is the mount point directory for the logical volume.

  6. If you are growing an EFS filesystem, unmount the filesystem if it is mounted, and use growfs to grow the filesystem:

    # umount mountpoint

    # growfs volume

    mountpoint is the mount point directory for the filesystem. volume is the device name of the logical volume, for example /dev/dsk/xlv/xlv0.



Next | Prev | Up | Top | Contents | Index