• No se han encontrado resultados

Estimación y valoración de riesgos

In document UNIVERSIDAD NACIONAL DE INGENIERÍA (página 104-115)

Capitulo 3:Evaluación de riesgos

3.1 Estimación y valoración de riesgos

The starting point in this section is that we have migrated our AIX Version 4.3 NIM master to AIX 5L Version 5.2 and that we have completed all post migration tasks specific to the NIM master, as described in 7.2, “NIM master specific tasks” on page 173. The AIX migration on a NIM master will not directly affect the NIM environment. However, there are some additional tasks to do before configuring this server as AIX 5L Version 5.2 NIM master for the environment.

After you migrate your NIM master to AIX 5L Version 5.2, the new AIX 5L Version 5.2 NIM resources must be created. There is no need to unconfigure the older AIX resources. The NIM master supports resources of AIX Version 4.2 and later. This means that you can use this one machine to serve as the NIM master for various AIX levels, starting with AIX Version 4.2 up to AIX 5L Version 5.2.

Prerequisites

The prerequisites depend on which NIM resources you want to create and whether it will be stored on the NIM master machine. We describe how to configure a AIX 5L Version 5.2 NIM master to support a base operating system installation (bos_inst).

To create a default AIX 5L Version 5.2 lpp_source, you need about 600 MB of disk space. When using the command line to initiate the creation of an lpp_source, you must ensure that you have enough space in your file system. The reason is that you cannot choose to automatically have the file system expanded if more space is required using this method. It is therefore

Chapter 6. Migration by NIM 123

recommended that you store the image file in a file system when using media as the source. This ensures that the file system gets expanded automatically if the creation process requires additional space.

Creating basic installation resources

After you migrate your NIM master to AIX 5L Version 5.2, the new AIX

lpp_source and SPOT must be created to perform future bos_inst installation. These resources are the basic resources needed to install or migrate a NIM client machine. For further and general information about NIM resources, refer to the AIX 5L Version 5.2 Installation Guide and Reference, SC23-4389, which can be found at:

http://publib16.boulder.ibm.com/cgi-bin/ds_form?lang=en_US&viewset=AIX/

lpp_source creation

The process of creating an lpp_source basically involves copying the installation images from CD-ROM to your hard disk. One possibility is to copy the content of the six AIX 5L Version 5.2 CDs to one of your disks using the bffcreate

command and then to create the lpp_source from this directory.

If you do not have sufficient space on the NIM master machine, you can also use the CD image mounted at /dev/cd0 for the creation of the lpp_source. Whichever way you choose, the lpp_source must contain all the required filesets in order to successfully perform a migration installation.

In our test environment, we use the mounted CD to create the lpp_source. You can initiate the process using the Web-based System Manager, SMIT, or command line.

Option 1: Using the Web-based System Manager

To create an lpp_source using the Web-based System Manager, type the wsm

command and then follow these steps:

1. Select the Network Installation Management icon.

2. Select Resources under Network Installation Management.

3. Select Resources -> New -> Resource in the menu; you will see the Add

New Resource dialog.

Option 2: Using SMIT

The fast path for creating an lpp_source using SMIT is smitty nim_mkres. The detailed path shown below goes to the same screen:

1. Type the smitty command.

2. Select Software Installation and Maintenance -> Network Installation

Management -> Perform NIM Administrating Tasks -> Manage Resources -> Define a Resource -> lpp_source.

As shown in Example 6-12, you need to first choose lpp_source as the resource type to be created. Then fill in the resource name, resource type, server name, location of resource, and source of install images, similar to our test example.

Example 6-12 Creation an lpp_source using SMIT Define a Resource Type or select values in entry fields. Press Enter AFTER making all desired changes.

[Entry Fields] * Resource Name [lpp_source52] * Resource Type lpp_source * Server of Resource [master]

* Location of Resource [/export/lpp_source] Architecture of Resource []

Source of Install Images [cd0] Names of Option Packages [] Comments []

