Monday, 13 February 2012

IBM SmartCloud Entry on POWER.


These are my build notes take from work that I have done, along with this I have tried to include any important information from the build guides and other information that I have found. From this you should be able to deploy a working POWER SmartCloud Entry.

First you will need to deploy the basic VMControl, IBM Systems Director on POWER frame work. The details of this are covered in my other blogs, So make sure you have that working before you go further else you could spend time debuging a issue that is nothing to do with SmartCloud Entry.

Installation -

Ensure you have Java 1.6 installed (from the command line issue java -version and verify it is 1.6.x)
JRE is min required, A full SmartCloud Entry will work as well;
For power (AIX) installs, a 32-bit JRE is requied; for x86 (windows or linux) 64-bit JRE is required and can be checked with -
# java -version

Obtain the installation package and copy it over to the server that you wish to run SmartCloud Entry on, in this example we are running it on our Systems Director/NIM sever.
# cd /tmp/sce
# ls
skc220_aix_installer.bin

Then issue a chmod for execute authority on the installer
Chmod +x skc220_aix_installer.bin

  • Install IBM SmartCloud Entry as follows:
    ./skc220_aix_installer.bin
  • Select your Locale and press Enter.
  • Then accept the license once you have paged through all the screens.
  • Keep the default option or for example enter option 3 for another location such as - /SCE
  • Type Y to verify the details if changed.
  • Press Enter to accept the default to Install File Sets.
  • Choose install folder. Press Enter and Y to verify.
  • Note: If accepting default - /opt/ibm/SCE
  • Enter a location for the Property File Install Folder if you changed it above.
  • Verify the Pre-Installation Summary, Press Enter.
  • Verify the Installer finished successfully. To enter configuration options through the wizard, press Enter. This is the default for the installer.
    Note: You will not be able to connect to the cloud until the hostname of the target cloud is defined.
  • Accept the default for the initial admin user of admin. Press Enter.
  • Enter the password twice for the admin user. Press Enter.
  • Accept the default value for cloud properties of IBM Systems Director, VMControl. Press Enter.
  • Enter Cloud hostname of your IBM Systems Director VMControl Server. Press Enter.
  • Enter the cloud username and password. Default is root. Press Enter to accept that default and then enter the password twice for verification. Press Enter.
  • Verify the installation completed successfully. Press Enter to exit the Installer.

Setting up SmartCloud Entry -

Now before we start SKC edit the /opt/ibm/SCE/skc.ini file to update the very first line -console, as follows and save it -
-console
7777 ← Add this line
-clean
-vmargs

Now when you want to get to the SCE console just run this from a command prompt on the skc server -
# tn localhost 7777

If you want to enable approvals and billing (and metering), which are off by default then do the following -

To turn on billing, configure these in the properties files in the .skc dir in the user home dir
.skc/approval.properties -> com.ibm.cfs.request.lifecycle.enabled=true
.skc/billing.properties -> com.ibm.cfs.billing.enabled=true

To turn on metering, configure these in the properties files in the .skc dir in the user home dir
.skc/approval.properties -> com.ibm.cfs.request.lifecycle.enabled=true
.skc/metering.properties -> com.ibm.cfs.metering.enabled=true

Starting SmartCloud Entry -

Now all this is complete we can look at starting the service.

Or you can used - http://localhost:8080/cloud/web/index.html?preventCache=true
Note: this is to keep the browser from caching objects for SmartCloud Entry - useful during development drivers.

Login as admin using the default password you set earlier.

Once you have logged in you will need to set the 'Cloud Status' on the right hand side, so select – Edit Cloud connection. Then enter the relvant details, be this hostname or IP address, user id and password of the system, in our case it was the root user. If the test comes back OK then you can update the settings with those entries.

Updates to SmartCloud Entry -

Now it is installed we can download the update package (zip file) from IBM Fix Central to the computer running the IBM Starter Kit for Cloud application. Create a directory on the local file system of the computer running the IBM SmartCloud Entry application. For example in - /tmp/sce and then extract the update package (zip) to the directory created. Once completed run the following from the IBM SmartCloud Entry OSGi console:
# addrepo file:PATH_TO_DIRECTORY
Where PATH_TO_DIRECTORY is the full file path to the directory the update zip was extracted to. From the example directory given above, type: addrepo file:/tmp/sce
# installupdates
Then CLI output from the installupdates command should indicate installation success.

After installing the updates to the application, IBM SmartCloud Entry should be restarted. To restart:
Type close into the OSGi console in which the application is running.
Once the application ends, the console window will close indicating the application has stopped.
Start IBM SmartCloud Entry, and the installed fixes should now be active.

Updates for IBM Systems Director -

Once the updates above have been completed we can add further updates to IBM Systems Director that are specific for SCE. So once again download the packages to a directory on the servers and extract them from the zip. When extracted run the following -

# smcli importupd -vr /tmp/sce/ISDskc9
.ATKUSC206I Generating SDDs for path: "/tmp/sce/ISDskc9".
..ATKUPD293I Update "com.ibm.director.core.database.feature_6.2.1.2-20111009-LAFix" was successfully imported to the library......
ATKUPD573I Running compliance for all new updates that were found.
..ATKUPD286I The import updates task has completed successfully.

This will import all the fixes in to the system to allow you to update them as follows –

# smcli installupd -v -n pclm2_sdnim -u com.ibm.director.core.database.feature_6.2.1.2-20111009-LAFix

Which you can do for each fix, then as below for the next set of fixes -

# smcli importupd -vr /tmp/sce/VMCUpdate2312
.ATKUSC206I Generating SDDs for path: "/tmp/sce/VMCUpdate2312".
.ATKUPD293I Update "com.ibm.director.mgr.virtualization.server.feature_6.2.1.2-e20110803-LAFix" was successfully imported to the library......
ATKUPD573I Running compliance for all new updates that were found.
.....ATKUPD286I The import updates task has completed successfully.

# smcli installupd -v -n pclm2_sdnim -u com.ibm.director.mgr.virtualization.server.feature_
6.2.1.2-e20110803-LAFix

Now this is all complete you will need to stop SmartCloud Entry and then restart Systems Director.

I will deal with the Cloud tasks and options in a later update.

No comments:

Post a Comment