raidcom-mcp 0.0.0-stage → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +64 -0
- package/INSTALL.md +169 -0
- package/LICENSE +21 -0
- package/README.docker.md +50 -0
- package/README.md +119 -2
- package/README.plugin.md +56 -0
- package/dist/builder.js +409 -0
- package/dist/catalog.js +79 -0
- package/dist/cmdline.js +145 -0
- package/dist/config.js +128 -0
- package/dist/http.js +215 -0
- package/dist/index.js +307 -0
- package/dist/recipes.js +307 -0
- package/dist/search.js +157 -0
- package/dist/tools.js +179 -0
- package/package.json +54 -4
- package/spec/examples.json +390 -0
- package/spec/limits.json +236 -0
- package/spec/notes/conventions.md +56 -0
- package/spec/notes/horcm-setup.md +27 -0
- package/spec/raidcom-catalog.json +1 -0
- package/spec/recipes.json +1106 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# raidcom conventions
|
|
2
|
+
|
|
3
|
+
These notes cover what surrounds a raidcom command. This server only builds command text; the commands run on a
|
|
4
|
+
host that has Command Control Interface (CCI) installed and can reach the storage system.
|
|
5
|
+
|
|
6
|
+
## Before the first command
|
|
7
|
+
|
|
8
|
+
- A HORCM instance must be running on the host (`horcmstart.sh <instance>`), and its configuration file needs a
|
|
9
|
+
`HORCM_CMD` section that names a command device (a small LDEV mapped to the host) or an IP command device
|
|
10
|
+
(`\\.\IPCMD-<SVP or controller IP>-31001`). Select the instance with `HORCMINST` or the `-I<n>` option.
|
|
11
|
+
- raidcom needs a login: `raidcom -login <user> <password>`. Without it raidcom prompts for every array in the
|
|
12
|
+
HORCM file. Log out when finished (`raidcom -logout`); the array only keeps a limited number of logins.
|
|
13
|
+
- The account needs storage administration rights to run changing commands.
|
|
14
|
+
|
|
15
|
+
## Serial numbers (`-s`)
|
|
16
|
+
|
|
17
|
+
Needed when the HORCM file lists more than one array. The number you type is not always the number on the
|
|
18
|
+
label: VSP 5000 series add a leading 5 (label 12345 becomes 512345), VSP G1x00 and VSP F1500 add a leading 3
|
|
19
|
+
(312345). Pass `model` so the server checks the range.
|
|
20
|
+
|
|
21
|
+
## Instances (`-I`)
|
|
22
|
+
|
|
23
|
+
`-I0` selects instance 0. `-IH0` and `-ITC0` pick the TrueCopy / Universal Replicator / global-active device
|
|
24
|
+
side, `-IM0` and `-ISI0` the ShadowImage / Thin Image side. Without `-I`, the `HORCMINST` and `HORCC_MRCF`
|
|
25
|
+
environment variables decide.
|
|
26
|
+
|
|
27
|
+
## Asynchronous commands
|
|
28
|
+
|
|
29
|
+
Many changing commands (`add ldev`, `add lun` with `-request_id auto`, `modify ldev -status ...`, pool and
|
|
30
|
+
parity group operations) return before the array has finished. Run `raidcom get command_status` afterwards; an
|
|
31
|
+
empty error column means success. Give a code from the SSB columns to `raidcom get error_message` to read the
|
|
32
|
+
reason. Only a limited number of asynchronous commands can be queued at once, so very large batches should be
|
|
33
|
+
split.
|
|
34
|
+
|
|
35
|
+
## Resource locking
|
|
36
|
+
|
|
37
|
+
Changing commands should run with the resource group locked so other tools (Storage Navigator, Ops Center,
|
|
38
|
+
other raidcom users) do not change the same objects at the same time:
|
|
39
|
+
|
|
40
|
+
raidcom lock resource -I0
|
|
41
|
+
... changing commands ...
|
|
42
|
+
raidcom unlock resource -I0
|
|
43
|
+
|
|
44
|
+
`raidcom lock resource -time <seconds>` limits how long the lock may be held; `-automatic_unlock` releases it
|
|
45
|
+
automatically.
|
|
46
|
+
|
|
47
|
+
## Checking before changing
|
|
48
|
+
|
|
49
|
+
`-checkmode precheck` makes raidcom check a command without applying it. Use it first on commands you have not
|
|
50
|
+
run before on a given model.
|
|
51
|
+
|
|
52
|
+
## LDEV numbers
|
|
53
|
+
|
|
54
|
+
Commands take decimal numbers (`-ldev_id 256`), hexadecimal with a 0x prefix, or CU:LDEV in hexadecimal as used for
|
|
55
|
+
mainframe volumes (`-ldev_id dd:0f`). `-fx` prints LDEV numbers in
|
|
56
|
+
hexadecimal. Ranges like `-ldev_id 100-110` are accepted by the reporting commands.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Minimal HORCM configuration for raidcom
|
|
2
|
+
|
|
3
|
+
A file with only `HORCM_CMD` is enough to run raidcom. Save it as `/etc/horcm0.conf` for instance 0.
|
|
4
|
+
|
|
5
|
+
Physical command device (the volume is mapped to this host and shows up as a SCSI device):
|
|
6
|
+
|
|
7
|
+
HORCM_CMD
|
|
8
|
+
\\.\CMD-<serial>-<ldev#>:/dev/sd*
|
|
9
|
+
|
|
10
|
+
Out-of-band (IP) command device, which needs only network access to the controller or SVP:
|
|
11
|
+
|
|
12
|
+
HORCM_CMD
|
|
13
|
+
\\.\IPCMD-<ip address>-31001
|
|
14
|
+
|
|
15
|
+
Both forms can be mixed in one file. Out-of-band command devices are slower, so prefer a physical command device
|
|
16
|
+
for long scripts.
|
|
17
|
+
|
|
18
|
+
Find command devices on Linux with `ls /dev/sd* | raidscan -find`.
|
|
19
|
+
|
|
20
|
+
Start the instance and log in:
|
|
21
|
+
|
|
22
|
+
horcmstart.sh 0
|
|
23
|
+
export HORCMINST=0
|
|
24
|
+
raidcom -login <user> <password>
|
|
25
|
+
|
|
26
|
+
Replication (paircreate and friends) additionally needs `HORCM_MON`, `HORCM_LDEV` or `HORCM_DEV`, and
|
|
27
|
+
`HORCM_INST` sections. Those commands are outside this server's scope.
|