Current location - Education and Training Encyclopedia - Education and training - How to make Fibre Channel storage available for Oracle Solaris?
How to make Fibre Channel storage available for Oracle Solaris?
Oracle Solaris 10 and Oracle Solaris 1 1 come with a Fibre Channel initiator system that you can configure to connect to Sun ZFS.

Fibre Channel (FC) LUN provided by storage device is integrated into Oracle Solaris environment. This article describes how to configure the Oracle Solaris Fibre Channel system and how to configure it.

Access Sun ZFS storage devices configured with FC LUN for Oracle Solaris server. You can use the browser user interface (BUI) to complete these configurations.

This paper makes the following assumptions:

The password of the root account of the Sun ZFS storage device is known.

The IP address or host name of the Sun ZFS storage device is known.

Configured the network used by the Sun ZFS storage device.

Sun ZFS storage device has been configured with a storage resource pool with sufficient free space.

The password of the root account of the Oracle Solaris server is known.

Sun ZFS storage devices are connected to Fibre Channel switches.

An area is configured on the FC switch to allow Oracle Solaris hosts to access Sun ZFS storage devices.

Configure Oracle Solaris FC system

In order to make Sun ZFS storage devices and Oracle Solaris servers recognize each other, the FC World Wide Number (WWN) of each device.

You must register in another device. You must determine the WWN of some form of FC zoning implemented on FC switches.

The host's FC WWN is used to identify the host to the Sun ZFS storage device, which is necessary to complete the configuration process in this article.

WWN comes from FC host bus adapters (HBA) installed in Oracle Solaris hosts and Sun ZFS storage devices.

In order to configure the Oracle Solaris FC system, you need to know the WWN of the Sun ZFS storage device. In the traditional dual-structure storage area network (SAN), Sun

ZFS storage devices have at least one FC port connected to each fabric. Therefore, you must identify at least two FC WWN.

Identify Sun ZFS storage device FC WWN

First, you need to establish an administrative session to the Sun ZFS storage device.

Enter an address containing the IP address or host name of the Sun ZFS storage device in the address bar of the Web browser, as shown in the following URL:

https://& lt; Ip address or host name & gt:2 15

The login dialog box will be displayed.

Enter the user name and password, and then click Login.

After successfully logging in to BUI, you can identify WWN through the configuration tab.

Click configure > SAN> fibre channel.

Port.

The FC ports installed in the Sun ZFS storage device will be displayed. Since each HBA channel has only one discovered port, it must be the HBA channel itself.

In the previous example, port 1 has WWN21:00: 00: E0: 8b: 92: a1:cf, and port 2 has WWN.

2 1:0 1:00:E0:8b:B2:a 1:cf .

In the list box to the right of each FC port box, the FC channel port should be set as the target. If not, FC

Ports can be used for other purposes. Please do not change the settings until the cause is investigated. (One possible reason is that it may be used for NDMP backup. )

Identify Oracle Solaris host HBA WWN

If the Oracle Solaris host is connected to the FC switch through the appropriate cable, use the following command to identify the WWN.

To get the WWN of the host, enter the following command:

Root @ Solaris: ~ # cfgadm-al-oshow _ FCP _ development

root@solaris:~#

In this output, the controller numbers you need are c8 and c9. When the port type is

Fc-fabric, you can also see that both ports are connected to a Fc switch. Next, query these controllers to determine the discovered WWN.

If the HBA port is not used to access any other FC-connected devices, you can use the following command to determine the WWN.

root @ Solaris:~ # prtconf-VP | grep port-WWN

Port -wwn: 2 10000e0.8b89bf8e

Port-WWN: 210100e0.8ba9bf8e

root@solaris:~#

If an FC device is being accessed, the following command will display the FC HBA WWN.

root @ Solaris:~ # lux ADM-e dump _ map/dev/CFG/c8

root@solaris:~#

It appears as the last entry of type 0x 1f (unknown type, host bus adapter).

The corresponding WWN is provided under the entry of WWN port. Repeat this command and replace it with another controller identified in step 1.

/dev/cfg/c8 .

From the output, you can see that c8 has WWN.

21:00: 00: 00: E0: 8b: 89: BF: 8e, c9 has WWN.

2 1:0 1:00:E0:8b:a9:BF:8e .

You can then use the Sun ZFS storage device HBA and the Oracle Solaris host HBA WWN to configure any FC switch zone.

When finished, you can run the following command to verify the correct zone:

Root @ Solaris: ~ # cfgadm-al-o show _ FCP _ Developing c8 c9

root@solaris:~#

Now, you can see that Oracle Solaris hosts can access WWN provided by Sun ZFS storage devices.

Use the browser user interface to configure Sun ZFS storage devices.

As a unified storage platform, Sun ZFS storage devices not only support accessing block protocols through iSCSI protocols.

LUN, which supports the same access through Fibre Channel protocol. This section describes how to use the Sun ZFS storage device BUI to configure the Sun ZFS storage device so that it can recognize Oracle.

Solaris host and provide FC LUN to the host.

Define FC target group

Create a target group on the Sun ZFS storage device to define the ports and protocols that the Oracle Solaris server can use to access the LUN provided to it. In this example, the FC is created.

Target group.

Perform the following steps to define FC target groups on Sun ZFS storage devices:

Click configure > SAN to display the storage area network (SAN).

screen

Click the Target tab on the right and select Fibre Channel at the top of the left panel.

port

Place the mouse in the Fibre Channel port box and the move icon () will appear on the far left.

Click the move icon and drag this box to the Fibre Channel target.

The grouping box is shown in Figure 4.

Drag the entry in the orange box to create a new target group. A group will be created and automatically named targets-n, where

N is an integer.

Move the cursor over the new target group entry. Two icons will appear on the right side of the Fibre Channel target group box.

To rename the new target group to targets-0, click the edit icon () to display the dialog box.

In the Name field, replace the default name with the preferred name of the new FC target group, and click.

Ok. In this example, it is replaced with the name of FC-PortGroup.

Number of Targets -0. In this window, you can also add a second FC target port by clicking the box to the left of the selected WWN. The second port is identified as PCIe 1: Port 2.

Click OK to save the changes.

Click Apply. Fibre channel target group

This panel shows the above changes.

Define FC initiator

Define FC initiators to allow access to specific volumes from one or more servers. Access to the volume should be configured to allow a minimum number of FCs.

Initiators access specific volumes. If multiple hosts can write to the specified volume at the same time and use a non-* * shared file system, the file system cache on each host may be inconsistent, which may eventually lead to image corruption on the disk. Usually, only one initiator is authorized to access a volume unless a special cluster file system is used.

FC initiators are used to define "hosts" from the perspective of Sun ZFS storage devices. In a traditional dual-fabric SAN, the host will be defined by at least two FC initiators. Football club

The initiator definition contains the host WWN. In order for Sun ZFS storage devices to recognize Oracle Solaris servers, Oracle Solaris FC must be registered in the storage devices.

To this end, the initiator WWN performs the following steps.

Click configure > SAN to display the storage area network (SAN).

screen

Click the Initiator tab on the right and select Fibre Channel at the top of the left panel.

initiator

Click the icon to the left of the Fibre Channel initiator to display the New Fibre Channel Initiator dialog box.

If zoning has been configured on the FC switch, the WWN of Oracle Solaris hosts should be displayed (assuming they are not assigned aliases).

Click WWN (if it is displayed) at the bottom of the dialog box to pre-populate the World Wide Name, or type the corresponding name in the World Wide Name box.

WWN .

Enter a more meaningful symbol name in the alias box.

Click OK.

Repeat the above steps for other WWN involving Oracle Solaris hosts.

Define FC initiator groups

Some related FC initiators are grouped into logical groups so that the same command can be executed on multiple FC initiators. For example, you can use one command to assign a LUN to all FC initiators in a group.

Access rights. For the following example, the FC initiator group will contain two initiators. Note that in a cluster, multiple servers are considered as one logical entity, so an initiator group can contain more initiators.

Perform the following steps to create an FC initiator group:

Select configuration > SAN to display the storage area network (SAN).

Screen.

Select the Initiators tab on the right and click Fibre Channel at the top of the left panel.

Initiator.

Place the cursor on the FC initiator entry created in the previous section. At this point, a move icon () will appear to the left of the entry.

Click the move icon and drag it to the Fibre Channel initiator on the right.

Group panel. A new entry (highlighted in yellow) appears at the bottom of the Fibre Channel initiator group panel.

Move the cursor to the new input box and then release the mouse button. A new FC initiator group was created with the group name.

Initiators-n, where n is an integer, as shown in figure 13.

As shown in the figure.

Move the cursor over the new initiator group entry. Several icons will appear on the right side of the target initiator group box.

Click the edit icon () to display the dialog box.

In the Name field, replace the default name of the new initiator group with the selected name, and then click OK. This example uses the

Sol-server as the initiator group name.

In this dialog box, you can add other FC initiators to the group by clicking the check box to the left of WWN.

Click Apply in the SAN configuration screen to confirm all modifications, as shown in figure 15.

Define the Sun ZFS storage device project.

To group related volumes, you can define a project in the Sun ZFS storage device. By using the project, you can inherit the file system and LUN provided by the project.

