[Windows Manager]
Installation_folder\SVROR\Manager\sys\dr_vmware_script\dsmount.pl - Mounting of a datastore to a VM host
[Linux Manager]
/opt/FJSVrcvmr/sys/dr_vmware_script/dsmount.pl - Mounting of a datastore to a VM host
perl dsmount.pl -input file [-server soft_ip] [-username username] [-password password] {-type vmfs | -type nfs -listfile file [-unmount]}
This command mounts the VMFS/NFS datastore for which mount is specified for the operation in the specified storage information file to a VM host.
When an error occurs, in addition to the item name for which the error occurred, the line in which the error occurred in the storage information file specified using -input may be output. In this case, the processing of preceding lines has been completed for the corresponding items.
To execute the script, it is necessary to install VMware: vCLI (an external tool that controls VM software) on a server which can communicate with the VM management software beforehand.
When executing the script, it operates according to the settings of vCLI Connection Options. For details on vCLI Connection Options, refer to the VMware manual.
Refer to "vSphere Command-Line Interface Concepts and Examples" from the "vSphere Command-Line Interface Documentation page" at the following URL:
URL: http://www.vmware.com/support/pubs/vsphere-esxi-vcenter-server-pubs.html
Specify the IP address of VMware vCenter Server.
When omitted, the same operation as when "--server" is omitted in vCLI Connection Options will be performed.
Enter the name of a VIOM vCenter Server user account.
Specify a user with administrative privileges.
When omitted, the same operation as when "--username" is omitted in vCLI Connection Options will be performed.
Enter the password of the VIOM vCenter Server user account.
When omitted, the same operation as when "--password" is omitted in vCLI Connection Options will be performed.
Specify a storage information file.
For details on the file creation procedure, refer to "B.3 rcxadm config".
Specify the file using a relative or absolute path.
Performs resignaturing of the VMFS datastore. After resignaturing, the datastore name will be restored to its original name.
Point
Resignaturing is performed to make the VMFS database copy recognizable by ESX or ESXi because it is not otherwise recognized as a datastore.
When resignaturing is performed, the datastore is temporarily renamed to "snap-snapID-oldLabel" but it is renamed again to "oldLabel" before the completion of the script.
Be sure the prerequisites for resignaturing have been satisfied before executing the script.
For details on resignaturing and prerequisites, refer to "Resignature a VMFS Datastore Copy" in the VMware manual available at:
Refer to the document of the corresponding version at the following URL:
vSphere Storage Guide
URL: http://www.vmware.com/support/pubs/vsphere-esxi-vcenter-server-pubs.html
Specify the CSV file, which contains NFS connection information.
Specification format of the CSV is as follows:
Datastore name,IP address or domain name,NFS path
Example
storage_X,192.168.3.230,/nfs/data
Exit Status
This command returns the following values:
>perl dsmount.pl -input out.csv -type vmfs -username Administrator <RETURN> Enter password: