• No results found

Recovery (Snapshot)-Related Options

In document MegaRaid SAS Software (Page 190-194)

Chapter 5: MegaRAID Command Tool

5.19 Recovery (Snapshot)-Related Options

(Snapshot)-Related Options

The commands in this section are used to perform actions with the Recovery advanced software, also known as Snapshot.

The Recovery feature uses Snapshot technology to offer a simplified way to recover lost data and provides protection for any volume, including the boot volume. You can use Recovery to take snapshots of a volume at designated point in time and restore the volume or files from those points in case data is deleted, whether accidentally or maliciously. MegaRAID Recovery supports up to eight snapshots of PiTs for each volume.

Table 106: Display PHY Connection Information

Convention MegaCli –PHYInfo -phyM –aN|-a0,1,2|-aALL

Description Displays PHY connection information for physical PHY M on the controller(s).

Table 107: Start Diagnostics Setting

Convention MegaCli –AdpDiag [val] –aN|-a0,1,2|-aALL

Description Sets the amount of time for the controller diagnostic to run.

Val: Indicates the time in seconds for the controller diagnostic to run.

Table 108: Start Battery Test

Convention MegaCli –AdpBatTest –aN|-a0,1,2|-aALL

Description Starts the battery test. This command requires that you turn off the power to the system, and then turn on the power and reboot the system.

MegaRaid SAS Software User Guide Chapter 5: MegaRAID Command Tool | Recovery (Snapshot)-Related Options

5.19.1 Enable the Snapshot Feature Use the command in Table 109 to enable the snapshot feature on a selected virtual drive..

5.19.2 Disable the Snapshot Feature Use the command in Table 110 to enable the snapshot feature on a selected virtual drive.

5.19.3 Take Snapshot of Volume Use the command in Table 111 to take a snapshot of a volume at designated point in time .

Description Enables the snapshot on the source virtual drive for the corresponding snapshot target virtual drive.

-szXXX: Specifies the size in MB on for the virtual drive, where XXX is a decimal number of MB.

SnapshotRepositoryLD N: Specifies the repository LD number.

-AutoSnapshot: Optional parameter, if specified, enables the AutoSnapshot for the source virtual drive.

-AutoDeleteOldestSnapshot: Optional parameter, if specified, enables the AutoDeletOldestSnapshot for the source virtual drive.

-Lx: x specifies the Source LD number on which to enable snapshot.

Table 110: Disable the Snapshot Feature

Convention MegaCli -Snapshot -Dsbl -Lx -aN|-a0,1,2|-aALL

Description Command disables the snapshot on the source virtual drive.

-Lx: x specifies the Source LD number on which to disable snapshot.

Table 111: Take Snapshot of Volume

Convention MegaCli -Snapshot -TakeSnapshot [-snapshotName

name] [-CreateView [-ViewName view_name]

[-RW|RO|Blocked] [-szXXX]] -LN|-L0,1,2 -aN|-a0,1,2|-aALL \n", appNameP);

Description Takes a snapshot of a volume at designated point in time.

-snapshotName name: (Optional) If specified, the snapshot is created with the name you enter for it.

-CreateView: (Optional) If specified, this creates a view for the snapshot.

A view contains the content from the Point-in-Time [PiT] when the snapshot was made.

-ViewName view_name: (Optional) Specifies the name of the view you created.

-RW|RO|Blocked: Optional Parameter, specifies the access policy of the view.

-szXXX: Specifies the size of the view in MB where XXX is a decimal number -LN: N specifies the source LD number for the command.

MegaRaid SAS Software User Guide Chapter 5: MegaRAID Command Tool | Recovery (Snapshot)-Related Options

5.19.4 Set the Snapshot Properties Use the command in Table 112 to set the snapshot properties..

5.19.5 Delete a Snapshot Use the command in Table 113 to delete a snapshot.

Table 112: Set the Snapshot Properties

Convention MegaCli -Snapshot -SetProp {-AutoSnapshot -val}

| {-AutoDeleteOldestSnapshot -val} -Lx -aN|-a0,1,2|-aALL

Description Sets the Snapshot properties such as AutoSnapshot and AutoDeleteOldestSnapshot.

