Chinaunix首页 | 论坛 | 博客
  • 博客访问: 426748
  • 博文数量: 72
  • 博客积分: 2120
  • 博客等级: 大尉
  • 技术积分: 789
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-02 11:21
个人简介

简单

文章分类

全部博文(72)

文章存档

2019年(4)

2018年(2)

2017年(2)

2014年(1)

2011年(6)

2010年(7)

2009年(50)

我的朋友

分类: AIX

2014-08-25 09:28:15



AIX Version 5
Copyright IBM Corporation, 1982, 2008.
login: root
root's Password: 
*******************************************************************************
*                                                                             *
*                                                                             *
*  Welcome to AIX Version 5.3!                                                *
*                                                                             *
*                                                                             *
*  Please see the README file in /usr/lpp/bos for information pertinent to    *
*  this release of the AIX Operating System.                                  *
*                                                                             *
*                                                                             *
*******************************************************************************
3 unsuccessful login attempts since last login.
Last unsuccessful login: Mon Aug 25 08:55:44 BEIST 2014 on /dev/pts/0 from 192.168.23.6
Last login: Mon Aug 25 08:39:10 BEIST 2014 on /dev/pts/0 from 192.168.23.6


# bash
bash-3.2# su - oradev
3004-614 Unable to change directory to "/oracle/DEV".
        You are in "/home/guest" instead.
% exit
% logout
bash-3.2# cd /home/guest
bash-3.2# ls
bash-3.2# pwd
/home/guest
bash-3.2# cd /
bash-3.2# ls
#UNTITLED#           .sdtgui              dev                  nsr                  smit.script
.TTauthority         .sh_history          dev_slic             opt                  smit.transaction
.Xauthority          .vi_history          esa                  orabackup            tftpboot
.bash_history        .wmrc                etc                  oracle               tmp
.bootsequence        TT_DB                fsout.log            proc                 u
.dt                  audit                hacmp                sap                  unix
.dtprofile           bakupora             home                 sapbackup            usr
.java                bin                  lib                  sapinst              var
.odbc.ini            cdrom                lost+found           sapmnt
.profile             clverify_daemon.log  lpp                  sbin
.rhosts              daemon.txt           mnt                  smit.log
bash-3.2# pwd
/
bash-3.2# ls
#UNTITLED#           .sh_history          dev_slic             opt                  smit.transaction
.TTauthority         .vi_history          esa                  orabackup            tftpboot
.Xauthority          .wmrc                etc                  oracle               tmp
.bash_history        TT_DB                fsout.log            proc                 u
.dt                  audit                hacmp                sap                  unix
.dtprofile           bakupora             home                 sapbackup            usr
.java                bin                  lib                  sapinst              var
.odbc.ini            cdrom                lost+found           sapmnt
.profile             clverify_daemon.log  lpp                  sbin
.rhosts              daemon.txt           mnt                  smit.log
.sdtgui              dev                  nsr                  smit.script
bash-3.2# df -g
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4          30.00     25.70   15%   144027     3% /
/dev/hd2          25.00     19.85   21%    61845     2% /usr
/dev/hd9var        5.00      4.86    3%     1069     1% /var
/dev/hd3           5.00      3.72   26%     3386     1% /tmp
/dev/hd1           5.00      5.00    1%       78     1% /home
/proc                 -         -    -         -     -  /proc
/dev/hd10opt       5.00      4.45   11%     3872     1% /opt
/dev/lv00          0.50      0.48    4%       18     1% /var/adm/csd
/dev/fslv19     1500.00   1054.91   30%     3616     1% /sapbackup
bash-3.2# cd /home
bash-3.2# ls
.rhosts     devadm      guest       lost+found  prdadm
bash-3.2# smitty clstart


                                            Start Cluster Services


Type or select values in entry fields.
Press Enter AFTER making all desired changes.


                                                        [Entry Fields]
* Start now, on system restart or both                now                                                   +
  Start Cluster Services on these nodes              [sapdev]                                               +
* Manage Resource Groups                              Automatically                                         +
  BROADCAST message at startup?                       true                                                  +
  Startup Cluster Information Daemon?                 false                                                 +
  Ignore verification errors?                         false                                                 +
  Automatically correct errors found during           Interactively                                         +
  cluster start?




































F1=Help                    lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkF4=List
Esc+5=Reset                x Running command...                                   xEsc+8=Image
Esc+9=Shell                mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
                                                COMMAND STATUS


Command: running       stdout: yes           stderr: no


Before command completion, additional instructions may appear below.


[MORE...3]
Verifying node(s): sapdev against the running node sapprd 




WARNING: Network option "routerevalidate" is set to 0 on the following nodes:
        29]
sapdev: 0513-029 The portmap Subsystem is already active.
sapdev: Multiple instances are not supported.
sapdev: 0513-029 The inetd Subsystem is already active.
sapdev: Multiple instances are not supported.
sapdev:  2367666      -  0:00 syslogd
sapdev: Setting routerevalidate to 1
sapdev: 0513-059 The topsvcs Subsystem has been started. Subsystem PID is 3584184.
sapdev: 0513-059 The grpsvcs Subsystem has been started. Subsystem PID is 3588176.
sapdev: 0513-059 The emsvcs Subsystem has been started. Subsystem PID is 3567830.
sapdev: 0513-059 The emaixos Subsystem has been started. Subsystem PID is 2572302.
sapdev: 0513-059 The gsclvmd Subsystem has been started. Subsystem PID is 3604664.
sapdev: Aug 25 2014 08:58:52 Starting execution of /usr/es/sbin/cluster/etc/rc.cluster
sapdev: with parameters: -boot -N -A -b -C interactive -P cl_rc_cluster
sapdev: 
sapdev: Aug 25 2014 08:59:03 Checking for srcmstr active...
sapdev: Aug 25 2014 08:59:03 complete.
sapdev: Aug 25 2014 08:59:03
sapdev: /usr/es/sbin/cluster/utilities/clstart: called with flags -m -G -b -P cl_rc_cluster -C interactive -B -
A
sapdev: 
sapdev:         Aug 25 2014 08:59:22
sapdev: Completed execution of /usr/es/sbin/cluster/etc/rc.cluster 
sapdev: with parameters: -boot -N -A -b -C interactive -P cl_rc_cluster. 
sapdev: Exit status = 0
sapdev: 






                                                COMMAND STATUS


Command: OK            stdout: yes           stderr: no


Before command completion, additional instructions may appear below.


[TOP]


Verifying Cluster Configuration Prior to Starting Cluster Services.


Verifying node(s): sapdev against the running node sapprd




WARNING: Network option "routerevalidate" is set to 0 on the following nodes:


        sapdev


Starting Corrective Action: cl_resource_set_net_option.
<01> Successfully set network option routerevalidate="1" on node sapdev


WARNING: Application monitors are required for detecting application failures
in order for HACMP to recover from them.  Application monitors are started
by HACMP when the resource group in which they participate is activated.
The following application(s), shown with their associated resource group,
do not have an application monitor configured:


  Application Server                Resource Group
bash-3.2# su - oradev
3004-614 Unable to change directory to "/oracle/DEV".
        You are in "/home/guest" instead.

% exit
% logout
-----尝试mount
bash-3.2# mount /oracle
Replaying log for /dev/fslv18.
mount: 0506-324 Cannot mount /dev/fslv18 on /oracle: The media is not formatted or the format is not correct.
0506-342 The superblock on /dev/fslv18 is dirty.  Run a full fsck to fix.
bash-3.2# fsck /dev/fslv18

The current volume is: /dev/fslv18
Primary superblock is valid.
J2_LOGREDO:log redo processing for /dev/fslv18                      
Primary superblock is valid.
*** Phase 1 - Initial inode scan
*** Phase 2 - Process remaining directories
*** Phase 3 - Process remaining files
*** Phase 4 - Check and repair inode allocation map
*** Phase 5 - Check and repair block allocation map
Block allocation map is corrupt; FIX? 
Block allocation map is corrupt
fsck: 0507-278 Cannot continue.
File system is dirty.
bash-3.2# df -g
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4          30.00     25.70   15%   144036     3% /
/dev/hd2          25.00     19.85   21%    61844     2% /usr
/dev/hd9var        5.00      4.86    3%     1077     1% /var
/dev/hd3           5.00      3.72   26%     3386     1% /tmp
/dev/hd1           5.00      5.00    1%       78     1% /home
/proc                 -         -    -         -     -  /proc
/dev/hd10opt       5.00      4.45   11%     3872     1% /opt
/dev/lv00          0.50      0.48    4%       18     1% /var/adm/csd
/dev/fslv19     1500.00   1054.91   30%     3616     1% /sapbackup
bash-3.2# mount /oracle
Replaying log for /dev/fslv18.
mount: 0506-324 Cannot mount /dev/fslv18 on /oracle: The media is not formatted or the format is not correct.
0506-342 The superblock on /dev/fslv18 is dirty.  Run a full fsck to fix.
bash-3.2# fsck /dev/fslv18
The current volume is: /dev/fslv18
Primary superblock is valid.
J2_LOGREDO:log redo processing for /dev/fslv18                      
Primary superblock is valid.
*** Phase 1 - Initial inode scan
*** Phase 2 - Process remaining directories
*** Phase 3 - Process remaining files
*** Phase 4 - Check and repair inode allocation map
*** Phase 5 - Check and repair block allocation map
Block allocation map is corrupt; FIX? 
Block allocation map is corrupt
fsck: 0507-278 Cannot continue.
File system is dirty.
bash-3.2# fsck -p /oracle

The current volume is: /dev/fslv18
Primary superblock is valid.
J2_LOGREDO:log redo processing for /dev/fslv18                      
Primary superblock is valid.
*** Phase 1 - Initial inode scan
*** Phase 2 - Process remaining directories
*** Phase 3 - Process remaining files
*** Phase 4 - Check and repair inode allocation map
*** Phase 5 - Check and repair block allocation map
Block allocation map is corrupt (FIXED)
Superblock marked dirty because repairs are about to be written.
File system is clean.
Superblock is marked dirty (FIXED)
All observed inconsistencies have been repaired.
bash-3.2# mount /oracle
bash-3.2# df -h
df: Not a recognized flag: h
Usage: df  [-P] | [-IMitv] [-gkm] [-s] [filesystem ...] [file ...]
bash-3.2# df -g
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4          30.00     25.70   15%   144036     3% /
/dev/hd2          25.00     19.85   21%    61844     2% /usr
/dev/hd9var        5.00      4.86    3%     1077     1% /var
/dev/hd3           5.00      3.72   26%     3386     1% /tmp
/dev/hd1           5.00      5.00    1%       78     1% /home
/proc                 -         -    -         -     -  /proc
/dev/hd10opt       5.00      4.45   11%     3872     1% /opt
/dev/lv00          0.50      0.48    4%       18     1% /var/adm/csd
/dev/fslv19     1500.00   1054.91   30%     3616     1% /sapbackup
/dev/fslv18      700.00    129.57   82%    41106     1% /oracle ---------挂载了ORACLE目录

------------------以下是SAP启动的过程
bash-3.2# su - oradev
SAPDEV:oradev 1> sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.4.0 - Production on Mon Aug 25 09:13:25 2014
Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 4412407808 bytes
Fixed Size                  2089768 bytes
Variable Size            2214595800 bytes
Database Buffers         2181038080 bytes
Redo Buffers               14684160 bytes
Database mounted.
Database opened.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Data Mining and Real Application Testing options
SAPDEV:oradev 2> lsnrctl start
LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Production on 25-AUG-2014 09:13:58


Copyright (c) 1991, 2007, Oracle.  All rights reserved.

Starting /oracle/DEV/102_64/bin/tnslsnr: please wait...
TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Production
System parameter file is /oracle/DEV/102_64/network/admin/listener.ora
Log messages written to /oracle/DEV/102_64/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=DEV.WORLD)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=DEV)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=SAPDEV)(PORT=1527)))
Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=DEV.WORLD))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Production
Start Date                25-AUG-2014 09:13:58
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      ON
Listener Parameter File   /oracle/DEV/102_64/network/admin/listener.ora
Listener Log File         /oracle/DEV/102_64/network/log/listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=DEV.WORLD)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=DEV)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=SAPDEV)(PORT=1527)))
Services Summary...
Service "DEV" has 1 instance(s).
  Instance "DEV", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
SAPDEV:oradev 3> exit
SAPDEV:oradev 4> logout
bash-3.2# su - devadm 
SAPDEV:devadm 1> startsap


Checking DEV Database
------------------------------
 Database is running


Starting Startup Agent sapstartsrv
-----------------------------
 Instance Service on host SAPDEV started


Starting SAP Instance DVEBMGS10
------------------------------
 Startup-Log is written to /home/devadm/startsap_DVEBMGS10.log
 Instance on host SAPDEV started


Starting SAP-Collector Daemon 
------------------------------
******************************************************************************
* This is Saposcol Version COLL 20.95 701 - AIX v11.65 5L-64 bit 090119
* Usage:  saposcol -l: Start OS Collector 
*         saposcol -k: Stop  OS Collector 
*         saposcol -d: OS Collector Dialog Mode
*         saposcol -s: OS Collector Status
* Starting collector (create new process)
******************************************************************************

阅读(8275) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~