I'm building a ECE cluster at AWS. I'm using the AMIs provided by Elastic.
I'm trying to create my allocator EC2 instances with 4TB of disk. I have done this in cloud formation, with the following parameters.
BlockDeviceMappings:
-
DeviceName: /dev/sdb
Ebs:
VolumeSize: 4000
VolumeType: gp2
DeleteOnTermination: true
In the OS userdata I run the following commands.
"mkfs -t xfs /dev/xvdb\n",
"mkdir /data\n",
"mount /dev/xvdb /data\n",
"chown elastic.elastic /data\n",
"echo '/dev/xvdb /data ext4 defaults,nofail 0 2' >> /etc/fstab\n",
OS looks like this,
[elastic@ip-10-212-98-233 mapper]$ df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 16G 0 16G 0% /dev
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 16G 8.3M 16G 1% /run
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/xvda3 19G 1.7G 17G 10% /
/dev/xvda1 1014M 209M 806M 21% /boot
/dev/mapper/lxc-data 19G 1.1G 18G 6% /mnt/data
/dev/xvdb 4.0T 33M 4.0T 1% /data
tmpfs 3.2G 0 3.2G 0% /run/user/1000
I try to install ECE with the following command
./elastic-cloud-enterprise-installer.sh --coordinator-host 10.212.97.168 --host-storage-path /data --debug
This errors out, with nothing useful, debug output is below.
-- Debug Info --
NODE_TYPE - additional
REPOSITORY - docker.elastic.co/cloud-enterprise
RUNNER_REGION - ece-region
RUNNER_HOST_IP - 10.212.98.233
ELASTIC_UID - 1000
NODE_TYPE - additional
RUNNER_AVAILABILITY_ZONE - ece-region-1b
HOST_STORAGE_ROOT_VOLUME_PATH - /
MEMORY_SETTINGS - {}
COORDINATOR_HOST - 10.212.97.168
RUNNER_ID - 10.212.98.233
HOST_STORAGE_PATH - /data
RUNNER_CAPACITY - 26971
CLOUD_ENTERPRISE_VERSION - 1.0.0-beta2
HOST_STORAGE_DEVICE_PATH - /dev/mapper/lxc-data
ELASTIC_GID - 1000
-- Verifying Prerequisites --
Checking host storage path... PASSED
Checking docker version... PASSED
Checking internal ip connectivity... PASSED
Checking coordinator connectivity... PASSED
Checking OS settings... PASSED
Checking OS kernel version... PASSED
Checking Minimum required memory... PASSED
-- Completed Verifying Prerequisites --
- Running Bootstrap container
- Monitoring bootstrap process
Errors have caused Elastic Cloud Enterprise installation to fail
I believe the problem is how I'm creating the filesystem or mounting it. The install worked fine before I started trying to add the large filesystem. Am I doing this the proper way? Can someone help?