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.
If a soft partition has been used to create another volume (for example, if it is a component of a RAID 0 volume), the soft partition cannot be expanded. In most cases, the same objective (providing more space for the device that contains the soft partition) can be achieved by concatenating other volumes onto the containing device. See Expanding Storage Space for more information.
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 that 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.
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:
# mount /dev/md/dsk/d20 /home2 # metattach d20 10g # growfs -M /home2 /dev/md/rdsk/d20