The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Moving a Logical Volume from one Volume Group to Another krisw AIX 2 07-14-2008 04:48 AM
LVM - Extending Logical Volume within Volume Group ghimanshu UNIX for Advanced & Expert Users 3 07-26-2007 04:39 AM
Extend one Logical Volume scampi AIX 1 02-07-2007 09:39 AM
HP-UX logical volume structure gorayen HP-UX 2 11-10-2005 10:14 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-08-2008
Registered User
 

Join Date: Jul 2007
Posts: 22
Stumble this Post!
Logical volume to raw device

Hy
I have several logical volumes that are turned into raw devices used by Informix DB. I would like to add some more.

In /dev directory i see logical volumes as block files: lv_name1, lv_name2 ...

and

i see raw devices defined as character files:
rlv_name1, rlv_name2 ...

As i see, these LVs were turned into raw devices, somehow.

I found out the way to create new logical volumes using smit.
My question is, how to turn these logical volumes into raw devices?

Thanks!
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-08-2008
Registered User
 

Join Date: Mar 2008
Location: Infractor's boudoir
Posts: 141
Stumble this Post!
Quote:
Originally Posted by veccinho View Post
[...]I found out the way to create new logical volumes using smit.
My question is, how to turn these logical volumes into raw devices?
[...]
Every LV is raw as long as you do not define any FS on it. The rest is just names...
Reply With Quote
  #3 (permalink)  
Old 05-08-2008
Registered User
 

Join Date: May 2008
Location: Northern Ireland
Posts: 14
Stumble this Post!
every logical volume that contains no filesystem is per definition a raw device ...
change the permission of the device to the database ownership (like on the already existent RAW devices) and initialise them from within the database ... thats it

Rgds
zx
Reply With Quote
  #4 (permalink)  
Old 05-08-2008
Registered User
 

Join Date: Jul 2007
Posts: 22
Stumble this Post!
Quote:
Originally Posted by zxmaus View Post
every logical volume that contains no filesystem is per definition a raw device ...
change the permission of the device to the database ownership (like on the already existent RAW devices) and initialise them from within the database ... thats it

Rgds
zx

Ok, great!
One more question.
When i create logical volume, it is by default created as block device.
But i see that all my raw devices assigned to the database are character-special devices.
Example, in my /dev directory i have following:
brw-rw---- 1 root system 10, 12 Dec 09 2005 lvinformix0

crw-rw---- 1 informix informix 10, 12 Mar 16 06:30 rlvinformix0

From a given example, only the rlvinformix0 device is assigned to the database.
So, how do i make this new LV to be a character device?
Reply With Quote
  #5 (permalink)  
Old 05-09-2008
Registered User
 

Join Date: May 2008
Location: Northern Ireland
Posts: 14
Stumble this Post!
every logical volume you are creating is appearing in /dev as a block- and a characterdevice

brw-rw---- 1 root system 10, 12 Dec 09 2005 lvinformix0
crw-rw---- 1 informix informix 10, 12 Mar 16 06:30 rlvinformix0

so assuming you have now created lvinformix1

you should see
brw-rw---- 1 root system 10, 12 May 09 06:40 lvinformix1
crw-rw---- 1 root system 10, 12 May 09 06:40 rlvinformix1

and all you need to do is chown informix:informix /dev/rlvinformix1

afterwards informix should be able to initialize this filesystem ...

Rgds
zx
Reply With Quote
  #6 (permalink)  
Old 05-13-2008
Registered User
 

Join Date: Jul 2007
Posts: 22
Stumble this Post!
Quote:
Originally Posted by zxmaus View Post
every logical volume you are creating is appearing in /dev as a block- and a characterdevice

brw-rw---- 1 root system 10, 12 Dec 09 2005 lvinformix0
crw-rw---- 1 informix informix 10, 12 Mar 16 06:30 rlvinformix0

so assuming you have now created lvinformix1

you should see
brw-rw---- 1 root system 10, 12 May 09 06:40 lvinformix1
crw-rw---- 1 root system 10, 12 May 09 06:40 rlvinformix1

and all you need to do is chown informix:informix /dev/rlvinformix1

afterwards informix should be able to initialize this filesystem ...

Rgds
zx
It worked just fine!
The only "problem" was that i didn't know that every new logical volume after its creation will appear as block- AND as character device.
Thanks for the info!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:02 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0