05-11-2022 10:07 PM - edited 05-12-2022 10:42 PM
Hi experts,
I've been trying to determine some space allocations on a HyperFlex cluster via an ssh session to a Storage Controller VM.
I've discovered that I can turn off the HyperFlex cleaner with the command
stcli cleaner stop
And I can start it again with
stcli cleaner start
But at any given time, I don't seem to have a way of determining if either of these commands has been run.
The only other stcli cleaner commands that are available are: (from the CLI Guide with my annotations)
Option | MY NOTES | Description |
get-schedule |
ALWAYS reports policyActive as False |
Reports storage cluster cleaner high priority schedule. |
info |
Only gives IP/ID and Online status |
Provides information about the specified storage cluster cleaner. |
report |
Gives space info per node, |
Reports storage cluster space reclaimed from cleaner. |
set-schedule |
|
Sets storage cluster cleaner high priority schedule. |
start |
|
Starts storage cluster cleaner. |
stats |
Gives space info per disk, |
Collects storage cluster cleaner stats. |
stop |
|
Stops storage cluster cleaner. |
I've added some samples below.
I'd be grateful if anyone can tell how to determine if the HX Cluster has had had the stcli cleaner stop command run, either from the command line or using the HyperFlex API.
admin:~$ stcli cleaner get-schedule
{ 'id': '504d9712-5881-b045-a76b-6f55592ef0c1', 'type': 'node', 'name': '169.254.1.31' }:
endTime: 20
policyActive: False
startTime: 21
{ 'id': 'b8e992c4-3cce-6c4a-83cd-b7e0032b2d1c', 'type': 'node', 'name': '169.254.1.33' }:
endTime: 20
policyActive: False
startTime: 21
{ 'id': '5979eb58-e1da-674f-9015-7c206c4dbe97', 'type': 'node', 'name': '169.254.1.32' }:
endTime: 20
policyActive: False
startTime: 21
admin:~$ stcli cleaner info
{ 'name': '169.254.1.31', 'id': '504d9712-5881-b045-a76b-6f55592ef0c1', 'type': 'node' }: ONLINE
{ 'name': '169.254.1.33', 'id': 'b8e992c4-3cce-6c4a-83cd-b7e0032b2d1c', 'type': 'node' }: ONLINE
{ 'name': '169.254.1.32', 'id': '5979eb58-e1da-674f-9015-7c206c4dbe97', 'type': 'node' }: ONLINE
admin:~$ stcli cleaner report { 'id': '', 'type': 'cluster' }: totalAddressableBytes: 4.2T compressionSavings: 0.85% dedupSavings: 4.67% totalUniqueBytes: 4.0T totalNodeSavings: 5.48% estimated: False totalUniqueAddressableBytes: 4.0T { 'id': '504d9712-5881-b045-a76b-6f55592ef0c1', 'name': '169.254.1.31', 'type': 'node' }: totalAddressableBytes: 1.5T compressionSavings: 0.75% dedupSavings: 4.31% totalUniqueBytes: 1.4T totalNodeSavings: 5.03% estimated: False totalUniqueAddressableBytes: 1.5T { 'id': 'b8e992c4-3cce-6c4a-83cd-b7e0032b2d1c', 'name': '169.254.1.33', 'type': 'node' }: totalAddressableBytes: 1.4T compressionSavings: 0.89% dedupSavings: 4.72% totalUniqueBytes: 1.4T totalNodeSavings: 5.57% estimated: False totalUniqueAddressableBytes: 1.4T { 'id': '5979eb58-e1da-674f-9015-7c206c4dbe97', 'name': '169.254.1.32', 'type': 'node' }: totalAddressableBytes: 1.2T compressionSavings: 0.93% dedupSavings: 5.05% totalUniqueBytes: 1.2T totalNodeSavings: 5.94% estimated: False totalUniqueAddressableBytes: 1.2T
admin:~$ stcli cleaner set-schedule --starttime 5 --endtime 4
NO RESPONSE IS GIVEN BY SYSTEM
admin:~$ stcli cleaner start
NO RESPONSE IS GIVEN BY SYSTEM
admin:~$ stcli cleaner stats --start { 'type': 'node', 'id': '5979eb58-e1da-674f-9015-7c206c4dbe97', 'name': '169.254.1.32' }: ---------------------------------------- priorNumSegments: 0 curNumDeadKeys: 0 uniqueBytes: 73.7K curNumLiveKeys: 0 curNumSegments: 1 deletedNumSegments: 0 priorNumLiveKeys: 0 totalAddressedVBABytes: 748.2K ftVnodeNumber: 83 uniqueVBAs: 132 uniqueDataBytes: 608.0K uniqueMetaBytes: 140.2K priorNumDeadKeys: 0 uniqueVBABytes: 748.2K ---------------------------------------- Repeated for every vnode on the pnode ---------------------------------------- { 'type': 'node', 'id': '504d9712-5881-b045-a76b-6f55592ef0c1', 'name': '169.254.1.31' }: ---------------------------------------- Then repeated for every pnode in the system ----------------------------------------
admin:~$ stcli cleaner stop
NO RESPONSE IS GIVEN BY SYSTEM
Solved! Go to Solution.
05-12-2022 02:05 PM
OK for the record, I've answered my own question, the command to find if the cleaner has been disabled or not is
admin:~$ stcli cleaner info
If the cleaner has been disabled, the nodes will show OFFLINE
admin:~$ stcli cleaner info
{ 'name': '169.254.1.31', 'id': '504d9712-5881-b045-a76b-6f55592ef0c1', 'type': 'node' }: ONLINE
{ 'name': '169.254.1.33', 'id': 'b8e992c4-3cce-6c4a-83cd-b7e0032b2d1c', 'type': 'node' }: ONLINE
{ 'name': '169.254.1.32', 'id': '5979eb58-e1da-674f-9015-7c206c4dbe97', 'type': 'node' }: ONLINE
admin:~$ stcli cleaner stop
admin:~$ stcli cleaner info
{ 'name': '169.254.1.32', 'type': 'node', 'id': '5979eb58-e1da-674f-9015-7c206c4dbe97' }: OFFLINE
{ 'name': '169.254.1.33', 'type': 'node', 'id': 'b8e992c4-3cce-6c4a-83cd-b7e0032b2d1c' }: OFFLINE
{ 'name': '169.254.1.31', 'type': 'node', 'id': '504d9712-5881-b045-a76b-6f55592ef0c1' }: OFFLINE
admin:~$ stcli cleaner start
admin:~$ stcli cleaner info
{ 'type': 'node', 'name': '169.254.1.31', 'id': '504d9712-5881-b045-a76b-6f55592ef0c1' }: ONLINE
{ 'type': 'node', 'name': '169.254.1.32', 'id': '5979eb58-e1da-674f-9015-7c206c4dbe97' }: ONLINE
{ 'type': 'node', 'name': '169.254.1.33', 'id': 'b8e992c4-3cce-6c4a-83cd-b7e0032b2d1c' }: ONLINE
05-12-2022 02:05 PM
OK for the record, I've answered my own question, the command to find if the cleaner has been disabled or not is
admin:~$ stcli cleaner info
If the cleaner has been disabled, the nodes will show OFFLINE
admin:~$ stcli cleaner info
{ 'name': '169.254.1.31', 'id': '504d9712-5881-b045-a76b-6f55592ef0c1', 'type': 'node' }: ONLINE
{ 'name': '169.254.1.33', 'id': 'b8e992c4-3cce-6c4a-83cd-b7e0032b2d1c', 'type': 'node' }: ONLINE
{ 'name': '169.254.1.32', 'id': '5979eb58-e1da-674f-9015-7c206c4dbe97', 'type': 'node' }: ONLINE
admin:~$ stcli cleaner stop
admin:~$ stcli cleaner info
{ 'name': '169.254.1.32', 'type': 'node', 'id': '5979eb58-e1da-674f-9015-7c206c4dbe97' }: OFFLINE
{ 'name': '169.254.1.33', 'type': 'node', 'id': 'b8e992c4-3cce-6c4a-83cd-b7e0032b2d1c' }: OFFLINE
{ 'name': '169.254.1.31', 'type': 'node', 'id': '504d9712-5881-b045-a76b-6f55592ef0c1' }: OFFLINE
admin:~$ stcli cleaner start
admin:~$ stcli cleaner info
{ 'type': 'node', 'name': '169.254.1.31', 'id': '504d9712-5881-b045-a76b-6f55592ef0c1' }: ONLINE
{ 'type': 'node', 'name': '169.254.1.32', 'id': '5979eb58-e1da-674f-9015-7c206c4dbe97' }: ONLINE
{ 'type': 'node', 'name': '169.254.1.33', 'id': 'b8e992c4-3cce-6c4a-83cd-b7e0032b2d1c' }: ONLINE
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide