User Guide
4. Management
4.7 Zoning
Host
Enclosure IOM SAS Port
B5
B6
4.7.3
sg_senddiag Command
The
sg_senddiag
command is used to configure zoning on the Ultrastar Data102 . This command contains
several values that are important for enabling and disabling zoning through the use of the IOMs and
expanders. The following section breaks down how to understand the necessary information to properly
enable or disable zoning on the enclosure. Each important part of the command matches an explanation
of that part's function. Understanding the parts of the command will ensure that the proper information is
collected to build the commands in the following sections.
sg_senddiag Command
sg_senddiag <a> --pf --raw=04,00,00,90,<b>,<c>,00,00,<d>
Command Breakdown
•
sg_senddiag
– a utility that performs a SCSI send diagnostic command
•
<a>
– the sg device (Linux) or SCSI device (Windows) that is assigned by the SEP. The information
collected for the device will be input in any location that requests
<dev>
. There will be one sg or SCSI
device handle for each of the two IOMs.
•
--pf
– Page Format is a bit, and in this case is clear due to the lack of a
–list
option.
•
--raw
– Raw reads the sequence of bytes from the standard input.
•
<b>
– the value that enables or disables the zone configuration. Input one of the following values:
◦
60
– disables zoning configurations on the enclosure
◦
61
– enables zoning configurations on the enclosure
•
<c>
– the value that chooses the zoning configuration that will be applied to the enclosure. Input one
of the following values:
◦
00
– disables zoning in the enclosure
◦
01
– configures the zone groups into six sections containing 17 drives each
◦
02
– configures the zone groups into three sections containing 34 drives each
◦
03
– configures the zone groups into two sections containing 51 drives each
Note:
For more information on zoning configurations, see:
•
<d>
– the value obtained from getting the SAS Address of each IOM. There will be one for each
of the two IOMs on the enclosure. When the IOM SAS Address is applied to the string, each pair of
characters should be offset by a comma.
4.7.4
Enabling Zoning using Linux
Step 1 :
From the host server, identify the sg devices that are associated with the Ultrastar Data102
IOMs.
227