Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
Sometimes mdadm create fails causing all subsequent commands to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed May 19, 2016
1 parent 884759b commit 641d4e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scripts/vm-disk-utils-0.1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ create_striped_volume()

MDDEVICE=$(get_next_md_device)

sudo udevadm control --stop-exec-queue
mdadm --create ${MDDEVICE} --level 0 --raid-devices ${#PARTITIONS[@]} ${PARTITIONS[*]}
sudo udevadm control --start-exec-queue

MOUNTPOINT=$(get_next_mountpoint)
log "Next mount point appears to be ${MOUNTPOINT}"
Expand Down

0 comments on commit 641d4e4

Please sign in to comment.