text stringlengths 0 4.23k |
|---|
noerr |
For scripting only. When an error is encountered, Diskraid continues to process commands as if the error did not occur. |
standby |
Changes the status of the paths to the currently selected host bus adapter (HBA) port to STANDBY. |
Syntax |
standby hbaport |
Parameters |
Parameter |
Description |
hbaport |
Changes the status of the paths to the currently selected host bus adapter (HBA) port to STANDBY. |
unmask |
Makes the currently selected LUNs accessible from the specified hosts. |
Syntax |
unmask lun {all | none | [add] wwn=<hexadecimal_number> [;<hexadecimal_number> [;…]] | [add] initiator=<initiator>[;<initiator>[;…]]} [uninstall] |
Parameters |
Parameter |
Description |
all |
Specifies that the LUN should be made accessible from all hosts. However, you cannot unmask the LUN to all targets in an iSCSI subsystem.You must logout of the target before you run the unmask lun all command. |
none |
Specifies that the LUN should not be accessible to any host.You must logout of the target before you run the unmask lun none command. |
add |
Specifies that the hosts specified must be added to the existing list of hosts that this LUN is accessible from. If this parameter is not specified, the list of hosts supplied replaces the existing list of hosts that this LUN is accessible from. |
wwn= |
Specifies a list of hexadecimal numbers representing world-wide names from which the LUN or hosts should be made accessible. To mask/unmask to a specific set of hosts in a Fibre Channel subsystem, you can type a semicolon-separated list of WWN's for the ports on the host machines of interest. |
initiator= |
Specifies a list of iSCSI initiators to which the currently selected LUN should be made accessible. To mask/unmask to a specific set of hosts in an iSCSI subsystem, you can type a semicolon-separated list of iSCSI initiator names for the initiators on the host computers of interest. |
uninstall |
If specified, uninstalls the disk associated with the LUN on the local system before the LUN is masked. |
You must logout of the target before you run the unmask lun all command. |
unmask lun all |
You must logout of the target before you run the unmask lun none command. |
unmask lun none |
Scripting Diskraid |
Diskraid can be scripted on any computer running a supported version of Windows Server, with an associated VDS hardware provider. To invoke a Diskraid script, at the command prompt type: |
diskraid /s <script.txt> |
By default, Diskraid stops processing commands and returns an error code if there is a problem in the script. To continue running the script and ignore errors, include the noerr parameter on the command. This permits such useful practices as using a single script to delete all the LUNs in a subsystem regardless of the total number of LUNs. Not all commands support the noerr parameter. Errors are always returned on command-syntax errors, regardless of whether you included the noerr parameter. |
Diskraid error codes |
Error Code |
Error Description |
0 |
No error occurred. The entire script ran without failure. |
1 |
A fatal exception occurred. |
2 |
The arguments specified on a Diskraid command line were incorrect. |
3 |
Diskraid was unable to open the specified script or output file. |
4 |
One of the services Diskraid uses returned a failure. |
5 |
A command syntax error occurred. The script failed because an object was improperly selected or was invalid for use with that command. |
Example |
To view the status of subsystem 0 on your computer, type: |
diskraid |
Press ENTER and output similar to the following is displayed: |
Microsoft Diskraid version 5.2.xxxx |
Copyright (©) 2003 Microsoft Corporation |
On computer: COMPUTER_NAME |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.