JP1/AJS resources protect Hitachi JP1/Automatic Job Management System components, including JP1/Base, JP1/AJS3-Agent, and JP1/AJS3-Manager. These resources manage the associated services during cluster failover and failback.

Resource Type: appsuite/jp1ajs
Aliases: jp1ajs

Subcommands

JP1/AJS resources are managed by commands of the form:

lkcli resource appsuite/jp1ajs <subcommand> [flags]

Subcommand Description Required Role
create Create a new JP1/AJS resource admin
extend Extend to a standby server admin
get-property Read a resource property guest
set-property Update an editable resource property admin

create

lkcli resource appsuite/jp1ajs create --component=<enum> [flags]

Flag Short Type Required Default Constraints Description
--component enum Yes JP1/Base, JP1/AJS3-Agent, JP1/AJS3-Manager The JP1/AJS component to protect
--ip-resource string No Tag name of dependent LifeKeeper IP resource associated with the logical host.
If specified, a dependency is created with the IP resource. If not specified, then no dependency is created.
--volume-resource string No Tag name of dependent LifeKeeper Volume resource.
If specified, a dependency is created with the Volume resource. If not specified, then no dependency is created.
--jp1-base-resource string Conditional Tag of the JP1/Base resource; required when --component=JP1/AJS3-Manager or JP1/AJS3-Agent
--logical-host string No Derived from --jp1-base-resource Logical host name for the resource
--tag string No Auto-generated Resource tag name
--switchback enum No INTELLIGENT INTELLIGENT, AUTOMATIC Switchback type

extend

lkcli resource appsuite/jp1ajs extend --primary-sys=<string> --primary-tag=<string> [flags]

Flag Short Type Required Default Constraints Description
--primary-sys string Yes Hostname of the server the existing resource is extended from
--primary-tag string Yes Tag of the existing resource to extend
--standby-sys string No Value of --host (defaults to localhost) Hostname of the standby server
--switchback enum No INTELLIGENT INTELLIGENT, AUTOMATIC Switchback type
--primary-priority int No Defaults to the current priority of the --primary-sys server, or 1 if the resource has not yet been extended min: 1, max: 999 Failover priority for the primary server
--standby-priority int No Defaults to an unused value which is computed dynamically based on the priority values currently in-use min: 1, max: 999 Failover priority for the standby server

get-property / set-property

lkcli resource appsuite/jp1ajs get-property --tag=<string> --property=<string>
lkcli resource appsuite/jp1ajs set-property --tag=<string> --property=<string> --value=<string>


Flag Short Type Required Description
--tag -t string Yes Resource tag name
--property -p string Yes Property name (see Properties table below)
--value -v string Yes (set-property only) New property value

Properties

Property Type Constraints Editable Description
kit-name string No Recovery kit name
force-stop-timeout int (Min: 0, Max: 3600) Yes Number of seconds to wait before timing out a force stop operation
local-recovery enum enabled, disabled Yes Enable or disable local recovery
quickcheck-interval int (Min: 0, Max: 604800) Yes Quickcheck interval
quickcheck-timeout int (Min: 0, Max: 3600) Yes Number of seconds to wait before timing out a quick health check
recovery-timeout int (Min: 0, Max: 3600) Yes Number of seconds to wait before timing out a recovery operation
remove-timeout int (Min: 0, Max: 3600) Yes Number of seconds to wait before timing out a remove operation
restore-timeout int (Min: 0, Max: 3600) Yes Number of seconds to wait before timing out a restore operation
retry-interval int (Min: 1, Max: 100) Yes Number of seconds to wait between attempts to retry a failed status check during the restore or remove operation
switchback enum INTELLIGENT, AUTOMATIC Yes Switchback type

Example Usage

# Step 1: Create a JP1/Base resource
lkcli resource appsuite/jp1ajs create \
  --host=server1 \
  --component="JP1/Base" \
  --logical-host=JP1LogicalHost \
  --ip-resource=ip-192.168.1.100 \
  --volume-resource=DataKeeper-E \
  --tag=jp1base.JP1LogicalHost

# Step 2: Create a JP1/AJS3-Manager resource that depends on JP1/Base
lkcli resource jp1ajs create \
  --host=server1 \
  --component="JP1/AJS3-Manager" \
  --jp1-base-resource=jp1base.JP1LogicalHost \
  --logical-host=JP1LogicalHost \
  --tag=jp1ajs3mgr.JP1LogicalHost

# Extend JP1/Base to server2
lkcli resource appsuite/jp1ajs extend \
  --primary-sys=server1 \
  --primary-tag=jp1base.JP1LogicalHost \
  --standby-sys=server2

# Extend JP1/AJS3-Manager to server2
lkcli resource appsuite/jp1ajs extend \
  --primary-sys=server1 \
  --primary-tag=jp1ajs3mgr.JP1LogicalHost \
  --standby-sys=server2

# Read restore-timeout
lkcli resource appsuite/jp1ajs get-property \
  --host=server1 \
  --tag=jp1base.JP1LogicalHost \
  --property=restore-timeout

# Update restore-timeout
lkcli resource appsuite/jp1ajs set-property \
  --host=server1 \
  --tag=jp1base.JP1LogicalHost \
  --property=restore-timeout \
  --value=400

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment