dbTalk Databases Forums  

Unable to create raw devices for sybase 11.0.3.2

comp.databases.sybase comp.databases.sybase


Discuss Unable to create raw devices for sybase 11.0.3.2 in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Nitin Shinde
 
Posts: n/a

Default Unable to create raw devices for sybase 11.0.3.2 - 03-03-2004 , 11:09 PM






Hi,
I am trying to create a raw device for sybase databases thru disk
init, it fails by saying

Msg 5115, Level 16, State 1:
Line 1:
I/O error during disk initialization. PHYSNAME '/dev/rr2disk1' may be
incorrect
or 52004 (VSTART + SIZE) may exceed the size of the device. Please
consult the
SQL Server error log for more details.

when i check the sybase errorlog it says

2004/03/04 09:35:10.79 kernel Initializing virtual device 8,
'/dev/rr2disk1'
00:2004/03/04 09:35:10.80 kernel Virtual device 8 started using
asynchronous i/
o.
00:2004/03/04 09:35:10.80 kernel sddone: write error on virtual disk
8 block 0:
00:2004/03/04 09:35:10.80 kernel sddone: No such device or address
00:2004/03/04 09:35:10.80 kernel Deactivating virtual device 8,
'/dev/rr2disk1'

i have tried all possible solutions but have failed to create a raw
device for sybase databases.

My disk layout is as follows,
----------------------------------------------------------------
Name | Type | New FS | # | First Block | Last Block |
----------------------------------------------------------------
Quote:
f1disk1 | HTFS | no | 0 | 0| 1560576|
r1disk1 | HTFS | no | 1 | 1560577| 3657729|
r2disk1 | NON FS | no | 2 | 3657730| 5754882|
r3disk1 | NON FS | no | 3 | 5754883| 7852034|
r4disk1 | NON FS | no | 4 | 7852035| 8948204|
| NOT USED | no | 5 | -| -|
| NOT USED | no | 6 | -| -|
d1157all| WHOLE DISK | no | 7 | 0| 8956205
----------------------------------------------------------------
Thanks in Advance,
Regards
Nitin


Reply With Quote
  #2  
Old   
Bret Halford
 
Posts: n/a

Default Re: Unable to create raw devices for sybase 11.0.3.2 - 03-04-2004 , 09:29 AM






nitinshinde26 (AT) rediffmail (DOT) com (Nitin Shinde) wrote in message news:<da519165.0403032109.619811a9 (AT) posting (DOT) google.com>...
Quote:
Hi,
I am trying to create a raw device for sybase databases thru disk
init, it fails by saying

Msg 5115, Level 16, State 1:
Line 1:
I/O error during disk initialization. PHYSNAME '/dev/rr2disk1' may be
incorrect
or 52004 (VSTART + SIZE) may exceed the size of the device. Please
consult the
SQL Server error log for more details.

when i check the sybase errorlog it says

2004/03/04 09:35:10.79 kernel Initializing virtual device 8,
'/dev/rr2disk1'
00:2004/03/04 09:35:10.80 kernel Virtual device 8 started using
asynchronous i/
o.
00:2004/03/04 09:35:10.80 kernel sddone: write error on virtual disk
8 block 0:
00:2004/03/04 09:35:10.80 kernel sddone: No such device or address
00:2004/03/04 09:35:10.80 kernel Deactivating virtual device 8,
'/dev/rr2disk1'

i have tried all possible solutions but have failed to create a raw
device for sybase databases.

My disk layout is as follows,
----------------------------------------------------------------
Name | Type | New FS | # | First Block | Last Block |
----------------------------------------------------------------
| f1disk1 | HTFS | no | 0 | 0| 1560576|
| r1disk1 | HTFS | no | 1 | 1560577| 3657729|
| r2disk1 | NON FS | no | 2 | 3657730| 5754882|
| r3disk1 | NON FS | no | 3 | 5754883| 7852034|
| r4disk1 | NON FS | no | 4 | 7852035| 8948204|
| | NOT USED | no | 5 | -| -|
| | NOT USED | no | 6 | -| -|
| d1157all| WHOLE DISK | no | 7 | 0| 8956205
----------------------------------------------------------------
Thanks in Advance,
Regards
Nitin
Looks like a typo in the DISK INIT command, your listing
shows a device name of "r2disk1", the errorlog is showing
an attempt to use "rr2disk1"

-bret


Reply With Quote
  #3  
Old   
Bela Lubkin
 
Posts: n/a

Default Re: Unable to create raw devices for sybase 11.0.3.2 - 03-04-2004 , 09:55 PM



Bret Halford wrote:

