• No results found

Configuring directly attached network card for Linux partition

In document Linux on IBM Eserver i5 (Page 85-127)

Chapter 3. System configuration

3.2 Configuring Linux partition

3.2.3 Configuring directly attached network card for Linux partition

Figure 3-36 Creating a new Partition - I/O Pools

11.Then the Virtual I/O Adapters window appears. Select Yes as illustrated in Figure 3-37. Click Next button to continue.

Figure 3-37 Creating a new Partition - Virtual I/O

12.Next screen is to define virtual adapters on the screen as illustrated in Figure 3-38. First you define the total number of virtual adapter slots for this partition. Then as illustrated at the bottom of the screen, we can create various adapters such as ethernet, Serial, or SCSI adapters.

Attention: Ensure that your i5/OS have PTF MF33433 loaded. If not, you cannot use Virtual devices.

Number of slots can be greater then the number of virtual adapters that will be defined for the partition. Having additional (unused) slots allows for additional virtual devices to be added to the partition (via DLPAR) without the need to restart the partition.

In our example we create one SCSI adapter for virtual disk storage, one ethernet adapter for virtual ethernet, and two serial adapters for console. We create a SCSI adapter and an ethernet adapter in a Linux partition and a Serial adapter on an i5/OS partition.

Two server serial adapters (slot 0 and slot 1) are automatically allocated to each Logical Partition. Server serial adapter in slot 1 is used for HMC Console access; while the Server Serial adapter in slot 0 is available for other defined connections (such as virtual console through port 2301 of the hosting i5/OS partition)

With this in mind click on SCSI adapter and click on Create button.

Figure 3-38 Creating a new Partition - Adding Virtual I/O - SCSI adapter

13.Then Figure 3-39 Virtual SCSI Adapter Properties appears.

Note: After filling the fields as described in the sub steps, do

not

press OK button yet. We need to configure matching server partition first, then come back to this screen to finally press OK button.

Figure 3-39 Creating a new Partition - Virtual SCSI Client Properties

a. Specify the slot number to use for this virtual SCSI adapter. The slot number is used to identify the virtual adapter within the logical partition. The combination of the slot number and the logical partition ID uniquely identify this slot within the managed system. as illustrated in the screen, the first available slot number is 2 since 0 and 1 are taken by default serial adapters.

b. This partition will be served by the server partition for disk storage space. Therefore, we select Client for adapter type.

c. The name of the partition that offers the service is i5OS whose partition ID is 4. d. The remote partition virtual slot number is the slot number where the Server type

virtual adapter resides. In our example is the slot number 5 in partition i5OS with partition ID of 4.

14.At this point, we need to create a matching SCSI adapter on the server partition of i5OS to represent as slot number 5 in partition 4. This SCSI adapter will be type

server

. To do this return to the HMC main menu (leave the screen as illustrated in Figure 3-39 alone). Choose Server and Partition Server Management then expand on the server partition, the partition named i5OS in our example. Then right click on its profile, FredyC, and click on Properties as illustrated in Figure 3-40.

Note: Here we assume slot number 5 is available in partition i5OS but this might not be true. If that’s the case, you’ll need to check i5OS partition properties first to see which slot number is available. Refer to step 14 to find out available slot number. IBM support suggests that when defining SCSI client-server pairs that different slot numbers should be used for the client partition and the server partition. The use of different slot numbers, while not technically required, facilitates better understanding during support calls.

b

a

c d

Figure 3-40 Creating a new Partition: Configuring profile server virtual SCSI

15.Select the Virtual I/O tab as illustrated in Figure 3-41. At the bottom of the screen, click on SCSI radio button, then click on Create button.

Attention: Do not close the other window as illustrated in Figure 3-39. The partition wizard still running!

Figure 3-41 Creating a new Partition: Configuring server Virtual I/O

16.A screen as illustrated in Figure 3-42 appears. We enter three items on this screen. First, the slot number. Select the slot number that you define as Remote partition virtual slot number as illustrated in Figure 3-39, slot number 5 in our example.

Second, Adapter type should be Server.

Lastly, for Connection Information, select the option Any remote partition and slot can connect. Click OK to complete the configuration on the server partition side.

Figure 3-42 Creating a new Partition - Virtual I/O Server Properties

We need further explanation for the last input item of Connection Information, that is related to power control.

If you are going to start the Linux server from HMC panel, this choice does not matter. But if you want to start it from the i5/OS side, you need to pick Only selected remote

partition and slot can connect option. In addition to this option, we need the following conditions to be met:

• We need to specify that Linux partition to be power controlled by a specific i5/OS partition as illustrated in Figure 3-47 on page 81 and

