Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when building RAID-5 on FEMU drives #138

Open
NeverMore2744 opened this issue May 31, 2024 · 2 comments
Open

Error when building RAID-5 on FEMU drives #138

NeverMore2744 opened this issue May 31, 2024 · 2 comments

Comments

@NeverMore2744
Copy link

I tried to build a RAID-5 system on 7 emulated black-box SSDs with mdadm. After the parity creation finished (RAID-5 starts writing parities upon the RAID creation), the FEMU crashes with the error:

fvm login: [FEMU] FTL-Err: No free lines left in [vSSD6].

Is it related to the overprovisioning of SSDs?
Is it possible to use mdadm to build a RAID system with FEMU emulated drives without errors?

@huaicheng
Copy link
Contributor

huaicheng commented Jun 4, 2024

Is it related to the overprovisioning of SSDs?

Yes, any misconfigrations in your setup? Make sure the nvme device capacity exposed to the host is less than the raw nand flash capacity.

Is it possible to use mdadm to build a RAID system with FEMU emulated drives without errors?

Yes, by default it should work fine.

@NeverMore2744
Copy link
Author

NeverMore2744 commented Jun 5, 2024

Thanks for your reply. I create the black-box SSD like this:

-device femu,devsz_mb=16384,femu_mode=1

It seems that both the capacity exposed to the host and the raw nand flash capacity are 16GiB. If all the capacity is written, it causes the error.
Now I found that I can specify the --size parameter in mdadm so that it does not use all 16GiB for RAID, and mdadm can run normally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants