星期六, 四月 28, 2007

redhat下安装veritas master server实录

Last login: Tue Feb 28 14:25:01 2006 from 10.98.19.34
[root@gddb1 ~]# Last login: Tue Feb 28 15:36:12 2006 from 10.98.19.210
[root@mstsvr ~]# su - oracle
[oracle@mstsvr ~]$ vncserver

New 'mstsvr:3 (oracle)' desktop is mstsvr:3

Starting applications specified in /home/oracle/.vnc/xstartup
Log file is /home/oracle/.vnc/mstsvr:3.log
[oracle@mstsvr ~]$ cd /temp

[root@mstsvr tmp]# ./orainstRoot.sh
Creating Oracle Inventory pointer file (/etc/oraInst.loc)
Changing groupname of /u01/oracle/oraInventory to dba.
[root@mstsvr tmp]# cd /u01/oracle/ora920/
[root@mstsvr ora920]# ./root.sh
Running Oracle9 root.sh script...
\nThe following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/oracle/ora920

Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...

\nCreating /etc/oratab file...
Adding entry to /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
[root@mstsvr ora920]# vncserver -kill :1

Can't find file /root/.vnc/mstsvr:1.pid
You'll have to kill the Xvnc process manually

[root@mstsvr ora920]# vncserver -kill :12

Can't find file /root/.vnc/mstsvr:2.pid
You'll have to kill the Xvnc process manually

[root@mstsvr ora920]# cd /orasetup/
[root@mstsvr orasetup]# cd Disk1/
[root@mstsvr Disk1]# cd /u01/orqacle/ora920/
[root@mstsvr ora920]# ./root.sh
Running Oracle9 root.sh script...
\nThe following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/oracle/ora920

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:

Adding entry to /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
[root@mstsvr ora920]# ./root.sh
Running Oracle9 root.sh script...
\nThe following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/oracle/ora920

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying coraenv to /usr/local/bin ...

Adding entry to /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
[root@mstsvr ora920]# cd /data
[root@mstsvr data]# ll
_[00mtotal 16
drwx------ 2 root root 16384 Feb 22 22:06 _[01;34mlost+found_[00m
[root@mstsvr data]# ll
_[00mtotal 16
drwx------ 2 root root 16384 Feb 22 22:06 _[01;34mlost+found_[00m
[m[root@mstsvr data]# mkdir rman
[root@mstsvr data]# cdcd /u01/oracle/admin/prman/pfile/
[root@mstsvr pfile]# cd /home/oracle/9.2.0.4/rdbms/lib
-bash: cd: /home/oracle/9.2.0.4/rdbms/lib: No such file or directory
[root@mstsvr pfile]# cd /home/oracle/9.2.0.4/rdbms/lib___________
[root@mstsvr pfile]# cd /home/oracle/9.2.0.4_/rdbms/lib____________/rdbms/lib____________/rdbms/lib____________/rdbms/lib____________/rdbms/lib____________/rdbms/lib____________/rdbms/lib___________o/rdbms/lib__________r/rdbms/lib__________a/rdbms/lib__________9/rdbms/lib__________`/rdbms/lib___________/rdbms/lib___________*/rdbms/lib__________
-bash: cd: /home/oracle/ora9*/rdbms/lib: No such file or directory
[root@mstsvr pfile]# cd /home/oracle/ora9*/rdbms/libu01/oracle/ora920/rdbms/lib
[root@mstsvr lib]# su - oracle
[oracle@mstsvr ~]$ su
Password:
[root@mstsvr oracle]# cd /u01/oracle/ora920/drdbms/lib
[root@mstsvr lib]# ehcho $ORACLE_BASE
/u01/oracle
[root@mstsvr lib]# echo $ORACLE_BASEHOME
/u01/oracle/ora920
[root@mstsvr lib]# echo $ORACLE_HOMESID
rman
[root@mstsvr lib]# genksms -s 0x15000000 > ksms.s
[root@mstsvr lib]# exit
exit
[oracle@mstsvr ~]$ cd /u01/oracle/ora920/rdbms/lib
[oracle@mstsvr lib]$ make -f ins_rdbms.mk ksms.o
[oracle@mstsvr lib]$ make -f ins_rdbms.mk ioracle
- Linking Oracle
rm -f /u01/oracle/ora920/rdbms/lib/oracle
gcc -o /u01/oracle/ora920/rdbms/lib/oracle -L/u01/oracle/ora920/rdbms/lib/ -L/u01/oracle/ora920/lib/ -L/u01/oracle/ora920/lib/stubs/ -Wl,-E `test -f /u01/oracle/ora920/rdbms/lib/skgaioi.o && echo /u01/oracle/ora920/rdbms/lib/skgaioi.o` /u01/oracle/ora920/rdbms/lib/opimai.o /u01/oracle/ora920/rdbms/lib/ssoraed.o /u01/oracle/ora920/rdbms/lib/ttcsoi.o /u01/oracle/ora920/lib/nautab.o /u01/oracle/ora920/lib/naeet.o /u01/oracle/ora920/lib/naect.o /u01/oracle/ora920/lib/naedhs.o /u01/oracle/ora920/rdbms/lib/config.o -lserver9 -lodm9 -lskgxp9 -lskgxn9 -lclient9 -lvsn9 -lwtcserver9 -lcommon9 -lgeneric9 /u01/oracle/ora920/rdbms/lib/defopt.o -lknlopt `if /usr/bin/ar tv /u01/oracle/ora920/rdbms/lib/libknlopt.a grep xsyeolap.o > /dev/null 2>&1 ; then echo "-loraolap9" ; fi` -lslax9 -lpls9 -lplp9 -lserver9 -lclient9 -lvsn9 -lwtcserver9 -lcommon9 -lgeneric9 -lknlopt -lslax9 -lpls9 -lplp9 -ljox9 -lserver9 -locijdbcst9 -lwwg9 `cat /u01/oracle/ora920/lib/ldflags` -lnsslb9 -lncrypt9 -lnsgr9 -lnzjs9 -ln9 -lnl9 -lnro9 `cat /u01/oracle/ora920/lib/ldflags` -lnsslb9 -lncrypt9 -lnsgr9 -lnzjs9 -ln9 -lnl9 -lmm -lnls9 -lcore9 -lnls9 -lcore9 -lnls9 -lxml9 -lcore9 -lunls9 -lnls9 `cat /u01/oracle/ora920/lib/ldflags` -lnsslb9 -lncrypt9 -lnsgr9 -lnzjs9 -ln9 -lnl9 -lnro9 `cat /u01/oracle/ora920/lib/ldflags` -lnsslb9 -lncrypt9 -lnsgr9 -lnzjs9 -ln9 -lnl9 -ltrace9 -lnls9 -lcore9 -lnls9 -lcore9 -lnls9 -lxml9 -lcore9 -lunls9 -lnls9 `if /usr/bin/ar tv /u01/oracle/ora920/rdbms/lib/libknlopt.a grep "kxmnsd.o" > /dev/null 2>&1 ; then echo " " ; else echo "-lordsdo9"; fi` -lctxc9 -lctx9 -lzx9 -lgx9 -lctx9 -lzx9 -lgx9 -lordimt9 -lnls9 -lcore9 -lnls9 -lcore9 -lnls9 -lxml9 -lcore9 -lunls9 -lnls9 -lsnls9 -lunls9 -lxsd9 -lnls9 -lcore9 -lnls9 -lcore9 -lnls9 -lxml9 -lcore9 -lunls9 -lnls9 `cat /u01/oracle/ora920/lib/sysliblist` -Wl,-rpath,/u01/oracle/ora920/lib:/lib/i686:/lib:/usr/lib -lm `cat /u01/oracle/ora920/lib/sysliblist` -ldl -lm `test -f /u01/oracle/ora920/rdbms/lib/skgaioi.o && echo -laio`
mv -f /u01/oracle/ora920/bin/oracle /u01/oracle/ora920/bin/oracleO
mv /u01/oracle/ora920/rdbms/lib/oracle /u01/oracle/ora920/bin/oracle
chmod 6751 /u01/oracle/ora920/bin/oracle
[oracle@mstsvr lib]$ exit
logout
[root@mstsvr lib]# cd /data
[root@mstsvr data]# ll
_[00mtotal 24
drwx------ 2 root root 16384 Feb 22 22:06 _[01;34mlost+found_[00m
drwxr-xr-x 2 root root 4096 Feb 28 16:01 _[01;34mrman_[00m
[root@mstsvr data]# chown -R oracle.dba rman
[root@mstsvr data]# cd rman
[root@mstsvr rman]# ll
_[00mtotal 0
[root@mstsvr rman]# mkdir archive
[root@mstsvr rman]# chown -R oracle.dba rman
[root@mstsvr rman]# ll
_[00mtotal 8
drwxr-xr-x 2 oracle dba 4096 Feb 28 16:06 _[01;34marchive_[00m
[root@mstsvr rman]# cd ..
[root@mstsvr data]# ll
_[00mtotal 24
drwx------ 2 root root 16384 Feb 22 22:06 _[01;34mlost+found_[00m
drwxr-xr-x 3 oracle dba 4096 Feb 28 16:06 _[01;34mrman_[00m
[root@mstsvr pfile]# su - oracle

[oracle@mstsvr ~]$ orapwd file=/u01/oracle/ora920/dbs/orapwrman entries=10 password=sys$^^^mstsvr
[oracle@mstsvr ~]$ sqlplus /nolog

SQL*Plus: Release 9.2.0.7.0 - Production on Tue Feb 28 16:09:29 2006

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

SQL> conn / as sysdba;
Connected to an idle instance.
SQL> startup pfile='/u01/oracle/admin/rman/pfile/init.ora' nomount;
SQL> CREATE DATABASE rman
2 LOGFILE
3 GROUP 1 ('/data/rman/log01_01.log') SIZE 50M,
4 GROUP 2 ('/data/rman/log02_01.log') SIZE 50M,
5 GROUP 3 ('/data/rman/log03_01.log') SIZE 50M,
6 GROUP 4 ('/data/rman/log04_01.log') SIZE 50M,
7 GROUP 5 ('/data/rman/log05_01.log') SIZE 50M
8 DATAFILE '/data/rman/system01.dbf' SIZE 300M
9 AUTOEXTEND ON NEXT 10M MAXSIZE 32767M
10 extent management local
11 DEFAULT TEMPORARY TABLESPACE temp
12 TEMPFILE '/data/rman/temp01.dbf' SIZE 1000M
13 AUTOEXTEND ON NEXT 10M MAXSIZE 32767M
14 UNDO TABLESPACE UNDOTBS1
15 datafile '/data/rman/undotbs01.dbf' SIZE 2000M
16 AUTOEXTEND ON NEXT 10M MAXSIZE 32767M
17 CHARACTER SET ZHS16GBK
18 NATIONAL CHARACTER SET AL16UTF16
19 ;

Database created.

SQL> @$ORACLE_HOME/rdbms/admin/catalog.sql
SQL> @$ORACLE_HOME/rdbms/admin/catclust.sql
SQL> alter user system identified by system;
User altered.
SQL> conn system/system
Connected.
SQL> @?/sqlplus/admin/pupbld.sql
SQL> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production

[oracle@mstsvr ~]$ sqlplus /nolog
SQL> conn / as sysdba;
Connected.
SQL> create spfile from pfile='/u01/oracle/ora920/admin/rman/pfile/init.ora';
File created.
SQL> shutdown immediate;
SQL> startup
SQL> alter system set log_archive_format='arch_%t_%s.arc' scope=spfile;
System altered.
SQL> alter system set log_archive_dest_1='location=/data/rman/archive';
System altered.
SQL> alter system set log_archive_start=ture scope=spfile;
System altered.
SQL> shutdow immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
SQL> alter database archivelog;
Database altered.
SQL> alter database open;
Database altered.
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /data/rman/archive
Oldest online log sequence 2
Next log sequence to archive 6
Current log sequence 6
SQL> alter system archive log current;
System altered.
SQL> alter system switch logfile;
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL> host
[oracle@mstsvr ~]$ vncserver

New 'mstsvr:1 (oracle)' desktop is mstsvr:1

Starting applications specified in /home/oracle/.vnc/xstartup
Log file is /home/oracle/.vnc/mstsvr:1.log

[oracle@mstsvr ~]$ lsnrctl

LSNRCTL for Linux: Version 9.2.0.7.0 - Production on 28-FEB-2006 16:31:01

Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.

Welcome to LSNRCTL, type "help" for information.

LSNRCTL> status
LSNRCTL> stop
LSNRCTL> start
LSNRCTL> exit
[[oracle@mstsvr ~]$ lsnrctl

LSNRCTL for Linux: Version 9.2.0.7.0 - Production on 28-FEB-2006 16:34:21

Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.

Welcome to LSNRCTL, type "help" for information.

LSNRCTL> stop
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mstsvr)(PORT=1521)))
The command completed successfully
LSNRCTL> start
LSNRCTL> status
LSNRCTL> exit
[oracle@mstsvr ~]$ exit
exit
SQL> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production
[oracle@mstsvr ~]$ exit

[root@mstsvr pfile]# ./getcd
[root@mstsvr ~]# ./getwwn.sh

3600015d00004d30000000000000007a1 /dev/sda
3600015d00004d30000000000000007a1 /dev/sdd
3600015d000055c0000000000000009ca /dev/sdb
3600015d000055c0000000000000009ca /dev/sde
3600c0ff0000000000923b917215b6105 /dev/sdc
3600c0ff0000000000923b917215b6105 /dev/sdf

[root@mstsvr /]# mkdir md1
[root@mstsvr /]# mkdir md1
[root@mstsvr /]# mkdir md2
[root@mstsvr ~]# ./getwwn.sh

3600015d00004d30000000000000007a1 /dev/sda
3600015d00004d30000000000000007a1 /dev/sdd
3600015d000055c0000000000000009ca /dev/sdb
3600015d000055c0000000000000009ca /dev/sde
3600c0ff0000000000923b917215b6105 /dev/sdc
3600c0ff0000000000923b917215b6105 /dev/sdf
[root@mstsvr ~]# mdadm -C /dev/md1 -l multipath -n2 /dev/sd1 /dev/sda1 /dev/sdd1
mdadm: /dev/sda1 appears to contain an ext2fs file system
size=209712384K mtime=Thu Jan 1 07:00:00 1970
mdadm: /dev/sda1 appears to be part of a raid array:
level=-4 devices=2 ctime=Tue Feb 28 09:26:08 2006
mdadm: /dev/sdd1 appears to contain an ext2fs file system
size=209712384K mtime=Thu Jan 1 07:00:00 1970
mdadm: /dev/sdd1 appears to be part of a raid array:
level=-4 devices=2 ctime=Tue Feb 28 09:26:08 2006
Continue creating array? y
mdadm: array /dev/md1 started.
[root@mstsvr ~]# mount /dev/md1 /md1

[root@mstsvr md1]# mdamd -D /dev/md1
-bash: mdamd: command not found
[root@mstsvr md1]# mdamd -D /dev/md1
/dev/md1:
Version : 00.90.01
Creation Time : Tue Feb 28 16:46:15 2006
Raid Level : multipath
Array Size : 209712384 (199.100 GiB 214.75 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 1
Persistence : Superblock is persistent

Update Time : Tue Feb 28 16:46:15 2006
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0


Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 8 49 1 active sync /dev/sdd1
UUID : 0160bc6d:b89cad5e:f5b27cb6:a6963aa2
Events : 0.1
[root@mstsvr md1]# su - oracle
[oracle@mstsvr ~]$ sqlplus /nolog

SQL*Plus: Release 9.2.0.7.0 - Production on Tue Feb 28 16:47:15 2006

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

SQL> conn / as sysdba;
Connected.
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production
[oracle@mstsvr ~]$ vi /etc/fstab
[root@mstsvr data]# cp -r rman/ /md1
[root@mstsvr data]# cd /md1
[root@mstsvr md1]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p1 20641788 10515288 9077860 54% /
/dev/cciss/c0d0p5 94545132 2726052 87016452 4% /data
none 2075220 0 2075220 0% /dev/shm
/dev/cciss/c0d0p2 90709056 2642888 83458328 4% /u01
/dev/md1 206421944 2726048 193210280 2% /md1
[root@mstsvr md1]# umount /data
[root@mstsvr md1]# cd /
[root@mstsvr /]# mount /dev/md1 /data
[root@mstsvr /]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p1 20641788 10515284 9077864 54% /
none 2075220 0 2075220 0% /dev/shm
/dev/cciss/c0d0p2 90709056 2642888 83458328 4% /u01
/dev/md1 206421944 2726048 193210280 2% /md1
/dev/md1 206421944 2726048 193210280 2% /data
[root@mstsvr /]# umonumount /md1
[root@mstsvr /]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p1 20641788 10515284 9077864 54% /
none 2075220 0 2075220 0% /dev/shm
/dev/cciss/c0d0p2 90709056 2642888 83458328 4% /u01
/dev/md1 206421944 2726048 193210280 2% /data
[root@mstsvr /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p1 20G 11G 8.7G 54% /
none 2.0G 0 2.0G 0% /dev/shm
/dev/cciss/c0d0p2 87G 2.6G 80G 4% /u01
/dev/md1 197G 2.6G 185G 2% /data
[root@mstsvr /]# cd /data
[root@mstsvr data]# chown -R oracle.dba rman/
[root@mstsvr data]# cd rman/
[root@mstsvr rman]# cd archive/

[root@mstsvr archive]# cd ..
[root@mstsvr ~]# su - oracle
[oracle@mstsvr ~]$ sqlplus /nolog

SQL*Plus: Release 9.2.0.7.0 - Production on Tue Feb 28 16:55:51 2006

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> conn / as sysdba;
Connected to an idle instance.
SQL> startup
SQL> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production

[oracle@mstsvr ~]$ lsnrctl

LSNRCTL for Linux: Version 9.2.0.7.0 - Production on 28-FEB-2006 16:56:25

Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.

Welcome to LSNRCTL, type "help" for information.

LSNRCTL> status
LSNRCTL> start
LSNRCTL> exit
[oracle@mstsvr ~]$ sqlplus /nolog
SQL*Plus: Release 9.2.0.7.0 - Production on Tue Feb 28 16:56:42 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

SQL> conn / as sysdba;
Connected.
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /data/rman/archive
Oldest online log sequence 7
Next log sequence to archive 11
Current log sequence 11
SQL> alter system switch logfile;
System altered.
SQL> alter system archive log current;
System altered.
SQL> archive log list;
[root@mstsvr bdump]# ./getwwn.sh _____________ll_su - oracle
[oracle@mstsvr ~]$ sqlplus /nolog
SQL*Plus: Release 9.2.0.7.0 - Production on Tue Feb 28 17:06:15 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> conn / as sysdba;
Connected.
SQL> alter system switch logfile;
System altered.
SQL> /
System altered.

SQL> /
System altered.

SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /data/rman/archive
Oldest online log sequence 12
Next log sequence to archive 16
Current log sequence 16
SQL> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production
[oracle@mstsvr ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p1 20G 11G 8.7G 54% /
none 2.0G 0 2.0G 0% /dev/shm
/dev/cciss/c0d0p2 87G 2.6G 80G 4% /u01
/dev/md1 197G 2.6G 185G 2% /data
[oracle@mstsvr ~]$ exit
logout
[root@mstsvr bdump]# cd /
[root@mstsvr /]# cd veritas-soft/

[root@mstsvr veritas-soft]# mount -o loop NB51_Linux_05_11.iso /veritas
[root@mstsvr veritas-soft]# cd /veritas
[root@mstsvr veritas]# ll
_[00mtotal 20
drwxr-xr-x 2 root daemon 2048 May 12 2004 _[01;34mDoc_[00m
-r-x------ 1 root daemon 13655 May 12 2004 _[01;32minstall_[00m
dr-x------ 4 root daemon 2048 May 12 2004 _[01;34mlinux_[00m
drwxr-xr-x 4 root daemon 2048 May 12 2004 _[01;34mNBClients_[00m
[root@mstsvr veritas]# ./install

VERITAS Installation Script
Copyright 1993 - 2004 VERITAS Software Corporation, All Rights Reserved.

Installation Options

1 NetBackup
2 NetBackup Client Software

q To quit from this script
Choose an option [default: q]: 1

The NetBackup and Media Manager software is built for use on LINUX hardware.

NetBackup is currently at release level 5.1.
This package will install release level 5.1.

No server update is needed.
Do you want to install NetBackup and Media Manager? [y,n] (y) y
NetBackup and Media Manager will be updated to release level 5.1.

The Linux clients will be loaded.
Do you want to load any other NetBackup clients onto the server? [y,n] (y) y

Choose the Platform Client Options you wish to install.

Linux must be installed

Platform Client Options
-----------------------
1. ALPHA
2. HP9000
3. HP-UX-IA64
4. INTEL
5. Linux
6. Linux-IA64
7. MACINTOSH
8. RS6000
9. SCO
10. SGI
11. Solaris
12. All UNIX client platforms
q. quit selecting

Linux
Enter Choice(s) [1 - 12] 5
Linux Linux
Enter Choice(s) [1 - 12] q

You have chosen to install:
Linux
Is this the list you wish to use? [y,n] (y) y

Reading client binaries for /usr/openv/netbackup/client/Linux
Linux/
.............................
usr/openv/volmgr/bin/tpreq
usr/openv/volmgr/bin/tpunmount
usr/openv/volmgr/bin/tpclean
Installing NB-Java.
/bin/tar: Read 8192 bytes from -
+ /bin/cp ./nbj.conf /usr/openv/java
+ /bin/cp ./fsanalyze /usr/openv/netbackup/bin/fsanalyze

NetBackup Enterprise Server is the active NetBackup.
Do you want to continue the installation
with the current active NetBackup license key? [y,n] (y) y

All additional keys should be added at this time.
Do you want to add additional license keys now? [y,n] (y) DRXL-4XZW-P6NC-NCXN-PNPR-C6PR-6P4O-4P6R-3P

Do you want to add additional license keys now? [y,n] (y) N
License Key Utility
-------------------

A) Add a License Key
D) Delete a License Key
F) List Active License Keys
L) List Registered License Keys
H) Help
q) Quit License Key Utility

Enter a letter: q

Installing NetBackup Enterprise Server version: 5.1


If this machine will be using a different network interface than the
default (mstsvr), the name of the preferred interface should be used
as the configured server name. If this machine will be part of a
cluster, the virtual name should be used as the configured server name.

The domainname of your server appears to be "(none)".
You may choose to use this domainname in your configured NetBackup server
name, or simply use "mstsvr" as the configured NetBackup server name.

Would you like to use "mstsvr.(none)" as the configured
name of the NetBackup server? [y,n] (y) n

Enter the name of the NetBackup server: mstsvr

Is mstsvr the master server? [y,n] (y) y
Do you have any media servers? [y,n] (n) n

Linking /usr/lib/X11/app-defaults/XNB --> /usr/openv/netbackup/bin/XNB


Checking /etc/services for the needed NetBackup and Media Manager services.

Copying original /etc/services file to /etc/services.NBU_022806.17:28:51
Editing /etc/services to update NetBackup and Media Manager services.

/etc/services will be updated to add the following entries for NetBackup/Media Manager.

bpjobd 13723/tcp bpjobd
nbdbd 13784/tcp nbdbd
visd 9284/tcp visd
vmd 13701/tcp vmd
acsd 13702/tcp acsd
tl8cd 13705/tcp tl8cd
tldcd 13711/tcp tldcd
ts8d 13709/tcp ts8d
odld 13706/tcp odld
tl4d 13713/tcp tl4d
tsdd 13714/tcp tsdd
tshd 13715/tcp tshd
tlmd 13716/tcp tlmd
tlhcd 13717/tcp tlhcd
lmfcd 13718/tcp lmfcd
rsmd 13719/tcp rsmd

To change these entries modify the file /tmp/services.ov_edited.26921
and enter when ready to continue:

/etc/services has been updated to contain NetBackup and Media Manager services.

WARNING: ypwhich: can't get local yp domain: Local domain name not set

WARNING: ypcat: can't get local yp domain: Local domain name not set

Sending SIGHUP to xinetd process.

Reloading configuration: _[60G[ _[0;32mOK_[0;39m ]

To make NetBackup start up automatically when
the system is restarted, the netbackup script found in
/usr/openv/netbackup/bin/goodies has been placed in /etc/rc.d/init.d,
with links to it placed in the /etc/rc.d/rc2.d directory.


To make NetBackup start up automatically when
the system is restarted, the netbackup script found in
/usr/openv/netbackup/bin/goodies has been placed in /etc/rc.d/init.d,
with links to it placed in the /etc/rc.d/rc3.d directory.


To make NetBackup start up automatically when
the system is restarted, the netbackup script found in
/usr/openv/netbackup/bin/goodies has been placed in /etc/rc.d/init.d,
with links to it placed in the /etc/rc.d/rc5.d directory.


To make NetBackup shut down automatically when
the system is restarted, the netbackup script found in
/usr/openv/netbackup/bin/goodies has been placed in /etc/rc.d/init.d,
with links to it placed in the /etc/rc.d/rc0.d directory.


To make NetBackup shut down automatically when
the system is restarted, the netbackup script found in
/usr/openv/netbackup/bin/goodies has been placed in /etc/rc.d/init.d,
with links to it placed in the /etc/rc.d/rc6.d directory.



In order for device discovery and auto-configuration to work properly in a
NetBackup Enterprise environment, particularly where peripherals are
connected to multiple servers, one host must serve as the repository for
global device database information.

Enter which host will store the global device database.
(default: mstsvr): mstsvr

Starting the NetBackup database manager process (bpdbm).

Do you want to create policy and schedule examples that you can view or use
when you are configuring your own policies and schedules? [y,n] (y) y
... creating policy template_normal
... creating schedules for policy template_normal
... creating policy template_weekend
... creating schedules for policy template_weekend
Done creating example policies and schedules.
Creating Directive Set for LotusNotes
Creating Directive Set for MS_Exchange_5.x
Creating Directive Set for MS_Exchange_Mailbox
Creating Directive Set for MS_Exchange_2000
Creating Directive Set for MS_Exchange_SRS
Creating Directive Set for MS_Exchange_Public_Folders
Creating Directive Set for MS_Exchange_KMS
Creating Directive Set for MS_SharePoint_Server
Creating Directive Set for MS_SharePoint_Workspaces
Creating Template Set for Oracle_RMAN
Creating Template Set for Oracle_XML_Export
Creating Template Set for DB2
Creating Directive Set for Windows2000
Creating Directive Set for Windows2003


Policy conversion summary:
Number of original policies: 2
Number of non-snapshot policies skipped: 2
Number of policies not needing conversion: 0
Number of policies converted to
'auto' snapshot method: 0
Number of policies converted: 0
Number of new policies created due to
multiple clients in a policy that had
different snapshot method configurations: 0


Do you want to start the Media Manager device daemon processes? [y,n] (y) y
Starting the Media Manager device daemon processes.

Do you want to start the NetBackup bprd process so
backups and restores can be initiated? [y,n] (y) y
Starting the NetBackup request daemon process (bprd).


Done executing NB.inst


VERITAS Installation Script
Copyright 1993 - 2004 VERITAS Software Corporation, All Rights Reserved.

Installation Options

1 NetBackup
2 NetBackup Client Software

q To quit from this script
Choose an option [default: q]: q

A trace of the install can be found in /tmp/install_trace.25651
That file can be deleted after you are sure the install was successful.
artup programs

PATH=$PATH:$HOME/bin:/usr/openv/netbackup/bin:/usr/openv/netbackup/bin/admincmd:/usr/openv/netbackup/bin/goodies:/usr/openv/volmgr/bin

export PATH
unset USERNAME
[root@mstsvr ~]# bpp
bppficorr bpplconvert bpplinclude bppllist bpplschedrep bpplvalid bpps
bpplclients bppldelete bpplinfo bpplsched bpplschedwin bppolicynew
[root@mstsvr ~]# bppq
bppficorr bpplconvert bpplinclude bppllist bpplschedrep bpplvalid bpps
bpplclients bppldelete bpplinfo bpplsched bpplschedwin bppolicynew
[root@mstsvr ~]# bpps -a
NB Processes
------------
root 27083 1 0 17:29 ? 00:00:00 /usr/openv/netbackup/bin/bpdbm
root 27357 1 0 17:29 ? 00:00:00 /usr/openv/netbackup/bin/bprd
root 27085 27083 0 17:29 ? 00:00:00 /usr/openv/netbackup/bin/bpjobd


MM Processes
------------
root 27063 1 0 17:28 ? 00:00:00 /usr/openv/volmgr/bin/vmd
[root@mstsvr ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p1 20641788 10774332 8818816 55% /
none 2075220 0 2075220 0% /dev/shm
/dev/cciss/c0d0p2 90709056 2642920 83458296 4% /u01
/dev/md1 206421944 2726124 193210204 2% /data
/veritas-soft/NB51_Linux_05_11.iso
587628 587628 0 100% /veritas
[root@mstsvr ~]# umount v/veritas
[root@mstsvr ~]# ll
_[00mtotal 112
-rw-r--r-- 1 root root 1333 Feb 22 14:29 _[00manaconda-ks.cfg_[00m
drwxr-xr-x 2 root root 4096 Feb 22 14:42 _[01;34mDesktop_[00m
-rwxr-xr-x 1 root root 593 Feb 27 11:05 _[01;32mgetwwn.sh_[00m
-rw-r--r-- 1 root root 53792 Feb 22 14:29 _[00minstall.log_[00m
-rw-r--r-- 1 root root 9252 Feb 22 14:29 _[00minstall.log.syslog_[00m
-rw-r--r-- 1 root root 523 Feb 28 16:45 _[00mwwn_[00m
[root@mstsvr ~]# cd /veritas
veritas/ veritas-soft/
[root@mstsvr ~]# cd /veritas-soft/
[root@mstsvr veritas-soft]# ll
_[00mtotal 953012
drwxr-xr-x 2 root root 4096 Feb 28 14:40 _[01;34mmp4_[00m
-rw-r--r-- 1 root root 602075136 Feb 28 14:41 _[00mNB51_Linux_05_11.iso_[00m
-rw-r--r-- 1 root root 372830208 Feb 28 14:41 _[00mNB51_UOption_051.iso_[00m
[root@mstsvr veritas-soft]# cd ..
[root@mstsvr veritas-soft]# cd mp4
[root@mstsvr mp4]# ./Vrts_pack.install
There are 3 packs available in /veritas-soft/mp4:
(* denotes installed pack)

NB_51_4_M
NB_CLT_51_4_M
NB_ORA_51_4_M

Enter pack name (or q) [q]: NB_51_4_M



Pack NB_51_4_M requires the following pack levels(s) :
NB_CLT_51_4_M.

Pack NB_51_4_M will not be installed at this time.

Installing required pack, NB_CLT_51_4_M, now.


Pack NB_CLT_51_4_M co-requires the following pack level(s) :
NB_51_4_M.

Install pack NB_CLT_51_4_M Tue Feb 28 17:40:25 CST 2006 Rev. 1.19.4.23
Can not install pack when NetBackup daemons are running.
Do you want to kill all NetBackup daemons? (y/n) [n] y

Looking for NetBackup processes that need to be terminated.
Suspending or cancelling jobs...
Stopping bprd...
Stopping bpdbm...

Looking for Media Manager processes that need to be terminated.
Stopping vmd...
Pack install will continue.

Performing install of Linux/RedHat2.4 client binaries locally.

Running preinstall script.


Running postinstall script.
See /usr/openv/pack/pack.history for more details.
/veritas-soft/mp4/VrtsNB_CLT_51_4_M.postinstall: Running. Hardware/OS Type=Linux/RedHat2.4
/veritas-soft/mp4/VrtsNB_CLT_51_4_M.postinstall: Installing Linux/RedHat2.4 client binaries locally.
...............................
------------------------------------------------
Installation of pack NB_CLT_51_4_M completed Tue Feb 28 17:40:25 CST 2006 Rev. 1.19.4.23.
------------------------------------------------
Installing required pack, NB_51_4_M, now.


Install pack NB_51_4_M Tue Feb 28 17:40:25 CST 2006 Rev. 1.19.4.23


Running preinstall script.
See /usr/openv/pack/pack.history for more details.
/veritas-soft/mp4/VrtsNB_51_4_M.preinstall: Running. Hardware/OS Type=Linux/RedHat2.4

Saving pre-existing binaries.
Saved binaries successfully.

Extracting files out of /veritas-soft/mp4/VrtsNB_51_4_M.linux.tar.Z.


Tar extraction successful.
See /usr/openv/pack/pack.history for more details.

Running postinstall script.
See /usr/openv/pack/pack.history for more details.
/veritas-soft/mp4/VrtsNB_51_4_M.postinstall: Running. Hardware/OS Type=Linux/RedHat2.4
------------------------------------------------
Installation of pack NB_51_4_M completed Tue Feb 28 17:40:25 CST 2006 Rev. 1.19.4.23.
------------------------------------------------

There are 3 packs available in /veritas-soft/mp4:
(* denotes installed pack)

NB_51_4_M *
NB_CLT_51_4_M *
NB_ORA_51_4_M

Enter pack name (or q) [q]: q

[root@mstsvr mp4]# bpps -a
NB Processes
------------
root 29790 1 0 17:43 pts/4 00:00:00 /usr/openv/netbackup/bin/bprd
root 29803 1 0 17:43 pts/4 00:00:00 /usr/openv/netbackup/bin/bpdbm
root 29829 29803 0 17:43 pts/4 00:00:00 /usr/openv/netbackup/bin/bpjobd


MM Processes
------------
root 29786 1 0 17:43 pts/4 00:00:00 vmd

[root@mstsvr mp4]# service netbackup stop
stopping the NetBackup request daemon
stopping the NetBackup database daemon
stopping the Media Manager volume daemon
[root@mstsvr mp4]# service netbackup stopart
Rebuilding device nodes.
Media Manager daemons started.
NetBackup request daemon started.

No Entries in the Drive Database
[root@mstsvr mp4]# bpps -a
NB Processes
------------
root 30217 1 0 17:53 pts/4 00:00:00 /usr/openv/netbackup/bin/bprd
root 30243 1 0 17:53 pts/4 00:00:00 /usr/openv/netbackup/bin/bpdbm
root 30258 30243 0 17:53 pts/4 00:00:00 /usr/openv/netbackup/bin/bpjobd


MM Processes
------------
root 30213 1 0 17:53 pts/4 00:00:00 vmd

[root@mstsvr mp4]# service netbackup start

stopping the NetBackup request daemon
stopping the NetBackup database daemon
stopping the Media Manager volume daemon
[root@mstsvr mp4]# service netbackup start
Rebuilding device nodes.
Media Manager daemons started.
NetBackup request daemon started.

No Entries in the Drive Database
[root@mstsvr mp4]# bpps -a
NB Processes
------------
root 31201 1 0 18:11 pts/4 00:00:00 /usr/openv/netbackup/bin/bprd
root 31218 1 0 18:11 pts/4 00:00:00 /usr/openv/netbackup/bin/bpdbm
root 31242 31218 0 18:11 pts/4 00:00:00 /usr/openv/netbackup/bin/bpjobd


MM Processes
------------
root 31198 1 0 18:11 pts/4 00:00:00 vmd
[root@mstsvr mp4]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 mstsvr localhost.localdomain localhost
10.98.26.56 mstsvr
10.98.26.6 gddbsvr1
10.98.26.7 gddbsvr2
10.98.26.8 gdcen
10.98.19.34 datacenter

没有评论: