DynaCenter 6.0 and later
In addition to supporting the use of Amazon Simple Storage Service (Amazon S3) and Amazon Elastic Block Store (Amazon EBS) for the DynaCenter image depot, DynaCenter also supports Amazon Elastic File System (Amazon EFS) as a storage option.
Create the Amazon EFS and add a “mount target” in the same subnet as the DynaCenter instance. Assign a security group to the DynaCenter instance that allows access to the Amazon EFS. See the Amazon Elastic File System documentation for details.
(Optional) To preserve any existing images stored on the DynaCenter instance:
1. Log in to the DynaCenter instance via SSH.
2. Create a temporary mount point:
sudo mkdir /tmp/efs_tmp
3. Mount the Amazon EFS on the temporary mount point.
sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 fs-7d955139.efs.us-east-1.amazonaws.com://tmp/efs_tmp
Reference: For additional information, in the Amazon Management Console, click Services->EFS, select the appropriate EFS and click the Amazon EC2 mount instructions link.
4. Copy the images from /repo/images to the temporary mount point:
sudo rsync -av --exclude=lost+found /repo/images/ /tmp/efs_tmp/
5. Unmount EFS from the temporary mount point
sudo umount /tmp/efs_tmp
6. Remove the temporary mount point:
sudo rmdir /tmp/efs_tmp
To use EFS as the default DynaCenter image depot:
1. In the Amazon Management Console, click Services->EFS, select the appropriate EFS and then, in the File system access section, note the DNS name of the EFS.
2. Log in to the DynaCenter instance via SSH.
3. Add a line to the /etc/fstab so that the EFS will be mounted automatically at boot time.
fs-7d955139.efs.us-east-1.amazonaws.com:/ /repo/images nfs defaults 0 0
4. Stop the DynaCenter services:
5. Mount the new file system
6. Verify that the new file system is listed in the following command output:
7. Start the DynaCenter services: