본문 바로가기

AWS

EC2 instance(Amazon Linux, 및 EBS 사용) xfs 파일 시스템 사용하기

Install xfs support(as root user)
yum install xfsprogs
grep -q xfs /proc/filesystems || modprobe xfs

1. Create a EBS Volume in AWS Management Console
  1. Select Amazon EC2 -> Volumes
  2. Click Create Volume
  3. Size = The size you need
  4. Availability Zone = Must be the same zone as your EC2 instance
2. Attach the volume to the instance
  1. Select the new volume and click Attach Volume
  2. Name the device /dev/sdh
3. Create and mount a file system
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