Exadata power on/off steps

Selamlar,
aşağıdaki adımları izleyerek exadata’nızı tutarlı bir şekilde kapatıp açabilirsiniz.

CHECKS

1. check all cell nodes (MS, RS & CELLSRV services must be running)

cd /opt/oracle.SupportTools/onecommand
cat dbs_group
cat cell_group

dcli -g cell_group -l root "su - celladmin -c \"cellcli -e list cell detail \""

dcli -g cell_group -l root "su - celladmin -c \"cellcli -e LIST GRIDDISK WHERE STATUS = 'inactive' \""

2. check cluster services

/u01/app/11.2.0/grid/bin/crsctl stat res -t

3. check all dbnodes and cellnodes

dcli -g cell_group -l root 'hostname; uptime'
dcli -g dbs_group -l root 'hostname; uptime'

DISABLE ASR

1. check asr configuration
– on db nodes

If your Exadata Server Software is release 12.1.2.x or later:
dcli -g dbs_group -l root -n "dbmcli -e list dbserver attributes snmpSubscriber"
If your Exadata Server Software release is earlier than 12.1.2.x:
dcli -g dbs_group -l root –n "/opt/oracle.cellos/compmon/exadata_mon_hw_asr.pl -get_snmp_subscribers -type asr"

-on cell nodes

If your Exadata Server Software is release 12.1.2.x or later:
dbmcli -e list dbserver attributes snmpSubscriber
If your Exadata Server Software release is earlier than 12.1.2.x:
/opt/oracle.cellos/compmon/exadata_mon_hw_asr.pl -get_snmp_subscribers -type asr

2. If ASR configured, login as root on ASR host and issue following

For Solaris:
svcadm disable asrm  (stops ASR Manager)

For Linux:
service asrm  stop (stops ASR Manager)

Or you can disable the ASR Manager for a specific amount of time.

asr> disable_asr_manager 3
Disabling ASR for 3 hours.

SHUTDOWN

1. login to first dbnode as root

cd /opt/oracle.SupportTools/onecommand
cat dbs_group
cat cell_group

2. If dbnodes will going to reboot several times, disable the crs

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

- disable crs on all db nodes
dcli -g dbs_group -l root /u01/app/11.2.0/grid/bin/crsctl disable crs

3. stop crs on all db nodes

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

4. check the crs

dcli -g dbs_group -l root "ps -ef | grep diskmo[n]"

5. If email notifications have configured, disable it to get rid of notification emails.

- check current notification method
dcli -g cell_group -l root "su - celladmin -c \"cellcli -e list cell attributes name,notificationMethod\""

- disable the notifications
dcli -g cell_group -l root "su - celladmin -c \"cellcli -e alter cell notificationMethod=none\""

6. stop all cell services

dcli -g cell_group -l root "su - celladmin -c \"cellcli -e alter cell shutdown services all \""

7. poweroff the cells

dcli -g cell_group -l root poweroff

8. remove first db node from dbs_group

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

9. poweroff all db nodes except dbnode1

dcli -g dbs_group2 -l root poweroff

10. and then poweroff dbnode1

poweroff

11.power off the PDUs

Not: Powering On and Off Network Switches
The network switches do not have power switches. They power off when power is removed, by way of the power distribution unit (PDU) or at the breaker in the data center.

STARTUP

1. power on all PDUs from power button

2. poweron the first db node from power button or ilom

3. poweron all cells from power button or issue the following command from first dbnode (ilom root password = welcome1)

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

Not: If it failed, try the same again command with -I option
Authentication type NONE not supported
Error: Unable to establish LAN session
Unable to set Chassis Power Control to Up/On

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

4. check cells

dcli -g cell_group -l root 'hostname; uptime'

5. When all cells successfully poweron then poweron dbnodes

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

Not: If it failed, try the same again command with -I option

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

6. check all cell services (MS, RS & CELLSRV services must be running)

dcli -g cell_group -l root "su - celladmin -c \"cellcli -e list cell detail \""

7. If you have disabled email notifications, now enable it

dcli -g cell_group -l root "su - celladmin -c \"cellcli -e alter cell notificationMethod=\'mail,snmp\'\""

8. start crs on dbnode1

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

9. check all cluster services

/u01/app/11.2.0/grid/bin/crsctl stat res -t

10. start crs on all dbnodes with one command

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

11. If you have disabled crs, enable it.

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

Leave a Reply

Your email address will not be published. Required fields are marked *