C H A P T E R  5

 


Viewing and Editing Host LUNs

The "view and edit Host luns" command allows you to map logical groups or logical volumes to the desired host channels. Each logical drive (LD) or logical volume (LV) can be mapped more than once to achieve a redundant data path, using multipathing software.

Topics covered in this chapter include:


Mapping Logical Drive Partitions to Host LUNs

A logical unit number (LUN) is a unique identifier used on a SCSI channel that enables a host to differentiate between separate devices.

Once you have created logical drives or logical volumes, you can map each storage partition as one system drive (host ID/LUN). The host adapter recognizes the system drives after reinitializing the host bus.



Note - The UNIX format and Solaris probe-scsi-all commands do not display all mapped LUNs if there is not a logical drive mapped to LUN 0.



An FC channel can connect up to 126 devices. Each device has one unique ID.

A SCSI bus channel can connect up to 15 devices (excluding the controller itself) when the Wide function is enabled (16-bit SCSI). Each device has one unique ID.

FIGURE 5-1 illustrates the idea of mapping a system drive to a host ID/LUN combination.

 FIGURE 5-1 Filing Cabinet Represents the SCSI or FC ID and File Drawers Represent the LUNs

Figure showing filing cabinet with three file drawers. The filing cabinet represents the SCSI or FC ID and file drawers represent the LUNs.

Each ID/LUN looks like a storage device to the host computer.

 FIGURE 5-2 Mapping Partitions to Host ID/LUNs

Figure shows LUN partitions mapped to ID 0 on Channel 1 and to ID 1 on Channel 3.


Planning for 128 LUNs on SCSI Arrays

If you want to create 128 LUNs, which is the maximum number of storage partitions that can be mapped for a SCSI RAID array, you need to set up one of the following configurations:

For details on how to add host IDs, refer to Creating Additional Host IDs.



Note - For an overview of how partitions, LUNs, and host IDs work, refer to Mapping Logical Drive Partitions to Host LUNs.




procedure icon  To Set Up 128 LUNs

1. Create a minimum of four host IDs.

By default, you have two host IDs:

You can have a total of two IDs per channel, one for the primary controller and one for the secondary controller.

For the detailed procedure, refer to Creating Additional Host IDs.

2. Confirm that the allowed number of LUNs per host ID is 32.

a. Choose "view and edit Configuration parameters right arrow Host-side SCSI Parameters."

b. If "LUNs per Host SCSI ID" is not set to 32, choose "LUNs per Host SCSI ID -right arrow 32 LUNS."

 Screen capture showing three menus with "Host-side SCSI Parameters," "LUNs per Host SCSI ID - 32," and "32 LUNs" chosen.

3. Create at least four logical drives.

Refer to Creating Logical Drives for more information.

4. For each logical drive, create a number of partitions per logical drive until you reach a total of 128 partitions.

5. Map those partitions to the host IDs.

For the detailed procedures, refer to Partitioning a Logical Drive and Mapping Logical Drive Partitions to Host LUNs.


Planning for 1024 LUNs on FC Arrays

For FC arrays in loop configurations, if you want to create the maximum number of storage partitions that can be mapped for a Fibre Channel RAID array (1024), set up the following configuration:


procedure icon  To Plan for 1024 LUNs on FC Arrays

1. If necessary, edit "Host-side SCSI Parameters" so that "LUNs Per Host SCSI ID" is set to 32.

See Host-side SCSI Parameters Menu Options for more information.

2. Keep the four default host channels (CH 0, 1, 4, and 5).

3. Create eight host IDs per host channel (four primary controller IDs and four secondary controller IDs per host channel) for a total of 32 host IDs.

For the detailed procedure, see Creating Additional Host IDs.

4. Create eight logical drives.

For the detailed procedure, see Creating Logical Drives.

5. Partition each logical drive into 128 partitions (8 times 128 = 1024).

6. Map the 1024 partitions to the 32 host IDs.

For the detailed procedures, see Partitioning a Logical Drive and Mapping Logical Drive Partitions to Host LUNs.

TABLE 5-1 Configuration for 1024 LUNs

Configuration Item

Number

Maximum number of logical drives per RAID array

8

Maximum number of partitions per logical drive

