[求助]btrfs的cache “丢失”可用空间问题


Go to solution Solved by lyqalex,

Recommended Posts

 

将一个2tb(实际容量1.8TB左右)的ssd设置为btrfs的cache, 但发现只有1.08TB可用, 有762GB unallocated, Used 773GB

btrfs filesystem usage -T /mnt/cache
Overall:
    Device size:                   1.82TiB
    Device allocated:              1.08TiB
    Device unallocated:          762.00GiB
    Device missing:                  0.00B
    Used:                        773.15GiB
    Free (estimated):              1.06TiB      (min: 1.06TiB)
    Free (statfs, df):             1.06TiB
    Data ratio:                       1.00
    Metadata ratio:                   1.00
    Global reserve:              512.00MiB      (used: 0.00B)
    Multiple profiles:                  no

             Data      Metadata  System
Id Path      single    single    single    Unallocated
-- --------- --------- --------- --------- -----------
 1 /dev/sdf1   1.07TiB   2.01GiB   4.00MiB   762.00GiB
-- --------- --------- --------- --------- -----------
   Total       1.07TiB   2.01GiB   4.00MiB   762.00GiB
   Used      772.21GiB 963.69MiB 176.00KiB

 

在 cache目录 查看占用, 存储的数据只有1000M左右, df -h 显示我使用了774G, web显示我使用了831G。。。

# cd /mnt/cache
# du -h 
...
1009M   ./appdata
0       ./multimedia
0       ./others
0       ./isos
1.6M    ./files/torrent
0       ./files/books
1.6M    ./files
1011M   .
#lsblk
...
sdf      8:80   0   1.8T  0 disk
└─sdf1   8:81   0   1.8T  0 part /mnt/cache

#df -h
...
/dev/sdf1       1.9T  774G  1.1T  42% /mnt/cache

 

web页面显示信息

714503911_2022-04-28111224.thumb.png.4b69ab3900e203877748db3408f2d659.png

 

 

问题:cache中用1G左右,1.8TB的ssd只有1Tb 左右可用,"丢失”的空间如何找回 ?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.