Gaoxing Posted March 7, 2022 Share Posted March 7, 2022 我的硬盘2和缓存盘都是256G NVME固态驱动器,分别插入主板的2个nvme插槽中。 我想使用其中一个作为缓存阵列的硬盘,另一个作为普通阵列硬盘,但是设置后,我的两个硬盘的内容完全相同,并且在阵列硬盘2中创建的文件夹将自动出现在缓存磁盘中。 其内容如下 磁盘2:现金: Quote Link to comment
lyqalex Posted March 7, 2022 Share Posted March 7, 2022 unraid~共享,打开这些内容相同的文件夹,缓存设置一下模式。 Quote Link to comment
Gaoxing Posted March 7, 2022 Author Share Posted March 7, 2022 1 hour ago, lyqalex said: unraid~共享,打开这些内容相同的文件夹,缓存设置一下模式。 我只设置了这几个文件夹是cash里面的,但是我在disk2中创建新的文件夹后咋cash里面页游公益而一样的文件夹 Quote Link to comment
JorgeB Posted March 7, 2022 Share Posted March 7, 2022 Hope you don't mind english, the above suggests both devices are in the same pool, you can confirm by posting the output of: btrfs fi usage -T /mnt/disk2 Quote Link to comment
Gaoxing Posted March 7, 2022 Author Share Posted March 7, 2022 8 minutes ago, JorgeB said: Hope you don't mind english, the above suggests both devices are in the same pool, you can confirm by posting the output of: btrfs fi usage -T /mnt/disk2 谢谢,我输入命令之后,显示如下的内容,我需要怎么设置才能让disk2作为阵列而不是缓存呢 Quote Link to comment
JorgeB Posted March 7, 2022 Share Posted March 7, 2022 Yes, like suspected both devices are in the same pool, we can delete one device form the pool, in the end do you want that data to be in disk2 or cache? Quote Link to comment
Gaoxing Posted March 7, 2022 Author Share Posted March 7, 2022 我希望数据位于disk2中,请问我需要怎么操作呢 Quote Link to comment
Solution JorgeB Posted March 7, 2022 Solution Share Posted March 7, 2022 -stop array -unassign the cache device -start array -in the console type: btrfs balance start -f -dconvert=single -mconvert=single /mnt/disk2 -once that finishes type: btrfs dev del /dev/nvme0n1p1 /mnt/disk2 -once that's done stop the array -re-assign the cache device -start array, cache will be unmountable, format to start using it. 1 Quote Link to comment
Gaoxing Posted March 7, 2022 Author Share Posted March 7, 2022 20 minutes ago, JorgeB said: -stop array -unassign the cache device -start array -in the console type: btrfs balance start -f -dconvert=single -mconvert=single /mnt/disk2 -once that finishes type: btrfs dev del /dev/nvme0n1p1 /mnt/disk2 -once that's done stop the array -re-assign the cache device -start array, cache will be unmountable, format to start using it. 非常感谢。我一会尝试一下 Quote Link to comment
lyqalex Posted March 7, 2022 Share Posted March 7, 2022 我估计是你以前是把这两个固态ssd放在同一个btrfs池中,他们连结为raid。而现在你把他们简单分开放到两个地方,所以出现这个问题。 先把固态必须保留的文件拷贝到其他磁盘留存,然后按照JorgeB的尝试,或者直接进行格式两个固态,然后再分配到阵列和cache池。 Quote Link to comment
Gaoxing Posted March 8, 2022 Author Share Posted March 8, 2022 8 hours ago, lyqalex said: 我估计是你以前是把这两个固态ssd放在同一个btrfs池中,他们连结为raid。而现在你把他们简单分开放到两个地方,所以出现这个问题。 先把固态必须保留的文件拷贝到其他磁盘留存,然后按照JorgeB的尝试,或者直接进行格式两个固态,然后再分配到阵列和cache池。 谢谢,情况和您说的一样,以前确实是放在缓存池里面 Quote Link to comment
Recommended Posts
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.