The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


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


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
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
logical volume hoeyman Chat with iBot - Our RSS Robot Girl 1 12-29-2006 10:22 AM
HP-UX logical volume structure gorayen HP-UX 2 11-10-2005 10:14 PM
Moving a Logical Volume from one Volume Group to Another krisw AIX 1 11-04-2005 05:18 PM

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

Join Date: Jul 2007
Posts: 21
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl 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: In the middle of Europe
Posts: 47
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl 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: 12
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl 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: 21
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl 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: 12
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl 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
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



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


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

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102