ORION工具(二)[转帖]_MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 4074 | 回复: 0   主题: ORION工具(二)[转帖]        下一篇 
wayne
注册用户
等级:中校
经验:1690
发帖:221
精华:0
注册:2011-7-21
状态:离线
发送短消息息给wayne 加好友    发送短消息息给wayne 发消息
发表于: IP:您无权察看 2011-8-25 18:30:17 | [全部帖] [楼主帖] 楼主

Oracle提供了一个免费的测试系统存储系统性能的工具:orion。

这里描述使用orion常见的问题。

ORION工具(一):http://yangtingkun.itpub.net/post/468/489322

别看orion的操作这么简单,但是使用过程中,还真是碰到了不少的错误。

root@ser1 # ./orion_solaris_sparc64 -run simple -testname mytest
ORION: ORacle IO Numbers -- Version 11.1.0.7.0
mytest_20090812_1028
Test will take approximately 9 minutes
Larger caches may take longer
storax_skgfr_openfiles: File identification failed on /dev/dsk/emcpower6a
OER 27037: please look up error in Oracle documentation
Additional information: 5
rwbase_lio_init_luns: lun_openvols failed
rwbase_rwluns: rwbase_lio_init_luns failed
orion_thread_main: rw_luns failed
Non test error occurred
Orion exiting


这是最先碰到的错误,这时指定的/dev/dsk/emcpower6a是目录/data所挂载的磁盘,如果检查对应的ora-27037错误会发现:

ORA-27037: unable to obtain file status
Cause: stat system call returned an error, additional information indicates which function encountered the error
Action: check errno


对于文件系统而言,应该指定一个文件,而不是一个目录,因此报错。只需将上面的/dev/dsk/emcpower6a改为/data目录下的一个文件的地址信息就可以解决这个问题。

root@ser1 # ./orion_solaris_sparc64 -run simple -testname mytest
ORION: ORacle IO Numbers -- Version 11.1.0.7.0
mytest_20090812_1041
Test will take approximately 9 minutes
Larger caches may take longer
storax_skgfr_openfiles: File identification failed on /dev/rdsk/emcpower5a
OER 27041: please look up error in Oracle documentation
SVR4 Error: 6: No such device or address
Additional information: 2
rwbase_lio_init_luns: lun_openvols failed
rwbase_rwluns: rwbase_lio_init_luns failed
orion_thread_main: rw_luns failed
Non test error occurred
Orion exiting


Oracle对应的ORA-27041错误为:

ORA-27041: unable to open file
Cause: open system call returned an error, additional information indicates which function encountered the error
Action: check errno


导致这个错误是由于/dev/rdsk/emcpower5a没有对应任何的裸设备,实际上emcpower5对应的分区没有分配0区间。

对于设置裸设备也可能碰到上面的27037错误,这是由于裸设备中并没有拷贝文件,导致orion找不到要读取的文件因此报错,可以用dd拷贝文件到裸设备上,并完成测试:

root@ser1 # dd if=/data/10gr2_db_sol.cpio of=/dev/rdsk/emcpower5g
1792016+0 records in
1792016+0 records out


另外还可能碰到下面的错误:

bash-3.00$ ./orion_solaris_sparc64 -run simple -testname mytest
ORION: ORacle IO Numbers -- Version 11.1.0.7.0
mytest_20090812_1822
Test will take approximately 9 minutes
Larger caches may take longer
storax_skgfr_openfiles: File identification failed on /data/patch/p5337014_10203_SOLARIS64.zip
OER 27046: please look up error in Oracle documentation
Additional information: 1
rwbase_lio_init_luns: lun_openvols failed
rwbase_rwluns: rwbase_lio_init_luns failed
orion_thread_main: rw_luns failed
Non test error occurred
Orion exiting


Oracle的ORA-27046错误给出了原因:

ORA-27046: file size is not a multiple of logical block size
Cause: file size as indicated by stat is not correct, additional information indicates which function encountered the error
Action: verify that the file has not been overwritten or truncated


由于给定的zip文件不是logical block的整数倍,因此导致这个问题。选择一个Oracle数据库相关的文件测试即可。如果是裸设备,可以在dd的时候控制裸设备的文件大小。




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论