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.

Array to cache問題

Featured Replies

請問當我的appdata/domains/system皆設置array->cache時
vm manager 和 docker manager使用的libvirt.img 和 docker.img需要改到cache底下嗎?

 

user/domains和cache/domains下的檔案會分別存在各自的資料夾底下對嗎? 應該不會是軟連結或硬連結實現?

Solved by JackieWu

  • Solution
Quote

vm manager 和 docker manager使用的libvirt.img 和 docker.img需要改到cache底下嗎?

 

不需要。

 

Quote

user/domains和cache/domains下的檔案會分別存在各自的資料夾底下對嗎? 應該不會是軟連結或硬連結實現?

 

跟软连接和硬链接无关,unraid 使用一种 aggregated view (聚合视图)的功能来将 cache 或是 array 上的所有根目录文件进行聚合,例如你在 user/domains 看的内容是经过聚合之后的内容,而实际存放的地址可能是 cache 或是其他的地方。这个功能借助的是 unraid 自己开发的 shfs 文件系统,具体的内容可以参考我的博客:为什么unRAID下载/拷贝文件时CPU占用高:详解FUSE-SHFS、I/O问题和解决办法

Edited by JackieWu

  • Author
34 minutes ago, JackieWu said:

 

不需要。

 

 

跟软连接和硬链接无关,unraid 使用一种 aggregated view (聚合视图)的功能来将 cache 或是 array 上的所有根目录文件进行聚合,例如你在 user/domains 看的内容是经过聚合之后的内容,而实际存放的地址可能是 cache 或是其他的地方。这个功能借助的是 unraid 自己开发的 shfs 文件系统,具体的内容可以参考我的博客:为什么unRAID下载/拷贝文件时CPU占用高:详解FUSE-SHFS、I/O问题和解决办法

 

感謝您的回覆 這解答了我的疑惑

  • Author
56 minutes ago, JackieWu said:

 

不需要。

 

 

跟软连接和硬链接无关,unraid 使用一种 aggregated view (聚合视图)的功能来将 cache 或是 array 上的所有根目录文件进行聚合,例如你在 user/domains 看的内容是经过聚合之后的内容,而实际存放的地址可能是 cache 或是其他的地方。这个功能借助的是 unraid 自己开发的 shfs 文件系统,具体的内容可以参考我的博客:为什么unRAID下载/拷贝文件时CPU占用高:详解FUSE-SHFS、I/O问题和解决办法

請教一下
所以設定array to cache
實際情況是 array 底下的檔案挪到cache了 只是share view看起來還在mnt/user底下
那這樣何時會需要array to cache?
怎麼不直接使用cache only就好 反正share view還是看得到

我自己猜想是
如果一開始檔案在array 才會需要先設定為array to cache
執行mover後 檔案從array移到cache

就可以把設定改為cache only

Edited by leonlin

48 minutes ago, leonlin said:

請教一下
所以設定array to cache
實際情況是 array 底下的檔案挪到cache了 只是share view看起來還在mnt/user底下
那這樣何時會需要array to cache?
怎麼不直接使用cache only就好 反正share view還是看得到

我自己猜想是
如果一開始檔案在array 才會需要先設定為array to cache
執行mover後 檔案從array移到cache

就可以把設定改為cache only

 

我可能没理解你的意思,我个人看法是 share view 与文件的存储位置没有什么太大的关联。share view 只是说提供了一种便利性,而文件存储在 cache 还是 array 上取决于用户自身的需求。

 

如果疑惑的地方是对 unraid 的 mover 动作不太理解,你可以参考这里:详解 Unraid 缓存策略及应用案例,如果是不太理解 cache 与 array 之间的关系,可以看这里:阵列与缓存池

  • Author
1 hour ago, JackieWu said:

 

我可能没理解你的意思,我个人看法是 share view 与文件的存储位置没有什么太大的关联。share view 只是说提供了一种便利性,而文件存储在 cache 还是 array 上取决于用户自身的需求。

 

如果疑惑的地方是对 unraid 的 mover 动作不太理解,你可以参考这里:详解 Unraid 缓存策略及应用案例,如果是不太理解 cache 与 array 之间的关系,可以看这里:阵列与缓存池



ok 您的blog裡面的案例剛好符合我的疑問 感謝
如果array已經全部移動到cache 就可以改成cache only了
所以array->cache通常只有在第一次使用緩存空間會需要做這樣的搬移動作

 

但如果system 資料夾 都在緩存中 有沒有好的plugin可以提供system share的備份?
(目前appdata 和 domains 都有plugin可以backup到array中)

如果沒有好的插件,只能倚靠cache 實現Raid ,那下圖設定是對的嗎?

image.thumb.png.e5af4991147307909491574f32a610ca.png

Edited by leonlin

On 1/3/2024 at 4:29 PM, leonlin said:

如果沒有好的插件,只能倚靠cache 實現Raid ,那下圖設定是對的嗎?

image.thumb.png.e5af4991147307909491574f32a610ca.png

这样的pool中两块硬盘做了raid1,我曾经这样配置过并且手动移除掉一块硬盘再启动阵列,数据还在,你可以再试试

 

另外system文件夹中默认只是存放docker镜像和虚拟机的libvirt.img文件,似乎没有必要做备份

 

针对文件夹的备份,rclone和rsync都是不错的工具

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.