1833760 Members
2564 Online
110063 Solutions
New Discussion

Re: create raw devices.

 
SOLVED
Go to solution
anilezfa
Advisor

create raw devices.

Could some one guide me on how to create a raw devices for a database? Thanks.
6 REPLIES 6
Sunil Sharma_1
Honored Contributor

Re: create raw devices.

It's the same way you create logical volume. In this case no need to create FS on volume and /dev/vgnn/rlvolmm will be used as raw volumes fro database.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Michael Tully
Honored Contributor

Re: create raw devices.

Informix right?

Just create a logical volume as you would normally, but do not create a filesystem on it.

e.g.
lvcreate -n myrawlv /dev/myvg
lvextend -L /dev/myvg/myrawlv

You then need to create a symbolic link somewhere to point to the device of the logical volume.

ln -s /dev/myvg/myrawlv /links/dbspace1
Anyone for a Mutiny ?
Franky_1
Respected Contributor

Re: create raw devices.

Hi,

just create a LV as normally with lvcreate but don't put a FS on it

Regards

Franky
Don't worry be happy
anilezfa
Advisor

Re: create raw devices.

If I want :

device: /dev/myraw/
char,block name: abc,rabc

So I just run the following :

1) lvcreate -L 2048 -n abc /dev/myraw

and that's it? How can I check that it was created properly?
Michael Tully
Honored Contributor
Solution

Re: create raw devices.

lvdisplay -v /dev/myraw/abc
vgdispplay -v /dev/myraw

Although if there was a problem, the command line would tell you.
Anyone for a Mutiny ?
anilezfa
Advisor

Re: create raw devices.

Thanks for all the guide. ;)