R3204P16-HP Load Balancing Module System Maintenance Configuration Guide-6PW101

64
CAUTION:
The fdisk
device
[
partition-number
] command clears all data in a CF card or a USB disk. Save the files
in the CF card or a USB disk before partitioning it.
The fdisk
device
[
partition-number
] command adds or reduces partitions. You should reconfigure the
paths of the application files as needed.
If the device starts up from a CF card, the startup file and the configuration file must be in the first
partition of the CF card.
To prevent a log file from affecting the startup file and configuration file, set the path of the log file to a
partition other than the first partition if you have partitioned the CF card or a USB disk. By default, the
system automatically sets the path of the log file to the second partition. If the path does not exist on the
CF card or a USB disk, you can use the info-center logfile switch-directory command to change the
path to avoid loss of the log file. For more information about this command, see Information center
commands
in
System Maintenance Command Reference
.
After partitioning is completed, the sizes of the partitions may not be consistent with those specified in
the configuration. The error is smaller than 5% of the total memory of the CF card or a USB disk.
Before removing a partitioned CF card or a USB disk, unmount all the partitions of the CF card or a USB
disk. Otherwise, the file system on the CF card or a USB disk may be damaged.
Before partitioning a USB disk, ensure that the disk is not write protected; otherwise, the partition
operation fails, and you need to remount or re-plug the disk to restore normal access to the USB disk.
Setting prompt modes
The system provides the following prompt modes:
AlertThe system warns you about operations that may cause problems such as file corruption and
data loss. To prevent incorrect operations, the alert mode is preferred.
Quiet—The system does not prompt confirmation for any operation.
Follow these steps to set a prompt mode:
To do… Use the command…
Remarks
Enter system view system-view
Set the operation prompt mode of
the file system
file prompt { alert | quiet }
Optional
The default is alert.
Examples for file system management
# Display the files and the subdirectories in the current directory.
<Sysname> dir
Directory of cfa0:/
0 -rw- 13605736 Aug 08 2007 20:00:00 temp_lb.bin
1 -rw- 10431 Apr 26 2000 13:38:22 system.xml
2 drw- - Apr 26 2000 12:00:02 seclog
3 -rw- 3183 Apr 26 2000 13:38:24 startup.cfg
4 -rw- 43688 Apr 26 2000 15:59:50 lbispinfo.tp
5 -rw- 13605224 May 04 2000 10:30:42 lb_0513.bin