IBM Support

Common VIOS check sum (ck_sum.bff) verification errors

Question & Answer


Question

How to correct common failures from VIOS script, ck_sum.bff

Cause

Part of the overall VIOS update process includes to verify the check sum of the files that will be used for the update.  The step is documented in the VIOS README files available in Fix Central under Installation information > Installing, as shown below:

    
The above steps instruct to copy the ck_sum.bff script to /home/padmin, change its permissions, and then run the script from /home/padmin against the source directory, <directory_path>, containing the VIOS update release you wish to update to.  The script will verify the check sum of the files in the <directory_path> specified.

Answer

Next is a list of common errors seen from ck_sum.bff script and recommendations.

cat: 0652-050 Cannot open ./35cb0c43c6453f53c86477851667a5f80d5f0fe3.
Verify cksum on ./35cb0c43c6453f53c86477851667a5f80d5f0fe3



Scenario 2:

ERROR:

  Missing key pd.sdd file in /<directory>
  Make sure the SOURCEDIR that you specified is the directory where you downloaded the image.

$ ck_sum.bff /home/padmin/viosfix22610

ERROR:  cksum failure on U878391.bff.                                  
(Expected=c9219ed3485336c951c90455290bb721576b35a2d8e254fe68f3db05da5aec23
Actual=1c413e8308ef9203f87fba1dc55953591495b95320bcb2f0cd2441be1e7735c7)


 
Scenario 1 Recommendation

cat: 0652-050 Cannot open ./35cb0c43c6453f53c86477851667a5f80d5f0fe3.
Verify cksum on ./35cb0c43c6453f53c86477851667a5f80d5f0fe3

Example execution of ck_sum.bff for 2.2.2.1 FixPack update:

root@vios1:(/home/padmin/test) # ./ck_sum.bff .
./VIOS_2.1.0.0.pd.sdd       ./VIOS_2.2.2.1-FP26.pd.sdd
cat: 0652-050 Cannot open ./35cb0c43c6453f53c86477851667a5f80d5f0fe3.
 Verify cksum on ./35cb0c43c6453f53c86477851667a5f80d5f0fe3
cat: 0652-050 Cannot open ./66c40f424ac87db0be2ddea42bf1d1a912058fdd.
 Verify cksum on ./66c40f424ac87db0be2ddea42bf1d1a912058fdd
cat: 0652-050 Cannot open ./9913de89a974e522808da63a78fab7d22fde0e84.
 Verify cksum on ./9913de89a974e522808da63a78fab7d22fde0e84

All ck_sum failures are written to /tmp/sdd.failure

CKSUM Failure on ./35cb0c43c6453f53c86477851667a5f80d5f0fe3
CKSUM Failure on ./66c40f424ac87db0be2ddea42bf1d1a912058fdd
CKSUM Failure on ./30071ed90b0644104e0ea16d5f431d849036846e
CKSUM Failure on ./a05d8de2e2ad83645dd7820047b16e4bbf0d80b7
RECOMMENDATION

1. Remove ./VIOS_2.1.0.0.pd.sdd file from the <directory_path> (/home/padmin/test in this case)
2. Remove /tmp/sdd.failure
3. Re-run ck_sum.bff script

Example:
root@vios1:(/home/padmin/test) # rm VIOS_2.1.0.0.pd.sdd
root@vios1:(/tmp) # rm sdd.failure
root@vios1:(/home/padmin/test) # ./ck_sum.bff .
This solution can be used starting at vios 2.2.1.5 and higher.
Scenario 2 Recommendation

ERROR:


  Missing key pd.sdd file in /<directory>
  Make sure the SOURCEDIR that you specified is the directory where you downloaded the image.

RECOMMENDATION

The error can occur when ck_sum.bff script is executed without specifying the absolute path, <directory_path>, which includes the root directory and all other subdirectories in which the files reside.
In the following example, /mnt is the <directory_path>, which is an NFS mounted directory containing 2.2.3.70:
$ mount
...
virtnim:/FC_fixes/223.70  133169152  33617304   75%    11457     1% /mnt
$
$ cp /mnt/ck_sum.bff /home/padmin
$ ls -la /home/padmin/*.bff
-rw-r--r--    1 padmin   staff  3516 Sep 06 09:13 /home/padmin/ck_sum.bff
$ pwd
/home/padmin
$ chmod 755 ck_sum.bff
$ ls -la /home/padmin/*.bff
-rwxr-xr-x    1 padmin   staff  3516 Sep 06 09:13 /home/padmin/ck_sum.bff
$
$ ck_sum.bff /

ERROR:  Missing key pd.sdd file in /.
        Make sure the SOURCEDIR that you specified is the directory where you downloaded the images.

$
In this example, the correct syntax should have been:
$ ck_sum.bff /mnt
Verifying cksum on file DirectorCommonAgent__1_6.3.5.0.bff
Verifying cksum on file DirectorPlatformAgent__1_6.3.5.0.bff
Verifying cksum on file U855722.bff
Verifying cksum on file U855723.bff
...snip...
Verifying cksum on file xlsmp.msg.ja_JP.rte__2_4.1.2.0.bff
Verifying cksum on file xlsmp.msg.zh_CN.rte__3_4.1.2.0.bff
Verifying cksum on file xlsmp.rte__1_4.1.2.0.bff

All VIOS update files verified correctly.
$

Scenario 3 Recommendation

Check sum fails for one or more PTFs.  In this scenario, the failure is against /home/padmin/viosfix22610/U878391.bff, where /home/padmin/viosfix22610 is the source directory containing 2.2.6.10:

$ ck_sum.bff /home/padmin/viosfix22610
ERROR:  cksum failure on U878391.bff.                                  
(Expected=c9219ed3485336c951c90455290bb721576b35a2d8e254fe68f3db05da5aec23
Actual=1c413e8308ef9203f87fba1dc55953591495b95320bcb2f0cd2441be1e7735c7)
 
RECOMMENDATION

The "chsum failure" error indicates the file size of U878391.bff is not the expected value.
Redownload the file from Fix Central. Then redo the check sum verification again.
To get the VIOS Service Pack by files, go to Fix Central.
> change Download options to Download using your browser (HTTPS)
Ensure to do binary transfer.

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSPHKW","label":"PowerVM Virtual I\/O Server"},"ARM Category":[{"code":"a8m50000000L0KIAA0","label":"PowerVM VIOS-\u003EUPDATES\/FIXES"}],"ARM Case Number":"TS003935711","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
22 July 2020

UID

isg3T1019834