The test_io_device command allows you to check whether the I/O operations and privileges supported by the backup medium meet the backup and restore requirements.
Introduction
The syntax is as follows:
./ob_admin test_io_device -d'<file_path>' -s'<verify_info>'
-d specifies the simulated backup path, which must be an empty directory. -s specifies the authentication information of object storage. For object storage, both -d and -s are required. For Network File System (NFS) storage, only -d is required.
Examples
Here are some examples of using the test_io_device command:
Specify only
-d./ob_admin test_io_device -d'file:///data/nfs'The test passes if
SUCCESSis returned for each module as follows: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|SUCCESSSpecify both
-dand-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'The test passes if
SUCCESSis returned for each module as follows: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