forked from pool/s390-tools
6a6c0cb679
*** v2.34.0 * Changes of existing tools: - ap_tools/ap-check: Add support for vfio-ap dynamic configuration - dbginfo.sh: Update/Add additional DASD data collection - dumpconf: Add new parameter 'SCP_DATA' for SCSI/NVMe/ECKD dump devices - libutil: Make formatted meta-data configurable - s390-tools: Replace 'which' with built-in 'command -v' - zdump/dfi_elf: Support core dumps of vr-kernels * Bug Fixes: - chzdev: Fix warning about failed ATTR writes by udev - rust/pv: Try again if first CRL-URI is invalid - rust/pvattest: Add short option for --arpk - zdump: Fix 'zgetdump -i' ioctl error on s390 formatted dump file *** v2.33.1 * Bug Fixes: - s390-tools: Fix formatting and typos in README.md - s390-tools: Fix release string *** v2.33.0 * Add new tools / libraries: - chpstat: New tool for displaying channel path statistics - libutil: Add output format helpers(util_fmt: JSON, JSON-SEQ, CSV, text pairs) * Changes of existing tools / libraries: - chzdev: Add --is-owner to identify files created by zdev - dasdfmt: Change default mode to always use full-format (Note: affects ESE DASD) - libap: Significantly reduce delay time between file lock retries - pvattest: Rewrite from C to Rust - pvattest: Support additional data & user-data - rust/pv: Support for Attestation * Bug Fixes: - chreipl: Improve disk type detection when running under QEMU - dbginfo.sh: Use POSIX option with uname - s390-tools: Fix missing hyphen escapes in the man page for many tools - zipl/src: Fix bugs in disk_get_info() reproducible in corner cases *** v2.32.0 * Changes of existing tools: - cpumf/lscpumf: add support for machine type 3932 - genprotimg, pvattest, and pvsecret accept IBM signing key with Armonk as subject locality - zdump/zipl: Support for List-Directed dump from ECKD DASD - zkey: Detect FIPS mode and generate PBKDF for luksFormat according to it * Bug Fixes: - dbginfo.sh: dash compatible copy sequence - rust/pv_core: Fix UvDeviceInfo::get() method - zipl/src: Fix leak of files if run with a broken configuration - zkey: Fix convert command to accept only keys of type CCA-AESDATA * Revendored vendor.tar.gz * Removed obsolete patches - s390-tools-sles15sp5-01-rust-pv-support-Armonk-in-IBM-signing-key-subject.patch - s390-tools-sles15sp6-02-genprotimg-support-Armonk-in-IBM-signing-key-subject.patch - s390-tools-sles15sp6-03-libpv-support-Armonk-in-IBM-signing-key-subject.patch - s390-tools-sles15sp6-04-pvattest-Fix-root-ca-parsing.patch - s390-tools-sles15sp6-genprotimg-makefile.patch OBS-URL: https://build.opensuse.org/package/show/Base:System/s390-tools?expand=0&rev=219
156 lines
4.9 KiB
Groff
156 lines
4.9 KiB
Groff
.TH ctc_configure "8" "July 2013" "s390-tools"
|
|
.SH NAME
|
|
ctc_configure \- Configures or deconfigures a Channel-to-Channel adapter (CTC) or LAN Channel Station adapter (LCS)
|
|
.SH SYNOPSIS
|
|
.B ctc_configure read_channel write_channel online [protocol]
|
|
.SH DESCRIPTION
|
|
.B ctc_configure
|
|
is intended to make it easy to persistently add and remove IBM CTC and LCS adapters. In addition to bringing the adapter online or offline, it will also create or delete the necessary udev rules for the adapter.
|
|
.SH PARAMETERS
|
|
.IP read_channel
|
|
The device number of the read channel of the adapter. Takes the form x.y.ssss.
|
|
.IP write_channel
|
|
The device number of the write channel of the adapter.Takes the form x.y.ssss.
|
|
.RS
|
|
|
|
where
|
|
.RS
|
|
.B x
|
|
is always 0 until IBM creates something that uses that number.
|
|
.RE
|
|
.RS
|
|
.B y
|
|
is the logical channel subsystem (lcss) number. Most often this is 0, but it could be non-zero.
|
|
.RE
|
|
.RS
|
|
.B ssss
|
|
is the four digit subchannel address of the device, in hexidecimal, with leading zeros. If entered in upper/mixed case, this is automatically converted to lower case.
|
|
.RE
|
|
.RE
|
|
.RS
|
|
|
|
Keep in mind that for a CTC, the read channel needs to be coupled to the write channel of the peer, and vice versa. This does not apply to LCS adapters.
|
|
.RE
|
|
.RE
|
|
.IP online
|
|
Either a literal 1 to bring the adapter online or a literal 0 to take it offline
|
|
.IP protocol
|
|
.RS
|
|
0 Compatibility with peers other than OS/390®, or z/OS, for example, a z/VM TCP service machine. This is the default.
|
|
.RE
|
|
.RS
|
|
1 Enhanced package checking for Linux peers.
|
|
.RE
|
|
.RS
|
|
3 For compatibility with OS/390 or z/OS peers.
|
|
.RE
|
|
.RS
|
|
4 For MPC connections to VTAM on traditional mainframe operating systems.
|
|
.RE
|
|
.RS
|
|
|
|
Not needed for LCS adapters.
|
|
.SH FILES
|
|
.I /etc/udev/rules.d/51-ctcm-<ccwid>.rules
|
|
.RE
|
|
.I /etc/udev/rules.d/51-lcs-<ccwid>.rules
|
|
.RS
|
|
These files provide the udev rules necessary to activate a specific CTC or LCS.
|
|
.RE
|
|
.SH ENVIRONMENT
|
|
.IP DEBUG
|
|
If set to "yes" some minimal debugging information is output during execution.
|
|
.SH DIAGNOSTICS
|
|
The following messages may be issued on stdout:
|
|
.IP
|
|
.B /sysfs not present
|
|
.RS
|
|
The sysfs file system could not be found in /proc/mounts, so there's nothing the script can
|
|
do. Return code 1 is set.
|
|
.RE
|
|
.IP
|
|
.B Invalid device status ${ONLINE}
|
|
.RS
|
|
A value other than 0 or 1 was specified for the third parameter, online. Return code 2 is set.
|
|
.RE
|
|
.IP
|
|
.B Device ${CTC_READ_CHAN} does not exist
|
|
.RS
|
|
A non-existent <ccwid> was specified for the first parameter. Remember the x.y.ssss format is necessary. Return code 3 is set.
|
|
.RE
|
|
.IP
|
|
.B Device ${CTC_READ_CHAN} does not exist
|
|
.RS
|
|
A non-existent <ccwid> was specified for the second parameter. Remember the x.y.ssss format is necessary. Return code 4 is set.
|
|
.RE
|
|
.IP
|
|
.B Not a valid CTC device (cu ${_cutype}, dev ${_devtype})
|
|
.RS
|
|
The device number specified does not correspond to a valid CTC or LCS device type. Return code 5 is st.
|
|
.RE
|
|
.IP
|
|
.B CTC type mismatch (read: ${tmp_chan}, write: ${CCW_CHAN_GROUP})
|
|
.RS
|
|
The device number specified for the read channel has a different device type than the device number specified for the write channel. Return code 6 is set.
|
|
.RE
|
|
.IP
|
|
.B Could not load module ${CCW_CHAN_GROUP}
|
|
.RS
|
|
The kernel module for the device type failed to load. Try "dmesg" to see if there is any indication why. Return code 7 is set.
|
|
.RE
|
|
.IP
|
|
.B CCW devices grouped to different devices
|
|
.RS
|
|
The read and write channels are already grouped, but not within the same interface. Try again with different devices. Return code 8 is set.
|
|
.RE
|
|
.IP
|
|
.B Could not group ${CCW_CHAN_GROUP} devices ${CTC_READ_CHAN}/${CTC_WRITE_CHAN}
|
|
.RS
|
|
The attempt to group the read and write channels into an interface failed. Try "dmesg" to see if there is any indication why. Return code 9 is set.
|
|
.RE
|
|
.IP
|
|
.B Could not set device ${CCW_CHAN_ID} online
|
|
.RS
|
|
The attempt to bring the grouped devices online failed. Try "dmesg" to see if there is any indication why. Return code 10 is set.
|
|
.RE
|
|
.IP
|
|
.B Could not set device ${CCW_CHAN_ID} offline
|
|
.RS
|
|
The attempt to take the grouped devices offline failed. Try "dmesg" to see if there is any indication why. Return code 11 is set.
|
|
.RE
|
|
|
|
If environment variable DEBUG is set to "yes," the following messages may be issued on stdout:
|
|
.IP
|
|
.B
|
|
Configuring CTC/LCS device ${CTC_READ_CHAN}/${CTC_WRITE_CHAN}
|
|
.RS
|
|
Just a little bit of verbosity, since it just indicates that we got past certain error checks and will now try to do something useful.
|
|
.RE
|
|
.IP
|
|
.B Group is ${_ccw_groupdir}/drivers/${CCW_CHAN_GROUP}/group
|
|
.RS
|
|
Just a little bit of verbosity.
|
|
.RE
|
|
.IP
|
|
.B Setting device online
|
|
.RS
|
|
Just a little bit of verbosity.
|
|
.RE
|
|
.IP
|
|
.B Device ${CCW_CHAN_ID} is already online
|
|
.RS
|
|
An attempt was made to bring the adapter online when it was already online.
|
|
.RE
|
|
.IP
|
|
.B Setting device offline
|
|
.RS
|
|
Just a little bit of verbosity.
|
|
.RE
|
|
.IP
|
|
.B Device ${CCW_CHAN_ID} is already offline
|
|
.RS
|
|
An attempt was made to take the adapter offline when it was already offline.
|
|
.RE
|
|
.SH BUGS
|
|
Gotta be some, I'm sure. If you find one, please open a bug report.
|