Example--Detaching a Log Device from a Transactional Volume
This example show a log device, the slice (c1t1d0s1), being detached from the transactional volume d1, which is mounted on /fs2.
# umount /fs2 # metadetach d1 d1: log device c1t1d0s1 is detached # mount /fs2 |
How to Expand a Transactional Volume
Note - 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).
Check "Prerequisites for Creating Solaris Volume Manager Elements" and "Background Information for Transactional Volumes".
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.
Note - 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.
Example--Expanding a RAID 1 Master Device Within a Transactional Volume
# 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.
Where to Go From Here
For a UFS, run the growfs command on the transactional volume (not the master device). See "How to Grow a File System".
An application, such as a database, that uses the raw volume must have its own way of growing the added space.
How to Remove a Transactional Volume
Check "Prerequisites for Creating Solaris Volume Manager Elements" and "Background Information for Transactional Volumes".
Unmount the UFS file system for which you want to remove the transactional volume and disable logging.
# umount /filesystem
Detach the log device from the transactional volume 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. For more information, see the online help.
Use the following form of the metadetach command:
metadetach master-volume
master-volume is the name of the transactional volume that contains the file system that is being logged.
Remove (clear) the transactional volume 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 Delete. For more information, see the online help.
Use the following form of the metaclear command:
metaclear master-volume
If necessary, update /etc/vfstab to mount the underlying volume, rather than the transactional volume you just cleared.
Remount the file system.
Example--Removing a Transactional Volume
This example shows the removal of a transactional volume d1, which was mounted on /fs2. The underlying slice, c1t1d0s1, is mounted directly after this procedure.
# umount /fs2 # metadetach d1 d1: log device d2 is detached # metaclear d1 d1: Trans is cleared ( Edit /etc/vfstab to update mount point for /fs2 to mount on c1t1d0s1, not d1) # mount /fs2 |