Resilvering log?

ak1

Cadet
Joined
Jan 11, 2022
Messages
3
Is there a log file for this?
I want to find an answer for "When did resilvering processes start/end in the past? And what was the status?"

Answers highly appreciated.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
zpool status -v poolname will show the last operation status (including currently running resilvers).

zpool history poolname should show the older ones... you may want to pipe it to grep replace if you want to see resilvers.
 

ak1

Cadet
Joined
Jan 11, 2022
Messages
3
zpool status -v poolname will show the last operation status (including currently running resilvers).

zpool history poolname should show the older ones... you may want to pipe it to grep replace if you want to see resilvers.
Thanks for your reply, sretalla
These commands are well known.
Unfortunately, Resilvering processes from the past don't show up in zpool history.
Investigations in the var/log directory also yield no indications.

Any other ideas?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Unfortunately, Resilvering processes from the past don't show up in zpool history.
They absolutely do... as I said, you will see at minimum one entry for the zpool replace operation and maybe some with the detach for the old/dead one.

for example, on one of my pools:

zpool history tank | grep replace

produces:

2021-08-17.14:44:47 zpool replace tank 15825733312334042949 /dev/gptid/d62eee83-ff58-11eb-997e-2cfda1c746ec
2022-01-02.09:57:15 zpool replace tank 8287760660333865888 /dev/gptid/ee2e4348-6ba9-11ec-be93-2cfda1c746ec

and

zpool history tank | grep detach

produces:

2021-08-17.14:45:08 zpool detach tank /dev/gptid/f0a54e73-a190-11ea-bf5a-2cfda1c746ec
2022-01-02.09:57:47 zpool detach tank /dev/gptid/aa20f8b3-3e57-11e8-8158-38d547c91e29

also:

zpool history tank | grep offline

produces:

2021-08-17.14:36:45 zpool offline tank /dev/gptid/f0a54e73-a190-11ea-bf5a-2cfda1c746ec
2022-01-02.09:47:48 zpool offline tank /dev/gptid/aa20f8b3-3e57-11e8-8158-38d547c91e29

There would be no other logs regarding resilvers to my knowledge
 
Last edited:
Top