# HD RAID Configuration Mode Commands

This mode develops default policies designed to minimize administrative intervention when setting up the RAID on ASR 5000 SMC hard disks or the ASR 5500.

IMPORTANT:

The commands or keywords/variables that are available are dependent on platform type, product version, and installed license(s).

default

Sets the default value for specified RAID parameters.
Platform:

ASR 5000
Product:

All
Privilege:

Security Administrator, Administrator
Syntax

    default { overwrite [ { invalid | unknown | valid } disk | select }

overwrite [ invalid disk | unknown disk | valid disk ]
Resets the system to automatically overwrite:

- invalid disk – empty disks, wrongly partitioned disk and partially constructed disks
- unknown disk – disks with a valid RAID superblock but not configured in the standard way; most likely because it has data from a different version
- valid disk – a clean RAID component that is not part of the current RAID configuration

select

Resets the system to automatically select the default disk.
Usage:

Use this command to reset RAID configuration parameters to their default settings.
Example:
The following command resets the system to automatically overwrite invalid RAID disks:

    default overwrite invalid disk

end

Exits the current configuration mode and returns to the Exec mode.
Product:

All
Privilege:

Security Administrator, Administrator
Syntax

    end

Usage:

Use this command to return to the Exec mode.
exit

Exits the current mode and returns to the parent configuration mode.
Product:

All
Privilege:

Security Administrator, Administrator
Syntax

    exit

Usage:

Use this command to return to the parent configuration mode.
overwrite

Sets the RAID overwrite properties.
Platform:

ASR 5000
Product:

All
Privilege:

Security Administrator, Administrator
Syntax

    [ no | default ] overwrite { invalid | unknown | valid } disk [ -noconfirm ]

no

Prevents a disk from being overwritten.
default

Configures the default overwrite action:
invalid

Allows the system to automatically overwrite invalid disks including empty disks, wrongly partitioned disks, and partially constructed disks.

This is the default overwrite action.
unknown

Allows the system to automatically overwrite unknown disks that has a valid RAID superblock but is not configured in the standard way; most likely because it has data from a different version.
valid

Allows the system to automatically overwrite a disk that is a clean RAID component but not part of the current or selected RAID.
-noconfirm

Indicates that the command is to execute without any additional prompt and confirmation from the user.
Usage:

Sets a policy for automatically overwriting different disk types. If there is a disk that satisfies the changed overwrite policy then the disk would overwrite immediately.
Example:
The following command configures a policy for overwriting invalid RAID disks:

    overwrite invalid disk
    -noconfirm

select

Configures the disk preference when both hard disks on the ASR 5000 or all FSC disks on the ASR 5500 have valid RAID information.
Platform:

ASR 5000
Product:

All
Privilege:

Security Administrator, Administrator
Syntax

    [ default ] select { newer | none } disk [ -noconfirm ]

default

Configures the command to its default condition.
newer

Selects the newer disk by timestamp and event counter in superblocks. If all are the same, then the same array will start with both SMC disks or all FSC disks, but a different array will need admin intervention).
none

Does not select any disk but defers to administrator intervention.
-noconfirm

Indicates that the command is to execute without any additional prompt and confirmation from the user.
Usage:

Determines the selected disc when two valid disks from either the same or different RAIDs are running on the ASR 5000 or when valid disks from either the same or different RAIDs are running on the ASR 5500.
Example:
This command forces the RAID to be configured on the newer SMC or FSC hard disk:

    select newer disk -noconfirm