1753479 Members
5108 Online
108794 Solutions
New Discussion юеВ

Re: creating raw device

 
SOLVED
Go to solution
bitou
Frequent Advisor

creating raw device

hi,
i need yr help to solve my problem:
I am interested to create a raw device from sam which start with "r" and created in /dev directory
for example:
test/rtest (test logical and rtest raw device)
how can i create this raw device, can y tell me the steps.
16 REPLIES 16
Kenan Erdey
Honored Contributor

Re: creating raw device

Hi,

you will create logical volume from sam. it will create device file with starting r also.

or you can use lvcreate command.
Computers have lots of memory but no imagination
Manix
Honored Contributor

Re: creating raw device

Lvol is RAW till you run "newfs" to create file systems.

You may use the raw volumes /dev/vg_name/rlvolXX for data-bases or else.

Thanks
Manix
HP-UX been always lovable - Mani Kalra
bitou
Frequent Advisor

Re: creating raw device

hi,
thanks for yr reply, my target is to install a database oh HPUX system.
But I don't know how to create a raw device and if it is necessary to mount this logical device?
i hope to help me to create a raw device and to tell me the steps:
for example:
create a raw
logs/rlogs should be in /dev

i appreciate yr help but i need the steps
Manix
Honored Contributor

Re: creating raw device

you need to run the command to create lvol
which lies in a volume group.

lvcreate -n -M /dev/vg_name

Check if there is VG with free space with command vgdisplay -v.

You needs to describe what setup you have ,you
want to create things from scratch or you have
a VG ?
HP-UX been always lovable - Mani Kalra
bitou
Frequent Advisor

Re: creating raw device

thanks Manix,
in reality, i have to install a database but the prerequisites is:
1-create a logical volumes
logs
2-it should be created in /dev
logs/rlogs
and we are interested in raw devices which sorts with r

how can y explain this method and do i have an idea how can we create this raw device in hpux ???
Kenan Erdey
Honored Contributor

Re: creating raw device

Hi,

if you create logical volumes as explained above(i.e. /dev/vgoracle/test), raw devices starting with r(dev/vgoracle/rtest), will also be created automatically.
Computers have lots of memory but no imagination
bitou
Frequent Advisor

Re: creating raw device

thanks a lot for yr response Kenan.
another question plz it is possible to create the raw device in /dev ???? or it should be in /dev/vg00?
and if it is possible: the method to create raw device from SAM is
1-mkdir log in /dev
2-sam-device-logical volume-choose raw device and i fix the mount to /dev/logs
it is true the steps and the mount
Ismail Azad
Esteemed Contributor

Re: creating raw device

Hi,

The lvcreate command creates the directories both raw and block device files in /dev on the firing of the command lvcreate and I guess there is a typo error in manix's post, the -M would be -L { -M stands for the mwc flag and -L sets the size}...

lvcreate -L -n test vg03

The execution of this command will create two device files, /dev/vg03/test and /dev/vg03/rtest automatically and you should be getting the message on stdout on the successful execution of the command and the size that is required has to be planned accordingly.

I assume you have a PV and VG already created?

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
bitou
Frequent Advisor

Re: creating raw device

thanks for yr reply Ismail.
but my question it is possible to create in /dev? or it should be in /dev/vg00?
2- and concerning the mount point how can i do this operation, i am using SAM and not command line.