128

Maximum number of host channels

4 (Channels 0, 1, 4, 5)

Maximum number of LUNs assigned to each host ID

32

Required number of host IDs per channel

8 (4 PIDs and 4 SIDs)



Planning for 64 LUNs in Redundant FC Point-to-Point Configurations

For FC arrays in point-to-point configurations that use redundant controllers to ensure maximum reliability, accessibility, and serviceability (RAS), you can have a maximum of 64 LUNs. To achieve this redundancy with a maximum number of LUNs, you need to use multipathing software on each host accessing the array.



Note - Multipathing for the Sun StorEdge 3510 FC array is provided by Sun StorEdge Traffic Manager software. Refer to Sun StorEdge 3510 FC Array Release Notes for information about which versions of Sun StorEdge Traffic Manager software are supported on which platforms.



For example, to set up 64 LUNs with multipathing enabled, you can map 32 LUNs to channel 0 on one controller and channel 1 on the other controller, and map the other 32 LUNs to channel 4 on one controller and channel 5 on the other controller.

TABLE 5-2 Example of ID Assignments for 64 LUNs With Multipathing Enabled

Channel

Controller Port

PID

SID

0

Top

40

NA

1

Bottom

41

NA

4

Top

NA

50

5

Bottom

NA

51


Refer to Sun StorEdge 3000 Family Installation, Operation, and Service Manual for more information about point-to-point configurations, including configuring a maximum number of LUNs with redundant controllers and automatic failover. Refer to the Sun StorEdge 3000 Family Best Practices Manual for your array to see more information about point-to-point and loop storage area network (SAN) and direct-attached storage (DAS) configurations.


Mapping a Partition to a LUN



Note - The illustrations in this section depict a FC array, but SCSI arrays follow the same procedure.




procedure icon  To Map a Logical Drive Partition to a LUN

1. Choose "view and edit Host luns" from the Main Menu.

A list of available channels and their associated controllers is displayed.

2. Select the desired channel and ID to which the logical drive will be mapped.

3. If you see "Logical Drive" and "Logical Volume" menu options, choose "Logical Drive."

The LUN table is displayed.

 Screen capture shows the LUN table displayed.

4. Using the arrow keys, select the desired LUN.

A list of available logical drives is displayed.

 Screen capture shows information about the selected LUN.


Note - The Sun StorEdge Configuration Service program requires that a device is mapped to LUN 0 as a minimum.



5. Select the desired logical drive (LD).

The partition table is displayed.

 Screen capture shows the partition table selected.

6. Select the desired partition.

Two mapping options are displayed:

 Screen capture shows two mapping options with "Map Host LUN" chosen.

7. Choose the mapping option that is appropriate for your network and proceed with Using the Map Host LUN Option or Creating Host Filter Entries (FC Only).

Using the Map Host LUN Option

Each partition must be mapped to a host LUN. Multiple partitions can be mapped to the same host LUN. The "Map Host LUN" menu option is used with all SCSI arrays, and with FC arrays when multiple hosts are not on the same loop.



Note - This procedure is applicable to both SCSI and FC arrays. The illustrations show FC examples.



To map partitions with the host filter entry option, see Creating Host Filter Entries (FC Only).



Note - If you plan to map hundreds of LUNs, it is significantly easier to use the Sun StorEdge Configuration Service program. Refer to Sun StorEdge 3000 Family Configuration Service User's Guide for more information.




procedure icon  To Use the Map Host LUN Option

1. After the completion of the steps in Mapping a Partition to a LUN, choose "Map Host LUN."

 Screen capture shows "Map Host LUN" chosen.

2. Confirm the mapping scheme by choosing Yes.

 Screen capture shows "Mapping Scheme" prompt.

The partition is now mapped to a LUN.

 Screen capture shows the partition mapped to a LUN.

3. Press the Esc key to return to the Main Menu.

4. Repeat Step 1 through Step 3 for each partition until all partitions are mapped to LUNs.

5. To verify unique mapping of each LUN (unique LUN number, unique DRV number, or unique Partition number), choose "view and edit Host luns."

6. Select the appropriate controller and ID to review the LUN information.



Note - If you are using host-based multipathing software, map each partition to two or more controller/ID combinations in order to make multiple paths to the same LUN available to the host.