Property of. Restrictions and reservations can also be applied.

Perform the following steps to create a project:

Select share > project to display the project screen.

Click the icon to the left of the top item in the left panel to display it.

Create Project dialog box

To create a new project, enter a project name and click Apply. A new item appears in the item list in the left panel.

Select this new project to view its components.

Define Sun ZFS storage device LUN

Next, you will create a LUN from the existing storage resource pool to be accessed by the Oracle Solaris server. In the following example, you will create a file named.

Thin configure a 64 GB LUN for DocArchive 1.

We will use the FC target group created in the section Defining FC target groups.

FC-PortGroup to ensure that LUN can be accessed through FC protocol. FC will use the definition.

The initiator group sol-server is defined in the initiator group section to ensure that it is only in sol-server.

Only servers defined in the group can access the LUN. (In this example, the initiator group contains only one server. )

Perform the following steps to create a LUN:

Select share > project to display the project screen.

In the Projects panel on the left, select a project. Then select the LUN at the top of the right panel.

Click the icon to the left of the LUN to display Create LUN.

Dialog box, as shown in figure 20.

Enter the appropriate values to configure the LUN. For this example, set Name to.

DocArchive 1, set the volume size to 64 G, and select.

Thin provisioning check box. Set the target group as FC target group.

FC-PortGroup, set the initiator group to.

Sol-Server. Set the volume size to.

32k, because the volume will contain the Oracle Solaris ZFS file system.

Click Apply to create a LUN for the Oracle Solaris server.

Configure LUN for Oracle Solaris server.

Now that we have prepared the LUN, we can use it through the FC initiator group. Then, you must perform the following steps to configure the LUN for the Oracle Solaris server:

Start an Oracle Solaris FC session connected to the Sun ZFS storage device, as shown in listing 1. Because the LUN was created before the FC session was started, the.

The LUN will be automatically enabled.

Listing 1. Start an Oracle Solaris FC session

root@solaris:~# cfgadm -al c8 c9

root @ Solaris:~ # cfgadm-c configure c8::2 10 100 e 08 bb 2a 1cf

root @ Solaris:~ # cfgadm-c configure C9::2 10000 e08b 92a 1cf

Root @ Solaris: ~ # cfgadm-al-o show _ FCP _ Developing c8 c9

root@solaris:~#

Verify access to the FC LUN, as shown in Listing 2.

Listing 2. Verify access to FC LUN.

root@solaris:~# devfsadm -c ssd

root @ Solaris:~ # tail/var/ADM/messages

[...]

[...]

In this example, the multipath status is initially displayed as degraded, because only one path can be recognized at this time. In addition, the multipath state is changed to

Best, because the volume has multiple paths.

Disk devices are now also available for internal server disks.

Format the LUN as shown in Listing 3.

Listing 3. Format LUN

Root@solaris:~# format

Search disk ... done

C1T 600144F0F0E906C0004ED6096D0001D0: The configured capacity is 63.93GB.

Available disk selection:

[...]

Specify the disk (enter its number): 4

Select c1t600144f0f05e906c0004ed6096d0001d0.

[Disk Format]

The disk is not labeled. Label it now? y

Format menu:

Disk-Select a disk.

Type-Select (define) the disk type.

Partition-Select (define) the partition table.

Current-describes the current disk.

Format-Format and analyze the disk.

Repair-Repair defective sectors.

Label-Write the label to disk.

Analysis-surface analysis

Defect-defect list management

Backup-Search Backup tab

Verify-read and display labels

Save-Saves the new disk/partition definition.

Query-Displays the supplier, product and version.

Volname-Sets the volume name of 8 characters.

! & ltcmd & gt- execute & ltcmd & gt and then return.

give up

Format & gtq

By creating a new ZFS pool, adding the device to the ZFS pool and creating ZFS, the Oracle Solaris ZFS file system is built on the prepared LUN.

File system, as shown in the example in Listing 4.

Listing 4. Constructing Oracle Solaris ZFS file system

root @ Solaris:~ # ZFS createzpool create doc archive 1 \

c 1t 600 144 f 0f 05 e 906 c 00004 ed 6096d 000 1d 0

Root@solaris:~# zfs list

[...]

root @ Solaris:~ # ZFS create doc archive 1/index

root @ Solaris:~ # ZFS create doc archive 1/data

root @ Solaris:~ # ZFS create doc archive 1/logs

Root@solaris:~# zfs list

[...]

The last two lines of the df( 1) command show that about 64 GB of new space is now available. Reprinted for reference only, the copyright belongs to the original author. Have a nice day. Please accept it if you are satisfied.