<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dikapediav2.com/wiki/index.php?action=history&amp;feed=atom&amp;title=EFS</id>
	<title>EFS - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dikapediav2.com/wiki/index.php?action=history&amp;feed=atom&amp;title=EFS"/>
	<link rel="alternate" type="text/html" href="https://dikapediav2.com/wiki/index.php?title=EFS&amp;action=history"/>
	<updated>2026-05-15T09:11:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://dikapediav2.com/wiki/index.php?title=EFS&amp;diff=67&amp;oldid=prev</id>
		<title>Ardika Sulistija: Created page with &quot;&lt;b&gt;EFS&lt;/b&gt; - Elastic Filesystem  ====Other methods besides DD==== ----  * How can I copy data to and from Amazon EFS in parallel to maximize performance on my EC2 instance?&lt;/br&gt; https://aws.amazon.com/premiumsupport/knowledge-center/efs-copy-data-in-parallel/  DD is not parallel, so there are other methods to create files much quicker than DD. Below is a process on how you can do so:  1) Create ten thousand small files in your local storage on your instance.   $ mkdir /t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dikapediav2.com/wiki/index.php?title=EFS&amp;diff=67&amp;oldid=prev"/>
		<updated>2024-08-27T00:10:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;b&amp;gt;EFS&amp;lt;/b&amp;gt; - Elastic Filesystem  ====Other methods besides DD==== ----  * How can I copy data to and from Amazon EFS in parallel to maximize performance on my EC2 instance?&amp;lt;/br&amp;gt; https://aws.amazon.com/premiumsupport/knowledge-center/efs-copy-data-in-parallel/  DD is not parallel, so there are other methods to create files much quicker than DD. Below is a process on how you can do so:  1) Create ten thousand small files in your local storage on your instance.   $ mkdir /t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;b&amp;gt;EFS&amp;lt;/b&amp;gt; - Elastic Filesystem&lt;br /&gt;
&lt;br /&gt;
====Other methods besides DD====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* How can I copy data to and from Amazon EFS in parallel to maximize performance on my EC2 instance?&amp;lt;/br&amp;gt;&lt;br /&gt;
https://aws.amazon.com/premiumsupport/knowledge-center/efs-copy-data-in-parallel/&lt;br /&gt;
&lt;br /&gt;
DD is not parallel, so there are other methods to create files much quicker than DD. Below is a process on how you can do so:&lt;br /&gt;
&lt;br /&gt;
1) Create ten thousand small files in your local storage on your instance.&lt;br /&gt;
&lt;br /&gt;
 $ mkdir /tmp/efs; for each in $(seq 1 10000); do SUFFIX=$(mktemp -u EFS-XXXXXX); sudo dd if=/dev/zero of=/tmp/efs/${SUFFIX} bs=64k count=1; done&lt;br /&gt;
&lt;br /&gt;
2) To test copy the files from your instance to the EFS file system:&lt;br /&gt;
&lt;br /&gt;
 Serial method: &lt;br /&gt;
 $ cd /tmp/efs; time sudo find -L . -maxdepth 1 -type f -exec rsync -aR &amp;#039;{}&amp;#039; /efs/ \;&lt;br /&gt;
 &lt;br /&gt;
 Parallel method: &lt;br /&gt;
 $ cd /tmp/efs; time find -L . -maxdepth 1 -type f | sudo parallel rsync -aR {} /efs/ &lt;br /&gt;
&lt;br /&gt;
3) To remove:&lt;br /&gt;
&lt;br /&gt;
 Serial method: &lt;br /&gt;
 $ cd /mnt/efs; time sudo find -L . -maxdepth 1 -exec rm -rfv {} \;&lt;br /&gt;
 &lt;br /&gt;
 Parallel method: &lt;br /&gt;
 $ cd /mnt/efs; find -L . -maxdepth 1 -type f | sudo parallel rm -rfv {}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====TESTED BY MOUNTING EFS TO AN INSTANCE, AND CREATED DUMMY FILES IN THE LOCAL STORAGE. THEN USE GNU PARALLEL AND RSYNC TO COPY 20GB of files to my EFS====&lt;br /&gt;
----&lt;br /&gt;
 &lt;br /&gt;
https://aws.amazon.com/premiumsupport/knowledge-center/efs-copy-data-in-parallel/&lt;br /&gt;
 &lt;br /&gt;
1) Create EFS filesystem&lt;br /&gt;
* Modify/adjust security group of mount targets to allow inbound connection from EC2 instance. &lt;br /&gt;
* Creating security groups using the AWS Management Console: https://docs.aws.amazon.com/efs/latest/ug/accessing-fs-create-security-groups.html#create-security-groups-console&lt;br /&gt;
* Ensure the security group of the EC2 instance allows outbound connection to the EFS filesystem (or open to ALL)&lt;br /&gt;
 &lt;br /&gt;
