Solaris Volume Manager Administration Guide

ProcedureHow to Remove a Transactional Volume

Steps
  1. Check Prerequisites for Creating Solaris Volume Manager Components and Background Information for Transactional Volumes.

  2. Unmount the UFS file system for which you want to remove the transactional volume and disable logging.


    # umount /filesystem
    
  3. 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.

      See the metadetach(1M) man page for more information.

  4. 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  
      

      See the metaclear(1M) man page for more information.

  5. If necessary, update /etc/vfstab to mount the underlying volume, rather than the transactional volume you just cleared.

  6. Remount the file system.


Example 19–8 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