Maintaining file systems

The simplest tasks you might need when maintaining file systems are grouped within this table.

Table 1. Maintaining File Systems Tasks
Task SMIT Fast Path Command or File
Backup by name files or directories smit backfile backup Note 1
Create and back up a JFS2 snapshot image smit backsnap backsnap Note 1
List all file systems on a disk smit lsmntdsk  
List file systems on a removable disk smit lsmntdsk  
List mounted file systems smit fs  
Mount a group of file systemsNote 5 smit mountg mount -t GroupName
Mount a JFS or JFS2Note 3 smit mountfs mount
Mount a JFS2 snapshot smit mntsnap mount -v jfs2 -o snapshot Device MountPoint
Remove a JFS or JFS2 smit rmfs  
Remove a JFS2 snapshot smit rmsnap snapshot -d SnapshotDevice
Revert a JFS2 file system to a point-in-time snapshot smit rollbacksnap rollback [-s] [-v] [-c] snappedFS snapshotObject
Unmount a file systemNote 4 smit umountfs  
Unmount a file system on a removable diskNote 4 smit umntdsk  
Unmount a group of file systemsNote 5 smit umountg umount -t GroupName
Manage Enhanced Journaled File Systems quotas smit j2fsquotas  
Enable or disable quota management smit j2enablequotas  
Stop/restart quota limits enforcement smit j2enforcequotas quotaon|off -v
List quota usage smit j2repquota repquota -v
Recalculate current disk block and file usage statistics smit j2quotacheck quotacheck -v
Add a limits class smit j2addlimit j2edlimit -e
Change/show characteristics of a limits class smit j2changelimit  
Make a limits class the default limits for a file system smit j2defaultlimit  
Assign a user or group to a limits class smit j2assignlimit  
List limits classes for a file system smit j2listlimits j2edlimit -l '-u'
Remove a limits class smit j2removelimit  
Note:
  1. For options, refer to the individual commands.
  2. Do not change the names of system-critical file systems, which are / (root) on logical volume 4 (hd4), /usr on hd2, /var on hd9var, /tmp on hd3, and /blv on hd5. If you use the hdn convention, start at hd10.
  3. Check the file systems before mounting by using the procedure File system verification or running the fsck command.
  4. If an unmount fails, it might be because a user or process has an opened file in the file system being unmounted. The fuser command lets you find out which user or process might be causing the failure.
  5. A file system group is a collection of file systems which have the same value for the type= identifier in the /etc/filesystems file.