dbTalk Databases Forums  

Raw or Buffered device?

comp.databases.informix comp.databases.informix


Discuss Raw or Buffered device? in the comp.databases.informix forum.



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

Default Raw or Buffered device? - 09-11-2003 , 09:41 PM






Hi, group

today i found another problem about my informix. The ROOTPATH pointed
to /dev/dbroot instead of /dev/rdbroot. in the manul, however, i see
the chunks should be in a raw device.

is this a problem? can i simplely correct the ROOTPATH to
/dev/rdbroot with text editor and a reboot?

-
steven (AT) lczmsoft (DOT) com

Reply With Quote
  #2  
Old   
Tsutomu Ogiwara
 
Posts: n/a

Default Re: Raw or Buffered device? - 09-11-2003 , 11:34 PM







Hi Steven.

It seems problem that you use Blocked device.

Do you mean as bellow ?

% ls -l /dev/rdbroot
crw-rw---- .......

% ls -l /dev/dbroot
brw-rw---- .......

If so, anyone can write on /dev/dbroot.
/dev/dbroot is file system.

It is not simple to change the ROOTPATH.

I think the better solution is dbexport -ss your database, initialize your
IDS, then dbimport.
Probably it exists more better solution than I mentioned.

Regards.

--
Tsutomu Ogiwara from Tokyo Japan.
ICQ#:168106592





Quote:
From: steven (AT) steven4u (DOT) net (steven)
Reply-To: steven (AT) steven4u (DOT) net (steven)
To: informix-list (AT) iiug (DOT) org
Subject: Raw or Buffered device?
Date: 11 Sep 2003 19:41:35 -0700

Hi, group

today i found another problem about my informix. The ROOTPATH pointed
to /dev/dbroot instead of /dev/rdbroot. in the manul, however, i see
the chunks should be in a raw device.

is this a problem? can i simplely correct the ROOTPATH to
/dev/rdbroot with text editor and a reboot?

-
steven (AT) lczmsoft (DOT) com
__________________________________________________ _______________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail

sending to informix-list


Reply With Quote
  #3  
Old   
Paul Watson
 
Posts: n/a

Default Re: Raw or Buffered device? - 09-12-2003 , 02:25 AM



It "shouldn't" cause you any problems. You could just link /dev/dbroot
to /dev/rdboot if you want. However you can't just edit the config
and restart it will get a bit annoyed

steven wrote:
Quote:
Hi, group

today i found another problem about my informix. The ROOTPATH pointed
to /dev/dbroot instead of /dev/rdbroot. in the manul, however, i see
the chunks should be in a raw device.

is this a problem? can i simplely correct the ROOTPATH to
/dev/rdbroot with text editor and a reboot?

-
steven (AT) lczmsoft (DOT) com
--
Paul Watson #
Oninit Ltd # Growing old is mandatory
Tel: +44 1436 672201 # Growing up is optional
Fax: +44 1436 678693 #
Mob: +44 7818 003457 #
www.oninit.com #


Reply With Quote
  #4  
Old   
Andy Lennard
 
Posts: n/a

Default Re: Raw or Buffered device? - 09-12-2003 , 02:50 AM



In message <3F6174E7.5B1C371A (AT) oninit (DOT) com>, Paul Watson <paul (AT) oninit (DOT) com>
writes
Quote:
It "shouldn't" cause you any problems. You could just link /dev/dbroot
to /dev/rdboot if you want. However you can't just edit the config
and restart it will get a bit annoyed

steven wrote:

Hi, group

today i found another problem about my informix. The ROOTPATH pointed
to /dev/dbroot instead of /dev/rdbroot. in the manul, however, i see
the chunks should be in a raw device.

is this a problem? can i simplely correct the ROOTPATH to
/dev/rdbroot with text editor and a reboot?

-
steven (AT) lczmsoft (DOT) com

From the school of 'if it ain't broke...' I'd suggest that if it isn't
actually causing you a problem (and I don't know anything about your
configuration or application), then leave it alone. It may not represent
an optimal configuration, but whether you 'need' to do anything is up to
you. Just put it on the list of things you'd do different next time...

--
Andrew Lennard andy (AT) kontron (DOT) demon.co.uk



Reply With Quote
  #5  
Old   
steven
 
Posts: n/a

Default Re: Raw or Buffered device? - 09-12-2003 , 05:58 AM



"Tsutomu Ogiwara" <tsutomu_ogiwara (AT) hotmail (DOT) com> wrote

Quote:
Hi Steven.

It seems problem that you use Blocked device.

Do you mean as bellow ?

% ls -l /dev/rdbroot
crw-rw---- .......

% ls -l /dev/dbroot
brw-rw---- .......

Yes!

Quote:
If so, anyone can write on /dev/dbroot.
/dev/dbroot is file system.

What you mean 'anyone can write on /dev/dbroo'? I'm sure no file
system create on /dev/dbroot.

Quote:
It is not simple to change the ROOTPATH.

my ROOTSPACE variabe only refer to a symbol link to real /dev/dbroot.
can i simply correct the symbol link to /dev/rdbroot w/o disturb my
data?

Quote:
I think the better solution is dbexport -ss your database, initialize your
IDS, then dbimport.
Probably it exists more better solution than I mentioned.

Regards.

--
Tsutomu Ogiwara from Tokyo Japan.
ICQ#:168106592





From: steven (AT) steven4u (DOT) net (steven)
Reply-To: steven (AT) steven4u (DOT) net (steven)
To: informix-list (AT) iiug (DOT) org
Subject: Raw or Buffered device?
Date: 11 Sep 2003 19:41:35 -0700

Hi, group

today i found another problem about my informix. The ROOTPATH pointed
to /dev/dbroot instead of /dev/rdbroot. in the manul, however, i see
the chunks should be in a raw device.

is this a problem? can i simplely correct the ROOTPATH to
/dev/rdbroot with text editor and a reboot?

-
steven (AT) lczmsoft (DOT) com

__________________________________________________ _______________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail

sending to informix-list

Reply With Quote
  #6  
Old   
Neil Truby
 
Posts: n/a

Default Re: Raw or Buffered device? - 09-12-2003 , 07:42 AM



Quote:
my ROOTSPACE variabe only refer to a symbol link to real /dev/dbroot.
can i simply correct the symbol link to /dev/rdbroot w/o disturb my
data?
Why didn't you say so in the first place? :-)
Yes, you can do that. Obviously you must shut the database server down
whilst you break and re-create the link

--
Neil Truby t:01932 724027
Director m:07798 811708
Ardenta Limited e:neil.truby (AT) ardenta (DOT) com




Reply With Quote
  #7  
Old   
Robert A. Reissaus
 
Posts: n/a

Default Re: Raw or Buffered device? - 09-12-2003 , 08:07 AM



steven (AT) steven4u (DOT) net (steven) wrote in message news:<1e7ef8d0.0309120258.677d82f3 (AT) posting (DOT) google.com>...
Quote:
"Tsutomu Ogiwara" <tsutomu_ogiwara (AT) hotmail (DOT) com> wrote

Hi Steven.

It seems problem that you use Blocked device.

Do you mean as bellow ?

% ls -l /dev/rdbroot
crw-rw---- .......

% ls -l /dev/dbroot
brw-rw---- .......


Yes!

If so, anyone can write on /dev/dbroot.
/dev/dbroot is file system.

What you mean 'anyone can write on /dev/dbroo'? I'm sure no file
system create on /dev/dbroot.

It is not simple to change the ROOTPATH.


my ROOTSPACE variabe only refer to a symbol link to real /dev/dbroot.
can i simply correct the symbol link to /dev/rdbroot w/o disturb my
data?

I think the better solution is dbexport -ss your database, initialize your
IDS, then dbimport.
Probably it exists more better solution than I mentioned.

Regards.

--
Tsutomu Ogiwara from Tokyo Japan.
ICQ#:168106592





From: steven (AT) steven4u (DOT) net (steven)
Reply-To: steven (AT) steven4u (DOT) net (steven)
To: informix-list (AT) iiug (DOT) org
Subject: Raw or Buffered device?
Date: 11 Sep 2003 19:41:35 -0700

Hi, group

today i found another problem about my informix. The ROOTPATH pointed
to /dev/dbroot instead of /dev/rdbroot. in the manul, however, i see
the chunks should be in a raw device.

is this a problem? can i simplely correct the ROOTPATH to
/dev/rdbroot with text editor and a reboot?

-
steven (AT) lczmsoft (DOT) com

__________________________________________________ _______________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail

sending to informix-list
I am a bit confused here. You start off by saying your root points to
/dev/dbroot but further on in the discussion you claim it points to a
symbolic link. I **GUESS** you mean to say that your onconfig points
to a symbolic link, but your simbolic link points to /dev/dbroot
instead of /dev/rdbroot?

In that case it *MIGHT* be a problem if you simply change to link from
/dev/dbroot to /dev/rdbroot. WHY? you ask? Well because data is stored
differently on /dev/dbroot (which is as Tsutomo Ogiware pointed out a
block device) than on /dev/dbroot (which a raw device). What is the
difference? Block devices use the OS file IO system and raw devices to
not.

So, in short. TO BE SURE: perform a full dbexport your instance. THEN
(!) shutdown your instance, change the link (and make sure onconfig
point to it!) and restart your instance. If it goes wrong you will
have to recraate you instance with the proper link in place and
perform a dbimport. Make sure you recreate you instance in accordance
with your dbexport sql file!

Succes
Robert A. Reissaus
Ibm/Informix consultants
RISDI (tm)(r)
Amsterdam , the Netherlands
r.a.reissaus (AT) risdi (DOT) com
www.risdi.com


Reply With Quote
  #8  
Old   
Paul Watson
 
Posts: n/a

Default Re: Raw or Buffered device? - 09-12-2003 , 09:21 AM



Neil Truby wrote:
Quote:
my ROOTSPACE variabe only refer to a symbol link to real /dev/dbroot.
can i simply correct the symbol link to /dev/rdbroot w/o disturb my
data?

Why didn't you say so in the first place? :-)
Yes, you can do that. Obviously you must shut the database server down
whilst you break and re-create the link
Or execute the command very very quickly:-)

Quote:
--
Neil Truby t:01932 724027
Director m:07798 811708
Ardenta Limited e:neil.truby (AT) ardenta (DOT) com
--
Paul Watson #
Oninit Ltd # Growing old is mandatory
Tel: +44 1436 672201 # Growing up is optional
Fax: +44 1436 678693 #
Mob: +44 7818 003457 #
www.oninit.com #


Reply With Quote
  #9  
Old   
Art S. Kagel
 
Posts: n/a

Default Re: Raw or Buffered device? - 09-12-2003 , 11:19 AM



On Fri, 12 Sep 2003 09:07:37 -0400, Robert A. Reissaus wrote:
<SNIP>
Quote:
I am a bit confused here. You start off by saying your root points to
/dev/dbroot but further on in the discussion you claim it points to a symbolic
link. I **GUESS** you mean to say that your onconfig points to a symbolic
link, but your simbolic link points to /dev/dbroot instead of /dev/rdbroot?