Quote:
Looks like a typo in the DISK INIT command, your listing
shows a device name of "r2disk1", the errorlog is showing
an attempt to use "rr2disk1"
OpenServer provides parallel device nodes "/dev/devname" and
"/dev/rdevname" for block and raw access to a disk device. The name
he's using _may_ be correct, if indeed Sybase wants raw access (not
passing through the operating system's buffer cache). That said, it
would be reasonable for him to change the configuration and see if it
behaves any differently -- possibly better -- when pointed at the block
device /dev/r2disk1.

Meanwhile, I replied to him yesterday and mistakenly did not allow my
article to be crossposted to comp.databases.sybase. Since that article
contained a question best answered by a Sybase expert, I am including it
here.

Quote:
Bela
================================================== ===========================

Date: Thu, 4 Mar 2004 04:38:00 -0800
From: Bela Lubkin <belal (AT) sco (DOT) com>
Newsgroups: comp.unix.sco.misc
Subject: Re: Unable to create raw devices for sybase 11.0.3.2
Message-ID: <20040304123800.GY24746 (AT) sco (DOT) com>
References: <da519165.0403032109.619811a9 (AT) posting (DOT) google.com>

Nitin Shinde wrote:

Quote:
I am trying to create a raw device for sybase databases thru disk
init, it fails by saying

Msg 5115, Level 16, State 1:
Line 1:
I/O error during disk initialization. PHYSNAME '/dev/rr2disk1' may be
incorrect
or 52004 (VSTART + SIZE) may exceed the size of the device. Please
consult the
SQL Server error log for more details.

when i check the sybase errorlog it says

2004/03/04 09:35:10.79 kernel Initializing virtual device 8,
'/dev/rr2disk1'
00:2004/03/04 09:35:10.80 kernel Virtual device 8 started using
asynchronous i/
o.
00:2004/03/04 09:35:10.80 kernel sddone: write error on virtual disk
8 block 0:
00:2004/03/04 09:35:10.80 kernel sddone: No such device or address
00:2004/03/04 09:35:10.80 kernel Deactivating virtual device 8,
'/dev/rr2disk1'

i have tried all possible solutions but have failed to create a raw
device for sybase databases.

My disk layout is as follows,
----------------------------------------------------------------
Name | Type | New FS | # | First Block | Last Block |
----------------------------------------------------------------
| f1disk1 | HTFS | no | 0 | 0| 1560576|
| r1disk1 | HTFS | no | 1 | 1560577| 3657729|
| r2disk1 | NON FS | no | 2 | 3657730| 5754882|
| r3disk1 | NON FS | no | 3 | 5754883| 7852034|
| r4disk1 | NON FS | no | 4 | 7852035| 8948204|
| | NOT USED | no | 5 | -| -|
| | NOT USED | no | 6 | -| -|
| d1157all| WHOLE DISK | no | 7 | 0| 8956205
----------------------------------------------------------------
I've never configured Sybase, but here is a wild guess. The division
"r2disk1" is exactly 2097152 blocks long -- 2^31 bytes (2 gibibytes).
If Sybase calculates the division's size using a signed 32-bit int, it
will see the size as 0x80000000 bytes which is _negative_ 2 GiB.

See what happens if you set the last block of r2disk1 to 5754881 (1K
smaller). The signed-int representation of its size will then be a
large positive number.

Do you know what the block size is in the Sybase error message you
quoted, "52004 (VSTART + SIZE) may exceed the size of the device"?

Quote:
Bela

Reply With Quote
  #4  
Old   
Nitin Shinde
 
Posts: n/a

Default Re: Unable to create raw devices for sybase 11.0.3.2 - 03-04-2004 , 11:57 PM



bret (AT) sybase (DOT) com (Bret Halford) wrote in message news:<34c88f2b.0403040729.4425d5d (AT) posting (DOT) google.com>...
Quote:
nitinshinde26 (AT) rediffmail (DOT) com (Nitin Shinde) wrote in message news:<da519165.0403032109.619811a9 (AT) posting (DOT) google.com>...
Hi,
I am trying to create a raw device for sybase databases thru disk
init, it fails by saying

Msg 5115, Level 16, State 1:
Line 1:
I/O error during disk initialization. PHYSNAME '/dev/rr2disk1' may be
incorrect
or 52004 (VSTART + SIZE) may exceed the size of the device. Please
consult the
SQL Server error log for more details.

when i check the sybase errorlog it says

2004/03/04 09:35:10.79 kernel Initializing virtual device 8,
'/dev/rr2disk1'
00:2004/03/04 09:35:10.80 kernel Virtual device 8 started using
asynchronous i/
o.
00:2004/03/04 09:35:10.80 kernel sddone: write error on virtual disk
8 block 0:
00:2004/03/04 09:35:10.80 kernel sddone: No such device or address
00:2004/03/04 09:35:10.80 kernel Deactivating virtual device 8,
'/dev/rr2disk1'

