df 또는 df -h 명령어를 입력하면 아래와 같이 용량이 음수로 표현되는 경우가 있어요.
실제 용량은 부족함이 없는 상태이구요. 며칠 괴롭혀 봤는데 시스템 다운이나 별다른 이상은 없긴합니다.
왜 이런걸까요 ??
아, 리눅스 배포판은 Debian 11 이고 Intel i7 7700 CPU, RAM 64GB, SSD 500GB 환경입니다.
# df -h
Filesystem Size Used Avail Use% Mounted on
udev 32G 0 32G 0% /dev
tmpfs 6.3G 2.2M 6.3G 1% /run
/dev/sda1 12G -2.5G 14G - /
tmpfs 32G 0 32G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 32G 47M 32G 1% /tmp
/dev/sda3 437G 71M 415G 1% /srv/dev-disk-by-uuid-cf0fca17-c852-4178-b5b0-e953b2ffc2e2
tmpfs 6.3G 0 6.3G 0% /run/user/0
overlay 12G -2.5G 14G - /var/lib/docker/overlay2/2d04187351ac087783fb8b30b46295f0d61c138cbe09e3b51936250821987936/merged
Ȥ½Ã SSD Àΰ¡¿ä?
Windows¿¡ ¿¬°áÇؼ NTFS Æ÷¸ËÇصµ Á¤»óÀ¸·Î ³ª¿É´Ï´Ù.
¸®´ª½º À缳ġ Ç϶ó´Â °è½ÃÀΰ¡¿ä ?^^
# fdisk -l
Disk /dev/sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Samsung SSD 850
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2a59567a
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 41945087 41943040 20G 83 Linux
/dev/sda2 974774270 976771071 1996802 975M 5 Extended
/dev/sda3 41945088 974772223 932827136 444.8G 83 Linux
/dev/sda5 974774272 976771071 1996800 975M 82 Linux swap / Solaris
# parted -l
Model: ATA Samsung SSD 850 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 21.5GB 21.5GB primary ext4 boot
3 21.5GB 499GB 478GB primary ext4
2 499GB 500GB 1022MB extended
5 499GB 500GB 1022MB logical linux-swap(v1)
docker¿Í °ü°èÀÖ´Â °Å °°½À´Ï´Ù
https://uiandwe.tistory.com/1313
2. µµÄ¿ °ü°è ÀÖ´Â°Í ¸Â³×¿ä.
¾Æ·¡¿Í °°ÀÌ ÄÁÅ×ÀÌ³Ê ÇÑ°³ ´õ »ý¼ºÇÏ´Ï±î ¿À¹ö·¹ÀÌ°¡ Çϳª ´õ »ý¼ºÇÏ°í ±âÁ¸ Á¤º¸°¡ º¯µ¿µË´Ï´Ù.
# df -h
Filesystem Size Used Avail Use% Mounted on
udev 32G 0 32G 0% /dev
tmpfs 6.3G 2.3M 6.3G 1% /run
/dev/sda1 12G -2.3G 13G - /
tmpfs 32G 0 32G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 32G 0 32G 0% /tmp
/dev/sda3 437G 71M 415G 1% /srv/dev-disk-by-uuid-cf0fca17-c852-4178-b5b0-e953b2ffc2e2
overlay 12G -2.3G 13G - /var/lib/docker/overlay2/2d04187351ac087783fb8b30b46295f0d61c138cbe09e3b51936250821987936/merged
overlay 12G -2.3G 13G - /var/lib/docker/overlay2/482b81ae6af970e251ff755fa9c814c5356f72910d18b1a2e1789d529670944e/merged
tmpfs 6.3G 0 6.3G 0% /run/user/0
3. ±Ùµ¥, µµÄ¿ ¸¹ÀÌ ¾²´Â ºÐµéÀº ¸î ½Ê°³µµ ¾µÅÙµ¥... À¹.
4. µµÄ¿¸¦ /var/lib/docker ¿¡ ¼³Ä¡ÇÏÁö ¾Ê°í, ¾ÆÁÖ ³Î³ÎÇÑ º°µµÀÇ ÆÄƼ¼Ç¿¡ ¼³Ä¡Çѹø Çغ¸°Ú½À´Ï´Ù...