zfsadm setauditfid

Purpose

Sets (or resets) the zFS auditfid in the mounted aggregate.

Format

zfsadm setauditfid -aggregate aggrname[-force | -old][-level] [-help]

Options

-aggregate aggrname
Specifies the name of the aggregate whose auditfid is to be set. The aggregate must be attached (mounted). The aggregate name is not case-sensitive. It is always translated to uppercase.
-force
Specifies to change the auditfid to a new zFS auditfid. If the aggregate already contains the new form of the zFS auditfid that you want to change to a different new zFS auditfid (for example, if you copy an aggregate and then rename it, but keep the old aggregate), you must specify -force to avoid inadvertently changing the zFS auditfid.
-help
Prints the online help for this command. All other valid options that are specified with this option are ignored.
-level
Prints the level of the zfsadm command. This option is useful when you are diagnosing a problem. Except for -help, all other valid options that are specified with -level are ignored.
-old
Specifies that the zFS auditfid is set to binary zeros.

Usage

The zfsadm setauditfid command sets or resets the zFS auditfid in the aggregate on disk (based on the VOLSER and the cylinder, cylinder, head, head [CCHH] of the first extent of the aggregate). The aggregate must be attached (mounted). If neither -force nor -old are specified, a standard form auditfid (binary zeros) is changed to the unique form auditfid. If the aggregate already contains the unique form of the zFS auditfid and you want to change it to a different unique zFS auditfid (for example, if you copy an aggregate and then rename it - keeping the old one), you must specify -force to avoid inadvertently changing the zFS auditfid. The zFS auditfid is based on the VOLSER and the CCHH of the first extent, unless you specify -old. In that case, the zFS auditfid is set to binary zeros.

In a shared file system environment, whether the zfsadm setauditfid command is issued from the system owning the zFS aggregate or from a client system, the new auditfid value will only be visible on the zFS owning system. To make it visible on client systems, issue a remount to the same mode.

Privilege required

Start of changeIf you are using an IOEFSPRM file in your startup proc,End of change the issuer must have READ authority to the data set that contains the IOEFSPRM file. If you are using parmlib (IOEPRMxx), the issuer does not need special authorization.

The user must be UID 0 or have READ authority to the SUPERUSER.FILESYS.PFSCTL resource in the z/OS® UNIXPRIV class.

Examples

zfsadm setauditfid -aggregate OMVS.PRV.AGGR001.LDS0001 -force

Related information

Commands:
  • zfsadm aggrinfo
  • zfsadm format
Files:
  • IOEFSPRM