- created two EBS volumes using cloud formation template.
- attached EBS volumes using aws ec2 attach volume
- trying to stripe two volumes using - mdadm --create --verbose /dev/md0 --level=0 --name=InfluxRaid --raid-devices=2 /dev/xvdb /dev/xvdc\n and i am getting error /dev/xvdb is not found.
While it's hard to say without more details, I suspect it's related to a delay in attaching the volumes to your instance during startup. See this forum post for more details, but I think you might want to add some wait in your
UserData script, like:
# Wait for the EBS volume to show up while [ ! -e /dev/sdh ]; do echo Waiting for EBS volume to attach; sleep 5; done