Operating System - HP-UX
1838469 Members
2714 Online
110126 Solutions
New Discussion

adding a new disk to cluster.

 
SOLVED
Go to solution
Hasan_9
Regular Advisor

adding a new disk to cluster.

Hi

I have two clustered servers with SG, SGE RAC, Oracle 9iR2. Is it possible to add another SLVM to cluster for the purpose of additional space for storing oracle data?how?
Please advice.
Hasan
5 REPLIES 5
RAC_1
Honored Contributor
Solution

Re: adding a new disk to cluster.

Do you intend to preare a new lvol for this?? Or do you intend to add disk to an exisiting lvol and extend it?? If you intend to add a new lvol, you will have to stop package, create a new lvol, update cntl file and config file and reapply changes. Else, you just need to add disk and extend lvol on one node. Once done on one node, do vgexport -s -pv -m /tmp/vgxx.map /dev/vgxx. Transfer this file to an alternate node and import it there.
mkdir /dev/vgxx
mknod /dev/vgxx/group c 64 0x0y000
Use the correct minor number
vgimport -sv -m /tmp/vgxx.map /dev/vgxx

Check it and you should be done with it.
There is no substitute to HARDWORK
Steven E. Protter
Exalted Contributor

Re: adding a new disk to cluster.

Shalom Hasan,

Certainly you can.

To be available to the cluster, the disk needs to be connected to shared storage.

This can be fiber or scsi connected disk.

Depending on what type of storage you have, you may have to reboot to get the storage recognized.

If you wish you can extend an existing volume group to include the space.

vgextend /dev/vg02 /dev/dsk/c5t7d0

Your vg name and disk may vary.

You will want to save vg configuration after making this change.

Report any errors you get along the way. ITRC will help you fix them.

SEP
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
Devender Khatana
Honored Contributor

Re: adding a new disk to cluster.

Hi,

Yes you can do that. But you will have to plan in either of the two ways.
1. Extending etsinting VGs and file systems to the new disks.
2. Add new file systems to the VGs.

Adding more file systems will require to change cluster config as well whereever doing it using first method will not require that.

HTH,
Devender
Impossible itself mentions "I m possible"
Hasan_9
Regular Advisor

Re: adding a new disk to cluster.

Hello,
Thank you for answers.
In Oracle RAC, we shared a LVM between two nodes.
If I want to add another disk (LUN,Vsid) to VG, what should I do? (The VG is in shared mode, Should I extend VG with new disk on both the servers?)

Hasan
RAC_1
Honored Contributor

Re: adding a new disk to cluster.

Yuo do not need to extend VG on both nodes. Extend the VG on one node and export the vg (with preview mode) and prepare it on another node.

1st node
Extend VG.
vgextend /dev/vgxx /dev/dsk/cxtxdx
lvextend -L "new_size_in_MB" /dev/vgxx/lvolx
fsadm /mount_point -> (you need to have onlinejfs, else unmount and extendfs)
vgexport -pvm /tmp/vgxx.map /dev/vgxx
rcp/ftp/scp /tmp/vgxx.map to another node

2nd Node
mkdir /dev/vgxx
mknod /dev/vgxx/group c 64 0x0y0000
vgimport -vs -m /tmp/vgxx.map /dev/vgxx

In fact, even if you do not import it, it is OK. SG takes care of it, when it fails over. but better to do it.

There is no substitute to HARDWORK