i have tried all possible solutions but have failed to create a raw
device for sybase databases.

My disk layout is as follows,
----------------------------------------------------------------
Name | Type | New FS | # | First Block | Last Block |
----------------------------------------------------------------
| f1disk1 | HTFS | no | 0 | 0| 1560576|
| r1disk1 | HTFS | no | 1 | 1560577| 3657729|
| r2disk1 | NON FS | no | 2 | 3657730| 5754882|
| r3disk1 | NON FS | no | 3 | 5754883| 7852034|
| r4disk1 | NON FS | no | 4 | 7852035| 8948204|
| | NOT USED | no | 5 | -| -|
| | NOT USED | no | 6 | -| -|
| d1157all| WHOLE DISK | no | 7 | 0| 8956205
----------------------------------------------------------------
Thanks in Advance,
Regards
Nitin

Looks like a typo in the DISK INIT command, your listing
shows a device name of "r2disk1", the errorlog is showing
an attempt to use "rr2disk1"

-bret
Hi bret and Bela,
My disk init works for a block device i.e.
in /dev
brw-rw--- sybase sybase 1,105 r2disk1
crw-rw--- sybase sybase 1,105 rr2disk1

when i use disk init with r2disk1 it created a device
but it does not allow be creating a device on rr2disk1 ( character device )
i checked the above the above possibility, but has not solved my purpose.
i want a device to be created on a character device.


regards
Nitin


Reply With Quote
  #5  
Old   
Bill Vermillion
 
Posts: n/a

Default Re: Unable to create raw devices for sybase 11.0.3.2 - 03-05-2004 , 08:05 AM



In article <da519165.0403042157.3a0ac1f1 (AT) posting (DOT) google.com>,
Nitin Shinde <nitinshinde26 (AT) rediffmail (DOT) com> wrote:
Quote:
bret (AT) sybase (DOT) com (Bret Halford) wrote in message news:<34c88f2b.0403040729.4425d5d (AT) posting (DOT) google.com>...
nitinshinde26 (AT) rediffmail (DOT) com (Nitin Shinde) wrote in message news:<da519165.0403032109.619811a9 (AT) posting (DOT) google.com>...
Hi,
I am trying to create a raw device for sybase databases thru disk
init, it fails by saying

Msg 5115, Level 16, State 1:
Line 1:
I/O error during disk initialization. PHYSNAME '/dev/rr2disk1' may be
incorrect
or 52004 (VSTART + SIZE) may exceed the size of the device. Please
consult the
SQL Server error log for more details.

when i check the sybase errorlog it says

2004/03/04 09:35:10.79 kernel Initializing virtual device 8,
'/dev/rr2disk1'
00:2004/03/04 09:35:10.80 kernel Virtual device 8 started using
asynchronous i/
o.
00:2004/03/04 09:35:10.80 kernel sddone: write error on virtual disk
8 block 0:
00:2004/03/04 09:35:10.80 kernel sddone: No such device or address
00:2004/03/04 09:35:10.80 kernel Deactivating virtual device 8,
'/dev/rr2disk1'

i have tried all possible solutions but have failed to create a raw
device for sybase databases.

My disk layout is as follows,
----------------------------------------------------------------
Name | Type | New FS | # | First Block | Last Block |
----------------------------------------------------------------
| f1disk1 | HTFS | no | 0 | 0| 1560576|
| r1disk1 | HTFS | no | 1 | 1560577| 3657729|
| r2disk1 | NON FS | no | 2 | 3657730| 5754882|
| r3disk1 | NON FS | no | 3 | 5754883| 7852034|
| r4disk1 | NON FS | no | 4 | 7852035| 8948204|
| | NOT USED | no | 5 | -| -|
| | NOT USED | no | 6 | -| -|
| d1157all| WHOLE DISK | no | 7 | 0| 8956205
----------------------------------------------------------------
Thanks in Advance,
Regards
Nitin

Looks like a typo in the DISK INIT command, your listing
shows a device name of "r2disk1", the errorlog is showing
an attempt to use "rr2disk1"

-bret

Hi bret and Bela,
My disk init works for a block device i.e.
in /dev
brw-rw--- sybase sybase 1,105 r2disk1
crw-rw--- sybase sybase 1,105 rr2disk1

when i use disk init with r2disk1 it created a device
but it does not allow be creating a device on rr2disk1 ( character device )
i checked the above the above possibility, but has not solved my purpose.
i want a device to be created on a character device.
That second one IS a character device.


--
Bill Vermillion - bv @ wjv . com


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.