beautypg.com

Restrictions and guidelines, Configuration procedure, Performing batch operations – H3C Technologies H3C S12500 Series Switches User Manual

Page 105

background image

93

Interactive—The system partitions the storage medium according to user input. Each partition must

be 32 MB at least.

Restrictions and guidelines

It is normal that the configured partition size and the actual partition size have an error less than 5% of

the total memory.
Before you partition a CF card or USB disk:

Back up the files in the storage medium. The partition operation clears all data in the medium.

If you are partitioning a USB disk, make sure the disk is not write protected. Otherwise, the partition
operation will fail, and you must remount or re-install the disk to restore access to the USB disk.

H3C recommends that the first partition be equal to or larger than 128 MB.
After you partition a CF card or USB disk:

Reconfigure paths of application files to include the correct partition information.

If the device starts up from the CF card, save the startup system software image file and the
configuration file in the first partition of the CF card.

To guarantee the startup system software image and configuration files sufficient storage space, set
the path for log files to a partition other than the first partition. By default, the system automatically

saves log files to the second partition. If the path does not exist, use the info-center logfile

switch-directory command to change the path to avoid log loss. For more information about this
command, see Network Management and Monitoring Command Reference.

To avoid file system corruption, unmount all the partitions before removing a storage medium.

Configuration procedure

Perform this task in user view.

Task Command

Remarks

Partition a storage medium.

fdisk device [ partition-number ]

By default, a CF card has two
partitions, cfa0:/ and cfa1:/.

Performing batch operations

A batch file comprises a set of executable commands. Executing a batch file is the same as executing the

commands one by one. However, execution of a batch file does not guarantee successful execution of

every command in the batch file. If a command has error settings or the conditions for executing the

command are not met, the system skips this command.
You can edit a batch file on your PC, and then download or upload it to the device. If the suffix of the file

is not .bat, use the rename command to change the suffix to .bat.
To execute a batch file:

Step Command

1.

Enter system view.

system-view

2.

Execute a batch file.

execute filename