手册下载
H3C SecPath 防火墙产品 硬盘存储日志典型配置(V7)-5W100-整本手册.pdf (265.20 KB)
H3C SecPath 防火墙产品
硬盘存储日志典型配置
Copyright © 2024 新华三技术有限公司 版权所有,保留一切权利。
非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部,并不得以任何形式传播。
除新华三技术有限公司的商标外,本手册中出现的其它公司的商标、产品标识及商品名称,由各自权利人拥有。
本文档中的信息可能变动,恕不另行通知。
本举例是在F5000-AI160的E8190版本上进行配置和验证的。
在设备安装双硬盘的情况下,企业希望采用RAID 1磁盘阵列的方式存储日志,保证在其中一块硬盘上存储日志的同时,另一块硬盘可以用于备份,以确保数据的安全性和减少数据损失的风险。
RAID 1是一种存储技术,可以提供数据的备份和冗余。当数据写入硬盘时,系统会同时将数据复制到另一块闲置的硬盘上,形成镜像文件。这样,如果其中一块硬盘发生故障,数据仍然可以从另一块硬盘中恢复。RAID 1实际上只有一块硬盘的存储空间,另一块硬盘作为备用,保证数据可靠性。
设备Web界面中Web监控页面下各安全业务日志等数据分析中心日志数据默认优先保存在硬盘中。
信息中心的系统日志默认保存在Flash中,管理员可以根据实际需求,将系统日志存储路径切换为硬盘。
重启设备后,信息中心系统日志存储路径将恢复为缺省情况,即flash:/logfile 。
设备对于本典型配置的支持情况,请以RAID模块的实际支持情况为准。有关RAID的详细介绍,请参见产品配置指导中的“基础配置指导”中的“RAID”。
1. 确保硬盘识别正确
# 通过dir命令的hda0等显示信息可以查看设备上的硬盘是否已被正确识别。
<Device> dir ?
/all Display all files and directories in the current directory
/all-filesystems Display the files and directories in the root directories of
all storage media
> Redirect it to a file
>> Redirect it to a file in append mode
STRING [drive][path][file name]
flash: Device name
hda0: Device name
hdb0: Device name
slot1#flash: Device name
slot1#hda0: Device name
slot1#hda1: Device name
slot1#hdb1: Device name
slot1#md0: Device name
| Matching output
2. 对两块硬盘进行分区
# 硬盘被正确识别后,对hda0硬盘进行分区。请根据实际情况设置分区大小,此处设置的分区大小仅为举例。具体配置步骤如下。
<Device>fdisk hda0: 1
Capacity of hda0: : 457862M bytes
hda: will be divided into the following partition(s):
DeviceName Capacity
hda0: 457862MB
All data on hda0: will be lost, continue? [Y/N]:y
Partitioning hda0:..... Done
请参考以上步骤配置另一块硬盘hdb0的分区,具体配置步骤略
3. 创建RAID阵列
# 创建级别为RAID 1的RAID阵列,名称为“md0”。具体配置步骤如下。
<Device> create raid level 1 hda0: hdb0:
Create RAID md0? [Y/N]:y
......................................................................Created RA
ID successfully.
4. 对RAID阵列进行格式化
<Device> format md0:
All data on md0: will be lost, continue? [Y/N]:y
Formatting md0:.................................................................
.............. Done.
5. 完成设置日志文件存储目录为RAID阵列。
# 数据分析中心日志数据默认优先保存在硬盘中,不需要设置此步骤。信息中心的系统日志设置日志文件存储目录为RAID阵列。
<Device> system-view
[Device] info-center logfile directory md0:/
[Device] quit
# 配置完成后,在Device上查看显示RAID的状态信息,一块热备盘的RAID 1的状态信息。
<Device> display raid status
Name Level State Sync Remaining(GB) File system
----------------------------------------------------------------------
md0 1 active 13.5% 9 hdb0[1] hda0[0]
本举例是在F5000-AI160的E8190版本上进行配置和验证的。
在设备安装双硬盘的情况下,企业希望采用RAID 0磁盘阵列的方式存储日志,以提高存储或读取速度。数据被分割成多个数据块,然后并行存储到不同的条带中。通过充分利用多个磁盘的存储能力,从而提高数据传输速度。
RAID 0是一种存储技术,可以将两块硬盘的存储空间合并起来使用。它将数据分成多个条带,并将这些条带分别存储在两块硬盘上。这样可以提高数据的读写速度,但是没有数据冗余功能。如果一块硬盘发生故障,整个数据都会丢失,无法恢复。
设备Web界面中Web监控页面下各安全业务日志等数据分析中心日志数据默认优先保存在硬盘中。
信息中心的系统日志默认保存在Flash中,管理员可以根据实际需求,将系统日志存储路径切换为硬盘。
重启设备后,信息中心系统日志存储路径将恢复为缺省情况,即flash:/logfile 。
设备对于本典型配置的支持情况,请以RAID模块的实际支持情况为准。有关RAID的详细介绍,请参见产品配置指导中的“基础配置指导”中的“RAID”。
1. 确保硬盘识别正确
# 通过dir命令的hda0等显示信息可以查看设备上的硬盘是否已被正确识别。
<Device> dir ?
/all Display all files and directories in the current directory
/all-filesystems Display the files and directories in the root directories of
all storage media
> Redirect it to a file
>> Redirect it to a file in append mode
STRING [drive][path][file name]
flash: Device name
hda0: Device name
hdb0: Device name
slot1#flash: Device name
slot1#hda0: Device name
slot1#hda1: Device name
slot1#hdb1: Device name
slot1#md0: Device name
| Matching output
2. 对两块硬盘进行分区
# 硬盘被正确识别后,对hda0硬盘进行分区。请根据实际情况设置分区大小,此处设置的分区大小仅为举例。具体配置步骤如下。
<Device>fdisk hda0: 1
Capacity of hda0: : 457862M bytes
hda: will be divided into the following partition(s):
DeviceName Capacity
hda0: 457862MB
All data on hda0: will be lost, continue? [Y/N]:y
Partitioning hda0:..... Done
请参考以上步骤配置另一块硬盘hdb0的分区,具体配置步骤略
3. 创建RAID阵列
# 创建级别为RAID 0的RAID阵列,名称为“md0”。具体配置步骤如下。
<Device> create raid level 0 hda0: hdb0:
Create RAID md0? [Y/N]:y
......................................................................Created RA
ID successfully.
4. 对RAID阵列进行格式化
<Device> format md0:
All data on md0: will be lost, continue? [Y/N]:y
Formatting md0:.................................................................
.............. Done.
5. 完成设置日志文件存储目录为RAID阵列。
# 数据分析中心日志数据默认优先保存在硬盘中,不需要设置此步骤。信息中心的系统日志设置日志文件存储目录为RAID阵列。
<Device> system-view
[Device] info-center logfile directory md0:/
[Device] quit
# 配置完成后,在Device上查看显示RAID的状态信息,一块热备盘的RAID 0的状态信息。
<Device> display raid status
Name Level State Sync Remaining(GB) File system
----------------------------------------------------------------------
md0 0 active 13.5% 9 hdb0[1] hda0[0]
