AWS
EC2 instance(Amazon Linux, 및 EBS 사용) xfs 파일 시스템 사용하기
nickas
2015. 8. 12. 16:14
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 |