Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

 

将一个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 左右可用,"丢失”的空间如何找回 ?

Solved by lyqalex

  • Solution

安装Dynamix SSD TRIM 插件,并设置运行计划。

  • Author

trim了一次,然后重启unraid ,问题解决!,感谢!

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.