• We need to specify Power control *YES in NWSD as illustrated in Figure 3-59 on page 89 then

• We can start the Linux partition, which we are creating now, from i5/OS side by varying on NWSD.

In this step, for now, we have chosen Any remote partition and slot can connect option because there is no Linux partition created yet (we are in the middle of that process). Later, we need to come back to this screen and pick this Linux partition instead of Any.

Return to the Virtual SCSI Adapter Properties of your Linux partition as illustrated in Figure 3-43. Now we can click OK to complete client side virtual SCSI adapter creation.

Note: For other power control options discussion, refer to Section 2.2.1, “Power control” on page 36.

Figure 3-43 Creating a new partition: Client side virtual SCSI adapter

17.As illustrated in Figure 3-44, the Client SCSI adapter is now created with slot number 2. Under Required column, check this newly created adapter as required.

Next task is to create an adapter for virtual ethernet. For this, at the bottom of the screen, select ethernet radio button, then click on Create.

Figure 3-44 Creating a new Partition - Adding Virtual I/O - ethernet adapter

Figure 3-45 Creating a new Partition - Virtual ethernet Properties

a. Specify the slot number to use for this virtual ethernet adapter. The slot number is used to identify the virtual adapter within the logical partition. The combination of the slot number and the logical partition ID uniquely identify this slot within the managed system. as illustrated in the screen, the first available slot number is 3 since 0, 1, and 2 are already taken.

b. Specify the ID number for the virtual Local Area Network (LAN) to which you want to connect this virtual ethernet adapter. This virtual LAN ID number can be any whole number from 1 to 4094.

c. A trunk adapter is an ethernet adapter that links its LAN to an external network. This option enables that the virtual ethernet adapter can connect to other virtual networks or LAN IDs at the same time.

19.Click OK to add the virtual ethernet adapter to your Logical partition. Now as illustrated in Figure 3-46, the virtual ethernet device appears. Check this device as required. Then click on next button to continue the wizard.

Important: To enable Virtual communications between the server and the client partitions you must have at least one virtual ethernet in the client partition using the same Port Virtual LAN ID as in the server partition.

a b c

Figure 3-46 Creating a new partition - Adding virtual I/O

20.In Figure 3-47 you can select which logical partition have the authority to power on or power down the logical partition that you are creating. In other words, if you select this option you can power on the Linux partition from the Network Server Description (NWSD). By defining the "Power Controlling Partition" as the hosting i5/OS partition, a vary off of the Network Server in i5/OS will cause a shutdown signal to be sent to the Hypervisor to cause the partition to shutdown. Likewise, the shutdown of the partition will cause a shutdown signal to be sent to the Linux operating system. This handshaking between i5/OS, hypervisor, and Linux allows for clean startup and shutdown of Linux (and associated partition) from a centralized location (i5/OS) and provides for centralized management of all of the servers within the managed system.

Note: You need to increase the “Number of virtual adapter slots” if you wish to use more than 10 virtual adapters.

Figure 3-47 Creating a new Partition - Power Controlling Partitions

21.After clicking on Next, you can select optional settings for the partition profile as described in Figure 3-48.

Figure 3-48 Creating a new Partition - Optional Settings

a. This option enables to the Service Focal Point to monitoring the connection between the Hardware Management Console and the logical partition.

b. For hosted partitions, this option should be left unslected on the partition. To achieve automatic startup of the partition, the NWSD in the hosting partition should be set to 'Start at IPL *YES'.

c. Boot mode Normal: The logical partition boots as normal mode.

d. Boot mode SMS: The logical partition boots to the System Management Services (SMS) mode.

e. Boot mode DIAG_DEFAULT: The logical partition boots in default diagnosis mode. f. Boot mode DIAG_STORED: The logical partition boots using the service boot list

saved in NVRAM. This option is useful to run online diagnostics

Note: When we are done with Linux partition creation, next step is registering this newly created partition to System Processor (SP). To do that, we will activate the partition. Registration is accomplished by powering on the partition. We’re activating Linux partition now just to register with SP, note that we still need to complete configuration of Linux partition to begin Linux installation on newly created partition.

a b c d e f g

g. Boot mode OPEN_FIRMWARE: The logical partition boots to open firmware prompt. This options is useful to obtain aditional debug information.

22.Finally the Profile summary is displayed. Click finish to accept the creation of the partition profile. The new partition appears in your system management console as illustrated in Figure 3-49.

Figure 3-49 Server Management - Current Partitions

23.Activate the partition by right clicking on it and select Activate. On the screen as illustrated in Figure 3-50, be sure to check on Open a terminal window or console session, so that we can access SMS through HMC terminal window.

