Top
ServerView Resource Orchestrator Cloud Edition V3.4.0 DR Option Instruction
FUJITSU Software

B.4 dsmount.pl

Name

[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

Format

perl dsmount.pl -input file [-server soft_ip] [-username username] [-password password] {-type vmfs | -type nfs -listfile file [-unmount]}

Function description

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

Option

-server soft_ip

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.

-username username

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.

-password password

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.

-input input

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.

-type nfs
Performs mounting of an NFS datastore
-type vmfs

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
-unmount
Performs unmounting instead of the mounting operation.
-listfile

Specify the CSV file, which contains NFS connection information.

  • Lines beginning with sharp signs ("#") are comments in this CSV file.
  • Blank lines in this CSV file are regarded as meaningless and skipped.
  • Do not use multibyte characters for datastore names.

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:

0
The command executed successfully.
1
An error has occurred.

Example

>perl dsmount.pl -input out.csv -type vmfs -username Administrator <RETURN> 
Enter password: