Exadata Alerts, Metrics and Active Requests in CellCLI
How to read a storage cell's alert history, metrics and active requests with CellCLI: the commands, what each field means, stateless against stateful alerts, and which of the three you will really use at work.
A storage cell tells you what is happening in three ways. Alert history shows the warnings and critical errors on that cell (list alerthistory). Metrics are the measured values of every object in the cell, a cell disk, a grid disk, the cell itself (list metriccurrent). Active requests are the client I/O requests the cell is processing right now (list activerequest).
In your day to day work as a DMA you will mostly see alerts. Active requests and metrics you will rarely open. But an interviewer may ask you about all three, and as an Exadata architect you need to know them.
All the commands below run in CellCLI on a cell. You can also run one from the shell with cellcli -e "...".
Alert history
If you already work on Exadata, you have probably typed this many times:
CellCLI> list alerthistoryIt lists the warnings and critical errors on that cell. If a disk fails, you see in the alert history exactly when and where it failed. When the field engineer replaces it, you see that too, with the time.
To see everything about one alert, the action, the errors, the file location and the trace file, give its number and detail:
CellCLI> list alerthistory 1 detailFilter to the critical ones:
CellCLI> list alerthistory where severity = 'critical' detailMark who is looking at an alert
When a teammate starts working on an alert, they can mark it with their name, so the team knows. That is the examinedBy attribute, the only attribute of an alert you can change:
CellCLI> alter alerthistory 1 examinedBy = 'john'
CellCLI> list alerthistory where severity = 'critical' and examinedBy = 'john' detailSet it back to empty and nobody owns it again.
Can I drop the alert history?
Yes. This deletes the alert entries from the cell for good, so read them first. If the problem is still there, a new alert is raised. A disk that was dropped but not replaced shows up in the alert history again after some time.
CellCLI> drop alerthistory allYou can also drop single alerts by number. A stateful alert has a sequence of entries (21, 22 and so on), and you must drop all of them together, or CellCLI gives an error.
Stateless and stateful alerts
This is a favourite interview question.
- A stateless alert is a point in time event. It does not represent a persistent condition; it tells you something happened. It is never cleared by itself. You acknowledge it by setting
examinedBy. - A stateful alert represents a condition that persists, such as a failed disk or a temperature above its threshold. Exadata tests the condition again, and when it goes back to normal, the alert is cleared automatically.
Metrics
Your body temperature is a metric of you. In the same way, every object in a cell has metrics: the cell is an object, a cell disk is an object, a grid disk is an object.
To see which metrics exist:
CellCLI> list metricdefinition
CellCLI> list metricdefinition where objectType = 'GRIDDISK' detailWith detail you see the name, the description, the metric type, the object type and the unit.
There are four metric types:
- Cumulative: statistics summed since the metric was created, such as MB read
- Instantaneous: the value at the moment it is collected
- Rate: averaged over the observation period, per second
- Transition: collected when the value changes, usually an important change in hardware status
The current values:
CellCLI> list metriccurrentA few cell level metrics I like to show:
CL_CPUT: the cell's CPU utilisation, as a percentageCL_MEMUT: the percentage of the cell's physical memory in useCL_TEMP: the server's temperature in Celsius, read from the BMCCL_FSUT: the percentage used on each file system of the cell. From inside CellCLI you get the same picturedf -hgives you at the OS, for/and the other mount points
CellCLI> list metriccurrent CL_FSUT detail
CellCLI> list metriccurrent CL_TEMPActive requests
An active request is a client I/O request being processed by the cell. Say RMAN connects to the database and takes a backup. That is a client generating I/O, and while the cell serves it, you see it as an active request. It covers activity at instance, database, ASM and cell level.
Active request is like a view in SQL, and its attributes are like columns. So you can describe it:
CellCLI> describe activerequest
CellCLI> list activerequest
CellCLI> list activerequest detailThe detail shows the database name, the file type, how many bytes are processed so far, the grid disk, the ASM disk group, the instance the request came from, the SQL ID, the request state (accessing disk, queued for disk, queued in Resource Manager) and the I/O type. Examples of I/O types: read, write, predicate pushing (your WHERE clause being applied in the cell) and filtered backup read.
You can filter by I/O type:
CellCLI> list activerequest where ioType = 'predicate pushing' detailOn a quiet lab cell you may see nothing at all. Start a backup and, if you are lucky, one appears.
What to remember
- Alerts: you will use them every week. Learn
list alerthistory, the detail, the severity filter andexaminedBy. - Stateless or stateful: point in time against persistent. Stateful ones clear themselves.
- Metrics: four types;
list metricdefinitiontells you what exists,list metriccurrenttells you the values. - Active requests: client I/O the cell is serving now. Know that you can see it.
Play around with describe on each object: describe alerthistory, describe metriccurrent, describe cell. That is how you learn what each one holds.