24.SMS boot screen shows as illustrated in Figure 3-51. This tells us that partition registration on SP is done. We get the screen of Figure 3-51 here because we selected Open a terminal window or console session in step 23.

Figure 3-51 SMS boot screen

25.Back on HMC main menu, right click on the partition and select Shut Down Partition to power it off as illustrated in Figure 3-52.

Figure 3-52 Shutting down a partition

Select Immediate and click on OK. This completes the creation of a Linux partition.

Virtual console setup

Now we need to set up i5/OS virtual console for the Linux partition. To do this we have to create a new virtual serial client connection on the i5/OS side. Start configuring i5/OS partition as illustrated in Figure 3-40 on page 75. Also select the tag Virtual I/O, then choose

to create a new Serial adapter and push the create button. Figure 3-53 appears on the screen.

Figure 3-53 Creating a new Partition - Virtual Adapter Client Properties

a. The Slot number is the virtual position that the Virtual device will have in this case the position number 6.

b. In this example the adapter type is client because the Linux Server is the server that uses the serial as a console connection. We do not need to create serial client serial as it is automatically created as illustrated in Figure 3-38 on page 73.

c. The partition that offers the service is in this case is Linux on i5 and is identified with the partition id number 3.

d. The remote partition virtual slot number is the slot number where the virtual device type server resides. In our example is the slot number 0.

3.2.2 i/5 OS side configuration steps

Now we have everything prepared from HMC side. We then need to configure from the i5/OS side. These tasks include:

򐂰 Creation of the Network Server Storage (NWSSTG)

򐂰 Creation of the Network Server Description (NWSD)

Note: This procedure is only necessary if you want to have a telnet 2301 console.

Note: i5/OS partition will need to be reactivated to submit the changes that we make in the i5/OS partition profile or you can add dynamically serial port without i5/OS bring down and update i5/OS partition profile for permanently serial connection.

a b

c d

򐂰 Attaching the NWSSTG with the NWSD

򐂰 Creation of a user profile from service tools that permits to use the virtual console

Creating NWSSTG

To use the virtual SCSI we need to create a NWSSTG in the i5/OS server partition to serve the Linux client partition.

There are two ways to create this NWSSTG: One is using the iSeries Navigator and the other is using 5250 command entry screen.

Creating NWSSTG using iSeries Navigator

These are the steps to create a NWSSTG using the iSeries Navigator.

1. Open your iSeries Navigator YourServer Network Windows Administration, then right click on Disk Drives and select New Disk as illustrated in Figure 3-54.

Figure 3-54 iSeries Navigator - Creating New Disk

2. In Figure 3-55 specify the Disk drive name, a description as well as the size of the new Disk on Megas or Gigas. Click Ok to start the creation.

Figure 3-55 iSeries Navigator - Defining New Disk

3. When it’s done, your new disk appears in the navigator area as illustrated in Figure 3-56.

Figure 3-56 iSeries Navigator - New Disk Created

Using 5250 command entry screen

These are the steps to create a NWSSTG using 5250 command entry screen.

1. Type the command CRTNWSSTG and then press F4 key. Then F9 to view all parameters. In Figure 3-57 we give an example of the creation. Fill the blanks as your convenience.

Figure 3-57 CRTNWSSTG command

2. Click Enter to start the process. When it is complete write the command WRKNWWSTG your new NWSSTG appears at we illustrate in Figure 3-58.

Figure 3-58 WRKNWSSTG command

Creating NWSD

A Network Server Description (NWSD) is used to give a name of the configuration on the i5/OS side to start and stop the Linux partition and provides an access to the virtual disk(s), CD/DVD, tape and other I/O devices to Linux. NWSD also defines the boot environment for Linux (i.e., IPL parameters) as well as optional network settings that can be made available to Linux.

Create NWS Storage Space (CRTNWSSTG)

Type choices, press Enter. Network server storage space . . > LINUXI5 Name Size . . . > 10240 *CALC, 1-1024000 megabytes From storage space . . . *NONE Name, *NONE Format . . . *OPEN *NTFS, *FAT, *FAT32, *OPEN... Auxiliary storage pool ID . . . 1 1-255 ASP device . . . Name Cluster domain name . . . Cluster port configuration: Connection port . . . *VRTETH0, *VRTETH1... Cluster internet address . . . Cluster subnet mask . . . Text 'description' . . . Linux on i5 Bottom F9=All parameters F11=Keywords F14=Command string F24=More keys

Work with Network Server Storage Spaces System: RCHAS10 Type options, press Enter. 1=Create 3=Copy 4=Delete 5=Display 6=Print 10=Add link 11=Remove link Link Opt Name Server Seq Type Access Text LINUXI5 Linux on i5 Bottom Parameters or command ===> F3=Exit F4=Prompt F5=Refresh F6=Print list F9=Retrieve F11=Display link status F12=Cancel F17=Position to

