Skip to content

Commit 840b12d

Browse files
authored
Merge pull request #96 from agama-project/zfcp_unattended
add documentation for zfcp and dasd profile sections
2 parents c8ec23d + ded9a63 commit 840b12d

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
sidebar_position: 12
3+
---
4+
5+
# DASD Device Management
6+
7+
Agama allows you to manage DASD (Direct Access Storage Device) activation and deactivation during an unattended installation. This feature is configured within the `dasd` section using the `devices` key.
8+
9+
## Configuring DASD Devices
10+
11+
To specify DASD devices and their desired states, use a list of objects under `dasd.devices`. Each object represents a single DASD device and supports the following options:
12+
13+
* `channel`: The unique channel ID of the DASD device (e.g., `"0.0.0200"`). This is a required entry.
14+
15+
* `state`: Defines the desired state of the device.
16+
17+
* `"active"`: Agama will attempt to activate the device if it's not already active. This is the **default** value.
18+
* `"offline"`: Agama will deactivate the device if it's currently active.
19+
20+
* `format`: Controls whether the device should be formatted.
21+
22+
* `true`: The device will always be formatted, even if it's already formatted.
23+
* `false`: The device will never be formatted. **Caution**: This can result in an unusable device if it's not already formatted.
24+
* If this option is not specified, Agama will only format the device if it's not already formatted.
25+
26+
* `diag`: Specifies the value of the `diag` flag for the device.
27+
28+
* If this option is not specified, the device's current `diag` flag setting will be preserved.
29+
* **Warning**: Use this option with extreme caution and only if you fully understand its implications. On some mainframes, incorrectly setting the `diag` flag can lead to unexpected behavior, including device deactivation.
30+
31+
## Example Configuration
32+
33+
The following example demonstrates how to activate and format one DASD device, and deactivate another:
34+
35+
```jsonnet
36+
{
37+
dasd: {
38+
devices: [
39+
{
40+
channel: "0.0.0200",
41+
format: true,
42+
state: "active"
43+
},
44+
{
45+
channel: "0.0.0201",
46+
state: "offline"
47+
}
48+
]
49+
}
50+
}
51+
```
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
sidebar_position: 13
3+
---
4+
5+
# Managing zFCP devices
6+
7+
Agama provides functionality to activate zFCP (Fibre Channel Protocol) disks as part of an unattended installation. This feature is configured within the `zfcp` section of your configuration, specifically under the `devices` key.
8+
9+
## Activating zFCP disks
10+
11+
To activate zFCP disks, you must define a list of objects under `zfcp.devices`. Each object in this list represents a single zFCP disk and requires the following options to uniquely identify the desired disk:
12+
13+
* `channel`: The channel ID of the zFCP controller (e.g., `"0.0.fa00"`).
14+
* `wwpn`: The World Wide Port Name (WWPN) of the target port (e.g., `"0x500507630300c562"`).
15+
* `lun`: The Logical Unit Number (LUN) of the SCSI device (e.g., `"0x4010403300000000"`).
16+
17+
All of these options are mandatory to correctly identify and activate the specified zFCP disk.
18+
19+
## Example Configuration
20+
21+
The following example demonstrates how to configure a zFCP disk for activation:
22+
23+
```jsonnet
24+
{
25+
zfcp: {
26+
devices: [
27+
{
28+
channel: "0.0.fa00",
29+
wwpn: "0x500507630300c562",
30+
lun: "0x4010403300000000"
31+
}
32+
]
33+
}
34+
}
35+
```

0 commit comments

Comments
 (0)