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

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
- H3C S12500-X Series Switches H3C S9800 Series Switches H3C S9500E Series Switches H3C S5560 Series Switches H3C S5130 Series Switches H3C S5120 Series Switches H3C SR8800 H3C SR6600-X H3C SR6600 H3C MSR 5600 H3C MSR 50 H3C MSR 3600 H3C MSR 30 H3C MSR 2600 H3C MSR 20-2X[40] H3C MSR 20-1X H3C MSR 930 H3C MSR 900 H3C WX3000E Series Wireless Switches H3C WX5500E Series Access Controllers H3C WX3500E Series Access Controllers H3C WX2500E Series Access Controllers H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSUM3WCMD0 Access Controller Module H3C LSUM1WCME0 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module H3C WA3600 Series Access Points H3C WA2600 Series WLAN Access Points H3C SecPath F5020 H3C SecPath F5040 H3C VMSG VFW1000 H3C S10500 Series Switches