Mount EBS Volume On Startup

3 Responses to “Mount EBS Volume On Startup”

Comments

  1. levan says:

    Nice post, I was looking for this
    I have done it with checkconfig and ruby before, with rightscale images but this post is better.
    Regards
    L

  2. Gwydion says:

    Hi, is correct line 90 of the code?

    I can’┬ít make it work

    Best regards

    if [ -e "$DEV" ]; then
    $logger “Opps.. $DEV device already used on this system.”
    exit 1″$DEV” ]; do
    /bin/sleep 1
    CTR=`expr $CTR + 1`
    if [ $CTR -eq $MAX_TRIES ]
    then
    /bin/echo “WARNING: Cannot attach volume $VOL to $DEV — Giving up after $MAX_TRIES attempts” | $logger
    /bin/echo “Check Zone of EBS and Instance is the same.” | $logger
    exit 1
    fi
    done

  3. rodney says:

    Hi Gwydion,

    Thanks for checking the script. I’ve updated the code to fix the error which seems cause by updating worpress syntax highlighter.

    Let me know how it goes.
    Cheers!

Share Your Thoughts