Example Host LUN Mappings

The following SCSI array example screens illustrate four channel IDs with eight LUNs per channel:

 Screen capture showing CHL 1, ID 0, (Primary Control) and LUN 0 selected.

 Screen capture showing CHL 1, ID 1, (Secondary Control) and LUN 0 selected.

 Screen capture showing CHL 9, ID 2, (Secondary Control) and LUN 0 selected.

 Screen capture showing CHL 3, ID 2, (Primary Control) and LUN 0 selected.


Deleting a Host LUN Mapping

This section provides the procedure for deleting a host LUN mapping


procedure icon  To Delete a Host LUN Mapping

1. Choose "view and edit Host luns" from the Main Menu.

2. Highlight the channel and ID that are mapped to the host LUN.

3. Highlight the specific host LUN.

4. Choose Yes to delete the host LUN.

This option deletes the logical drive or logical volume mapping to the host channel. This option does not delete the data contained within the logical drive.



Note - All host LUN mappings are removed when there is any partition change.




Creating Host Filter Entries (FC Only)

For multiple servers connected to the same Sun StorEdge 3510 FC array, LUN filtering organizes how the array devices are accessed and viewed from host devices. LUN filtering is used to provide exclusive access from a server to a logical drive and exclude other servers from seeing or accessing the same logical drive.

LUN filtering also enables multiple logical drives or partitions to be mapped to the same LUN number, allowing different servers to have their own LUN 0. LUN filtering is valuable in clarifying mapping when each HBA typically sees twice the number of logical drives when viewed through a hub.

 FIGURE 5-3 Example of LUN Filtering

Diagram shows multiple hosts with access to the same LUNs where LUN filtering creates exclusive paths from a server to a specific LUN.

An advantage of LUN filtering is that it allows many hosts to attach to an array through a common Fibre Channel port and still maintain LUN security.

Each Fibre Channel device is assigned a unique identifier called a world wide name (WWN). A WWN is assigned by the IEEE and stays with the device for its lifetime. LUN filtering uses the WWN to specify which server is to have exclusive use of a specific logical drive.

As shown in FIGURE 5-3, when you map LUN 01 to host channel 0 and select WWN1, server A has a proprietary path to that logical drive. All servers will continue to see and access LUN 02 and LUN 03 unless filters are created on them.

Determining the Host World Wide Name

Prior to using LUN filtering, you need to identify which Sun StorEdge 3510 FC array is connected to which HBA card, and the WWN assigned to each card.


procedure icon  To Determine the WWN in the Solaris Operating Environment

1. If you have a new HBA device installed on your computer, reboot the computer.

2. Type the following command:

# luxadm probe

3. Scroll down the listing to see the Fibre Channel devices and the related WWNs.

 Screen capture shows the luxadm probe command used to display Fibre Channel device WWNs.

procedure icon  To Determine the WWN for Linux, Windows NT, or Windows 2000

1. Boot a specific host, and note the BIOS version and HBA card models connected to your host.

2. Access the HBA card's BIOS with the appropriate command (Alt-Q or Ctrl-A are commonly used).

If the host has multiple HBA cards, select the card that is connected to the storage.

3. Scan the card to look for devices attached to it (usually with the Scan Fibre Devices or the Fibre Disk Utility).

The node name (or similar label) is the WWN. The following example shows the node name for a Qlogic card.

ID

Vendor

Product

Rev

Node Name

Port ID

0

Qlogic

QLA22xx Adapter

B

210000E08B02DE2F

0000EF



procedure icon  To Determine the WWN for Other Supported Operating Systems

Refer to appendixes in the Sun StorEdge 3000 Family Installation, Operation, and Service Manual for the Sun StorEdge 3510 FC Array to see information about determining the WWN for servers running HP-UX or IBM AIX, and for more detailed information regarding WWNs on all supported platforms.

Creating Host Filter Entries

Host filter entries enable you to assign exclusive access to a logical drive to a specific host. Otherwise, in some configurations, multiple hosts would be able to view and access the same drive.

When you create a host filter entry you are also mapping each partition to a specific host, so the procedure described in this section is used instead of the procedure described in Using the Map Host LUN Option.



