# script **Repository Path**: penghai_luo/script ## Basic Information - **Project Name**: script - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-06-17 - **Last Updated**: 2025-11-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ##### 1.环境获取脚本 部署启云前获取环境信息 使用方法: ```shell bash check_env.sh ``` 执行脚本后输出文件:hardware_info_xxxx.csv ##### 2.磁盘IO测试脚本 测试磁盘IO性能 - 测试前准备工作 ```shell #在线安装 yum -y install fio #离线安装 yum -y localinstall test_tools/*.rpm --disablerepo=* - 前台交互运行 ```shell bash test_io.sh #提示输入磁盘设备或目录 ``` - 前台直接运行 ```shell bash test_io.sh /dev/rbd1 #直接测试磁盘设备 bash test_io.sh /root/data #直接测试挂载路径 ``` - 后台运行 ```shell nohup bash test_io.sh /dev/rbd1 > /dev/null 2>&1 & #后台测试磁盘设备 nohup bash test_io.sh /root/data > /dev/null 2>&1 & #后台测试挂载路径 #通过 jobs 命令查看后台任务 ``` 执行脚本后输出文件:io_test_xxxx.csv