Setting up shared storage
The following sections describe setting up SCSI and Fibre Channel devices that the cluster systems share. For VCS I/O fencing, the data disks must support SCSI-3 persistent reservations. You need to configure a coordinator disk group that supports SCSI-3 PR and verify that it works.
See Setting up I/O fencing.
See also the Veritas Cluster Server User's Guide for a description of I/O fencing.
Setting up shared storage: SCSI
To set up shared storage
-
Connect the disk to the first cluster system.
-
Power on the disk.
-
Connect a terminator to the other port of the disk.
-
Boot the system. The disk is detected while the system boots.
-
Press CTRL+A to bring up the SCSI BIOS settings for that disk.
-
Set Host adapter SCSI ID = 7, or to an appropriate value for your configuration.
-
Set Host Adapter BIOS in Advanced Configuration Options to Disabled.
-
Format the shared disk and create required partitions on it.
-
Identify your shared disk name. If you have two internal SCSI hard disks, your shared disk is /dev/sdc.
Identify whether the shared disk is sdc, sdb, and so on.
-
Type the following command:
# fdisk /dev/
shareddiskname
For example, if your shared disk is sdc, type:
# fdisk /dev/sdc
-
Create disk groups and volumes using Volume Manager utilities.
-
To apply a file system on the volumes, type:
# mkfs -t
fs-type
/dev/vx/dsk/
disk-group
/
volume
For example, enter the following command if the name of the disk group is dg, the name of the volume is vol, and the file system type is vxfs.
# mkfs -t vxfs /dev/vx/dsk/dg/vol01
-
Power off the disk.
-
Remove the terminator from the disk and connect the disk to the other cluster system.
-
Power on the disk.
-
Boot the second system. The system can now detect the disk.
-
Press Ctrl+A to bring up the SCSI BIOS settings for the disk.
-
Set Host adapter SCSI ID = 6, or to an appropriate value for your configuration. Note that the SCSI ID should be different from the one configured on the first cluster system.
-
Set Host Adapter BIOS in Advanced Configuration Options to Disabled.
-
Verify that you can view the shared disk using the
fdisk
command.
Setting up shared storage: Fibre Channel
To set up shared storage for fibre channel
-
Connect the fibre channel disk to a cluster system.
-
Boot the system and change the settings of the fibre channel. Perform the tasks for all QLogic adapters in the system:
-
Press Alt+Q to bring up the QLogic adapter settings menu.
-
Choose Configuration Settings.
-
Click Enter.
-
Choose Advanced Adapter Settings.
-
Click Enter.
-
Set the Enable Target Reset option to Yes (the default value).
-
Save the configuration.
-
Reboot the system.
-
Verify that the system is detecting the fibre channel disks properly.
-
Create volumes. Format the shared disk and create required partitions on it.
-
Identify your shared disk name. If you have two internal SCSI hard disks, your shared disk is /dev/sdc.
Identify whether the shared disk is sdc, sdb, and so on.
-
Type the following command:
# fdisk /dev/
shareddiskname
For example, if your shared disk is sdc, type:
# fdisk /dev/sdc
-
Create disk groups and volumes using Volume Manager utilities.
-
To apply a file system on the volumes, type:
# mkfs -t
fs-type
/dev/vx/dsk/
disk-group
/
volume
For example, enter the following command if the name of the disk group is dg, the name of the volume is vol, and the file system type is vxfs.
# mkfs -t vxfs /dev/vx/dsk/dg/vol01
-
Repeat step 2 and step 3 for all nodes in the clusters that require connections with fibre channel.
-
Power off this cluster system.
-
Connect the same disks to the next cluster system.
-
Turn on the power for the second system.
-
Verify that the second system can see the disk names correctly—the disk names should be the same.