copr-be: scan raid10 if the fs is not found
This commit is contained in:
parent
bd91e5759d
commit
cf03cc0547
1 changed files with 8 additions and 0 deletions
|
@ -26,6 +26,14 @@
|
||||||
stat: path=/dev/disk/by-label/copr-repo-raid10
|
stat: path=/dev/disk/by-label/copr-repo-raid10
|
||||||
register: stat_repo_fs
|
register: stat_repo_fs
|
||||||
|
|
||||||
|
- name: scan the raid volumes
|
||||||
|
when: not stat_repo_fs.stat.exists
|
||||||
|
shell: mdadm --assemble --scan && sleep 5
|
||||||
|
|
||||||
|
- name: stat the ext4 filesystem
|
||||||
|
stat: path=/dev/disk/by-label/copr-repo-raid10
|
||||||
|
register: stat_repo_fs
|
||||||
|
|
||||||
- name: fail if ext4 filesystem is not found by devmapper
|
- name: fail if ext4 filesystem is not found by devmapper
|
||||||
debug: msg=checked
|
debug: msg=checked
|
||||||
failed_when: not stat_repo_fs.stat.exists
|
failed_when: not stat_repo_fs.stat.exists
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue