Creating a virtual log

You can create a virtual log and attach it to a virtual Small Computer Serial Interface (SCSI) host adapter by using the mkvlog command.

About this task

To create a virtual log and attach it to a virtual SCSI (VSCSI) host adapter, complete the following tasks:

Procedure

  1. Enter the mkvlog command to create virtual logs. For example, entering the mkvlog -name syslog -client lpar-01 command returns results similar to the following:
    Virtual log 00000000000000005b3f6b7cfcec4c67 created
    This command creates the syslog virtual log with the lpar-01 client name and other properties that are inherited from the default values that are associated with the virtual log repository. The mkvlog command returns the UUID that has been assigned to the new virtual log.
  2. Attach the virtual log that has been created to a VSCSI host adapter for use by a client logical partition. The VSCSI host adapter must not be configured to use the Any Client Can Connect mode. If you specify this mode, you cannot identify the logical partition that generated the log messages in the log files of the virtual log. For example, to attach the virtual log with UUID 00000000000000005b3f6b7cfcec4c67 to the VSCSI host adapter vhost0, enter the following command:
    mkvlog -uuid 00000000000000005b3f6b7cfcec4c67 -vadapter vhost0
    Results similar to the following are displayed:
    vtlog0 Available

Results

You can also create a virtual log and attach it to a VSCSI host adapter by using a single command instead of using the commands that are specified in step 1 and 2. For example, entering the mkvlog -name audit -vadapter vhost1 command creates a new virtual log with the log name audit. This virtual log is attached to the VSCSI host adapter vhost1, with the client name set to the host name of the client logical partition that is attached to vhost1. Results similar to the following are displayed:
Virtual log 0000000000000000d96e956aa842d5f4 created
vtlog0 Available
Note: If the client logical partition is running, the client name does not need to be specified because the mkvlog command discovers the client name from the client logical partition.