You can expand a master device within a transactional volume only when the master device is a volume (RAID 0, RAID 1, or RAID 5).
If the master device is a volume (rather than a basic slice), attach additional slices to the master device by using one of the following methods:
From the Enhanced Storage tool within the Solaris Management Console, open the Volumes node, then choose the transactional volume from the listing. Right-click the volume, and choose Properties, then the Components panel. For more information, see the online help.
Use the following form of the metattach command:
metattach master-volume component
master-volume is the name of the transactional volume that contains the file system to be logged.
component is the name of the volume or slice that should be attached.
See the metattach(1M) man page for more information.
If the master device is a mirror, you need to attach additional slices to each submirror.
If the master device is a slice, you cannot expand it directly. Instead, you must do the following:
Clear the existing transactional volume.
Put the master device's slice into a volume.
Recreate the transactional volume.
Once you have completed this process, you can expand the master device as explained in the previous steps of this procedure.
# metastat d10 d10: Trans State: Okay Size: 102816 blocks Master Device: d0 Logging Device: d1 d0: Mirror Submirror 0: d11 State: Okay ... Submirror 1: d12 State: Okay ... # metattach d11 c0t2d0s5 d11: component is attached # metattach d12 c0t3d0s5 d12: component is attached
This example shows the expansion of a transactional device, d10, whose master device consists of a two-way RAID 1 volume, d0, which contains two submirrors, d11 and d12. The metattach command is run on each submirror. The system confirms that each slice was attached.
For a UFS, run the growfs command on the transactional volume (not the master device). See How to Expand a File System.
An application, such as a database, that uses the raw volume must have its own way of growing the added space.