Cluster (CRS)

  • CRS log file: /u01/app/grid/diag/crs/<db>/crs/trace

  • stop cluster (root):

# export GRID_HOME=/u01/app/12.2.0.1/grid
# $GRID_HOME/bin/crsctl stop cluster -all
  • start cluster (root):
# export GRID_HOME=/u01/app/12.2.0.1/grid
# $GRID_HOME/bin/crsctl start cluster -all
  • check cluster status (root):
# export GRID_HOME=/u01/app/12.2.0.1/grid
# $GRID_HOME/bin/crsctl status res -t
  • get cluster resource info (root):
# . oraenv <<EOF
+ASM2
EOF
# crsctl status resource <resource> -f/-p
  • disable cluster start at boot (root):
# . oraenv <<EOF
+ASM2
EOF
# crsctl disable crs
CRS-4621: Oracle High Availability Services autostart is disabled.

# crsctl config has
CRS-4621: Oracle High Availability Services autostart is disabled.
  • enable cluster start at boot (root):
# . oraenv <<EOF
+ASM2
EOF

# crsctl enabled crs
CRS-4621: Oracle High Availability Services autostart is enabled.

# crsctl config has
CRS-4621: Oracle High Availability Services autostart is enabled.

OVM

  • restart VM:
# xm create /EXAVMIMAGES/GuestImages/vm1/vm.cfg
# xm create /EXAVMIMAGES/GuestImages/vm2/vm.cfg
# xm create /EXAVMIMAGES/GuestImages/vm3/vm.cfg
# xm create /EXAVMIMAGES/GuestImages/vm4/vm.cfg
...

Storage

  • Show MegaRAID devices:
# /opt/MegaRAID/MegaCli/MegaCli64 -ShowSummary -aALL

System
        Operating System:  Linux version 4.1.12-94.8.4.el6uek.x86_64
        Driver Version: 06.812.07.00-rc1
        CLI Version: 0.0.0

Hardware
        Controller
                 ProductName       : LSI MegaRAID 9361-8i(Bus 0, Dev 0)
                 SAS Address       : 500605b00cb40100
                 FW Package Version: 24.18.0-0040
                 Status            : Optimal BBU
        BBU
                 Type              :
                 Status            : Healthy        PD
                Connector          : Port 0 - 3<Internal><Encl Pos 0 >: Slot 0
                Vendor Id          : HGST
                Product Id         : H7280A520SUN8.0T
                State              : Online
                Disk Type          : SAS,Hard Disk Device
                Capacity           : 7.151 TB
                Power State        : Active

                Connector          : Port 0 - 3<Internal><Encl Pos 0 >: Slot 4
                Vendor Id          : HGST
                Product Id         : H7280A520SUN8.0T
                State              : Online
                Disk Type          : SAS,Hard Disk Device
                Capacity           : 7.151 TB
                Power State        : Active

                Connector          : Port 0 - 3<Internal><Encl Pos 0 >: Slot 1
                Vendor Id          : HGST
                Product Id         : H7280A520SUN8.0T
                State              : Online
                Disk Type          : SAS,Hard Disk Device
                Capacity           : 7.151 TB
                Power State        : Active

                Connector          : Port 0 - 3<Internal><Encl Pos 0 >: Slot 5
                Vendor Id          : HGST
                Product Id         : H7280A520SUN8.0T
                State              : Online
                Disk Type          : SAS,Hard Disk Device
                Capacity           : 7.151 TB
                Power State        : Active

                Connector          : Port 0 - 3<Internal><Encl Pos 0 >: Slot 2
                Vendor Id          : HGST
                Product Id         : H7280A520SUN8.0T
                State              : Online
                Disk Type          : SAS,Hard Disk Device
                Capacity           : 7.151 TB
                Power State        : Active

                Connector          : Port 0 - 3<Internal><Encl Pos 0 >: Slot 3
                Vendor Id          : HGST
                Product Id         : H7280A520SUN8.0T
                State              : Online
                Disk Type          : SAS,Hard Disk Device
                Capacity           : 7.151 TB
                Power State        : Active

Storage

       Virtual Drives
                Virtual drive      : Target Id 0 ,VD name
                Size               : 7.151 TB
                State              : Optimal
                RAID Level         : 0

                Virtual drive      : Target Id 1 ,VD name
                Size               : 7.151 TB
                State              : Optimal
                RAID Level         : 0

                Virtual drive      : Target Id 2 ,VD name
                Size               : 7.151 TB
                State              : Optimal
                RAID Level         : 0

                Virtual drive      : Target Id 3 ,VD name
                Size               : 7.151 TB
                State              : Optimal
                RAID Level         : 0

                Virtual drive      : Target Id 4 ,VD name
                Size               : 7.151 TB
                State              : Optimal
                RAID Level         : 0

                Virtual drive      : Target Id 5 ,VD name
                Size               : 7.151 TB
                State              : Optimal
                RAID Level         : 0
  • Show MegaRAID configuration:
# /opt/MegaRAID/MegaCli/MegaCli64 -cfgDsply -aALL | more

==============================================================================
Adapter: 0
Product Name: LSI MegaRAID 9361-8i
Memory: 1024MB
BBU: Present
Serial No: SK70301639
==============================================================================
Number of DISK GROUPS: 6

DISK GROUP: 0
Number of Spans: 1
SPAN: 0
Span Reference: 0x00
Number of PDs: 1
Number of VDs: 1
Number of dedicated Hotspares: 0
Virtual Drive Information:
Virtual Drive: 0 (Target Id: 0)
Name                :
RAID Level          : Primary-0, Secondary-0, RAID Level Qualifier-0
Size                : 7.151 TB
Physical Sector Size: 512
Logical Sector Size : 4096
VD has Emulated PD  : Yes
Parity Size         : 0
State               : Optimal
Strip Size          : 1.0 MB
Number Of Drives    : 1
Span Depth          : 1
Creation Date     : 07-06-2017
Creation Time     : 11:40:08 AM
Default Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU
Current Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy   : Disabled
Encryption Type     : None
Bad Blocks Exist: No
PI type: No PI
...

See also:

Comments