关于Sybase IQ使用裸设备报错的问题!
本人使用sybase iq 建库或者增加空间的时候老是报错,系统是redhat 4.8 64bit,sybase IQ为12.6:ASA Error -1006184: Unable to query raw device
-- (hos_misc.cxx 248)
SQL: CREATE DBSPACE "test" AS '/dev/raw/raw1'IQ TEMPORARY STOREreserve 10
建库SQL如下
create database '/opt/sybase/testdb/testdb.db'
message path '/opt/sybase/testdb/testdb.iqmsg'
temporary path '/opt/sybase/testdb/testdb.iqtmp'
log on '/opt/sybase/testdb/testdb.log'
IQ PATH '/dev/raw/raw2'
IQ PAGE SIZE 131072
IQ SIZE 30
collation '936ZHO'
blank padding on
TRANSACTION LOG ON
JAVA ON
JCONNECT ON
CASE RESPECT
裸设备相关状态如下:
# ll /dev/raw/
总用量 0
crwxrwxrwx1 sybase sybase 162, 14月 22 15:10 raw1
crwxrwxrwx1 sybase sybase 162, 24月 22 15:39 raw2
# ll /dev/rawctl
crwxrwxrwx1 sybase sybase 162, 0 2011-04-22/dev/rawctl
# ll /etc/sysconfig/rawdevices
-rwxrwxrwx1 sybase sybase 3124月 22 14:49 /etc/sysconfig/rawdevices
希望有知道的朋友帮我指点一下,已经弄了好几天了,谢谢! # raw -qa
/dev/raw/raw1: bound to major 8, minor 22
/dev/raw/raw2: bound to major 8, minor 23
# /etc/sysconfig/rawdevices的内容
# This file and interface are deprecated.
# Applications needing raw device access should open regular
# block devices with O_DIRECT.
# raw device bindings
# format:<rawdev> <major> <minor>
# <rawdev> <blockdev>
# example: /dev/raw/raw1 /dev/sda1
# /dev/raw/raw2 8 5
/dev/raw/raw1 /dev/sdb6
问题初步查明是OS版本太高的原因!
页:
[1]