Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Multiple EBS drives on ec2

avatar
Explorer

Trying to figure out how to mount multiple EBS drives using Director.

 

I have root drives as EBS, but I would like to mount a couple more of EBS backed drives.

1 ACCEPTED SOLUTION

avatar
Super Collaborator
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
2 REPLIES 2

avatar
Super Collaborator
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login

avatar
Super Collaborator

Guru Medasani, a Solutions Architect here at Cloudera, has been able to use this technique to add EBS volumes to new instances, and he added additional commands to format the drives and mount them. Here's an extension to the script above that handles those tasks, based on his work. He used a Red Hat Enterprise Linux 7.2 AMI (ami-2051294a), so the commands for other operating systems or versions may vary.

 

# Create filesystems on the devices
mkfs.xfs /dev/xvdf
mkfs.xfs /dev/xvdg

# Create directories for the mount points
mkdir /data1
mkdir /data2
# Add the mount points to /etc/fstab echo "/dev/xvdf /data1 xfs defaults,noatime 0 0" >> /etc/fstab echo "/dev/xvdg /data2 xfs defaults,noatime 0 0" >> /etc/fstab sleep 10 # Mount all the devices mount -a