Working with DataSync discovery jobs
After you deploy your AWS DataSync agent and add your on-premises storage system to DataSync Discovery, you can run discovery jobs to collect information about the system and get AWS migration recommendations.
Starting a discovery job
You can run a discovery job for up to 31 days. A storage system can have only one active discovery job at a time. The information that a discovery job collects is available for up to 60 days following the end of the job (unless you remove the related storage system from DataSync Discovery before that).
Tip
DataSync Discovery can provide more accurate recommendations the longer your discovery job runs. We recommend running a discovery job for at least 14 days.
With the AWS Command Line Interface (AWS CLI), you can run a discovery job for as short as 1 hour.
Copy the following
start-discovery-job
command:aws datasync start-discovery-job \ --storage-system-arn "
your-storage-system-arn
" \ --collection-duration-minutesdiscovery-job-duration
Specify the following parameters in the command:
-
--storage-system-arn
– Specify the Amazon Resource Name (ARN) of the on-premises storage system that you added to DataSync Discovery. -
--collection-duration-minutes
– Specify how long that you want the discovery job to run in minutes. Enter a value between60
(1 hour) and44640
(31 days).
-
-
Run the
start-discovery-job
command.You get a response that shows the discovery job that you just started.
{ "DiscoveryJobArn": "arn:aws:datasync:us-east-1:123456789012:system/storage-system-abcdef01234567890/job/discovery-job-12345678-90ab-cdef-0abc-021345abcdef6" }
Shortly after starting the discovery job, you can begin looking at the information that the job collects (including storage system capacity and usage).
Stopping a discovery job
Stop a discovery job at any time. You can still get recommendations for a stopped job.
Copy the following
stop-discovery-job
command:aws datasync stop-discovery-job --discovery-job-arn "
your-discovery-job-arn
"For
--discovery-job-arn
, specify the ARN of the discovery job that's currently running.-
Run the
stop-discovery-job
command.If successful, you get an HTTP 200 response with an empty HTTP body.