[Errno 28] No space left on device

LΒ·2022λ…„ 8μ›” 2일
0
post-thumbnail
post-custom-banner

λ…μž λŒ€μƒπŸ“£

πŸ‘‰ Docker Container둜 무언가 ꡬ좕쀑이신 λΆ„
πŸ‘‰ Docker Container μš©λŸ‰μ΄ λΆ€μ‘±ν•˜μ‹  λΆ„


μΆœκ°„ μ΄μœ β“

Docker μ»¨ν…Œμ΄λ„ˆ λ‚΄μ—μ„œ pip μ„€μΉ˜ μ‹œ, μš©λŸ‰ λΆ€μ‘± μ—λŸ¬ λ°œμƒ 확인


문제 νŒŒμ•…πŸ”

Collecting pyspark
  Downloading pyspark-3.3.0.tar.gz (281.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 281.3/281.3 MB 5.8 MB/s eta 0:00:00
ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device
Q: pip둜 무언가 μ„€μΉ˜ν•˜λ €κ³  ν•˜λ©΄, 자꾸 λ””λ°”μ΄μŠ€μ— 남은 곡간이 μ—†λ‹€κ³  ν•΄μš”πŸ˜₯

문제 ν•΄κ²°πŸŽŠ

A: 둜컬과 λ§€ν•‘λœ 도컀 파일 μ‹œμŠ€ν…œμ˜ μš©λŸ‰ λΆ€μ‘± ν˜„μƒμž…λ‹ˆλ‹€πŸ˜Œ
   νŒŒμΌμ‹œμŠ€ν…œ(FS)의 μ’…λ₯˜λ₯Ό ν™•μΈν•˜μ‹œκ³ ,
   ν•˜λ‹¨μ˜ FS μ’…λ₯˜λ³„ μ†”λ£¨μ…˜μ„ μ°Έκ³ ν•΄μ£Όμ„Έμš”β—β—
  • FS - EXT4
    1. docker containerμ—μ„œ λ§€ν•‘λœ νŒŒμΌμ‹œμŠ€ν…œλͺ… 확인
      $ df -h
      Filesystem                                                                                       Size  Used Avail Use% Mounted on
      /dev/mapper/docker-8:1-2360722-dc51708a7597fd588376b1355834b09fb3ea4e3ed34ef6c94c5d8664c780bbdd  9.8G  9.3G   25M 100% /
    2. dm table 수기 μž‘μ„±μ„ μœ„ν•œ μž‘μ—…
      $ sudo dmsetup table docker-8:1-2360722-dc51708a7597fd588376b1355834b09fb3ea4e3ed34ef6c94c5d8664c780bbdd
      0 20971520 thin 253:0 162
      # μƒκΈ°μ˜ 20971520이 ν˜„μž¬ docker container μš©λŸ‰
    3. μ›ν•˜λŠ” μš©λŸ‰ κΈ°μž…μ„ μœ„ν•œ μž‘μ—…
      $ echo 0 41943040 thin 253:0 162 | sudo dmsetup load docker-8:1-2360722-dc51708a7597fd588376b1355834b09fb3ea4e3ed34ef6c94c5d8664c780bbdd
      # μƒκΈ°μ˜ 41943040에 μ›ν•˜λŠ” μš©λŸ‰ κΈ°μž…
    4. dm 등둝 μž‘μ—… 및 dm table 확인
      $ sudo dmsetup resume docker-8:1-2360722-dc51708a7597fd588376b1355834b09fb3ea4e3ed34ef6c94c5d8664c780bbdd
      $ sudo dmsetup table docker-8:1-2360722-dc51708a7597fd588376b1355834b09fb3ea4e3ed34ef6c94c5d8664c780bbdd
      0 41943040 thin 253:0 162
      # μƒλ‹¨μ˜ 41943040처럼 λ³€κ²½λœ ν…Œμ΄λΈ” λ‚΄μš© 확인
    5. dm table λ‚΄μš©μ„ μ μš©ν•˜κΈ° μœ„ν•œ μž‘μ—…
      $ sudo resize2fs /dev/mapper/docker-8:1-2360722-dc51708a7597fd588376b1355834b09fb3ea4e3ed34ef6c94c5d8664c780bbdd
  • FS - XFS
    1. (FS - EXT4 의 4λ‹¨κ³„κΉŒμ§€ 동일)
    2. dm table λ‚΄μš©μ„ μ μš©ν•˜κΈ° μœ„ν•œ μž‘μ—…
      $ sudo xfs_growfs /dev/mapper/docker-8:1-2360722-dc51708a7597fd588376b1355834b09fb3ea4e3ed34ef6c94c5d8664c780bbdd
A: 상기 μ ˆμ°¨λŒ€λ‘œ μ‹œν–‰ν•˜λ©΄ μ»¨ν…Œμ΄λ„ˆ μš©λŸ‰ λΆ€μ‘± ν˜„μƒμ΄ ν•΄κ²°λ©λ‹ˆλ‹€πŸ˜πŸ˜πŸ˜€
profile
데이터 μš”λ¦¬μ‚¬
post-custom-banner

0개의 λŒ“κΈ€