Upgrade from netbackup 6.5.6 to 7.1 failed with the following error:
***** SQL error: Unable to start specified database: autostarting database failed
SQL Anywhere Unload Utility Version 11.0.1.2468
Connecting and initializing
Database [NBDB] can't be rebuilt.
Unable to create/upgrade the NB database. Refer to the
log file in /usr/openv/netbackup/
logs/nbdb for more
information. Rerun /usr/openv/netbackup/bin/install_bp
when the problem has been resolved.
nbdb log shows the following errors:
16:26:39.819 [14226] <4> startDBServer: Entering.
16:26:39.819 [14226] <4> startDBServer: Running "/usr/openv/netbackup/bin/nbdbms_start_stop" start
16:27:28.117 [14226] <16> NBDBsystem: System call failed with status: 256
16:27:28.117 [14226] <16> startDBServer: "/usr/openv/netbackup/bin/nbdbms_start_stop" start failed.
16:27:28.117 [14226] <4> startDBServer: Exiting. rc = 77
16:27:28.117 [14226] <4> rebuildDBifNecessary: Unable to start the database server. Continuing with rebuild process.
16:27:28.120 [14226] <4> rebuildDBifNecessary: Making a copy of the existing database files in /usr/openv/db/staging
16:27:29.720 [14226] <4> move_dbspaces: Source /usr/openv/db/data/EMM_DATA.db
16:27:29.720 [14226] <4> move_dbspaces: Destination /usr/openv/db/staging/EMM_DATA.db
16:27:29.908 [14226] <4> move_dbspaces: Source /usr/openv/db/data/NBDB.db
16:27:29.908 [14226] <4> move_dbspaces: Destination /usr/openv/db/staging/NBDB.db
16:27:31.295 [14226] <4> move_dbspaces: Source /usr/openv/db/data/EMM_INDEX.db
16:27:31.296 [14226] <4> move_dbspaces: Destination /usr/openv/db/staging/EMM_INDEX.db
16:28:26.117 [14226] <4> move_dbspaces: Source /usr/openv/db/data/NBDB.log
16:28:26.117 [14226] <4> move_dbspaces: Destination /usr/openv/db/staging/NBDB.log
16:28:26.117 [14226] <4> rebuildDBifNecessary: Rebuilding the NetBackup database [NBDB]. This will take some time.
16:28:26.117 [14226] <4> rebuild_db: Entering.
16:28:26.293 [14226] <4> pingDBServer: Entering.
16:28:26.293 [14226] <4> pingDBServer: Running . /usr/openv/db/vxdbms_env.sh && "/usr/openv/db/bin/dbping"
-q -c "ENG=NB_server;LINKS=shmem,tcpip{PORT=13785}"
16:29:09.950 [14226] <16> NBDBsystem: System call failed with status: 256
16:29:09.950 [14226] <16> pingDBServer: Database server [NB_server] not available.
16:29:09.950 [14226] <4> pingDBServer: Exiting. rc = 12
16:29:09.988 [14226] <4> rebuild_db: Running . /usr/openv/db/vxdbms_env.sh && /usr/openv/db/bin/dbunload -ar -c "UID=dba;PWD=******;DBF=/usr/openv/db/data/NBDB.db" -v -o "/usr/openv/db/log/dbunload.NBDB.log"
16:30:28.981 [14226] <16> NBDBsystem: System call failed with status: 256
16:30:28.981 [14226] <16> rebuild_db: Error calling dbunload
16:30:28.981 [14226] <4> rebuild_db: Exiting. rc = 77
16:30:28.981 [14226] <16> rebuildDBifNecessary: Database [NBDB] can't be rebuilt.
16:30:28.982 [14226] <4> rebuildDBifNecessary: Exiting. rc = 77
16:30:28.982 [14226] <4> upgradedb: Exiting with rc = 77
16:30:28.982 [14226] <4> create_nbdb: Exiting with rc = 77
Root cause:
Current DISPLAY environment variable that causes the connection to fail.
Solution:
Luckily the fix to this issue is simply Set DISPLAY to NULL and rerun install.
Do:
$ echo $DISPLAY
localhost:11.0
$ export DISPLAY=""
Then re-run the install_bp script to resume the 7.1 upgrade :
$ /usr/openv/netbackup/bin/install_bp
P.S> If this doesn't work please contact your symantec support before you get your db corrupted.