In that case it *MIGHT* be a problem if you simply change to link from
/dev/dbroot to /dev/rdbroot. WHY? you ask? Well because data is stored
differently on /dev/dbroot (which is as Tsutomo Ogiware pointed out a block
device) than on /dev/dbroot (which a raw device). What is the difference?
Block devices use the OS file IO system and raw devices to not.
NO THERE IS NO DIFFERENCE IN THE PHYSICAL STORAGE regardless of whether you
read/write /dev/dbroot or /dev/rdbroot. The ONLY difference is that the latter
does not go through the OS buffer cache and the former does. The data on disk
is identical either way. IT IS PERFECTLY SAFE to just bring the engine down,
remove the symbolic link to /dev/dbroot and replace it with an identically
named symbolic link to /dev/rdbroot!

HOWEVER, there is no harm, and much peace of mind to be gained from taking a
level 0 archive before going through this. Any DBA worth his salt would do so
and since you are not hurting performance wise there is no harm in taking the
time to do so.

Quote:
So, in short. TO BE SURE: perform a full dbexport your instance. THEN (!)
shutdown your instance, change the link (and make sure onconfig point to it!)
and restart your instance. If it goes wrong you will have to recraate you
instance with the proper link in place and perform a dbimport. Make sure you
recreate you instance in accordance with your dbexport sql file!
UNNECCESSARY!

Art S. Kagel


Reply With Quote
  #10  
Old   
Robert A. Reissaus
 
Posts: n/a

Default Re: Raw or Buffered device? - 09-13-2003 , 08:28 AM



"Art S. Kagel" <kagel (AT) bloomberg (DOT) net> wrote

Quote:
On Fri, 12 Sep 2003 09:07:37 -0400, Robert A. Reissaus wrote:
SNIP
I am a bit confused here. You start off by saying your root points to
/dev/dbroot but further on in the discussion you claim it points to a symbolic
link. I **GUESS** you mean to say that your onconfig points to a symbolic
link, but your simbolic link points to /dev/dbroot instead of /dev/rdbroot?

In that case it *MIGHT* be a problem if you simply change to link from
/dev/dbroot to /dev/rdbroot. WHY? you ask? Well because data is stored
differently on /dev/dbroot (which is as Tsutomo Ogiware pointed out a block
device) than on /dev/dbroot (which a raw device). What is the difference?
Block devices use the OS file IO system and raw devices to not.

NO THERE IS NO DIFFERENCE IN THE PHYSICAL STORAGE regardless of whether you
read/write /dev/dbroot or /dev/rdbroot. The ONLY difference is that the latter
does not go through the OS buffer cache and the former does. The data on disk
is identical either way.
This of course is abslutely true. And i stand corrected for this dum
error on my part.
Robert A. Reissaus


IT IS PERFECTLY SAFE to just bring the engine down,
Quote:
remove the symbolic link to /dev/dbroot and replace it with an identically
named symbolic link to /dev/rdbroot!
This how ever I do not agree with. Changing the symbolic link will
result in error :

Cannot open chunk '/opt/DBA/Informix/Links/730/risdi08/primary/root'.
errno = 19
oninit: Fatal error in shared memory initialization

because the (old) link itself is stored in the instances systam
tables. So it would not be sufficient to 'simply' change the link.
Robert A. Reissaus

Quote:
HOWEVER, there is no harm, and much peace of mind to be gained from taking a
level 0 archive before going through this. Any DBA worth his salt would do so
and since you are not hurting performance wise there is no harm in taking the
time to do so.


So, in short. TO BE SURE: perform a full dbexport your instance. THEN (!)
shutdown your instance, change the link (and make sure onconfig point to it!)
and restart your instance. If it goes wrong you will have to recraate you
instance with the proper link in place and perform a dbimport. Make sure you
recreate you instance in accordance with your dbexport sql file!

UNNECCESSARY!
I usually do a dbexport of a (smaller) instance because it is (imo)
sometimes easier to rebuild a instance in case anything goes wrong
than to do a restore specifically after having tried to do what is
attempted here. So I would find the *UNNECCESSARY!* a bit too strong
(especcially in caps).

Robert A. Reissaus
Quote:
Art S. Kagel

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.