simemu 发表于 2006-7-29 15:28:11

有没有兄弟在linux的ramdisk里建过sybase数据库设备?

<span style="font-size: 13px;">我在做测试,Sybase 12.5.3 for linux X86_64 EBF 13339 +RedHat Enterprise Linux 4U2 AS X86_64<br/>
两种方式,即文件方式与裸设备:<br/>
1.Linux建 450M的ramdisk<br/>
然后:<br/>
mke2fs /dev/ram0<br/>
mkdir /tmp/ram0<br/>
mount /dev/ram0 /tmp/ram0<br/>
chown -R sybase:sybase /tmp/ram0<br/>
然后把设备tempdev建立在/tmp/ram0上<br/>
从客户端看到设备已经建立成功,但是后台log是:<br/>
01:00000:00022:2006/07/29 14:44:56.19 kernel  Initializing virtual device 2, '/t mp/ram0/tempdev.dat' with dsync 'on'.<br/>
01:00000:00022:2006/07/29 14:44:56.19 kernel  Virtual device 2 started using asy nchronous i/o.<br/>
01:00000:00022:2006/07/29 14:44:56.19 kernel  Initializing device /tmp/ram0/temp dev.dat from offset 0 with zeros.<br/>
01:00000:00022:2006/07/29 14:44:57.40 kernel  udzero_out: attempt to
write page 204671 on device '/tmp/ram0/tempdev.dat' failed, system
error is: Success<br/>
注意最后那句既成功又失败的莫明奇妙的话.<br/>
继续在tempdev上建立新数据库test:<br/>
create database test on tempdev=400<br/>
go<br/>
前台错误提示:<br/>
CREATE DATABASE: allocating 204800 logical pages (400.0 megabytes) on disk<br/>
'tempdev'.<br/>
Msg 3225, Level 21, State 1:<br/>
Server 'emt64', Line 1:<br/>
I/O failed while attempting to clear pages starting at page 0 of disk number 2.<br/>
再看log:<br/>
00:00000:00000:2006/07/29 14:55:17.28 kernel  sddone: write error on virtual disk 2 block 204544:<br/>
00:00000:00000:2006/07/29 14:55:17.28 kernel  sddone: 524288 bytes passed, 0 returned on write for virt disk 2 block 204544<br/>
00:00000:00011:2006/07/29 14:55:17.29 server  Error: 3225, Severity: 21, State: 1<br/>
00:00000:00011:2006/07/29 14:55:17.29 server  I/O failed while attempting to clear pages starting at page 0 of disk number 2.<br/>
00:00000:00000:2006/07/29 14:57:08.08 kernel  sddone: write error on virtual disk 2 block 204544:<br/>
00:00000:00000:2006/07/29 14:57:08.08 kernel  sddone: 524288 bytes passed, 0 returned on write for virt disk 2 block 204544<br/>
00:00000:00012:2006/07/29 14:57:08.08 server  Error: 3225, Severity: 21, State: 1<br/>
00:00000:00012:2006/07/29 14:57:08.08 server  I/O failed while attempting to clear pages starting at page 0 of disk number 2.<br/>
创建数据库失败!<br/>
<br/>
再用裸设备方式<br/>
umount /dev/ram0<br/>
raw /dev/raw/raw1 /dev/ram0<br/>
chown -R sybase:sybase /dev/raw/raw1<br/>
chown -R sybase:sybase /dev/ram0<br/>
然后在裸设备/dev/raw/raw1上建数据库设备<br/>
前台提示创建数据库设备错误,看后台log:<br/>
01:00000:00022:2006/07/29 14:59:06.58 kernel  Deactivating virtual device 2, '/tmp/ram0/tempdev.dat'.<br/>
01:00000:00022:2006/07/29 15:04:21.70 kernel  basis_dsizecheck: attempt
to open device '/dev/raw/raw1' failed, system error is: Invalid argument<br/>
</span>
页: [1]
查看完整版本: 有没有兄弟在linux的ramdisk里建过sybase数据库设备?

免责声明:
本站所发布的一切破解补丁、注册机和注册信息及软件的解密分析文章仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。如有侵权请邮件与我们联系处理。

Mail To:Admin@SybaseBbs.com