beautypg.com

Run command, Unmountvirtualdisk command, Run command unmountvirtualdisk command – HP SAN Virtualization Services Platform User Manual

Page 56

background image

Description

Mounts a virtual disk or snapshot. The virtual disk or snapshot must have at least one file system
(partition) on it.

The following are rules for the Windows operating system:

The mount point must always end with a backslash (for example, Q:\ or H:\MP\).

If the mount point is a drive letter, it must be a free drive letter (or use the -Override
argument).

If the mount point points to a folder, the target folder must be empty or nonexistent, and it
must be an NTFS file system.

The -Partition argument is optional, and has the following guidelines:

If using the -Partition argument in Windows, the specific partition is mounted as a partition
number (as a string).

If using the -Partition argument in UNIX, the specific partition is mounted as a logical
virtual disk name.

If the -Partition argument is omitted, or equal to a -1, the first partition on the disk is
mounted.

A limitation with Windows 2003/2008 is if the VSM virtual disk or snapshot is a dynamic disk,
only one partition is allowed (for example, the partition number can be dropped, or it must always
be equal to 1 or -1). For dynamic disks, the CLI can mount disks with one partition or file system
only.

The mount point must be free, or can be taken by a VSM virtual disk or snapshot, in which case
the behavior is determined by the -Override argument:

If the -Override argument is used in the command, the existing VSM virtual disk or snapshot
mount point is unmounted before mounting the new virtual disk or snapshot.

If the -Override argument is not used, and the mount point is not free, the command fails.

IMPORTANT:

This command is only valid for Windows 2003/2008. For UNIX, use the UNIX

mount command with the Run command.

Run

command

Syntax

Run -Command OneCommandLine

Description

Runs an operating system command line through the VSM API. This command takes the input
command line (as input, including all spaces) and sends it to the operating system for execution.
The command can be used to execute any external operating system command, batch file, or script
from within a CLI input file.

NOTE:

The command line must be in the proper format for the operating system.

The input line cannot be broken (a continuation line is not allowed).

UnmountVirtualDisk

command

Syntax

UnmountVirtualDisk -VirtualDisk VirtualDiskName [, -Partition Partition]

56

Using the VSM command line interface