3  Marvell RAID Command Line Interface (CLI)

This chapter includes the following sections:

Launching the CLI

Windows OS

Linux OS

CLI Commands

?

help

adapter

assign

cc

create

delete

event

exit

flash

get

info

init

migrate

rebuild

set

pause

enc

import

locate

copyback

3.1  Launching the CLI

This section describes how to launch the CLI on Windows and Linux OS.

3.1.1  Windows OS

On Windows OS, the CLI can be launched using the shortcut in the Marvell RAID Utility Start Menu Program Group.

To run the CLI on Windows OS

1.  Click Start > Programs > Marvell Raid Utility > Marvell RAID CLI. A command prompt window opens.

2.  Type ? or help for a list of available commands, as shown in Figure 3-1.

3.  Type exit to close the CLI window.

Figure 3-1  The Marvell RAID Command Line Interface Help Menu

3.1.2  Linux OS

On Linux OS, the CLI can be launched through the OpenTerminal.

To run the CLI on Linux OS

1.  Right-click Desktop and select OpenTerminal from the pop-up menu.

Figure 3-2  Linux OpenTerminal

2.  Type the following commands:

cd /opt/marvell/raid/cli

./mvcli

Figure 3-3  Launching the CLI

3.2  CLI Commands

Depending on the capabilities of the Marvell adapter, the CLI supports some or all of the following commands:

?

help

adapter

assign

cc

create

delete

event

exit

flash

get

info

init

migrate

rebuild

set

pause

enc

import

locate

copyback

3.2.1  ?

For a list of supported CLI commands and descriptions, type ? or help in the CLI, as shown in Figure 3-4.

Figure 3-4  CLI Command: ?

3.2.2  help

For a list of supported commands and descriptions, you can also type help. For help on a specific command, type help followed by the command. For help on the adapter command, type help adapter, as shown in Figure 3-5.

Figure 3-5  CLI Command: help

3.2.3  adapter

Use this command to set the default adapter on which the CLI commands are executed. The adapter command is useful if you have more than one adapter in your system. Figure 3-6 describes the syntax for using this command.

Figure 3-6  CLI Command: adapter.

3.2.4  assign

Use this command to assign a physical disk as a spare drive. Figure 3-7 describes the syntax for using this command.

Figure 3-7  CLI Command: assign

3.2.5  cc

Use this command to initialize and control the consistency check procedure for a virtual disk. Figure 3-8 describes the syntax for using this command.

Figure 3-8  CLI Command: cc

3.2.6  create

Use this command to create a virtual disk. Figure 3-9 describes the syntax for using this command.

Figure 3-9  CLI Command: create

3.2.7  delete

Use this command to delete a virtual disk or release a physical disk from its spare status. Figure 3-10 describes the syntax for using this command.

Figure 3-10  CLI Command: delete

3.2.8  event

Use this command to get a list of current events from the events log. Figure 3-11 describes the syntax for using this command.

Figure 3-11  CLI Command: event

3.2.9  exit

Type exit in the CLI to exit the program.

3.2.10  flash

Use this command to update, backup and erase the flash image. Figure 3-12 describes the syntax for using this command.

Note: The flash command is only supported on IO Controlelrs (IOC).

Figure 3-12  CLI Command: flash

 

3.2.11  get

Use this command to display the properties of virtual disks, physical disks, arrays, HBA and the driver. Figure 3-13 describes the syntax for using this command.

Figure 3-13  CLI Command: get

3.2.12  info

Use this command for information on all hardware and software components. Figure 3-14 describes the syntax for using this command.

Figure 3-14  CLI Command: info

3.2.13  init

Use this command to initialize and control the background initialization procedure for a virtual disk. Figure 3-15 describes the syntax for using this command.

Figure 3-15  CLI Command: init

 

3.2.14  migrate

Use this command to initialize and control the migration procedure for virtual disks. Figure 3-16 describes the syntax for using this command.

Figure 3-16  CLI Command: migrate

3.2.15  rebuild

Use this command to initialize and control the rebuilding of a virtual disk. Figure 3-17 describes the syntax for using this command.

Figure 3-17  CLI Command: rebuild

3.2.16  set

Use this command to modify the (editable) properties of a physical disk, virtual disk, HBA and driver. Figure 3-18 describes the syntax for using this command.

Figure 3-18  CLI Command: set

 

3.2.17  pause

Use this command to pause all background activities on the specified controller. Figure 3-19 describes the syntax for using this command.

Figure 3-19  CLI Command: pause

3.2.18  enc

Use this command to display the properties of an enclosure. Figure 3-20 describes the syntax for using this command.

Figure 3-20  CLI Command: enc

3.2.19  import

Use this command to import virtual disks. Figure 3-21 describes the syntax for using this command.

Figure 3-21  CLI Command: import

3.2.20  locate

Use this command to locate a physical disk in an enclosure or backplane. The locate command requires that the enclosure or backplane support the ’r;locate’ feature. Figure 3-22 describes the syntax for using this command.

Figure 3-22  CLI Command: locate

3.2.21  copyback

Use this command to pause and resume the ’r;copy back’ operation on an array. Figure 3-23 describes the syntax for using this command.

Note: The copyback command is supported only on RAID-On-Chip (ROC) controllers.

Figure 3-23  CLI Command: copyback