lockfs — Change or Report File-System Locks

Synopsis

/usr/sbin/lockfs [-adefhnuw][-c string][filesystem...]

Description

Use the lockfs command to change and report the status of file system locks. lockfs reports the lock status and unlocks the file systems that were improperly left locked by an application such as ufsdump(1M). This condition could occur if ufsdump(1M) is killed using kill(1).

Using lockfs to lock a file system is discouraged because it requires extensive knowledge of SunOS internals to be used effectively and correctly.

When invoked with no arguments, lockfs lists the UFS file systems that are locked. If you do not specify filesystem and specify -a, lockfs is run on all mounted, UFS-type file systems.

Options

You must be superuser ...

Get Solaris™ 8 System Administrator's Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.