1827801 Members
2364 Online
109969 Solutions
New Discussion

raw partition

 
Simon_51
Occasional Contributor

raw partition

How do I create a raw partition on HP-UX 11.x?
After I pvcreate the disk, do I use hfs or vxfs. Can someone straighten me out on this?

Thanks
Si
6 REPLIES 6
Ravi_8
Honored Contributor

Re: raw partition

Hi,

you can't create raw partition in HP-UX.
you can craete file system partitions since hp-ux uses lvm .
Here is the procedure after pvcraete

#pvcreate -f /dev/rdsk/cxtxdx (cxtxdx is the disk)
#mkdir /dev/vg01 (assuimg you are crating volume group 01)
#cd /dev/vg01
#mknod group c 64 0x010000
#vgcreate vg01 /dev/dsk/cxtxdx
(vg 01 has been created now)
#lvcraete -L /dev/vg01
#newfs -F vxfs /dev/vg01/rlvolx ( x value returned by previous command)
#mount /dev/vg01/lvolx /
never give up
monasingh_1
Trusted Contributor

Re: raw partition

What you should do is do not create any file system on it.

After creating lvol, just leave it without filesystem after creating .
Use rlvolx instead of lvol in the application.
you can not mount the rlvolx but if you use raw partition, the application will access it directly.

hope this helps..
KCS_1
Respected Contributor

Re: raw partition

hi,

I agree with Monasingh's messgage.

#pvcreate -f /dev/rdsk/cxtxdx (cxtxdx is the disk)
#mkdir /dev/vg01 (assuimg you are crating volume group 01)
#cd /dev/vg01
#mknod group c 64 0x010000
#vgcreate vg01 /dev/dsk/cxtxdx
(vg 01 has been created now)
#lvcreate -L /dev/vg01

after created logical volume in your system, you can see rlvolX and lvolX logical volumes in the /dev/vg01.
----------------------------
rlvolX : raw(character) device file

lvolX : Block device file

----------------------------

good luck!!
Easy going at all.
Stefan Farrelly
Honored Contributor

Re: raw partition

simlpy create an lvol the normal way, to the size you want, but then miss out the last 2 steps (do not newfs it or mount it or add it to /etc/fstab). Now you have a raw filesystem ready to use! (/dev/vgXX/rlvolYY)
Im from Palmerston North, New Zealand, but somehow ended up in London...
Simon_51
Occasional Contributor

Re: raw partition

This was very helpful, thank you all.

Si
A. Clay Stephenson
Acclaimed Contributor

Re: raw partition

Of course, your other option is to use the entire disk, e.g. /dev/rdsk/c3t5d0 and bypass LVM completely. Having said this, I would tend to use LVM for raw volumes because the overhead is very slight and the gains in flexibility are quite large.
If it ain't broke, I can fix that.