Operating System - HP-UX
1840104 Members
3052 Online
110161 Solutions
New Discussion

create new lv on hp serviceguard cluster

 
SOLVED
Go to solution
Tom Stewart_2
Advisor

create new lv on hp serviceguard cluster

I need to create a new dbf file on a HP-UX service guard cluster running oracle RAC. Can someone review the steps below to create a raw device and tell me if they are correct.

On the main node
vgchange -a n /dev/vgxx
lvcreate -L 100 -n newlv /dev/vgxx
vgexport -p -f /tmp/vgxx.export
copy vgxx.export to second node

On second node
vgimport -f vgxx.export
vgchange -a n /dev/vgxx
vgchange -S y -c y /dev/vgxx

On both nodes
vgchange -s s /dev/vgxx

Let me know if I left out any steps as this needs to be done on a live system so I would like to be sure it is correct

Thanks in advance
6 REPLIES 6
Steven E. Protter
Exalted Contributor
Solution

Re: create new lv on hp serviceguard cluster

Shalom,

steps look good, can't do any lvm work while mounted in shared mode.

Shmuel
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com

Re: create new lv on hp serviceguard cluster

I would advise you to read this document:

http://docs.hp.com/en/7389/LVM_SNOR_whitepaper.pdf

This is the *only* way you can change a VG configuration online with SLVM in a RAC configuration. If you don't have the necessary patches discussed at the end of the document you're going to have to take the app offline (or at least the relevant tablespaces offline).

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Sundar_7
Honored Contributor

Re: create new lv on hp serviceguard cluster

Couple of very minor points

1) With vgexport and vgimport you will need to specify the volume group name.

If you dont use the -s option with vgexport then you will need to manually specify the Physical Volumes with vgimport.

2) On the second node, before you can do a vgimport, you will need to export the VG export (ofcourse, assuming that this is an exsiting VG that has previously been imported on to the second node).
Learn What to do ,How to do and more importantly When to do ?
Tom Stewart_2
Advisor

Re: create new lv on hp serviceguard cluster

Thanks for the reply, how do I unshare the VG?

Thanks
melvyn burnard
Honored Contributor

Re: create new lv on hp serviceguard cluster

folow the instructions in http://docs.hp.com/en/7389/LVM_SNOR_whitepaper.pdf
This gives you step by step commands
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Tom Stewart_2
Advisor

Re: create new lv on hp serviceguard cluster

Thanks for the responses all