Original link:
http://www.eygle.com/unix/how.to.create.shared.disk.group.htm
Create a disk group
# vxdiskadm
Volume Manager Support Operations
Menu: VolumeManager / Disk
1 Add or Initialize One or more disks
2 Encapsulate One or more disks
3 REMOVE A DISK
4 REMOVE A Disk for Replacement
5 replace a failed or removed disk
6 Mirror Volumes on a disk
7 Move Volumes from a disk
8 ENABLE Access To (Import) a disk group
9 Remove Access To (DEPORT) A Disk Group
10 enable (online) a disk device
11 disable (offline) a disk device
12 Mark A Disk As a spare for a disk group
13 Turn Off The Spare Flag on A Disk
14 Unrelocate Subdisks Back to a Disk
15 Exclude a Disk from Hot-Relocation Uses
16 Make a Disk Available for Hot-Relocation Use
17 Prevent Multipathing / Suppres Devices from VxVM's View
18 Allow Multipathing / Unsuppress Devices from vxvm's view
19 List Currently Suppressed / Non-Multipathed Devices
20 Change the Disk Naming Scheme
21 Get the newly connection / zones in vxvm view
22 Change / Display THE Default Disk Layouts
23 Mark A Disk as allocator-reserved for a disk group
24 Turn Off The Allocator-Reserved Flag on A Disk
List List Disk Information
DISPLAY HELP ABOUT MENU
?? Display help about the menuing system
Q exit from menus
Select An Operation To Perform: 1
Add or Initialize Disks
Menu: VolumeManager / Disk / AddDisks
Use this Operation to add one or more disks to a disk group. You can
Add the successd disks to an existing disk group or to a new disk group
That Will BE CREATED AS A Part of The Operation. The SELECTED Disks MAY
Also Be Added to a Disk Group As Spares. or the may be added asnohotuses to be eluded from hot-relocation us. The success
Disks May Also Be Initialized without adding the to a disk group
Leaving the disks available for use as replacement disks.
More Than One Disk Or Pattern May Be Entered At The Prompt. Here Are
Some Disk Selection Examples:
All: All Disks
C3 C4T2: All Disks on Both Controller 3 And Controller 4, Target 2
C3T4D2: a Single Disk (in the c # t # d # naming scheme)
XYZ_0: a Single Disk (In the Enclosure Based Naming Scheme)
XYZ_: All Disks on The Enclosure Whose Name IS XYZ
SELECT Disk Devices To Add: [
, ALL, LIST, Q,?] List
Device Disk Group Status
C0T0D0 - Online Invalid
C0T1D0 - Online Invalid
C2T0D2 - Online
SELECT Disk Devices To Add: [
, ALL, LIST, Q,?] C2T0D2
Here is the disk seck selected. Output Format: [device_name]
C2T0D2
Continue Operation? [Y, N, Q,?] (DEFAULT: Y)
You can choose to add this disk to an existing disk group, a
New Disk Group, or Leave the Disk available for use by future
Add or Replacement Operations. TO CREATE A New Disk Group,
SELECT A Disk Group Name That Does Not Yet Exist. To Leave
The Disk Available for Future Use, Specify A Disk Group Name
Of "none".
Which disk group [
, None, List, q ,?] (Default: 9irac) ORADG
There is no active disk group named orad.
Create a new group named ORADG? [Y, N, Q,?] (Default: Y)
CREATE THE DISK Group AS A CDS Disk Group? [Y, N, Q, N, DEFAULT: Y)
Use a default disk name for the disk? [Y, n, q ,?] (Default: Y)
Add Disk as a spare disk for oradg? [Y, n, q ,?] (Default: n)
Exclude disk from hot-relocation use? [Y, n, q ,?] (Default: n) a new disk group will be created named oradG and the selected disks
Will Be Added to the Disk Group with default disk names.
C2T0D2
Continue with operation? [Y, n, q ,?] (Default: Y)
The Following Disk Device Appears to have been initialized already.
The Disk Is Currently Available As a Replacement Disk.
Output Format: [Device_name]
C2T0D2
Use this device? [Y, n, q ,?] (Default: Y)
The Following Disk You SELECTED For Use Appears To ALREADY HAVE
Been Initialized for the Volume Manager. if you are certina
Disk Has Already Been Initialized for the Volume Manager, Then you
Do Not Need to Reinitialize The Disk Device.
Output Format: [Device_name]
C2T0D2
Reinitialize this Device? [Y, N, Q,?] (Default: Y)
Initializing Device C2T0D2.
ENTER DESIRED Private Region Length
[
, q ,?] (Default: 2048)
VXVM NOTICE V-5-2-120
Creating a new disk group named oradg containing the disk
Device C2T0D2 with the name oradG01.
Add or Initialize Other Disks? [Y, n, q ,?] (Default: N)
Volume Manager Support Operations
Menu: VolumeManager / Disk
1 Add or Initialize One or more disks
2 Encapsulate One or more disks
3 REMOVE A DISK
4 REMOVE A Disk for Replacement
5 replace a failed or removed disk
6 Mirror Volumes on a disk
7 Move Volumes from a disk
8 ENABLE Access To (Import) a disk group
9 Remove Access To (DEPORT) A Disk Group
10 enable (online) a disk device
11 disable (offline) a disk device
12 Mark A Disk As a spare for a disk group
13 Turn Off The Spare Flag on A Disk
14 Unrelocate Subdisks Back to a Disk
15 Exclude a Disk from Hot-Relocation Uses
16 Make a Disk Available For Hot-Relocation USE17 Prevent Multipathing / Suppress Devices from vxvm's view
18 Allow Multipathing / Unsuppress Devices from vxvm's view
19 List Currently Suppressed / Non-Multipathed Devices
20 Change the Disk Naming Scheme
21 Get the newly connection / zones in vxvm view
22 Change / Display THE Default Disk Layouts
23 Mark A Disk as allocator-reserved for a disk group
24 Turn Off The Allocator-Reserved Flag on A Disk
List List Disk Information
DISPLAY HELP ABOUT MENU
?? Display help about the menuing system
Q exit from menus
SELECT An Operation to Perform: Q
Goodbye.
2. Set the shared disk group
# vxdg listname State Idoradg Enabled, CDS 1094209675.12.Cluster2 # vxdg freegroup disk device tag offset length flagsoradg ORADG01 C2T0D2S2 C2T0D2 0 244143872 -
This step needs to be performed on the Master node
# vxdg Deport ORADG
# vxdg -s import orad
# vxdg list
Name State ID
Oradg Enabled, Shared, CDS 1094209675.12.Cluster2
#
3. At this point, you should see this shared disk group on the other node.
# vxdg list
Name State ID
Oradg Enabled, Shared, CDS 1094209675.12.Cluster2
# Hostname
CLUSTER1
#