dbTalk Databases Forums  

How to create raw devices on linux?

comp.databases.sybase comp.databases.sybase


Discuss How to create raw devices on linux? in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John Smith
 
Posts: n/a

Default How to create raw devices on linux? - 11-03-2003 , 12:05 PM






I´m installing a sybase database for the first time.

I have to use raw partitions, but i have no experience with them. I created
the filesystems and them, edit the /etc/sysconfig/rawdevices
ex;
/dev/raw/raw1 /dev/cciss/c0d0p2
when i type the command : raw -qa, i get this output:
/dev/raw/raw1: bound to major 104, minor 2

Is this working?

i have no idea....

best regards

JacK


Reply With Quote
  #2  
Old   
Michael Peppler
 
Posts: n/a

Default Re: How to create raw devices on linux? - 11-03-2003 , 03:42 PM






On Mon, 03 Nov 2003 18:05:37 +0000, John Smith wrote:

Quote:
I´m installing a sybase database for the first time.

I have to use raw partitions, but i have no experience with them. I created
the filesystems and them, edit the /etc/sysconfig/rawdevices
ex;
/dev/raw/raw1 /dev/cciss/c0d0p2
when i type the command : raw -qa, i get this output:
/dev/raw/raw1: bound to major 104, minor 2
That looks about right. Have you tried accessing the raw device from
Sybase (i.e. running disk init against that device?)

Michael
--
Michael Peppler Data Migrations, Inc.
mpeppler (AT) peppler (DOT) org http://www.mbay.net/~mpeppler
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or
long term contract positions - http://www.mbay.net/~mpeppler/resume.html



Reply With Quote
  #3  
Old   
stuart abrams-humphries
 
Posts: n/a

Default Re: How to create raw devices on linux? - 11-10-2003 , 08:23 AM



Hi,
Also have a look at:

http://info.sybase.com/resolution/de...umber=10877814

Additionally I'd probably do a services rawdevices restart after
making anychanges to the rawdevices file

Kind Regards

Stuart
"Michael Peppler" <mpeppler (AT) peppler (DOT) org> wrote

Quote:
On Mon, 03 Nov 2003 18:05:37 +0000, John Smith wrote:

I´m installing a sybase database for the first time.

I have to use raw partitions, but i have no experience with them. I created
the filesystems and them, edit the /etc/sysconfig/rawdevices
ex;
/dev/raw/raw1 /dev/cciss/c0d0p2
when i type the command : raw -qa, i get this output:
/dev/raw/raw1: bound to major 104, minor 2

That looks about right. Have you tried accessing the raw device from
Sybase (i.e. running disk init against that device?)

Michael

Reply With Quote
  #4  
Old   
Thomas Gagne
 
Posts: n/a

Default Re: How to create raw devices on linux? - 07-02-2004 , 09:11 AM



Are there any advantages to using smaller raw devices over large ones? If I
only have two physical disks, is there any value to using smaller raw
partitions, but more of them, over creating just two raw partitions -- one for
each disk?

Reply With Quote
  #5  
Old   
Michael Peppler
 
Posts: n/a

Default Re: How to create raw devices on linux? - 07-02-2004 , 10:28 AM



On Fri, 02 Jul 2004 10:11:48 -0400, Thomas Gagne wrote:

Quote:
Are there any advantages to using smaller raw devices over large ones? If
I only have two physical disks, is there any value to using smaller raw
partitions, but more of them, over creating just two raw partitions -- one
for each disk?
The usual argument is that there is an advantage to have a larger number
of spindles so that you can spread out the IO over multiple physical
devices. I don't *think* that multiple devices on the same physical disk
is likely to bring any real performance advantages as the IO will still be
performed by a single physical unit.

Michael
--
Michael Peppler Data Migrations, Inc.
mpeppler (AT) peppler (DOT) org http://www.peppler.org/
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or
long term contract positions - http://www.peppler.org/resume.html



Reply With Quote
  #6  
Old   
Larry Coon
 
Posts: n/a

Default Re: How to create raw devices on linux? - 07-03-2004 , 10:52 PM



Michael Peppler wrote:

Quote:
The usual argument is that there is an advantage to have a larger number
of spindles so that you can spread out the IO over multiple physical
devices. I don't *think* that multiple devices on the same physical disk
is likely to bring any real performance advantages as the IO will still be
performed by a single physical unit.
One advantage is that the cylinders in the center of
the platter have a lower average seek time than the
cylinders on the inside & outside edges. I don't know
about Linux, but on AIX you can create physical
partitions with control over where they go on the
platter. You can then create Sybase disk devices to
correspond to these physical partitions, and segments
to correspond to the Sybase devices. You can therefore
put high-I/O tables on segments that are on devices that
are on faster parts of the disk.


Larry Coon
University of California

The NBA Salary Cap FAQ:
http://members.cox.net/lmcoon/salarycap.htm


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.