3 Marvell RAID Command Line Interface (CLI)
This chapter includes the following sections:
• Linux OS
• ?
• help
• adapter
• assign
• cc
• create
• delete
• event
• exit
• flash
• get
• info
• init
• migrate
• rebuild
• set
• pause
• enc
• import
• locate
• copyback
This section describes how to launch the CLI on Windows and Linux 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
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
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
For a list of supported CLI commands and descriptions, type ? or help in the CLI, as shown in Figure 3-4.
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.
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.
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
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.
Use this command to create a virtual disk. Figure 3-9 describes the syntax for using this command.
Figure 3-9 CLI Command: create
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
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
Type exit in the CLI to exit the program.
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
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.
Use this command for information on all hardware and software components. Figure 3-14 describes the syntax for using this command.
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.
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
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
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.
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
Use this command to display the properties of an enclosure. Figure 3-20 describes the syntax for using this command.
Use this command to import virtual disks. Figure 3-21 describes the syntax for using this command.
Figure 3-21 CLI Command: import
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
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