Note - If you plan to map hundreds of LUNs, the process is easier if you use the Sun StorEdge Configuration Service program.




procedure icon  To Create Host Filter Entries

1. After the completion of the steps in the procedure Mapping a Partition to a LUN, choose "Create Host Filter Entry right arrow Add from current device list."

 Screen capture shows "Add from current device list" chosen.


Note - This step automatically performs a discovery of the attached HBAs. Alternatively, you can add them manually by choosing "Manual add host filter entry" rather than "Add from current device list" and typing the Host-ID/WWN in the text area provided.



2. From the device list, select the server WWN number for which you are creating a filter.

 Screen capture shows the server WWN number selected.

3. At the confirmation screen, choose Yes.

 Screen capture shows the confirmation screen with "Yes" chosen.

4. Review the filter configuration screen. Make any changes necessary by using the arrow keys to select an item.

 Screen capture shows "Logical Drive 0 Partition 0" selected in the filter configuration screen.


Note - If you press Return to change the first item displayed, which is the logical drive and partition assignment, press Esc and repeat the "Create Host Filter Entry" procedure.



5. If you want to edit the WWN, choose "Host-ID/WWN."

6. Make the desired changes and press Return.

 Screen capture shows "Host-ID/WWN."


caution icon

Caution - Be sure that you edit the WWN correctly. If the WWN is incorrect, the host will be unable to recognize the LUN.



7. To edit the WWN Mask, use the arrow keys to select "Host-ID/WWN Mask" and press Return.

 Screen capture shows "Host-ID/WWN Mask."

8. If you want to change the filter setting, which toggles between "Include" and "Exclude," choose "Filter Type -."

9. At the confirmation screen, choose Yes.

 Screen capture shows the confirmation screen with "set Filter Type to Exclude? prompt displayed with "Yes" chosen.

10. If you want to change the access mode, which toggles between "Read/Write" and "Read Only," use the arrow keys to choose "Access mode -."

11. At the confirmation screen, choose Yes.

 Screen capture shows the confirmation screen with "Set Access Mode to Read-Only?" prompt displayed with "Yes" chosen.

12. If you want to set a name, choose "Name -."

13. Type the name you want to use for this filter and press Return.

 Screen capture shows "Name:mars" displayed.

14. Verify all settings and press Esc to continue.

 Screen capture shows settings displayed and "Name - mars" is chosen.

15. At the confirmation screen, choose Yes.

 Screen capture shows a confirmation screen with "Add Host Filter Entry?" displayed and "Yes" chosen.

16. At the Host-ID/WWN list, repeat the previous steps to create additional filters, or press Esc to continue.

 Screen capture shows the server WWN number selected.


Note - Unlike most firmware operations where you must complete each entry individually and repeat the procedure if you want to perform a similar operation, you can add multiple WWNs to your list before you actually create the host filter entry in Step 17. Be sure to follow the instructions carefully.



17. At the confirmation screen, verify the settings and choose Yes to complete the host LUN filter entry.

 Screen capture shows settings listed in the confirmation screen with "Yes" chosen.

A mapped LUN displays a number and a filtered LUN displays an "M" for masked LUN in the host LUN partition window.

 Screen capture shows a masked filtered LUN displayed and marked with an "M."


Viewing and Modifying Host Filter Information

Once you have created host filter entries you can display detailed information about them.

Note - If you have host filter entries for two or more WWNs, an asterisk next to an entry indicates that more information is available than is currently displayed. To display the additional information, select the entry and press Enter.




procedure icon  To View or Modify Host Filter Information

1. Choose "view and edit Host luns."

2. Select the channel and ID that are mapped to the host LUN.

3. Select the filtered LUN.

4. Choose "View and edit host filtering."

5. Select the Host-ID/WWN whose information you want to view or edit.

6. Choose "View Host Filter Information" to see detailed information about that filter.

7. Choose "Add Host Filter Entry" to add another filter. See To Create Host Filter Entries for the steps to follow once you choose this menu option.

8. Choose "Delete Filter Entry" to delete the current filter.

9. Choose "Add Host-ID/WWN Name List" to manually add a WWN. See To Create Host Filter Entries for the steps to follow once you choose this menu option.