Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: log parameter added

Anchor
TopMSCPPageTOCTopMSCPPage
TOC
Include Page
KBCOMMON:KB-CSSstyle
KBCOMMON:KB-CSSstyle

Table of Contents

Table of Contents
Table of Contents
exclude

...

Table of Contents

General description

PBXDA is a PCI serial lines adapter based on the AccelePort 2R9202R 920, 4R9204R 920, 8R920 8R 920 and Xem DIGI adapters.

Back to the Table of Contents

Loading PBXDA serial lines adapter

Syntax for loading PBXDA serial  (AccelePort 2r 920) serial lines adapter:

load AccelePort_2r920 PBXDA/DIGI <name>

Syntax for loading PBXDA_BA (AccelePort 4r 920)  serial lines adapter:

load AccelePort_4r920/DIGI = PBXDA_BA/DIGI <name>

Syntax for loading PBXDA_BB (AccelePort 8r 920) serial lines adapter:

load AccelePort_8r920/DIGI = PBXDA_BB/DIGI <name>

Syntax for loading PBXDA_AC (AccelePort Xem) serial lines adapter:

load AccelePort_Xem/DIGI = PBXDA_AC/DIGI <name>

Example:

load PBXDA/DIGI TXA

The adapter instance name ("TXA" in the example above) is used then for parametrization, for example:

...

The numbers in the square brackets represent line number on the virtual PBXDA adapter starting from 0.

Controller typeMaximum number of lines
PBXDA 2
PBXDA_BA4
PBXDA_BB8
PBXDA_AC16

...

Configuration parameters

The PBXDA PCI SCSI adapter emulation has the following configuration parameters:

line

...


Specifies SCSI ID of PBXDA PCI SCSI Adapter in a range 0..7

By default the "scsi_id" configuration parameter is set to 7.

Example:

set PKA scsi_id=0

port

...

Info

All the parameters described in the "Placement of peripheral devices on PCI bus", such as "bus", "device", "function", "irq", "irq_bus" are applicable for PBXDA controller.


Div
classpagebreak



Note

DIGI drivers for OpenVMS and Tru64 are sensitive to PBXDA location on PCI, therefore it is recommended to fix PBXDA location with explcit configuration.

Example:

load PBXDA TXA bus=pci_1 device=4 function=0


Include Page
KBCOMMON:DOC-GoToToc
KBCOMMON:DOC-GoToToc

Configuration parameters

The PBXDA serial lines adapter emulation has the following configuration parameters:

port

Parameterport
TypeText String
Value

...

...

Specifies a local port for incoming telnet connections

By default the "

...

port" configuration

...

option is not specified.

Syntax:

port[

...

line-number]=<local port>

...

Example:

set

...

TXA port[

...

2]=17060

...

container[N]

N is "XXYY" number, where:

...


Div
classpagebreak


line

Parameterline
TypeText

...

string
Value

Possible values of the parameter are strings in one of the following forms:

...

A defined TTY port on host system:

  • "/dev/

...

  • tty<N>" for virtual console
  • "/dev/

...

  • ttyS<N>" for onboard serial lines
  • "/dev/

...

  • ttyUSB<N>" for modem or USB serial lines adapters
  • "/dev/

...

Note

"/dev/sd<L>" addressing is not persistent, so it is strongly recommended to use "/dev/disk/by-id/wwn-*" syntax instead to refer the disk by its WWID - especially in the enviroments utilizing FC and SAN storages.

 These disks must not be formatted by the host OS.

Example:

...

  • tty<XXX>" for proprietary (depending on a driver) devices such as DIGI or MOXA cards

Example:

set TXA line[2]="/dev/

...

ttyS1"


Note

If a virtual console "/dev/

...

tty<N>"

...

Example:

set PKA container[0]="/dev/sdc1"

.

...

  • "/dev/dm-<N>" 
  • "/dev/mapper/mpath<N>" 
  • "/dev/mapper/disk<N>" 
    (warning) Be careful not to destroy all the information from the disk dedicated to CHARON-AXP by mistake.  

    These disks must not be formatted by the host OS.

    Example:

    set PKA container[100]="/dev/dm-0"

    .

...

"/dev/loop<N>"
Example:

set PKA container[200]="/dev/loop0"

...

  • "/dev/sg<N>"
    Example:

    set PKA container[300]="/dev/sg0"

    .

...

  • "/dev/sr<N>"
  • "/dev/cdrom" 
  • "/dev/cdrom<N>"
    Example:

    set PKA container[400]="/dev/sr0"

    .

