![]() |
|||||
· Home of “Community Software for Solaris” ( CSW ) |
|||||
|
|
How To Build OpenSolaris - Page 2
Step 11 - Check the Log
Eventually the machine will settle down and be idle.
Even with a blistering fast machine this could take a while. We are looking at the compile of millions and millions of lines of code and, now this is real news to you I am sure, software just keeps getting bigger!
.
.
.
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr s0 s1 s1 -- in sy cs us sy id
0 0 0 5835872 1798032 20 224 1 4 3 0 0 1 0 0 0 347 256 128 1 0 99
2 0 0 5625536 1592296 875 15159 172 1636 1554 0 0 127 0 0 0 976 32647 583 65 18 17
2 0 0 5621088 1585192 740 15015 205 1483 1419 0 0 120 0 0 0 969 35624 467 71 19 10
2 0 0 5620852 1571300 871 15215 145 1395 1318 0 0 113 0 0 0 974 34625 513 66 19 14
2 0 0 5624872 1592528 860 15307 150 1592 1478 0 0 114 0 0 0 996 33846 526 67 19 14
2 0 0 5622240 1575348 782 15072 151 1335 1280 0 0 116 0 0 0 921 34874 465 69 19 12
0 0 0 5222364 1218296 3472 3383 4822 274 251 0 0 326 0 0 0 804 11589 847 26 8 66
0 0 0 4597060 635096 1 460 7 0 0 0 0 3 0 0 0 355 1111 231 99 1 0
0 0 0 4580520 621984 0 1 0 0 0 0 0 0 0 0 0 346 106 126 99 1 0
0 0 0 4580344 621804 0 0 0 0 0 0 0 0 0 0 0 347 107 127 99 1 0
0 0 0 5655284 1632812 0 0 0 0 0 0 0 0 0 0 0 341 47 127 0 0 100
^C
you have mail
$ ls -lap
total 82
drwxr-xr-x 8 dclarke csw 512 Sep 26 03:14 ./
drwxr-xr-x 4 root sys 512 Sep 26 00:05 ../
-rw-r--r-- 1 dclarke csw 11765 Sep 19 10:32 README.opensolaris
drwxr-xr-x 3 dclarke csw 512 Sep 26 03:15 archives/
drwxr-xr-x 3 dclarke csw 512 Sep 19 06:50 closed/
drwxr-xr-x 3 dclarke csw 512 Sep 26 04:09 log/
drwx------ 2 root root 8192 Sep 26 00:03 lost+found/
-rw-r--r-- 1 dclarke csw 7921 Sep 26 00:52 opensolaris.sh
drwxr-xr-x 3 dclarke csw 512 Sep 26 01:18 proto/
drwxr-xr-x 3 dclarke csw 512 Sep 19 10:32 usr/
$
$ ls -lap log/log.2006-09-26/
total 128108
drwxr-xr-x 2 dclarke csw 512 Sep 26 04:09 ./
drwxr-xr-x 3 dclarke csw 512 Sep 26 04:09 ../
-rw-r--r-- 1 dclarke csw 2039 Sep 26 04:09 mail_msg
-rw-r--r-- 1 dclarke csw 63918489 Sep 26 04:09 nightly.log
-rw-r--r-- 1 dclarke csw 1611195 Sep 26 03:15 proto_list_i386
The key item to look for here is the file mail_msg in the build log area. This is the reason why you see a message that says “you have mail”. This file mail_msg should have been mailed to you and the smaller it is the better. Really, we expect it to tell us that all went well and there were no errors in the build process. Let's look at the mail_msg that I have here :
$ cat log/log.2006-09-26/mail_msg
==== Nightly distributed build started: Tue Sep 26 01:14:03 EDT 2006 ====
==== Nightly distributed build completed: Tue Sep 26 04:09:32 EDT 2006 ====
==== Total build time ====
real 2:55:29
==== Nightly argument issues ====
Warning: the N option (do not run protocmp) is set; it probably shouldn't be
==== Build environment ====
/usr/bin/uname
SunOS phobos 5.11 snv_47 i86pc i386 i86pc
/opt/onbld/bin/nightly ./opensolaris.sh
nightly.sh version 1.105 2006/08/30
/opt/SUNWspro/bin/dmake
dmake: Sun Distributed Make 7.7 2005/10/13
number of concurrent jobs = 4
32-bit compiler
/opt/onbld/bin/i386/cw -_cc
cw version 1.20
primary: /opt/SUNWspro/bin/cc
cc: Sun C 5.8 Patch 121016-02 2006/03/31
shadow: /usr/sfw/bin/gcc
gcc (GCC) 3.4.3 (csl-sol210-3_4-20050802)
64-bit compiler
/opt/onbld/bin/i386/cw -_cc
cw version 1.20
primary: /opt/SUNWspro/bin/cc
cc: Sun C 5.8 Patch 121016-02 2006/03/31
shadow: /usr/sfw/bin/gcc
gcc (GCC) 3.4.3 (csl-sol210-3_4-20050802)
/usr/java/bin/javac
java full version "1.5.0_08-b03"
/usr/ccs/bin/as
as: Sun Compiler Common 10 snv_46 08/03/2006
/usr/ccs/bin/ld
ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.545
Build project: default
Build taskid: 107
==== Build version ====
snv_20060918
==== Make clobber ERRORS ====
==== Make tools clobber ERRORS ====
==== Tools build errors ====
==== SCCS Noise (DEBUG) ====
==== Build errors (DEBUG) ====
==== Build warnings (DEBUG) ====
==== Elapsed build time (DEBUG) ====
real 1:56:28.5
user 2:31:46.9
sys 14:34.8
==== Build noise differences (DEBUG) ====
==== cpio archives build errors (DEBUG) ====
==== Check ELF runtime attributes ====
==== Diff ELF runtime attributes (since last build) ====
==== 'dmake lint' of src ERRORS ====
==== Elapsed time of 'dmake lint' of src ====
real 51:10.6
user 1:24:28.2
sys 2:43.8
==== lint warnings src ====
==== lint noise differences src ====
==== cstyle/hdrchk errors ====
==== Find core files ====
==== Impact on file permissions ====
$
Step 12 - Perform a BFU
IF and ONLY IF ALL WENT WELL then you may proceed with a BFU.
Now, before we proceed please take a moment to note the location of the Developer's Reference at OpenSolaris.org. While it does not explain all of the mysteries of life it certainly clears the air about a great many things related to what we are doing. Thus : Let me now quote a small passage of scripture from the Developer's Reference that describes the BFU : 5.1.2 BFU is used to update all ON bits, both kernel and userland. It is capable
of updating some configuration files and is aware of the impact of the changes
that have been made to ON. BFU is more thorough than Install, and takes longer.
Also, unlike Install, the new kernel will be installed over the existing one,
so if it does not work properly you may have to boot from alternate media to
recover.
Now would be a good time for a stiff drink becuase if anything did go wrong then you will turn your machine in to a “warm brick”. This is known as &ldquo"to brickify” a server. Other language works just as well. You will need to be root for this operation.
$ su -
Password:
Sun Microsystems Inc. SunOS 5.11 snv_47 October 2007
# pwd
/
# cd /export/mybuild
# ls -lap archives/`uname -p`/nightly
total 535500
drwxr-xr-x 2 dclarke csw 1024 Sep 26 03:15 ./
drwxr-xr-x 3 dclarke csw 512 Sep 26 03:14 ../
-rw-r--r-- 1 dclarke csw 65556 Sep 26 03:15 conflict_resolution.gz
-rw-r--r-- 1 dclarke csw 71227760 Sep 26 03:15 generic.kernel
-rw-r--r-- 1 dclarke csw 22040836 Sep 26 03:14 generic.lib
-rw-r--r-- 1 dclarke csw 2234468 Sep 26 03:14 generic.root
-rw-r--r-- 1 dclarke csw 1136640 Sep 26 03:14 generic.sbin
-rw-r--r-- 1 dclarke csw 169396716 Sep 26 03:15 generic.usr
-rw-r--r-- 1 dclarke csw 1269760 Sep 26 03:15 i86pc.boot
-rw-r--r-- 1 dclarke csw 5416960 Sep 26 03:15 i86pc.root
-rw-r--r-- 1 dclarke csw 1146880 Sep 26 03:15 i86pc.usr
# PATH=/opt/SUNWspro/bin:/opt/onbld/bin:/usr/ccs/bin:/usr/sbin:/usr/bin
# export PATH
# FASTFS=/opt/onbld/bin/`uname -p`/fastfs;export FASTFS
# BFULD=/opt/onbld/bin/`uname -p`/bfuld;export BFULD
# GZIPBIN=/usr/bin/gzip;export GZIPBIN
#
# env
BFULD=/opt/onbld/bin/i386/bfuld
FASTFS=/opt/onbld/bin/i386/fastfs
GZIPBIN=/usr/bin/gzip
HOME=/
HZ=
LANG=C
LC_ALL=C
LOGNAME=root
MAIL=/var/mail/root
PATH=/opt/SUNWspro/bin:/opt/onbld/bin:/usr/ccs/bin:/usr/sbin:/usr/bin
SHELL=/sbin/sh
TERM=vt100
TZ=Canada/Eastern
# /opt/onbld/bin/bfu /export/mybuild/archives/`uname -p`/nightly
Copying /opt/onbld/bin/bfu to /tmp/bfu.25871
Executing /tmp/bfu.25871 /export/mybuild/archives/i386/nightly
Loading /export/mybuild/archives/i386/nightly on /
Creating bfu execution environment ...
/tmp/bfu.25871[2428]: /net/onnv.eng/export/gate/public/bin/acr: cannot open
chmod: WARNING: can't access /tmp/bfubin/acr
Verifying archives ...
Performing basic sanity checks ...
/etc/svc/repository.db: passed integrity check
Disabling kernel module unloading ... moddebug: 0 = 0x20000
Quiescing init ...
Unmounting /lib/libc.so.1 ...
Disabling sendmail temporarily ...
Disabling remote logins ...
Disabling syslog temporarily ...
Killing httpd ...
Disabling fmd temporarily ...
Killing nscd ...
Turning on delayed i/o ...
Filesystem Mode
/ safe
/usr safe
2476 blocks
Saving configuration files in /bfu.child ... 4560 blocks
Removing init.d links ... done.
Removing obsolete rc.d scripts ... done.
Extracting ufs modules for boot block ... 2240 blocks
Extracting generic.usr ... 330853 blocks
Extracting i86pc.usr ... 2240 blocks
Extracting generic.lib ... 43048 blocks
Extracting generic.sbin ... 2220 blocks
Extracting generic.kernel ... 139117 blocks
Extracting generic.root ... 4360 blocks
Extracting i86pc.root ... 10580 blocks
Extracting i86pc.boot ... 2480 blocks
Removing duplicate kernel binaries ...
Simulating SUNWcry* installation...
Cleaning up old Kerberos GSS-API mechanisms...
Restoring configuration files.
NEW conflict: boot/grub/menu.lst
restore: boot/solaris/bootenv.rc
restore: boot/solaris/devicedb/master
NEW conflict: etc/crypto/kcf.conf
update: etc/crypto/pkcs11.conf
NEW conflict: etc/default/inetinit
NEW conflict: etc/default/init
restore: etc/devlink.tab
restore: etc/driver_aliases
NEW conflict: etc/driver_classes
restore: etc/group
NEW conflict: etc/inet/hosts
restore: etc/inet/inetd.conf
update: etc/inet/ipsecalgs
restore: etc/inet/netmasks
NEW conflict: etc/inet/services
restore: etc/inittab
restore: etc/krb5/krb5.conf
NEW conflict: etc/logadm.conf
restore: etc/logindevperm
NEW conflict: etc/minor_perm
NEW conflict: etc/name_to_major
update: etc/name_to_sysnum
NEW conflict: etc/nsswitch.conf
NEW conflict: etc/openwin/server/etc/OWconfig
restore: etc/passwd
NEW conflict: etc/path_to_inst
NEW conflict: etc/power.conf
NEW conflict: etc/remote
NEW conflict: etc/rmmount.conf
update: etc/security/audit_event
NEW conflict: etc/security/auth_attr
restore: etc/security/device_policy
NEW conflict: etc/security/exec_attr
NEW conflict: etc/security/policy.conf
NEW conflict: etc/security/prof_attr
NEW conflict: etc/shadow
NEW conflict: etc/user_attr
NEW conflict: etc/vfstab
NEW conflict: etc/vold.conf
restore: kernel/drv/sd.conf
preserve: kernel/misc/amd64/sysinit
preserve: kernel/misc/amd64/usbs49_fw
preserve: kernel/misc/sysinit
preserve: kernel/misc/usbs49_fw
preserve: var/adm/utmpx
preserve: var/adm/wtmpx
preserve: var/log/syslog
preserve: var/saf/zsmon/log
restore: var/spool/cron/crontabs/root
Create /platform/i86pc/boot_archive
updating /platform/i86pc/boot_archive...this may take a minute
For each file in conflict, your version has been restored.
The new versions are under /bfu.conflicts.
MAKE SURE YOU RESOLVE ALL CONFLICTS BEFORE REBOOTING.
To install resolved changes required for reboot in the boot
archive, invoke 'bootadm update-archive'
Removing obsolete smf services ...
Disabling unneeded inetd.conf entries ...
Connecting platform and name service profiles ...
Marking converted services as enabled ...
cp: cannot access /net/greenline.eng/meta0/smf/post-5090532/sysidtool.xml
bfu: could not copy /net/greenline.eng/meta0/smf/post-5090532/sysidtool.xml
cp: cannot access /net/greenline.eng/meta0/smf/post-5090532/kdmconfig.xml
bfu: could not copy /net/greenline.eng/meta0/smf/post-5090532/kdmconfig.xml
Upgrade of phobos took 5:28.
Turning off delayed i/o and syncing filesystems ...
Filesystem Mode
/ safe
/usr safe
Entering post-bfu protected environment (shell: ksh).
Edit configuration files as necessary, then reboot.
bfu#
Proceed to Next Page |
|||||||