Why are the contents of my hard disk 2 and cache disk the same


Go to solution Solved by JorgeB,

Recommended Posts

我的硬盘2和缓存盘都是256G NVME固态驱动器,分别插入主板的2个nvme插槽中。

我想使用其中一个作为缓存阵列的硬盘,另一个作为普通阵列硬盘,但是设置后,我的两个硬盘的内容完全相同,并且在阵列硬盘2中创建的文件夹将自动出现在缓存磁盘中。

image.thumb.png.ce7017c38fe6413ff039361c070c6d50.png

其内容如下

磁盘2:image.png.1f4eaabb5a5e89ac957987f948de1142.png现金:image.png.5202ba4d850cca3a21e6f0ccbf67fe12.png

Link to comment
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作为阵列而不是缓存呢

image.png.8f4e238afb9b586efcf594f7617720ee.png

Link to comment
  • Solution

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

  • Thanks 1
Link to comment
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.

非常感谢。我一会尝试一下

Link to comment

我估计是你以前是把这两个固态ssd放在同一个btrfs池中,他们连结为raid。而现在你把他们简单分开放到两个地方,所以出现这个问题。

先把固态必须保留的文件拷贝到其他磁盘留存,然后按照JorgeB的尝试,或者直接进行格式两个固态,然后再分配到阵列和cache池。

Link to comment
8 hours ago, lyqalex said:

我估计是你以前是把这两个固态ssd放在同一个btrfs池中,他们连结为raid。而现在你把他们简单分开放到两个地方,所以出现这个问题。

先把固态必须保留的文件拷贝到其他磁盘留存,然后按照JorgeB的尝试,或者直接进行格式两个固态,然后再分配到阵列和cache池。

谢谢,情况和您说的一样,以前确实是放在缓存池里面

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.