Showing results for 
Search instead for 
Did you mean: 

RAW disk partion on HP UX

saransh soni
Occasional Visitor

RAW disk partion on HP UX

I have two HP rx 3300 boxes with OS HP UX B 11.31 & I need to create following raw disk partion to be used for Oracle RAC installation
1 GB( 5 nos)
2 GB(10 nos)
& these partions to be sahred over both nodes

I have 2 146 GB RAW disk each mounted on every box which I can use for above slices.
Can you please tell me how can I create partions over raw disks & use them as a shared storage.

Thanks in advance

Saransh Soni
Sunny Jaisinghani
Trusted Contributor

Re: RAW disk partion on HP UX

Hello Saransh,

You will have to use LVM here...

LVM is the default file system administration tool in HPUX.

Firstly, you will have to create physical volumes to write the LVM hearders on to the physical/raw disks that you have.

then create a volume group using those PVs. Hence you will have 2*146= 292GB volume groups on both servers.

Within these volume groups you can create your logical volumes as needed. Create 15 logical volumes (i.e. 5 LVs of size 1gb and 10LVs of size 2GB)

Finally create a filesystem on these LVs and mount them.

Hence the order would be


For detailed info about LVM refer

Frequent Advisor

Re: RAW disk partion on HP UX

hi saransh soni

you cannot share that Raw Partitions on both boxes because, each system having separate hard disk and if you want share the same Raw Partitions you have to use some storage boxes
Sunny Jaisinghani
Trusted Contributor

Re: RAW disk partion on HP UX

You can share the LVM file systems using NFS.

Honored Contributor

Re: RAW disk partion on HP UX

I agree with Sunny's post up until "create a filesystem" - don't do that. You're wanting to share raw across the servers, so you're OK with that. And, since you're not hosting a file system - you don't need/want NFS either.

You need to use lvm to create your disk areas (raw, with no filesystem format), and mark them as shared (pvchange). And then just mount them on both servers.

Orrrr, you can just skip lvm altogether if you just want to present the LUNs on both machines, but don't want to "partition" the drives and use them entirely as whole disks. That's what lvm is for - to "partition" the drives, but it's more than that, it can also take multiple disk areas and combine them into one disk area for presentation in an lvol. Meaning you could use parts of a disk to present as a volume, or you can use multiple disks to present as one volume, or you can use parts of many disks and then take just those parts and present them as one volume.

To summarize: if you want raw volumes to multiple machines just present them to each server. If you want to use this disks in various ways and slice/dice/join them present them to each system, and then use lvm to use them (as shared) and slice them up. Both of these two choices mean that you're NOT using a filesystem, and that the volumes are RAW.
We are the people our parents warned us about --Jimmy Buffett
Acclaimed Contributor

Re: RAW disk partion on HP UX

Do you have any external disks shared between the servers?

Using internal disks does not really make sense for such cluster.

Hope this helps!

There are only 10 types of people in the world -
those who understand binary, and those who don't.

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Valued Contributor

Re: RAW disk partion on HP UX

Hi Sony

For setup oracle rack you need something like this.

First you need shared disks presented to both servers

Then you need your to create your phisycal volumes

- pvcreate -B /path_to_the_disks

Then you need to create your VG's

- vgcreate /dev/vg_name /dev/dsk/disk1 /dev/dsk/disk2 etc

Then you need to create your raw devices

- lvcreate -L lvol_size -n raw_device_name /dev/vg_name

Then you nee to active your vg em shared mode:

- vgchange -c y -S y /dev/vg_name
- vgchange -a s /dev/vg_name

If you need to setup a cluster with oracle rack you need to import the configuracion of the vg em the other node:

In the node 1 do
- vgexport -s -v -p -m /tmp/ /dev/vg_name
- scp /tmp/ node2:/tmp/

In the no 2
- mkdir /dev/vg_name
- mknod /dev/vg_name/group c 64 0x12000 ( the 12 is the corresponding number in the vg's id on node 1 in the directory /dev/vg_name/group
- vgimport /tmp/ dev/vg_name
- at least vgchange a y /dev/vg_name

Best Regards.