Steps To Shutdown/Startup The Exadata & RDBMS Services and Cell/Compute Nodes On An Exadata Configuration

SOLUTION

1) Log in to the first database server as root.

2) Change to the OneCommand directory

# cd /opt/oracle.SupportTools/onecommand

3) Note whether the Grid Infrastructure is currently enabled for autostart, so that this state can be restored later:

# dcli -g dbs_group -l root /u01/app/11.2.0/grid/bin/crsctl config crs

4) Disable the Grid Infrastructure for autostart on the database servers if the previous step indicated it is currently enabled for autostart.

# dcli -g dbs_group -l root /u01/app/11.2.0/grid/bin/crsctl disable crs

Note: This is step is [Optional] and it can required during maintenance operation like “firmware patches” which requires to reboot the Compute Node several times.

5) Stop the Grid Infrastructure stack on the database servers (compute nodes):

# dcli -g dbs_group -l root /u01/app/11.2.0/grid/bin/crsctl stop crs

6) Verify that the Grid Infrastructure stack has shutdown successfully on the database servers. The following command should show no output if the GI stack has shutdown:

# dcli -g dbs_group -l root “ps -ef | grep diskmo[n]”

7) [Optional] Disable email/SNMP alerts if applicable. If alerts will be enabled, first note the notification method in use so that it can be restored later. The following command will show the current notification method:

# dcli -g cell_group -l root “su – celladmin -c \”cellcli -e list cell attributes name,notificationMethod\””

Now set the notification method to null to disable alerts:

# dcli -g cell_group -l root “su – celladmin -c \”cellcli -e alter cell notificationMethod=null\””

8) Shutdown all the cells:

# dcli -g cell_group -l root “su – celladmin -c \”cellcli -e alter cell shutdown services all \””

9) Power off all cells:

# dcli -g cell_group -l root poweroff

10) Copy the /opt/oracle.SupportTools/onecommand/dbs_group to /opt/oracle.SupportTools/onecommand/dbs_group2:

# cp /opt/oracle.SupportTools/onecommand/dbs_group /opt/oracle.SupportTools/onecommand/dbs_group2

11) Remove the “first compute node name” from the /opt/oracle.SupportTools/onecommand/dbs_group2 file (using any editor, e.g. vi).

12) Power off all the compute nodes (except compute node # 1):

# dcli -g dbs_group2 -l root poweroff

13) Power off the compute node #1:

# poweroff

14) Now, both Cell Servers & Compute nodes are down for maintenance.

15) Power “compute node #1” on, by using the power button on the front panel of the Exadata Storage Servers.

16) Power the cells on, either by using the power button on the front panel of the Exadata Storage Servers, or by executing the following script from the first database server (from Compute node #1):

for host in `cat cell_group`; do
echo ${host}: `ipmitool -H ${host}-ilom -U root -P welcome1 chassis power on`
done

17) Wait until all the Cell servers are up, then power the compute nodes on, either by using the power button on the front panel of the Exadata Storage Servers, or by executing the following script from the first database server:

for host in `cat dbs_group2`; do
echo ${host}: `ipmitool -H ${host}-ilom -U root -P welcome1 chassis power on`
done

18) Verify that all Exadata Storage Servers have booted successfully:

# dcli -g cell_group -l root hostname

19) Verify all the cells are up (MS, RS & CELLSRV services must be running):

# dcli -g cell_group -l root “su – celladmin -c \”cellcli -e list cell detail \””

20) Reenable email/SNMP alerts if they were disabled during the pre-maintenance steps. The example below illustrates the command to use if both email and SMTP alerting used, but adjust the command as necessary to restore the notification method noted during the pre-maintenance steps.

# dcli -g cell_group -l root “su – celladmin -c \”cellcli -e alter cell notificationMethod=\’mail,snmp\’\””

21) Start the Grid Infrastructure stack on the first database server

# /u01/app/11.2.0/grid/bin/crsctl start crs

22) Wait until the Grid Infrastructure stack has started successfully on the first database server. To check the status of the Grid Infrastructure stack, run the following command and verify that the “ora.asm” instance is started. Note that the command below will continue to report that it is unable to communicate with the Grid Infrastructure software for several minutes after issuing the “crsctl start crs” command above:

# /u01/app/11.2.0/grid/bin/crsctl status resource -t

23) Start the Grid Infrastructure stack on all remaining database servers with a 1-minute delay between servers. Note that the command below will issue the start command for all database servers, including the first database server where it is already started. The output for the first server will therefore indicate that the software is already started, but this message can be safely ignored:

for h in `cat dbs_group`; do
echo “Starting CRS on host $h”
ssh $h /u01/app/11.2.0/grid/bin/crsctl start crs
echo “Waiting 60 seconds…”
sleep 60
done

24) Monitor the startup progress (this could take several minutes):

# /u01/app/11.2.0/grid/bin/crsctl status resource -t

25) Reenable the Grid Infrastructure for autostart if it was found to be enabled for autostart at the beginning of the pre-maintenance steps.

# dcli -g dbs_group -l root /u01/app/11.2.0/grid/bin/crsctl enable crs

Note: If dcli/ssh is not enabled due to security reasons, then you will need to connect and execute the above steps on each node at the time.

Ref: ID 1093890.1
Advertisements

About Sher khan

Senior Oracle DBA, Oracle 10g , Oracle 11g OCE ,Oracle 12C and Oracle 11g OPN certified Specialist, OCP Certified in Oracle 9i,10g , 11g and 12C. I am working in Oracle technology since 2004. Currently working in U.A.E Email: sher487@hotmail.com
This entry was posted in Exadata. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s