H3C S9500 Operation Manual-Release1648[v1.24]-08 System Volume

HomeSupportSwitchesH3C S9500 Series SwitchesConfigure & DeployConfiguration GuidesH3C S9500 Operation Manual-Release1648[v1.24]-08 System Volume
13-File System Management Configuration
Title Size Download
13-File System Management Configuration 39.91 KB

Chapter 1  File System Management

When configuring file system management, go to these sections for information you are interested in:

l           File System Overview

l           File System Operations

1.1  File System Overview

The switch provides a file system module for user’s efficient management on the storage devices such as Flash memory. The file system offers file access and directory management, mainly including creating the file system, creating, deleting, modifying and renaming a file or a directory and opening a file.

By default, users are asked for confirmation before executing the commands that might cause loss of files, such as deleting or overwriting a file.

Based on the operated objects, the file system operation can be divided as follows. The following sections describe the file system configuration tasks.

l           Directory Operation

l           File Operation

l           Storage Device Operation

l           Setting the Prompt Mode of the File System

 

&  Note:

H3C S9500 series switches (hereinafter referred to as S9500 series) support active/standby SRPU switchover. The two boards both have a program system. The program user can operate the programs on both boards. When you specify the bootstrap APP program for use by the slave board at the next startup, make sure that the URL of the program starts with “slot[No.]#[flash: | cf:]/”, where [No.] is the slave board number, and [flash: | cf:] is the name of the equipment, which can be a flash card of CR card. For example, if the slave board is on slot 1, the URL of 9500.app program on the slave board is “slot1#flash:/9500.app”.

 

1.2  File System Operations

1.2.1  Directory Operation

The file system can be used to create or delete a directory, display the current working directory, and display the information about the files or directories under a specified directory. You can use the following commands to perform directory operations.

To do…

Use the command…

Remarks

Create a directory

mkdir directory

Available in user view

Delete a directory

rmdir directory

Available in user view

Display the current working directory

pwd

Available in user view

Display the information about directories or files

dir [ / all ] [ file-url ]

Available in user view

Change the current directory

cd directory

Available in user view

 

1.2.2  File Operation

The file system can be used to delete or undelete a file and permanently delete a file. Also, it can be used to display file contents, rename, copy and move a file, and display the information about a specified file. You can use the following commands to perform file operations.

To do…

Use the command…

Remarks

Delete a file

delete [ /unreserved ] file-url

Available in user view

Undelete a file

undelete file-url

Available in user view

Delete a file from the recycle bin permanently

reset recycle-bin [ file-url ]

Available in user view

View contents of a file

more file-url

Available in user view

Rename a file

rename fileurl-source fileurl-dest

Available in user view

Copy a file

copy fileurl-source fileurl-dest

Available in user view

Move a file

move fileurl-source fileurl-dest

Available in user view

Display the information about directories or files

dir [ / all ] [ file-url ]

Available in user view

Execute the specified batch file (system view)

execute filename

Available in user view

 

  Caution:

When you use the delete command without the unreserved option to delete a file, the file is in fact saved in the recycle bin and still occupies some of the storage space. So, frequent use of this command may results in insufficient storage space of the switch. In this case, you should find out the unused files kept in the recycle bin and permanently delete them with the reset recycle-bin command to reclaim the storage space.

 

&  Note:

The directory and file names on the switch have the following limitations:

l      The maximum length of a directory or file name is 56 characters.

l      The maximum length of a full path name (containing the device name, single directory name and file name) is 136 characters.

l      The move command takes effect only when the source and destination files are in the same device.

 

1.2.3  Storage Device Operation

The Switch supports compact flash (CF) card. After a CF card is inserted successfully, you can use such common commands as dir, cd, copy, delete, move to perform operations on the files in the card. You can also stop the CF card through a command before removing it.

You may be making Write operation to the CF card while directly removing the CF card. Therefore, the Switch provides a CF-removing command, thus ensuring security and consistency of CF operation. That is, you must execute the umount command before removing the CF card.

The system is capable of saving a log in the CF card. If the CF card is not partitioned, a log file is saved under cf:/logfile by default. Otherwise, a log file is saved under log:/logfile by default. The log file is named “logfileX.txt”, where “X” is an integer in the range of 1 to 5.

The log file is recorded in the CF card in text format. You can use the more command to display the log file on the switch.

 

  Caution:

l      Before removing the CF card, you must use the umount command first to avoid loss of the data in the buffer.

l      After using the umount command, you can remove the CF card from the slot. When inserted, the CF card is enabled automatically.

l      When the light of the CF card is steadily on, no data is written to or read from the CF card. But you are recommended not to remove the CF card when power is on, for data may still exist in the buffer.

 

You can use the format command to format a specified storage device.

The Switch supports the partitioning of the CF card. After the CF card is partitioned, the system startup file and log files are saved in different partitions, thus effectively protecting the startup file from being corrupted.

To do…

Use the command…

Remarks

Format the storage device

format filesystem

Available in user view

Fix the file system

fixdisk device

Available in user view

Remove the CF card

umount device

Available in user view

Partition the storage device

fdisk device

Available in user view

 

1.2.4  Setting the Prompt Mode of the File System

The following command can be used for setting the prompt mode of the current file system.

To do…

Use the command…

Remarks

Set the file system prompt mode.

file prompt { alert | quiet }

Available in system view

 

  • 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 Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网