HP XP Racks User Manual

Page 20

Advertising
background image

Therefore, if RAID Manager and HORCM are executing in different jobs (different terminal), then
you must redefine LNM$TEMPORARY_MAILBOX in the LNM$PROCESS_DIRECTORY table as follows:

$ DEFINE/TABLE=LNM$PROCESS_DIRECTORY LNM$TEMPORARY_MAILBOX LNM$GROUP

(4) Start-up method for HORCM daemon

HORCM can start as the daemon process from a UNIX Shell. But in the case of 'vfork' of CRTL, if
a parent process has exit() then a child process also ends at the same time. In other words it looks
that OpenVMS cannot make a daemon process from the POSIX program. Therefore, horcmstart.exe
has been changed to wait until HORCM has been exiting by horcmshutdown.exe after start-up of
the horcmgr. According to the rule for creating process in OpenVMS, to start-up the horcmstart.exe
is to create the detached process or Batch JOB by using DCL command, as this method closely
resembles the horcmd process on UNIX.

For example, using the Detached process:

If you want to have the HORCM daemon running in the background, you need to make the
Detached LOGINOUT.EXE Process by using the 'RUN /DETACHED' command of the OpenVMS,
and need to make the commands file for LOGINOUT.EXE.

The following are examples of "loginhorcm*.com" file given to SYS$INPUT for LOGINOUT.EXE,
and are examples that "VMS4$DKB100:[SYS0.SYSMGR.]" was defined as SYS$POSIX_ROOT.

loginhorcm0.com

$ DEFINE/TRANSLATION=(CONCEALED,TERMINAL) SYS$POSIX_ROOT "VMS4$DKB100:[SYS0.SYSMGR.]"
$ DEFINE DCL$PATH SYS$POSIX_ROOT:[horcm.usr.bin],SYS$POSIX_ROOT:[horcm.etc]
$ DEFINE/TABLE=LNM$PROCESS_DIRECTORY LNM$TEMPORARY_MAILBOX LNM$GROUP
$ horcmstart 0

loginhorcm1.com

$ DEFINE/TRANSLATION=(CONCEALED,TERMINAL) SYS$POSIX_ROOT "VMS4$DKB100:[SYS0.SYSMGR.]"
$ DEFINE DCL$PATH SYS$POSIX_ROOT:[horcm.usr.bin],SYS$POSIX_ROOT:[horcm.etc]
$ DEFINE/TABLE=LNM$PROCESS_DIRECTORY LNM$TEMPORARY_MAILBOX LNM$GROUP
$ horcmstart 1

$ run /DETACHED SYS$SYSTEM:LOGINOUT.EXE /PROCESS_NAME=horcm0 -
_$ /INPUT=VMS4$DKB100:[SYS0.SYSMGR.][horcm]

loginhorcm0.com -

_$ /OUTPUT=VMS4$DKB100:[SYS0.SYSMGR.][horcm]run0.out -
_$ /ERROR=VMS4$DKB100:[SYS0.SYSMGR.][horcm]run0.err
%RUN-S-PROC_ID, identification of created process is 00004160
$
$

$

$ run /DETACHED SYS$SYSTEM:LOGINOUT.EXE /PROCESS_NAME=horcm1 -

_$ /INPUT=VMS4$DKB100:[SYS0.SYSMGR.][horcm]

loginhorcm1.com -

_$ /OUTPUT=VMS4$DKB100:[SYS0.SYSMGR.][horcm]run1.out -
_$ /ERROR=VMS4$DKB100:[SYS0.SYSMGR.][horcm]run1.err
%RUN-S-PROC_ID, identification of created process is 00004166

You can also verify that HORCM daemon is running as Detached Process by using 'SHOW
PROCESS' command.

$ show process horcm0
25-MAR-2003 23:27:27.72 User: SYSTEM Process ID: 00004160
Node: VMS4 Process name: "HORCM0"
Terminal:
User Identifier: [SYSTEM]
Base priority: 4
Default file spec: Not available
Number of Kthreads: 1
Soft CPU Affinity: off

$

$ horcmshutdown 0 1

inst 0:
HORCM Shutdown inst 0 !!!
inst 1:
HORCM Shutdown inst 1 !!!
$

20

Installation requirements

Advertising
This manual is related to the following products: