剩余课程
课程第59次(2018-11-23星期五)课程第60次(2018-11-24星期六上午)# uname -a
Linux station25.example.com 3.8.13-118.11.2.el6uek.x86_64 #2 SMP Wed Sep 21 11:37:57 PDT 2016 x86_64 x86_64 x86_64 GNU/Linux
# su - grid
$ asmcmd
ASMCMD> lsdg
State Type RebalSectorBlock AUTotal_MBFree_MBReq_mir_free_MBUsable_file_MBOffline_disksVoting_filesName
MOUNTEDNORMALN 512 40961048576 39344 14186 4918 4634 0 YDATA/
MOUNTEDEXTERNN 512 40961048576 14754 5329 0 5329 0 NFRA/
ASMCMD> lsdsk -G data
Path
ORCL:RACDISK1
ORCL:RACDISK2
ORCL:RACDISK3
ORCL:RACDISK4
ORCL:RACDISK5
ORCL:RACDISK6
ORCL:RACDISK7
ORCL:RACDISK8
ASMCMD> lsdsk -G fra
Path
ORCL:RACDISK10
ORCL:RACDISK11
ORCL:RACDISK9
ASMCMD> exit
$ exit
logout
# lsmod | grep oracleasm
oracleasm 535911
# su - gri
su: 用户gri 不存在
# su - grid
\$ asmcmd dsget
parameter:
profile:
$ crsctl stop crs
CRS-4563: Insufficient user privileges.
CRS-4000: Command Stop failed, or completed with errors.
$ exit
logout
# . oraenv
ORACLE_SID = ? +ASM1
The Oracle base has been set to /u01/app/grid
# crsctl stop crs
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'station25'
CRS-2673: Attempting to stop 'ora.crsd' on 'station25'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'station25'
CRS-2673: Attempting to stop 'ora.c02orcl.db' on 'station25'
CRS-2673: Attempting to stop 'ora.mgmtdb' on 'station25'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'station25'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN3.lsnr' on 'station25'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN2.lsnr' on 'station25'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'station25'
CRS-2673: Attempting to stop 'ora.oc4j' on 'station25'
CRS-2673: Attempting to stop 'ora.cvu' on 'station25'
CRS-2677: Stop of 'ora.cvu' on 'station25' succeeded
CRS-2672: Attempting to start 'ora.cvu' on 'station26'
CRS-2676: Start of 'ora.cvu' on 'station26' succeeded
CRS-2677: Stop of 'ora.LISTENER_SCAN2.lsnr' on 'station25' succeeded
CRS-2673: Attempting to stop 'ora.scan2.vip' on 'station25'
CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'station25' succeeded
CRS-2673: Attempting to stop 'ora.scan1.vip' on 'station25'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'station25' succeeded
CRS-2673: Attempting to stop 'ora.station25.vip' on 'station25'
CRS-2677: Stop of 'ora.LISTENER_SCAN3.lsnr' on 'station25' succeeded
CRS-2673: Attempting to stop 'ora.scan3.vip' on 'station25'
CRS-2677: Stop of 'ora.scan2.vip' on 'station25' succeeded
CRS-2672: Attempting to start 'ora.scan2.vip' on 'station26'
CRS-2677: Stop of 'ora.scan3.vip' on 'station25' succeeded
CRS-2672: Attempting to start 'ora.scan3.vip' on 'station26'
CRS-2677: Stop of 'ora.scan1.vip' on 'station25' succeeded
CRS-2672: Attempting to start 'ora.scan1.vip' on 'station26'
CRS-2676: Start of 'ora.scan2.vip' on 'station26' succeeded
CRS-2672: Attempting to start 'ora.LISTENER_SCAN2.lsnr' on 'station26'
CRS-2677: Stop of 'ora.station25.vip' on 'station25' succeeded
CRS-2672: Attempting to start 'ora.station25.vip' on 'station26'
CRS-2676: Start of 'ora.scan3.vip' on 'station26' succeeded
CRS-2672: Attempting to start 'ora.LISTENER_SCAN3.lsnr' on 'station26'
CRS-2676: Start of 'ora.scan1.vip' on 'station26' succeeded
CRS-2672: Attempting to start 'ora.LISTENER_SCAN1.lsnr' on 'station26'
CRS-2677: Stop of 'ora.mgmtdb' on 'station25' succeeded
CRS-2677: Stop of 'ora.c02orcl.db' on 'station25' succeeded
CRS-2673: Attempting to stop 'ora.FRA.dg' on 'station25'
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'station25'
CRS-2673: Attempting to stop 'ora.MGMTLSNR' on 'station25'
CRS-2676: Start of 'ora.station25.vip' on 'station26' succeeded
CRS-2677: Stop of 'ora.DATA.dg' on 'station25' succeeded
CRS-2677: Stop of 'ora.MGMTLSNR' on 'station25' succeeded
CRS-2672: Attempting to start 'ora.MGMTLSNR' on 'station26'
CRS-2677: Stop of 'ora.FRA.dg' on 'station25' succeeded
CRS-2676: Start of 'ora.LISTENER_SCAN2.lsnr' on 'station26' succeeded
CRS-2676: Start of 'ora.LISTENER_SCAN3.lsnr' on 'station26' succeeded
CRS-2676: Start of 'ora.LISTENER_SCAN1.lsnr' on 'station26' succeeded
CRS-2676: Start of 'ora.MGMTLSNR' on 'station26' succeeded
CRS-2672: Attempting to start 'ora.mgmtdb' on 'station26'
CRS-2677: Stop of 'ora.oc4j' on 'station25' succeeded
CRS-2672: Attempting to start 'ora.oc4j' on 'station26'
CRS-2676: Start of 'ora.oc4j' on 'station26' succeeded
CRS-2676: Start of 'ora.mgmtdb' on 'station26' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'station25'
CRS-2677: Stop of 'ora.asm' on 'station25' succeeded
CRS-2673: Attempting to stop 'ora.ons' on 'station25'
CRS-5014: Agent "ORAAGENT" timed out starting process "/u01/app/12.1.0/grid/opmn/bin/onsctli" for action "stop": details at "(:CLSN00009:)" in "/u01/app/grid/diag/crs/station25/crs/trace/crsd_oraagent_grid.trc"
CRS-5017: The resource action "ora.ons stop" encountered the following error:
(:CLSN00009:)Command Aborted. For details refer to "(:CLSN00108:)" in "/u01/app/grid/diag/crs/station25/crs/trace/crsd_oraagent_grid.trc".
CRS-2675: Stop of 'ora.ons' on 'station25' failed
CRS-2679: Attempting to clean 'ora.ons' on 'station25'
CRS-2681: Clean of 'ora.ons' on 'station25' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'station25'
CRS-2677: Stop of 'ora.net1.network' on 'station25' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'station25' has completed
CRS-2677: Stop of 'ora.crsd' on 'station25' succeeded
CRS-2673: Attempting to stop 'ora.storage' on 'station25'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'station25'
CRS-2673: Attempting to stop 'ora.gpnpd' on 'station25'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'station25'
CRS-2677: Stop of 'ora.storage' on 'station25' succeeded
CRS-2677: Stop of 'ora.drivers.acfs' on 'station25' succeeded
CRS-2673: Attempting to stop 'ora.crf' on 'station25'
CRS-2673: Attempting to stop 'ora.ctssd' on 'station25'
CRS-2673: Attempting to stop 'ora.evmd' on 'station25'
CRS-2673: Attempting to stop 'ora.asm' on 'station25'
CRS-2677: Stop of 'ora.mdnsd' on 'station25' succeeded
CRS-2677: Stop of 'ora.evmd' on 'station25' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'station25' succeeded
CRS-2677: Stop of 'ora.gpnpd' on 'station25' succeeded
CRS-2677: Stop of 'ora.crf' on 'station25' succeeded
CRS-2677: Stop of 'ora.asm' on 'station25' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'station25'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'station25' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'station25'
CRS-2677: Stop of 'ora.cssd' on 'station25' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'station25'
CRS-2677: Stop of 'ora.gipcd' on 'station25' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'station25' has completed
CRS-4133: Oracle High Availability Services has been stopped.
# asmcmd
Connected to an idle instance.
ASMCMD> afd_configure
AFD-627: AFD distribution files found.
AFD-636: Installing requested AFD software.
AFD-637: Loading installed AFD drivers.
AFD-9321: Creating udev for AFD.
AFD-9323: Creating module dependencies - this may take some time.
AFD-9154: Loading 'oracleafd.ko' driver.
AFD-649: Verifying AFD devices.
AFD-9156: Detecting control device '/dev/oracleafd/admin'.
AFD-638: AFD installation correctness verified.
Modifying resource dependencies - this may take some time.
ASMCMD> ASMCMD> ASMCMD> afd_state
ASMCMD-9526: The AFD state is 'LOADED' and filtering is 'DEFAULT' on host 'station25.example.com'
ASMCMD> exit
# crsctl start crs -wait
CRS-4123: Starting Oracle High Availability Services-managed resources
CRS-2672: Attempting to start 'ora.mdnsd' on 'station25'
CRS-2672: Attempting to start 'ora.evmd' on 'station25'
CRS-2676: Start of 'ora.mdnsd' on 'station25' succeeded
CRS-2676: Start of 'ora.evmd' on 'station25' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'station25'
CRS-2676: Start of 'ora.gpnpd' on 'station25' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'station25'
CRS-2676: Start of 'ora.gipcd' on 'station25' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'station25'
CRS-2676: Start of 'ora.cssdmonitor' on 'station25' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'station25'
CRS-2672: Attempting to start 'ora.diskmon' on 'station25'
CRS-2676: Start of 'ora.diskmon' on 'station25' succeeded
CRS-2676: Start of 'ora.cssd' on 'station25' succeeded
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'station25'
CRS-2672: Attempting to start 'ora.ctssd' on 'station25'
CRS-2676: Start of 'ora.ctssd' on 'station25' succeeded
CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'station25' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'station25'
CRS-2676: Start of 'ora.asm' on 'station25' succeeded
CRS-2672: Attempting to start 'ora.storage' on 'station25'
CRS-2676: Start of 'ora.storage' on 'station25' succeeded
CRS-2672: Attempting to start 'ora.crf' on 'station25'
CRS-2676: Start of 'ora.crf' on 'station25' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'station25'
CRS-2676: Start of 'ora.crsd' on 'station25' succeeded
CRS-6017: Processing resource auto-start for servers: station25
CRS-2672: Attempting to start 'ora.net1.network' on 'station25'
CRS-2676: Start of 'ora.net1.network' on 'station25' succeeded
CRS-2672: Attempting to start 'ora.ons' on 'station25'
CRS-2673: Attempting to stop 'ora.station25.vip' on 'station26'
CRS-2677: Stop of 'ora.station25.vip' on 'station26' succeeded
CRS-2672: Attempting to start 'ora.station25.vip' on 'station25'
CRS-2676: Start of 'ora.station25.vip' on 'station25' succeeded
CRS-2672: Attempting to start 'ora.LISTENER.lsnr' on 'station25'
CRS-2676: Start of 'ora.ons' on 'station25' succeeded
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'station26'
CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'station26' succeeded
CRS-2673: Attempting to stop 'ora.scan1.vip' on 'station26'
CRS-2677: Stop of 'ora.scan1.vip' on 'station26' succeeded
CRS-2672: Attempting to start 'ora.scan1.vip' on 'station25'
CRS-2676: Start of 'ora.scan1.vip' on 'station25' succeeded
CRS-2672: Attempting to start 'ora.LISTENER_SCAN1.lsnr' on 'station25'
CRS-2676: Start of 'ora.LISTENER.lsnr' on 'station25' succeeded
CRS-2676: Start of 'ora.LISTENER_SCAN1.lsnr' on 'station25' succeeded
CRS-2672: Attempting to start 'ora.c02orcl.db' on 'station25'
CRS-2676: Start of 'ora.c02orcl.db' on 'station25' succeeded
CRS-6016: Resource auto-start has completed for server station25
CRS-6024: Completed start of Oracle Cluster Ready Services-managed resources
CRS-4123: Oracle High Availability Services has been started.
# su - grid
$ asmcmd afd_dsget
AFD discovery string:
$ asmcmd afd_scan
$
# fdisk -l
Disk /dev/vda: 61.2 GB, 61203283968 bytes
16 heads, 63 sectors/track, 118588 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007cec8
Device Boot Start End Blocks IdSystem
/dev/vda1 * 3 612 307200 83Linux
Partition 1 does not end on cylinder boundary.
/dev/vda2 612 103825 52019200 8eLinux LVM
Partition 2 does not end on cylinder boundary.
/dev/vda3 103825 112147 4194304 82Linux swap / Solaris
Partition 3 does not end on cylinder boundary.
Disk /dev/mapper/RAC12crhel6-root: 53.2 GB, 53183774720 bytes
255 heads, 63 sectors/track, 6465 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sda: 56.7 GB, 56740544512 bytes
255 heads, 63 sectors/track, 6898 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x38a4f1ee
Device Boot Start End Blocks IdSystem
/dev/sda1 1 1 8001 83Linux
/dev/sda2 2 6898 55400152+ 5Extended
/dev/sda5 2 628 5036346 83Linux
/dev/sda6 629 1255 5036346 83Linux
/dev/sda7 1256 1882 5036346 83Linux
/dev/sda8 1883 2509 5036346 83Linux
/dev/sda9 2510 3136 5036346 83Linux
/dev/sda10 3137 3763 5036346 83Linux
/dev/sda11 3764 4390 5036346 83Linux
/dev/sda12 4391 5017 5036346 83Linux
/dev/sda13 5018 5644 5036346 83Linux
/dev/sda14 5645 6271 5036346 83Linux
/dev/sda15 6272 6898 5036346 83Linux
# su - grid
$ asmcmd afd_dsset '/dev/sda*'
$ asmcmd afd_dsget
AFD discovery string: '/dev/sda*'
$ asmcmd afd_scan
$ asmcmd afd_dsget
AFD discovery string: '/dev/sda*'
$
ASMFD对应于操作系统盘:
# ls
RACDISK1RACDISK10RACDISK11RACDISK2RACDISK3RACDISK4RACDISK5RACDISK6RACDISK7RACDISK8RACDISK9
# vim RACDISK1
# cat RACDISK1
/dev/sda5
# pwd
/dev/oracleafd/disks
页:
[1]