How To: Add local sync depot space to an MWS in AWS
Reference Number: AA-00271 Views: 5723 Created: 04-20-2015 13:41 Last Updated: 08-13-2015 10:18

Applies To:

DynaCenter 6.0 and later

Background:

If the default local sync depot will be used, then sufficient space needs to be allocated to contain the sync data. One way to do this is to create EBS volumes, attach them to the instance, add them to the Logical Volume Manager, and configure the logical volume to mount on boot.

More Information:

The amount of space you need for the sync depot depends entirely on how many sync operations you might run simultaneously and how much data each sync operation will include. For example, to estimate the storage you will need for your sync depot, calculate your average data-change-set per system and then allocate storage with N x A available space - where ā€œNā€ is the number of systems you might sync simultaneously and ā€œAā€ is the average data-change set for each system.

Resolution:

1.     Install the Logical Volume Management Tools, if they are not already installed:

yum install lvm2

2.     Add EBS volumes to the sync depot:

Example to add three EBS volumes to the sync depot.

1.     Create three EBS volumes, and attach them to the MWS instance.

2.     Use fdisk to find the volume names:

fdisk -l

3.     Run the pvcreate command against the new disks:

pvcreate /dev/sdi /dev/sdj /dev/sdk

4.     Create a volume group named sync_vg:

vgcreate sync_vg /dev/sdi /dev/sdj /dev/sdk

5.     Create a logical volume within the volume group:

lvcreate -n sync_lv -l 100%FREE sync_vg

6.     Make a filesystem on the new logical volume:

mkfs -t ext4 /dev/sync_vg/sync_lv

7.     Add an entry to /etc/fstab so the logical volume is mounted automatically on reboot:

/dev/sync_vg/sync_lv /repo/sync ext4 defaults 1 1

8.     Mount the filesystem:

mount /repo/sync

9.     Set the correct directory permissions and ownerships:

chown apache:apache /repo/sync
chmod 775 /repo/sync


To expand the size of the sync depot at a later time, add additional EBS volumes.

For example:

1.     Use fdisk to find the new volume name:

fdisk -l

2.     Make the new disk useable by LVM:

pvcreate /dev/sdm

3.     Add the new disk to the sync_vg volume group:

vgextend sync_vg /dev/sdm

4.     Extend the logical volume so it can use the new disk:

lvextend -l +100%FREE /dev/sync_vg/sync_lv

5.     Ensure there are no active synchronization jobs; there should be no output from the following command:

dccmd list tasks --state=running | grep SyncServerImage

6.     Resize the filesystem to use the new space (the filesystem does not need to be unmounted prior to resizing):

resize2fs /dev/sync_vg/sync_lv