To delete a file system that is not being used in the GFS Shared File System, use sfcadm(1M) with the -D option specified. Execute the command on any one of the nodes where the file system is shared.
See
For details on the sfcadm(1M) options, see sfcadm(1M).
How to delete a file system using sfcadm(1M) is shown below.
Check the current file system information.
# sfcinfo -a <Enter> /dev/sfdsk/gfs01/dsk/volume01: FSID special size Type mount 1 /dev/sfdsk/gfs01/dsk/volume01(11500000021) 14422 META ----- 1 /dev/sfdsk/gfs01/dsk/volume01(11500000021) 5116 LOG ----- 1 /dev/sfdsk/gfs01/dsk/volume01(11500000021) 95112 DATA ----- /dev/sfdsk/gfs02/dsk/volume01: FSID special size Type mount 2 /dev/sfdsk/gfs02/dsk/volume01(11500000022) 14422 META ----- 2 /dev/sfdsk/gfs02/dsk/volume01(11500000022) 5116 LOG ----- 2 /dev/sfdsk/gfs02/dsk/volume01(11500000022) 95112 DATA ----- |
Delete the file system whose representative partition is /dev/sfdsk/gfs/rdsk/volume01.
# sfcadm -D /dev/sfdsk/gfs02/rdsk/volume01 <Enter> |
Confirm that the file system has been deleted.
# sfcinfo -a <Enter> /dev/sfdsk/gfs01/dsk/volume01: FSID special size Type mount 1 /dev/sfdsk/gfs01/dsk/volume01(11500000021) 14422 META ----- 1 /dev/sfdsk/gfs01/dsk/volume01(11500000021) 5116 LOG ----- 1 /dev/sfdsk/gfs01/dsk/volume01(11500000021) 95112 DATA ----- |