Effect of vacancy on elastic deformation of metallic materials