F1=Help F2=Refresh F3=Cancel F4=List F5=Reset F6=Command F7=Edit F8=Image F9=Shell F0=Exit Enter=Do

In our example, only the first AIX 5L Version 5.2 base CD will be used to create the lpp_source. This will be stored in /export/lpp_source under the file name lpp_source52.

Chapter 6. Migration by NIM 125

Option 3: Using command line

Similarly, we can create an lpp_source using the command line. The syntax of the nim -o define command is displayed below:

-t lpp_source \

-a location=<directory that will contained the installation images> \ -a server=<master or machine client name> \

-a source=<device that contain the installation media>

SPOT creation

The SPOT is used to support machines that boot over the network. There are two types of SPOT you can create: The /usr SPOT and the non-/usr SPOT. When you define a SPOT using the /usr, this resource will contain all the software installed in the NIM master machine. This spot is called /usr spot, and does not use as much space on your machine. However, you cannot update it with optional software once it is created.

The other SPOT type is non-/usr spot and is located in a different file system from /usr. It consumes more disk space, but you can install and update software to support your environment. After having created the AIX 5L Version 5.2 lpp_source, you can use it to create a non-/usr spot. This will contain images to support a new AIX 5L Version 5.2 installation or migration.

As seen with many examples before, there are three ways to initiate the creation of the SPOT on your AIX master machine. These are the Web-based System Manager, SMIT, and command line. They are outlined in the next sections.

Option 1: Using the Web-based System Manager

The menu path with the Web-based System Manager is the same as the creation of the lpp-source, but choose the creation of SPOT this time and fill in the required boxes.

Option 2: Using SMIT

Similarly for SMIT, if you want to create the SPOT, follow the same menus or fast paths as for the creation of the lpp_source. The menu is displayed in

Example 6-13 on page 126.

Important: If you are using the command line to create the lpp_source,

remember that it does not automatically expand the file system when it needs additional space.

Example 6-13 Creation of a SPOT resource using SMIT Define a Resource Type or select values in entry fields. Press Enter AFTER making all desired changes.

[Entry Fields] * Resource Name [spot52] * Resource Type spot

* Server of Resource [master] + * Source of Install Images [lpp_source52] + * Location of Resource [/export/spot] / Expand file systems if space needed? yes + Comments []

installp Flags

COMMIT software updates? no + SAVE replaced files? yes + AUTOMATICALLY install requisite software? yes + OVERWRITE same or newer versions? no + VERIFY install and check file sizes? no +

F1=Help F2=Refresh F3=Cancel F4=List F5=Reset F6=Command F7=Edit F8=Image F9=Shell F0=Exit Enter=Do

Option 3: Using the command line

To perform a SPOT creation from the command line, use the command shown below, including the appropriate flag options:

nim -o define -t spot

-a location=<directory that will contain the image, or /usr to an /usr-spot> -a server=<master or the machine name if it is a client>

-a source=<lpp_source or device that contains the installation images> -a auto_expand=<to automatically expand the file system>

spot_name

Verifying resource creation

We are now at a stage where we have migrated our NIM master from AIX Version 4.3 to AIX 5L Version 5.2. We completed all post migration tasks and configured the AIX 5L Version 5.2 lpp_source and SPOT on our NIM master machine. To verify that the creation is successfully finished, we need to check the usability and the status of resources using the nim -o check command. It

Chapter 6. Migration by NIM 127

verifies that all necessary filesets are installed in a lpp_source and updates the table of contents in the file location.

We show in Example 6-14 how you can verify the creation of your SPOT and lpp_source. With the command in the first line, you can list the file sets in the lpp_source. The second and third line verify that the creation of the lpp_source and SPOT was successful.

Example 6-14 Verifying resource creation # nim -o showres <lpp_source_name> # nim -o lppchk <lpp_source_name> # nim -o lppchk <spot_name>

In document UNIVERSIDAD NACIONAL DE INGENIERÍA (página 104-115)