IBM Books

Managing Shared Disks


Creating or defining Virtual Shared Disks or Hashed Shared Disks

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.

Checking 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.

Creating Virtual Shared Disks

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.

Creating Virtual Shared Disks with the IBM Virtual Shared Disk Perspective

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.

Examples of creating Virtual Shared Disks with createvsd

The following examples range from simple to fairly complex.

Creating Hashed Shared Disks

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.

Creating Hashed Shared Disks with IBM Virtual Shared Disk Perspective

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.

Examples of creating Hashed Shared Disks with 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.

Creating Hashed Shared Disks in a node-pair configuration

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

Defining Virtual Shared Disks and Hashed Shared Disks

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.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]