HP XP P9500 HP P9000 RAID Manager Reference Guide (T1610-96037, October 2011) - Page 105

Environment variable subcommands, Syntax, Arguments, Example

Page 105 highlights

NOTE: The umount command flushes (sync) the system buffer of the associated drive before deleting the drive letter. If umount fails, confirm the following conditions: The logical and physical drives designated as the objects of the umount command are not opened to any applications. For example, confirm that Explore is not pointed on the target drive. If it is, then the target drive is opening. Umount command does not ignore the detected error on the NT file system, so that umount is successful in a normal case (NO ERROR case) only on NT file system. For example, confirm the target drive has no failure on the system for Event Viewer. If so, you must reboot the system or delete the partition and reconfigure the target drive. NOTE: The umountd command has the following behavior as well. Unmount the logical drive after waiting (30 sec) the delayed (paging) IO for dismount after flushed the system buffer to a drive. This avoids a problem (Windows 2003 only) that NTFS on P-VOL is split on inconsistent state because Windows 2003 (SP1) delays the IO for dismounting. This also avoids a problem that the delayed (paging) IO for dismounting is written on S-VOL_PAIR(Writing Disable) state by rescan, and logged as Windows event (For example, ID51,57). These problems do not occur on Windows 2008 systems. Environment variable subcommands If no environment variables are set in the execution environment, the following environment variable subcommands set or cancel an environment variable within the RAID Manager command. setenv: The setenv subcommand sets the specified environment variable(s). usetenv: The usetenv subcommand deletes the specified environment variable(s). env: The env subcommand command displays the environment variable(s). sleep: The sleep subcommand causes RAID Manager to wait for the specified time. Syntax -x setenv vaname value -x usetenv vaname -x env -x sleep time Arguments Argument Vaname Value Time Restriction Description Specifies the environment variable to be set or canceled. Specifies the value or character string of the environment variable to be set. Specifies the sleep time in seconds. The environment variables must be set before connecting to HORCM, and must be specified during interactive mode (-z option). Changing an environment variable after a RAID Manager command execution error is invalid. Example The following shows an example of the setenv and usetenv subcommands used as an option of the raidscan command. This example changes from "HORC" to "HOMRCF" an execution environment of the raidscan command which makes a dialog mode, because of establishing "HORCC_MRCF" as an environment variable. Environment variable subcommands 105

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194

NOTE:
The
umount
command flushes (sync) the system buffer of the associated drive before
deleting the drive letter. If umount fails, confirm the following conditions:
The logical and physical drives designated as the objects of the
umount
command are not opened
to any applications. For example, confirm that Explore is not pointed on the target drive. If it is,
then the target drive is opening.
Umount command does not ignore the detected error on the NT file system, so that umount is
successful in a normal case (NO ERROR case) only on NT file system. For example, confirm the
target drive has no failure on the system for Event Viewer. If so, you must reboot the system or
delete the partition and reconfigure the target drive.
NOTE:
The
umountd
command has the following behavior as well.
Unmount the logical drive after waiting (30 sec) the delayed (paging) IO for dismount after flushed
the system buffer to a drive.
This avoids a problem (Windows 2003 only) that NTFS on P-VOL is split on inconsistent state
because Windows 2003 (SP1) delays the IO for dismounting. This also avoids a problem that the
delayed (paging) IO for dismounting is written on S-VOL_PAIR(Writing Disable) state by rescan,
and logged as Windows event (For example, ID51,57).
These problems do not occur on Windows 2008 systems.
Environment variable subcommands
If no environment variables are set in the execution environment, the following environment variable
subcommands set or cancel an environment variable within the RAID Manager command.
setenv
: The setenv subcommand sets the specified environment variable(s).
usetenv
: The usetenv subcommand deletes the specified environment variable(s).
env
: The env subcommand command displays the environment variable(s).
sleep
: The sleep subcommand causes RAID Manager to wait for the specified time.
Syntax
-x setenv vaname value -x usetenv vaname -x env -x sleep time
Arguments
Description
Argument
Specifies the environment variable to be set or canceled.
Vaname
Specifies the value or character string of the environment variable to be set.
Value
Specifies the sleep time in seconds.
Time
The environment variables must be set before connecting to HORCM, and must be specified during
interactive mode (-z option). Changing an environment variable after a RAID Manager command
execution error is invalid.
Restriction
Example
The following shows an example of the
setenv
and
usetenv
subcommands used as an option of
the
raidscan
command. This example changes from “HORC” to “HOMRCF” an execution
environment of the
raidscan
command which makes a dialog mode, because of establishing
“HORCC_MRCF” as an environment variable.
Environment variable subcommands
105