waiting 5 seconds till volumes actually get attached.

Eventhough the status of the volume became IN USE, the volume may not be attached actually. Then there is a possibility that next device may attach to the device for previous volumes's device.