01-Fundamentals Command Reference

HomeSupportReference GuidesCommand ReferencesH3C SecPath F1000[F5000] Firewalls Series Configuration Guides(V7)-6W90001-Fundamentals Command Reference
08-RAID management commands (security devices)
Title Size Download
08-RAID management commands (security devices) 65.11 KB

RAID management commands

add raid

Use add raid to add a file system to level-1 RAID.

Syntax

add raid raid-name file-system

Views

User view

Predefined user roles

network-admin

Parameters

raid-name: Specifies the name of level-1 RAID. The value can only be md0.

file-system: Specifies a file system by its name.

Usage guidelines

This command is supported only on the default context.

You can use this command to add a file system only to level-1 RAID.

Before you add a file system to level-1 RAID, make sure the file system has been mounted to the device.

Adding a file system to level-1 RAID deletes all data from the file system.

To ensure that a file system can be added to level-1 RAID successfully, make sure the file system meets the following requirements:

·     The disk size of the file system is equal to or larger than the size of the existing disks in the RAID.

·     The file system is not used by other processes.

Examples

# Add file system hda0 to level-1 RAID.

<Sysname> raid add md0 hda0:

Add file system hda0 to RAID md0? [Y/N]:y

·············································

·······Added the file system successfully.

Related commands

create raid

create raid

Use create raid to create a RAID.

Syntax

create raid level raid-level { file-system }&<2-n>

Views

User view

Predefined user roles

network-admin

Parameters

level raid-level: Specifies a level for the RAID. The level can only be 0 or 1.

file-system&<2-n>: Specifies a minimum of two file systems by their names. The maximum number of file systems supported in a RAID equals the number of hard disk partitions.

Usage guidelines

This command is supported only on the default context.

You can create only one RAID on the device. The RAID name is fixed at md0. The level can be level 0 or 1.

·     To change the RAID level, you must first use the remove raid command to remove the original RAID.

·     If a RAID has been created on the device, you must remove that RAID before you can create a new RAID.

RAID is not supported on an IRF fabric in the current software version.

Examples

# Create level-1 RAID.

<Sysname> create raid level 1 hda0: hdb0:

Create RAID md0? [Y/N]:y

·············································

·············································

················Created RAID successfully.

display raid status

Use display raid status to display RAID status information.

Syntax

display raid status

Views

Any view

Predefined user roles

network-admin

network-operator

Usage guidelines

This command is supported only on the default context.

Examples

# Display status information about level-1 RAID.

<Sysname> display raid status

Name     Level     State       Sync     Remaining(GB)      File systems

md0      1         active      66.6%    447                hda0[0]    hdb0[1]

# Display status information about level-0 RAID.

<Sysname> display raid status

Name     Level     State       Sync     Remaining(GB)      File systems

md0      0         active      None     447                hda0[0]    hdb1[1]

# Display status information about level-1 RAID. The RAID has a hot backup disk.

<Sysname> display raid status

Name     Level     State       Sync     Remaining(GB)      File systems

md0      1         active      Done     447                hda0[0]    hdb0[1]

                                                           hdc0[2](S)

Table 1 Command output

Field

Description

Name

RAID name.

Level

RAID level.

State

RAID running state:

·     active—The RAID is running correctly.

·     inactive—The RAID is not running correctly. Data cannot be read from or written to the RAID correctly.

Sync

File system synchronization state in the RAID:

·     A percentage—Synchronizing.

·     Done—The synchronization has completed.

·     None—The RAID has only one file system.

Remaining (GB)

Available amount of storage space in the RAID.

File systems

File systems in the RAID.

The number enclosed into a pair of brackets ([n]) represents the order that a file system joins the RAID. The file systems are separated by spaces.

The following file system states are available:

·     Normal—The file system name is displayed in the format of name[n].

·     Faulty—The file system name is displayed in the format of name[n](F).

·     Spare—The file system name is displayed in the format of name[n](S). You can use the add raid command to add a file system to level-1 RAID as a hot backup file system.

 

remove raid

Use remove raid to remove a RAID or remove a file system from level-1 RAID 1.

Syntax

remove raid raid-name [ file-system&<1-n> ]

Views

User view

Predefined user roles

network-admin

Parameters

raid-name: Specifies a RAID by its name. The value can only be md0.

file-system: Specifies a file system by its name or a list of file systems by their names. The maximum number of file systems you specify cannot exceed the number of file systems in the level-1 RAID. If you do not specify a file system, this command removes the entire RAID.

Usage guidelines

This command is supported only on the default context.

You can use this command to remove a file system only from level-1 RAID.

Before you remove a disk in level-1 RAID, execute this command to remove the file system of that disk from the RAID. This operation avoids data loss caused by disk removal.

Before you remove a file system from level-1 RAID, use the display raid status command to verify that the Sync field displays Done for the file system. This operation ensures successful file system removal. If you remove the entire RAID, you do not need to verify the synchronization state.

Examples

# Remove file system hda0 from level-1 RAID.

<Sysname> remove raid md0 hda0:

Remove file system hda0 from RAID md0? [Y/N]:y

·············································

······Removed the file system successfully.

# Remove level-0 RAID or level-1 RAID.

<Sysname> remove raid md0

Remove RAID md0? [Y/N]:y

·············································

······ Removed the RAID successfully.

Related commands

create raid

display raid status

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网