At an i5/OS command line type CRTNWSD and press F4 for prompt as we shown in Figure 3-59.

Figure 3-59 CRTNWSD command

1. Network server description: In this parameter provide a name for NWSD.

2. Resource name: the resource name must be the name of the resource that is created from HMC. Also, you can use *AUTO for the resource name. This will allow the hosting partition to determine the resource name as part of the vary on process. If you still need to do determine the resource name manually, write WRKHDWRSC *CMN in a i5/OS command line. Find resources type

290B

. These connections are the VSCSI connection. To verify the correct resource follow this steps:

– Do an option ‘7’ to display the resource details as illustrated on Figure 3-60.

Create Network Server Desc (CRTNWSD) Type choices, press Enter. Network server description . . . > LINUXI5 1 Name Resource name . . . > CTL03 2 Name, *NONE, *AUTO Network server type . . . > *GUEST 3 *WINDOWSNT, *GUEST Online at IPL . . . > *NO 4 *YES, *NO Vary on wait . . . *NOWAIT *NOWAIT, 1-15 minutes Shutdown timeout . . . 15 2-45 minutes Partition . . . *NONE 5 Partition number . . . 3 6 Number, *NONE Domain role . . . *DMNCTL *DMNCTL, *BKUCTL, *SERVER Propagate domain users . . . *YES *YES, *NO Language version . . . *PRIMARY *PRIMARY, 2963, 2966, 2980... Code page . . . 437 7 *LNGVER, 437, 850, 852, 857... Server message queue . . . *JOBLOG Name, *JOBLOG, *NONE Library . . . Name, *LIBL, *CURLIB IPL source . . . *NWSSTG *NWSSTG, *PANEL, *STMF, A... IPL stream file . . . *NONE

IPL parameters . . . *NONE Power control . . . *YES 8 *YES, *NO Authority . . . *CHANGE Name, *CHANGE, *ALL, *USE... Text 'description' . . . > 'Linux i5' 9 Bottom F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys

Figure 3-60 Work with communication resources

– Then page down to see the adapter field as illustrated in Figure 3-61. This number matches with the slot number of the virtual SCSI server adapter as illustrated in Figure 3-42 on page 77.

Figure 3-61 Display resource detail

Work with Communication Resources System: RCHAS10 Type options, press Enter. 5=Work with configuration descriptions 7=Display resource detail Opt Resource Type Status Text CMN20 6B04 Operational Comm Port 7 CTL03 290B Operational Comm Adapter LIN06 6B04 Operational Comm Adapter CMN21 6B04 Operational Comm Port CTL03 290B Operational Comm Adapter CMB03 2844 Operational MFIO Processor LIN12 2849 Operational LAN Adapter CMN14 2849 Operational Ethernet Port LIN03 2849 Operational LAN Adapter CMN17 2849 Operational Ethernet Port CMB07 2844 Operational Combined function IOP LIN14 2849 Not detected LAN Adapter CMN16 2849 Not detected Ethernet Port CMB04 5706 Operational Comm Processor LIN10 5706 Operational LAN Adapter More... F3=Exit F5=Refresh F6=Print F12=Cancel

Display Resource Detail

System: RCHAS10 Resource name . . . : CTL03 Text . . . : Comm Adapter Type-model . . . : 290B-001 Serial number . . . : 00-00000 Part number . . . : Location: U9406.520.108A36C-V1-C5 I/O bus 208 Adapter 5 Bottom Press Enter to continue. F3=Exit F5=Refresh F6=Print F12=Cancel

3. Network server type: The server type is *GUEST.

4. Online IPL: Specifies whether this object is automatically varied on at initial program load (IPL). It is recommended to set to*YES for production enviroments.

5. Partition: Is the partition name, you can write the partition name or

6. Use the partition number from the HMC as we defined in Figure 3-30 on page 66.

7. For Linux partitions the code page is always 437. The code page is used for hypervisor to

partition communications. The code page is a hold over from Windows Integration which allows for different code page values.

8. Power Control: You can choose *YES that enables the NWSD power on the partition, assuming that you enable this option in HMC as illustrated with Figure 3-47 on page 81. If you select *NO, that means vary on just makes the VSCSI resources available to the partition. In that case the partition only can be powered on by HMC. The recomendation is that Linux partitions with virtual I/O resources should always have this value set *YES and start Linux from the hosting i5/OS partition rather then the HMC.

In document Linux on IBM Eserver i5 (Page 85-127)