-AutoSnapshot: If the value is 0, this command disables the

AutoSnapshot feature on source virtual drive. If the value is 1, it enables the AutoSnapshot feature on source virtual drive

-AutoDeleteOldestSnapshot: If the value is 0, this command disables the AutoDeleteOldestSnapshot feature on the source virtual drive. If the value is 1, it enables the AutoDeleteOldestSnapshot feature on the source virtual drive.

-Lx: x specifies the source LD number for the command.

Table 113: Delete a Snapshot

Convention MegaCli -Snapshot -DeleteSnapshot [SnapshotTime

yyyymmdd hh:mm:ss | -all] [-force|-y] -LN|

-L0,1,2 -aN|-a0,1,2|-aALL

Description Deletes the snapshot and the associated view if -Force or -Y is specified.

-SnapshotTime yyyymmdd hh:mm:ss: (Optional) If used, this action deletes the snapshot with the time stamp that is specified in command line, if it is the oldest PIT.

-force: If specified, this action deletes the snapshot even if it has the view associated with it.

-y: If specified, this action deletes the snapshot even if it has the view associated with it.

-LN: N specifies the source LD number for the command.

-L0,1,2: Specifies the command is for LDs 0, 1, and 2. You can select more than one LD.

MegaRaid SAS Software User Guide Chapter 5: MegaRAID Command Tool | Recovery (Snapshot)-Related Options

5.19.6 Create a View Use the command in Table 114 to create a view. A view contains the content from the Point-in-Time [PiT] when the snapshot was made..

5.19.7 Delete a View Use the command in Table 115 to a view..

5.19.8 Rollback to an Old Snapshot Use the command in Table 116 to roll the virtual drive back to an older snapshot..

Table 114: Create a View

Convention MegaCli -Snapshot -CreateView -SnapshotTime

yyyymmdd hh:mm:ss [-viewName NameString]

[-RW|RO|Blocked] [-szXXX] -Lx -aN|-a0,1,2|-aALL

\n", appNameP);

Description Creates the view on a particular snapshot.

-SnapshotTime yyyymmdd hh:mm:ss: Creates the view on the snapshot with the time stamp yyyymmdd hh:mm:ss

-viewName NameString: (Optional) Specifies the name of the view.

-RW|RO|Blocked: (Optional) Specifies the access policy of the view.

-szXXX: (Optional) Specifies the size of the view in MB where XXX is a decimal number.

-Lx: x specifies the source LD number for the command.

Table 115: Delete a View

Convention MegaCli -Snapshot -DeleteView [-SnapshotTime

yyyymmdd hh:mm:ss] -Lx -aN|-a0,1,2|-aALL Description Deletes the view.

-SnapshotTime yyyymmdd hh:mm:ss: (Optional) If specified, this action deletes the view on the snapshot with the time stamp yyyymmdd hh:mm:ss.

-Lx: x specifies the source LD number for the command.

Table 116: Rollback to an Old Snapshot

Convention MegaCli -Snapshot -Rollback -SnapshotTime

yyyymmdd hh:mm:ss [-Force|-Y] -Lx -aN|-a0,1,2|-aALL

Description Rolls back the virtual drive to an old snapshot.

-SnapshotTime yyyymmdd hh:mm:ss: Specifies the snapshot with the time stamp yyyymmdd hh:mm:ss to which it has to roll back.

-Force: If specified, this action overrides the warning message and causes a rollback to an older snapshot.

-Y: If specified, this action overrides the warning message and causes a rollback to an older snapshot.

-Lx: x specifies the source LD number for the command.

MegaRaid SAS Software User Guide Chapter 5: MegaRAID Command Tool | FastPath-related Options

5.19.9 Display Snapshot and View Information

Use the command in Table 117 to display information about the snapshot and the view.

.

5.19.10 Clean the Recoverable Free Space on the Drives in a Virtual Drive

Use the command in Table 118 to clean the recoverable free space on the drives in a snapshot repository virtual drive. The free space is unused space on the drives in a virtual drive..

5.19.11 Display the Information for a Specific View

Use the command in Table 119 to display the information for a specific view if you specify the view target ID..

In document MegaRaid SAS Software (Page 190-194)