Moneycontrol Brokerage Recos

Thursday, August 8, 2019

Exadata ILOM Snapshot Collection - Command-Line




Exadata ILOM Snapshot Collection
----------------------------------------

Here in this article, I would demonstrate the step by step process how to collect ILOM snapshot for Exadata compute nodes and Cell Nodes.

Sometimes you get into some hardware issues in the Exadata stack and you are asked by Oracle support to provide them the relevant ILOM snapshots for their diagnosis.




ILOM Snapshot collection on Compute Nodes:


So let's see how to collect ILOM snapshot for the Exadata compute nodes using command-line method.


1 - Login to the Exadata compute node 1 and ssh to ILOM of the compute node 1 as below. If you want to collect ILOM snapshot for compute node 2 then you would need to ssh to ILOM  of compute node 2 as (ssh exahost01dbadm02-ilom) and so on.


[root@exahost01dbadm01]# ssh exahost01dbadm01-ilom
Password:

Oracle(R) Integrated Lights Out Manager

Version 4.0.4.22 r127068

Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.

Warning: HTTPS certificate is set to factory default.

Hostname: exahost01dbadm01-ilom

->


2 - Check the current dataset setting value for the ILOM as below.

-> show /SP/diag/snapshot

 /SP/diag/snapshot
    Targets:

    Properties:
        dataset = normal
        dump_uri = (Cannot show property)
        encrypt_output = false
        result = (none)

    Commands:
        cd
        set
        show

->


3 - Run the following command at ILOM command line to set the dataset parameter value to normal, if not already set or when that is set to full.

->set /SP/diag/snapshot dataset=normal

Make sure the setting by running the command -> show /SP/diag/snapshot  to validate if dataset is set to normal.

"The reason, we avoid collecting the ILOM snapshot with dataset = full is that it may(or may not) cause the compute/cell node reboot that results in unplanned boot so our preference is to collect the ILOM snapshot with dataset set to normal and that fulfills the purpose, mostly" 


4 - Run the below command to start collecting the snapshot. Take management IP of compute node for destination SFTP.

-> set /SP/diag/snapshot dump_uri="sftp://root@10.0.0.9/tmp"
Enter remote user password: ***************
Set 'dump_uri' to 'sftp://root@10.0.0.9/tmp'
->


5 - Validate if snapshot collection is started now as follows after step 4.

-> show /SP/diag/snapshot

 /SP/diag/snapshot
    Targets:

    Properties:
        dataset = normal
        dump_uri = (Cannot show property)
        encrypt_output = false
        result = Running

    Commands:
        cd
        set
        show

->

Above you can see that result = running, that means ILOM snapshot collection has been started for exadata compute node 1.

You can check the snapshot collection progress by running the -> show /SP/diag/snapshot command few times until it completes.


6 - Now ILOM snapshot collection has been completed and zip file is stored in /tmp directory of the compute node 1 that we had set as a destination with dump_uri clause in step 4 above.


-> show /SP/diag/snapshot

 /SP/diag/snapshot
    Targets:

    Properties:
        dataset = normal
        dump_uri = (Cannot show property)
        encrypt_output = false
        result = Collecting data into sftp://root@10.0.0.9/tmp/exahost01dbadm01-ilom_1404NML0B1_2019-08-08T02-48-41.zip
Snapshot Complete. Done. Commands: cd set show ->



7 - Now you can to go the compute node 1 in /tmp directory and see the ILOM snapshot there for the compute node 1.


[root@exahost01dbadm01]# ls -ltr /tmp/exahost01dbadm01-ilom_1404NML0B1_2019-08-08T02-48-41.zip
-rw-r--r-- 1 root root 5972544 Aug  7 21:52 /tmp/exahost01dbadm01-ilom_1404NML0B1_2019-08-08T02-48-41.zip


Now you are good to upload the snapshot zip file to your Oracle SR.





ILOM Snapshot collection on Cell Node:


Note : Similarly as ILOM Snapshot collection of Exadata compute node, you can collect the ILOM snapshot for storage cell nodes as well by logging to one of the Cell Nodes ILOM (as below) for which you want to collect the snapshot and follow the similar steps above explained for compute node. 

Make a note that in the dump_uri clause, you need to provide the target host as any of the compute nodes where zip file would be dumped for you.

[root@exahost01dbadm01~]# ssh exahost01cel01-ilom
Password:

Oracle(R) Integrated Lights Out Manager

Version 4.0.4.22 r127068

Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.

Warning: HTTPS certificate is set to factory default.

Hostname: exahost01cel01-ilom

->




Subscribe to this blog to stay updated on your email as soon as a new article posted here.

Twitter : @rajsoft8899
Linkedin : https://www.linkedin.com/in/raj-kumar-kushwaha-5a289219/




5 comments: