Operating System - HP-UX
1753873 Members
7685 Online
108809 Solutions
New Discussion юеВ

Re: lvextend new LV to VG on oracle raw device

 
Tuck Lee
Frequent Advisor

Re: lvextend new LV to VG on oracle raw device

Hi ,

Ok! so if the server does not have onlinejfs. When I create a new LV, I will need to?

#vgchange -a e -x
and than use lvcreate like;
#lvcreate -L -n

Mustafa Gulercan
Respected Contributor

Re: lvextend new LV to VG on oracle raw device

Hi Tuck;
i write a draft quickly.Please be careful don't copy and paste to use these commands.it ia draft.you should work on it.
here is the steps;

you can not use -x parameter if you don't have onlineJFS.For your situation to create a new LV at the oracle raw device's volume group try these steps;
DO 1 to 3 both nodes.
1-shutdown the oracle.
Be sure there is no connection to that volume group.Don't forget to close oracle's listener.
2-halt the cluster packets which include that volume group.
3-vgchange -a n vgname
ll /dev/vgname/group (note the minor number of that volume group)
#vgexport -s -v -p -m /tmp/vgname.map /dev/vgname
it is not update the /etc/lvmtab file or remove the devices file.(it is a map file for existing volume group.thing it is a backup.but not data's backup under the vg.it is a map.)
vgexport -s -v -m /tmp/vgname.map /dev/vgname (it is update the /etc/lvmtab file and remove the devices file)
cd /dev
mkdir vgname
mknod /dev/vgname/group c 64 0xXXXXX (use ex minor number.)
vgimport -s -v -m /tmp/vgname.map /dev/vgname
strings /etc/lvmtab (check it.)

At NODE A do following;
lvcreate
vgchange -a n vgname
vgexport -s -v -m /tmp/vgname.map /dev/vgname
cd /dev
mkdir vgname
mknod /dev/vgname/group c 64 0xXXXXXX
vgimport -s -v -m /tmp/hp/vgname.map /dev/vgname
strings /etc/lvmtab

AT NODE B:
scp -pr nodeA:/tmp/vgname.map /tmp/vgname.map
cd /dev
mkdir vgname
mknod /dev/vgname/group c 64 0xXXXXXX (use ex minor number.be sure it is same)
vgimport -s -v -m /tmp/vgname.map /dev/vgname


regards;
Mustafa
Alzhy
Honored Contributor

Re: lvextend new LV to VG on oracle raw device

Tuck,

Again OnlineJFS plays no role and is not required in creating a new LV nor extending an existing LV that is used as a RAW Device!!



Hakuna Matata.
Mustafa Gulercan
Respected Contributor

Re: lvextend new LV to VG on oracle raw device

Hi Tuck Lee;
You are new at forum.Welcome..And Pls read forum etiquette.
You should assign points .
The point system was put into place by HP to help determine which answers helped you solve your problem as well.

regards;
mustafa


Ralph Grothe
Honored Contributor

Re: lvextend new LV to VG on oracle raw device

Wonder why so many people mentioned OnlineJFS when he is dealing with raw devices.
Simply extend the volume by using lvextend.
New chunks on it must be allocated by database means.
If you don't know how to do this ask your Oracle DBA (hopefully you have one), because he should know.
I would assume that for this no shutdown of the instance is required,
but don't take this assumption seriously as I have no Oracle expertise.
Madness, thy name is system administration
Alzhy
Honored Contributor

Re: lvextend new LV to VG on oracle raw device

Ralph!

Finally someone is talking! OnLine JFS PLAYS NO ROLE IN RAW STORAGE... Only the VOLUME MANAGER (LVM, VXVM or none).

And Ralph, RAW devices can be treated simply as files right? So expansion/contraction of RAW devices need not mean the DB needs to be shut down...
Hakuna Matata.