2) Connect to your EC2 instance and ensure the amazon-efs-utils package is installed. This package contains the EFS mount helper. The Amazon EFS mount helper simplifies mounting your file systems. &lt;br /&gt;
* https://docs.aws.amazon.com/efs/latest/ug/installing-amazon-efs-utils.html&lt;br /&gt;
* https://docs.aws.amazon.com/efs/latest/ug/efs-mount-helper.html&lt;br /&gt;
 $ sudo yum install -y amazon-efs-utils (as you are using Amazon Linux, this should already be installed)&lt;br /&gt;
  &lt;br /&gt;
3) Make a directory to mount the EFS filesystem:&lt;br /&gt;
 $ mkdir ~/efs-mount-point&lt;br /&gt;
  &lt;br /&gt;
4) Next mount the EFS filesystem using the EFS mount helper: &lt;br /&gt;
* https://docs.aws.amazon.com/efs/latest/ug/mounting-fs-mount-helper.html#mounting-fs-mount-helper-ec2&lt;br /&gt;
 $  sudo mount -t efs fs-b32311b6:/ ~/efs-mount-point/&lt;br /&gt;
  &lt;br /&gt;
That should complete the mounting process. Next we can increase the EFS filesystem size by running the following commands: https://aws.amazon.com/premiumsupport/knowledge-center/efs-copy-data-in-parallel/&lt;br /&gt;
 &lt;br /&gt;
5) The command below will create a temporary directory in your local storage. It will then create 20 x 1GB files within that directory. &lt;br /&gt;
 $ mkdir /tmp/efs;  for each in $(seq 1 20); do SUFFIX=$(mktemp -u EFS-XXXXXX); sudo dd if=/dev/zero of=/tmp/efs/${SUFFIX} bs=1M count=1024; done&lt;br /&gt;
 &lt;br /&gt;
* To confirm the number of files created, you can run the following command:&lt;br /&gt;
 $ ls -alh /tmp/efs &amp;gt; files_created.txt ; grep -i EFS &amp;quot;files_created.txt&amp;quot; | wc -l&lt;br /&gt;
 &lt;br /&gt;
6) Next, run the following commands:&lt;br /&gt;
 $ sudo amazon-linux-extras install epel&lt;br /&gt;
 $ sudo yum install nload sysstat parallel -y&lt;br /&gt;
 $ sudo yum install time -y&lt;br /&gt;
 $ sudo yum install rsync -y&lt;br /&gt;
 &lt;br /&gt;
7) Once you have created the files and installed GNU Parallel, run the following command to copy the files from your instance to the EFS file system: &lt;br /&gt;
 # didn&amp;#039;t work:&lt;br /&gt;
 $ cd /tmp/efs; time find -L . -maxdepth 1 -type f | sudo parallel rsync -aR {} ~/efs-mount-point&lt;br /&gt;
 &lt;br /&gt;
 # worked&lt;br /&gt;
 $ cd /tmp/efs; sudo time find -L . -type f | parallel rsync -avR {} ~/efs-mount-point&lt;br /&gt;
 &lt;br /&gt;
Example output while its running:&lt;br /&gt;
 sent 1,074,004,098 bytes  received 35 bytes  49,953,680.60 bytes/sec&lt;br /&gt;
 total size is 1,073,741,824  speedup is 1.00&lt;br /&gt;
 sending incremental file list&lt;br /&gt;
 EFS-UwWFli&lt;br /&gt;
 &lt;br /&gt;
 sent 1,074,004,099 bytes  received 35 bytes  49,953,680.65 bytes/sec&lt;br /&gt;
 total size is 1,073,741,824  speedup is 1.00&lt;br /&gt;
 sending incremental file list&lt;br /&gt;
 EFS-yqR525&lt;br /&gt;
 &lt;br /&gt;
 sent 1,074,004,099 bytes  received 35 bytes  49,953,680.65 bytes/sec&lt;br /&gt;
 total size is 1,073,741,824  speedup is 1.00&lt;br /&gt;
 sending incremental file list&lt;br /&gt;
 EFS-MJjQfR&lt;br /&gt;
 &lt;br /&gt;
Once it&amp;#039;s completed:&lt;br /&gt;
 sent 1,074,004,099 bytes  received 35 bytes  52,390,445.56 bytes/sec&lt;br /&gt;
 total size is 1,073,741,824  speedup is 1.00&lt;br /&gt;
 &lt;br /&gt;
I was able to confirm my EFS filesystem grew from 6KiB to 20GiB.&lt;/div&gt;</summary>
		<author><name>Ardika Sulistija</name></author>
	</entry>
</feed>