Brownbag Session - 2012-02-23 - Backbone Fabric Controller 3.1: Install, BFC Users, and Scripting
After completing this module, you will be able to:
Why you need to know:
The BFC installer creates two users that the BFC uses in performing its operations
bfcadmin
bfcutil
Think of the BFC as an appliance from the standpoint of these two users. UIDs, home directories, ssh keys all should not be modified.
The BFC installer also creates a bfc group
bfc group
2. BFC Installation, Upgrade and Recovery
The BFC installer inspects and updates CentOS and then installs the BFC
R14B distro: kernel, stdlib, etc.
CA-developed applications: components, services, grid, etc. A combination of erlang and python code
GWT
Python code invoked by fcinstall.sh to configure the BFC
Previous installation is uninstalled
Useful if the BFC is not running
bfcext.iso is mounted (on a temporary directory)
Package dependencies are installed via yum
BFC packages are installed via rpm (bfc-utilityimage, bfc, bfc-lang-pack, bfc-doc)
Validate file system space availability
Create users/group (bfcadmin and bfcutil users, bfc group)
Set up erlang distro
Set up BFC web UI (webmachine configuration)
Python setup program is invoked
tftp
ldap
dhcp
nfs
PXE boot setup
Generate and set up ssh keys
Create service (/etc/init.d/bfc)
SSL certificate for web server (self-signed)
The BFC can be recovered from a replica database
Recovery from an existing replica
Machine being installed must have the same "identity" as the original from which the replica was made:
Replica directory and passphrase must be specified
Setup and configuration identical to initial install (package install via yum, rpm install, service configuration, utility image setup, etc.)
Download directory must be populated
If an upgrade fails, replica directory can be used to re-install previous BFC version
Prior to the upgrade, make sure replication is on. If replication is not on, turn it on (even if it is replicating to a local directory)
If the upgrade fails, and the BFC is not properly recovered (upgrade should attempt to recover back to the previous version on failure, but if it doesn't...)
If the mnesia db is corrupt such that the BFC will not start, a last-resort option is the db_restore script
db_restore script
BFC Upgrade from 3.0 to 3.1 is supported (and will be supported from 3.0/3.1 to 3.5)
BFC Upgrade:
3. BFC Scripting
BFC Scripts
Both shell script and "escripts" are located in/opt/bfc/bin
BFC escripts are only generated by the development team
In cases where the development team has created scripts to "unstick" an object, these are escipts
In 3.5 BFC API will be available
This module showed you:
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|