Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage: For task [manage the pools and volumes to match the specified state] We may need to wait the mdadm rsycn finished. #129

Open
FineFan opened this issue Jul 15, 2020 · 2 comments

Comments

@FineFan
Copy link

FineFan commented Jul 15, 2020

Hi,

I think after we create the md ride , we need to wait for resync.
During the playbook running I was check the md status via "cat /proc/mdstat"
And I figure out that ,before the resync action finished ,we have done all of the steps and cleaned the test env.

I think we may need to wait the md ride finish its resync.
Wait the state become clean in "mdadm -D /dev/md127" before the next steps.

BR
Fine

@pcahyna
Copy link
Member

pcahyna commented Jul 20, 2020

Hello, how does the problem manifest itself? Is there any actual problem seen by the user?

@yizhanglinux yizhanglinux changed the title For task [manage the pools and volumes to match the specified state] We may need to wait the mdadm rsycn finished. storage: For task [manage the pools and volumes to match the specified state] We may need to wait the mdadm rsycn finished. Jul 31, 2020
@japokorn
Copy link
Collaborator

@FineFan You have mentioned test environment, so I guess you are worried that not waiting for RAID to resync could be an issue.

In storage role RAID resync is run by mdadm when RAID is created. Since mdadm man pages state that "The array can be used as soon as it has been created. There is no need to wait for the initial resync to finish.", I believe that there should be no issues involved.

Also RAID resync can take a very long time (~30 minutes for our tests, around three days for array of five 2TB disks) so
letting it finish is probably not something we would like to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants