首批通过分布式安全可靠测评,为关键业务系统打造
test_io_device
更新时间:2024-11-18 23:00:00
test_io_device 命令用于验证备份介质所提供的 I/O 接口和当前的 I/O 权限是否能满足备份恢复的需要。
命令介绍
使用方式如下:
./ob_admin test_io_device -d'<file_path>' -s'<verify_info>'
其中,-d 指定模拟备份路径,该路径必须为空目录;-s 用于指定对象存储校验信息。设置对象存储时 -d 和 -s 两个参数都需要配置,设置 NFS 存储时仅需配置 -d 参数。
示例
test_io_device 命令的简单示例如下:
仅设置
-d./ob_admin test_io_device -d'file:///data/nfs'输出如下,测试通过,按模块输出
SUCCESS。succ to open, filename=/tmp/ob_admin.log, fd=3, wf_fd=2 succ to open, filename=/tmp/ob_admin_rs.log, fd=4, wf_fd=2 |test dest connnectivity result|SUCCESS | test archive log result|SUCCESS | test backup data result|SUCCESS | test consume log result|SUCCESS | test clean backup file result|SUCCESS同时设置
-d和-s./ob_admin test_io_device -d'oss://home/admin/backup_info' -s'host=http://oss-cn-hangzhou.aliyuncs.com&access_id=111&access_key=222'输出如下,测试通过,按模块输出
SUCCESS。succ to open, filename=/tmp/ob_admin.log, fd=3, wf_fd=2 succ to open, filename=/tmp/ob_admin_rs.log, fd=4, wf_fd=2 |test dest connnectivity result|SUCCESS | test archive log result|SUCCESS | test backup data result|SUCCESS | test consume log result|SUCCESS | test clean backup file result|SUCCESS