Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

please help!: how to create raw disk chunks

Status
Not open for further replies.

WiccaChic

Technical User
Jan 21, 2004
179
US
Hi all. I have a 36 gig drive that I have installed and working and I want to carve it up into 2 gig raw devices (chunks) for informix to use. My box is running AIX v5.2. Does anyone know how to do this? My database documentation say see the os documentation, but what I have found is not as clear as it could be, or at least not to me.

I called informix support and they could not really help me and said it was an os function. I know how to add/drop chunks, but I have always had a pool of chunks to pick from to do that...they were setup before I got here. I have never seen the process from start (from disk install) to finish.
 
WiccaChic,
here are the steps to create the raw devices:

-use <smitty lv> to enter smitty, under the Logical Volumes section;
-choose the Add a Logical Volume option;
-choose the Volume Group using ESC-4;
-choose a Logical Volume Name, that's the name of you raw
device;
-choose the Number o Logical Partitions (LP's), 64 would do fine if you have PP's of 32Mb and would like to create a 2Gb raw device;
-type the Logical Volume Type: raw;

After that, you will have a file create under /dev with this name: /dev/r<name of the LV>

-change its owner: chown informix:informix /dev/r<...>;
-go to your informix data path and create the symbolic link: ln -s /dev/r<...> chunk01

The next step is to use onspaces to add the chunk01 to the dbspace that you want.

FFO
&quot;The only way of knowing is to understand&quot;
 
Thanks. I have a hard won tip for any other AIX'ers - your chunk size has to be a round number when you go to add it with onspaces (at least in 9.40) or it wont work!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top