Operating System - HP-UX
1836636 Members
1705 Online
110102 Solutions
New Discussion

Adding raw volumes to cluster running MC/SG HP-UX 11.0

 
Richard Amick
Occasional Advisor

Adding raw volumes to cluster running MC/SG HP-UX 11.0

We are running a 2-node cluster using MC/SG on HP-UX 11.0
Oracle8i is running on this config with raw volumes for the data.
This is a production box and I serve as the DBA/System admin for the system.
There are currently a number of raw volumes allocated and all are used by
Oracle. I need to create new raw volumes to hold additional Oracle objects.
I understand how to do this with Oracle shutdown:
1. disable all shared volumes on both nodes
2. disable shared mode for all volumes
3. activate the VGs in non-shared (exclusive) mode on a node
4. create the new logical volume partitions on the same node
lvcreate -n p200_1 -L 200 u1
5. create the LV raw device files on the other node(s)
6. deactivate exclusive on same node as 3 & 4
7. put the VGs in shared mode with the cluster
8. activate the VGs in shared mode on each node
9. modify owner, group and permissions for the new volumes on each node

[the above info may help others on how to do this]
My question is:
Can I do this without disabling the shared volumes (without shutting down the database)?
1 REPLY 1
Peggy Fong
Respected Contributor

Re: Adding raw volumes to cluster running MC/SG HP-UX 11.0

HI
If you are just adding new lvols (that will be raw) then you can do this while everything is active. Create the lvols under the VG that is active on the node that is active. Then vgexport with the -p -m and -s options to get a map file (but not really export anything).

On the other node that the vg is not active on you might want to remove the device files for the lvols but leave the directory and group in place. Bring over the map file.
vgimport using the map file with the -s option.

Then update the serviceguard packagescripts that contain the lvols if needed. Since they are raw, they don't get mounted so there are probably no changes for you.

Hope this helps (HTH)
Peggy