Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
12.  Soft Partitions (Tasks) Maintaining Soft Partitions How to Check the Status of a Soft Partition Example--Checking the Status of a Soft Partition  Previous   Contents   Next 
   
 

How to Expand a Soft Partition

When no other logical volumes have been built on a soft partition, you can add space to the soft partition. Free space is located and used to extend the partition. Existing data is not moved.

  1. Read the "Background Information About Soft Partitions".

  2. Use one of the following methods to expand a soft partition:

    • From the Enhanced Storage tool within the Solaris Management Console, open the Volumes node. Choose the soft partition you want to expand, then choose Action->Properties, then follow the instructions on screen. For more information, see the online help.

    • To add space to a soft partition, use the following form of the metattach command:

      metattach [-s disk-set] soft-partition size

      disk-set is the name of the disk set in which the soft partition exists.

      soft-partition is the name of an existing soft partition.

      size is the amount of space to add.

Example--Expanding a Soft Partition

This example shows how you can attach space to a soft partition and then expand the file system that sits on it while the soft partition is online and mounted is online:
# mount /dev/md/dsk/d20 /home2
# metattach d20 10g
# growfs -M /home2 /dev/md/rdsk/d20

How to Remove a Soft Partition

  1. Read the "Background Information About Soft Partitions".

  2. Use one of the following methods to delete a soft partition:

    • From the Enhanced Storage tool within the Solaris Management Console, open the Volumes node. Choose the soft partition you want to expand, then choose Action->Properties, then follow the instructions on screen. For more information, see the online help.

    • To delete a soft partition, use one of the following forms of the metaclear command:

      metaclear [-s disk-set] component
      metaclear [-s disk-set] -r soft-partition
      metaclear [-s disk-set] -p component              

      where:

      • disk-set is the disk set in which the soft partition exists.

      • soft-partition is the soft partition to delete.

      • r specifies to recursively delete logical volumes, but not volumes on which others depend.

      • p specifies to purge all soft partitions on the specified component, except those soft partitions that are open.

      • component is the component from which to clear all of the soft partitions.

Example--Removing a Soft Partition

This example shows how to delete all soft partitions on c1t4d2s0.
# metaclear -p c1t4d2s0

 
 
 
  Previous   Contents   Next