Remember, your procedure is based on whether or not you already have logical volumes. The create actions and commands take care of logical volumes and global volume groups for you. If you already have them, you must do the define steps instead.
If you are using the create actions or commands, it's a good idea to check for old rollback files.
If you issue a virtual shared disk action or command that operates on multiple nodes, such as createvsd or createhsd, and the command fails, a rollback file will be created so that a second invocation of that command can start at the last successful operation. (A command that is issued against multiple nodes fails if any of the nodes cannot execute it.) If you later change your virtual shared disk configuration or run a different command, createvsd attempts to complete processing using the rollback file and will fail. Be sure there are no rollback files from failed invocations of commands on your system. If there are any, they can be found in /usr/lpp/csd/sysctl/new_rollback and /usr/lpp/csd/vsdfiles/vsd_rollback. You can delete them with the rm command. Old rollback files can interfere with the processing of new invocations of these commands.
Any time a virtual shared disk or hashed shared disk command that operates on multiple nodes fails, check for old rollback files.
You can create several virtual shared disks with a single graphical user interface action or a line command (on both primary and secondary nodes if you have the IBM Recoverable Virtual Shared Disk component running). You must first have used the IBM Virtual Shared Disk Perspective or the vsdnode command to set up information in the SDR about each node involved in this virtual shared disk configuration.
Do not perform this task if you have already used the Logical Volume Manager of AIX to establish logical volumes. The create process generates them for you. Instead, see Defining Virtual Shared Disks and Hashed Shared Disks. Also, if you want data striping see Creating Hashed Shared Disks instead.
To create virtual shared disks using the IBM Virtual Shared Disk Perspective graphical user interface, do the following:
That opens the Create VSDs dialog where you can :
The equivalent command is createvsd. See the book PSSP: Command and Technical Reference for syntax.
Information about virtual shared disk definitions is stored in the SDR VSD_Global_Volume_Group object and the VSD_Table object. You can view the information using the IBM Virtual Shared Disk Perspective graphical user interface.
The following examples range from simple to fairly complex.
createvsd -n 1,3,5 -s 4 -g SYS2VG -v SYS2VSD
This creates the following virtual shared disk definitions:
No secondary nodes are defined. The space allocated to a virtual shared disk is spread across all the physical disks (hdisks) within its local volume group on each node (1,3, and 5).
createvsd -n 1/2/,3/4/,5/6/ -s 4 -g SYS2VG -v SYS2VSD
This creates the following virtual shared disk definitions:
The volume groups in this example are imported to the secondary node.
createvsd -n 3/4:hdisk1,hdisk2+hdisk3/,5/6/,7/8/ -s 12 -g datavg\ -v USER -x
This command creates the following virtual shared disk definitions:
The volume groups datavgn5 and datavgn7 are created with one 4MB partition from a single physical disk. The volume group datavgn3 is created with one 4MB partition from the three physical disks hdisk1, hdisk2, and hdisk3.
The local volume group name on each node is datavg. The volume groups are not imported to the secondary node because the -x flag was used in the command.
You can create an entire configuration of hashed shared disks and underlying virtual shared disks with a single graphical user interface action or line command (on both primary and secondary nodes if you have the IBM Recoverable Virtual Shared Disk component running).
Do not perform this task if you have already used the Logical Volume Manager of AIX to establish logical volumes. The create process generates them for you. Instead, see Defining Virtual Shared Disks and Hashed Shared Disks.
To create hashed shared disks using the IBM Virtual Shared Disk Perspective graphical user interface, do the following:
That opens the Create HSDs dialog where you can :
The equivalent command is createhsd.
For the syntax of the createhsd command see the book PSSP: Command and Technical Reference. The following are examples which range from simple to fairly complex.
createhsd -n 1,3,5 -s 12 -g SYS2VG -t 4 -d SYS2HSD
This creates the hashed shared disk definition SYS2HSD and its underlying virtual shared disk definitions:
The usable hashed shared disk size is 12MB. The stripe size is 4KB. The first stripe on each disk is skipped to allow space for the LVCB.
No secondary node is defined. The space allocated to the hashed shared disk is spread across all the physical disks (hdisks) connected to each node (1, 3, and 5).
createhsd -n 1/2/,3/4/,5/6/ -s 48 -g SYS2VG -t 8 -d SYS2HSD
This adds the backup node number to the naming convention and creates hashed shared disk SYS2HSD with the following virtual shared disk definitions:
The usable hashed shared disk size is 48MB. The stripe size is 8KB. The first stripe on each disk is skipped to allow space for the LVCB.
createhsd -n 3/4:hdisk1,hdisk2/,5/6:hdisk1,hdisk2/,7/8:hdisk1,hdisk2/ -s 48 -t 12 -S -g datavg -d USER
This command creates the hashed shared disk USER, with the following underlying virtual shared disk definitions:
The usable size of the hashed shared disk is 48MB. The stripe size is 12KB. The first stripe on each disk is not skipped to allow space for the LVCB.
If your system partition is configured in a node-pair arrangement like that shown in Figure 16, where sets of physical disks are twin-tailed on nodes 1 and 2, nodes 3 and 4, nodes 5 and 6, and so forth, you will need to use the following process to create a single hashed shared disk for the system partition. In this configuration, odd-numbered nodes are the backups for virtual shared disks defined on even-numbered nodes and even-numbered nodes are the backups for virtual shared disks defined on odd-numbered nodes.
Figure 16. A Node-Pair Configuration
View figure.
To set up the hashed shared disk for this configuration, use createvsd to define one or more virtual shared disks on the odd-numbered nodes, and then to define one or more virtual shared disks on the even-numbered nodes. Virtual shared disks on odd-numbered nodes must be defined separately from those on even-numbered nodes in this configuration if they are to be part of a single Hashed Shared Disk. You then use defhsd to define the Hashed Shared Disk.
For example, to define a Hashed Shared Disk for the configuration in Figure 16, you could use the following sequence of commands:
createvsd 1/2/,3/4/,5/6/,7/8/ -s 8192 -g s21ovg -v ovsd
createvsd 2/1/,4/3/,6/5/,8/7/ -s 8192 -g s21evg -v evsd
defhsd protect_lvcb s21hsd 8192 ovsdn1 ovsdn3 ovsdn5 ovsdn7 evsdn2 evsdn4 evsdn6 evsdn8
When you already have global volume groups and logical volumes you cannot use the create actions or commands, you must perform a define process instead. First you must define all the virtual shared disks then, if you want data striping, define the hashed shared disks.
To define all the virtual shared disks:
That opens a dialog window where you can enter the pertinent information:
Alternatively, you can use the defvsd command.
To define all the hashed shared disks:
That opens a dialog window where you can enter the pertinent information:
Alternatively, you can use the defhsd command.