...

  • [<drive>":\"<path-name>"\"]<file-name>[".iso"]
     Mapping may also include the full path (recommended), for example: "/my_disks/vms_distributive.iso"

    Example:

    set PKA container[600]="/my_disks/vms_distributive.iso"

    .

...

  • [<drive>":\"<path-name>"\"]<file-name>[".vdisk"]
    These files can be created from scratch with "mkdskcmd" utility. Data and OS disk backups are transferred from the original system via tapes or network and restored into these container files.   

    Mapping may also include the full path, for example: "/my_disks/my_boot_disk.vdisk"

    Example:

    set PKA container[401]="my_dka401.vdisk"

    .

...

These files are created automatically. 

Mapping may also include a full path (recommended), for example: "/my_tapes/backup.vtape" 

Warning

If the "CHARON Guest Utilities for OpenVMS" (CHARONCP) package is used there is a possibility not to specify the exact tape container on CHARON start since it can be specified later using the package.

In this case the syntax is:

set PKA container[500]=".vtape"

Example:

set PKA container[500]="my_mka500.vtape"

How the Emulator Maps Guest-OS Operations to the Virtual Tape Drive

Guest-OS operationsEmulator Action
Open device for readingCreate a container file if none exists. open for reading and lock container file
Open device for writingCreate a container file if necessary; open for writing and lock the container file
Unload (eject) tape from driveClose a container file if open and unlock it - this allows copy/move/delete operations on CHARON host

...

The container file associated with a virtual tape drive can be compared to the tape cartridge used in a physical tape drive. Both store the data written to the tape device by the guest OS.

The size of virtual tape container files is limited only by space available in the emulator host file system.

(warning) Prerequisite to the examples below: a virtual tape device has been configured in the CHARON configuration file and it is not in use by the guest OS.

To perform backup:

  1. The tape device may be issued the "unload" command and the container-file moved/deleted to insure proper status 
  2. Initialize the tape device using standard guest OS procedure.
  3. Perform backup.
  4. Issue "unload" command to the tape device in the guest OS.
  5. On the emulator host, move the *.vtape container file containing backup data for storage or further backup.

To restore from a backup:

...

CHARON does not support muti-volume backup for tape images. If some mutli-volume set (in form of tape images) has to be restored it is recommended to configure several tape drives in CHARON configuration file, assign each tape image to each tape drive and use them in the following way (OpenVMS example):

$ BACKUP MKA100:BACKUP.BCK,MKA200,MKA300,MKA4000/SAVE_SET DKA0:...

This parameter is initially not set, thus creating NO storage elements on the controller.

media_type

...

media_type[N]

N is "XXYY" number, where:

  • XX - SCSI ID (0..15)
  • YY - LUN (00..07)

...

Text String

...

Instructs CHARON-AXP to use the supplied value as the PRODUCT field in the SCSI INQUIRY data returned to a software running on virtual HP Alpha system in response to SCSI INQUIRY command.

If not specified, CHARON-AXP attempts to guess the SCSI INQUIRY data based on virtual SCSI device type and underlying container (which is specified in the corresponding container configuration parameter).

Initially is not specified.

Example:

set PKA media_type[0]="HSZ70"

removable

...

removable[N]

N is "XXYY" number, where:

  • XX - SCSI ID (0..15)
  • YY - LUN (00..07)

...

When set to "true", the removable configuration parameter instructs CHARON-AXP to report the corresponding virtual SCSI device as removable.

By default the removable configuration parameter is set to "false".

Example:

set PKA removable[400]=true

(info) Note that virtual SCSI tapes and CD-ROM devices are always reported as removable regardless of the "removable" configuration parameter.

geometry

...

geometry[N]

N is "XXYY" number, where:

  • XX - SCSI ID (0..15)
  • YY - LUN (00..07)

...

Text String

...

This formatted string value specifies the explicit geometry of the disk storage element. This parameter is not applicable to tape storage elements.

The string format is <X>”/”<Y>[“/”<Z>] or <X>”,”<Y>[“,”<Z>][“,”<B>] where:

ParameterDescription
XThe number of sectors per track
YThe number of tracks per cylinder
Z

The number of cylinders on the unit.

If omitted, Z is calculated based on X, Y and the total number of sectors on the unit that reflects the size of the disk storage element.

This is an optional parameter.

B

The total size of the disk (in blocks) reported to the guest OS.

If omitted it is calculated automatically.

This is an optional parameter.

If this parameter is not set, CHARON-AXP will configure the geometry based on the most probable disk type.

Initially not set.

...

It is possiblle to specify each parameter independently of another one. The following syntax is used for that:

set PKA geometry[300]="*,*,*,16777210"

The syntax described above is applicable only to disk storage elements. If the container is a tape image, the following format is used instead:

Syntax:

"<image-size>[, <early-warning-zone-size>]"

where:

ParameterDescription
image-sizeThe tape size in MB
early-warning-zone-size

The size (in KB) of the space left on the tape when a warning to the OS is issued.

If omitted, 64K is assumed.

Example:

set PKA geometry[603] = "255/255"

use_io_file_buffering

...

use_io_file_buffering[N]

N is "XXYY" number, where:

  • XX - SCSI ID (0..15)
  • YY - LUN (00..07)

...

When set to "true", instructs CHARON-AXP to enable host operating system I/O cache on reading/writing operations.

(info) Note that this caching has a significant effect only in case of mapping to disk and tape containers, not physcial drives. 

When enabled, host operating system I/O cache may significantly improve I/O performance of the virtual system. At the same time maintaining I/O cache requires additional host resources (CPU and memory) which may negatively affect overall performance of the virtual system.

Initially is set to "false".

Example:

set PKA use_io_file_buffering[603]=true

io_queue_depth

...

io_queue_depth[N]

N is "XXYY" number, where:

  • XX - SCSI ID (0..15)
  • YY - LUN (00..07)

...

Specifies PBXDA I/O requests (read or write) for a given unit in a range 2..128

Setting this parameter enables PBXDA instance to run up-to the specifiied numbers of I/O requests (read or write) for unit N in parallel, thus improving the performance.

The default value set by controller is optimal for most of the cases. It may be needed to enlarge this number if guest OS I/O queue for a certain unit contains too much pending entries. In this case the value should be equal to an average size of the queue, collected statistically.

Please do not set this parameter without clear understanding the purpose.

By default parallel execution of I/O requests is disabled.

Example:

set PKA io_queue_depth[603]=4

min_n_of_threads

...

min_n_of_threads

...

Instructs PBXDA I/O to reserve a given number of working threads in a range 1..64, thus improving the performance.

All units of PBXDA instance share the I/O threads.

The default value is equal to number of units plus 2.

For optimization it is possible to set this parameter to sum of the "io_queue_depth" parameters for each unit plus 2. This assumption seems optimal for most of the cases.

Please do not set this parameter without clear understanding the purpose.

Example:

set PKA min_n_of_threads=16
When a tape or disk image connected to an emulated PBXDA controller is dismounted by OpenVMS, it is disconnected from CHARON-AXP and can be manipulated. It can be replaced with a different disk image if it keeps the same name. This capability may be useful when designing back-up and restore procedures. When copying CHARON-AXP disk images while CHARON-AXP is running, please take care to minimize the risk of overloading a heavily loaded CHARON-AXP host system. For example, using a sequential series of simple ftp binary copies is less resource intensive and thus less disruptive than multiple, simultaneous copies.

Empty disk images are created with the "mkdskcmd" utility. Tape images ("*.vtape") will be created automatically if they don't exist (no utility needed).

CHARON-AXP is able to boot from disk images of any OpenVMS/Alpha and Tru64 version.

Info

The virtual PBXDA storage controller examines the file extension (vdisk or vtape) to distinguish between a disk image and a tape image.

Configured physical devices or tape/disk images that do not exist on the host system will, in general, cause OpenVMS/Alpha to report the unit offline. In some cases this will result in a VMS BUG CHECK. In this case, an error message will be written to the log file.

...

is going to be used, it must be freed from all the processes running on it at first. Refer to your OS documentation for details, also some description on how to do it is available here.


Note

A specific account for running CHARON ("charon") does not allow usage of physical consoles "/dev/tty<N>" as CHARON consoles. If you plan to map CHARON console to "/dev/tty<N>" use only "root" account for CHARON running.


Include Page
KBCOMMON:DOC-GoToToc
KBCOMMON:DOC-GoToToc

Div
classpagebreak


log


Parameterlog
TypeText string
Value

The optional log file or directory name is where the log file for the serial line is stored.

Example:

set TXA log[0]="/charon/logs/txa0.log"


"ttyY" notation specifics

Note that the "ttyY" notation can have different forms depending on the nature of the device used:

MappingTypeCommentary

"/dev/tty<N>"

where N is from 0 to 11

Linux virtual tty

Those tty devices must be free from the Linux "getty/mgetty" and similar programs (specified in "/etc/inittab")

Example:

"/dev/tty1"

"/dev/ttyS<N>"

where N is a number

Onboard serial lines

Example:

"/dev/ttyS1"

"/dev/tty<XXX>"

where XXX is a complex letter/number notation

Proprietary (depending on a driver) devices 

Example for a first port of a MOXA card:

"/dev/ttyR01"

Example for a first port of a DIGI card:

"/dev/ttyaa"

"/dev/ttyUSB<N>"

where N is a number

Modem or USB serial lines adapters

Example:

"/dev/ttyUSB1"

Include Page
KBCOMMON:DOC-GoToToc
KBCOMMON:DOC-GoToToc