Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS EC2 fallocate failed: Text file busy in Ubuntu 17.04 #11

Open
yunyoung1819 opened this issue Jul 22, 2023 · 0 comments
Open

AWS EC2 fallocate failed: Text file busy in Ubuntu 17.04 #11

yunyoung1819 opened this issue Jul 22, 2023 · 0 comments
Assignees
Labels

Comments

@yunyoung1819
Copy link
Owner

yunyoung1819 commented Jul 22, 2023

상황

  • AWS EC2에서 fallocate failed: Text file busy in Ubuntu 17.04 오류 발생

원인

  • EC2 RAM 부족

해결

EC2 swap 메모리 설정

  1. sudo swapon --show
  2. df -h
  3. sudo swapoff -a. // 스왑 사용 비활성화
  4. sudo dd if=/dev/zero of=/swapfile bs=1G count=10 status=progress
  5. sudo chmod 600 /swapfile
  6. sudo mkswap /swapfile
  7. sudo swapon /swapfile
  8. sudo swapon --show
  9. free -h
  10. echo '/swapfile none wap sw 0 0' | sudo tee -a /etc/fstab

참고

@yunyoung1819 yunyoung1819 self-assigned this Jul 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant