yum install xfsprogs grep -q xfs /proc/filesystems || modprobe xfs |
1. Create a EBS Volume in AWS Management Console
2. Attach the volume to the instance
- Select Amazon EC2 -> Volumes
- Click Create Volume
- Size = The size you need
- Availability Zone = Must be the same zone as your EC2 instance
3. Create and mount a file system
- Select the new volume and click Attach Volume
- Name the device /dev/sdh
mkfs.xfs(or mkfs -t xfs) /dev/xvdf mkdir /data mount /dev/xvdf /data -o noatime echo "/dev/xvdf /data xfs noatime 0 0" | sudo tee -a /etc/fstab or vi /etc/fstab insert /dev/xvdf /data xfs noatime 0 0 |
'AWS' 카테고리의 다른 글
RDS DB Instance Class (0) | 2015.08.16 |
---|---|
S3(Scalable Storage in the Cloud) (0) | 2015.08.10 |