PINE64
Rock64: Debian root fs on software RAID1 of eMMC and microSD - is installing it the s - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85)
+--- Forum: Linux on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=88)
+--- Thread: Rock64: Debian root fs on software RAID1 of eMMC and microSD - is installing it the s (/showthread.php?tid=6344)



Rock64: Debian root fs on software RAID1 of eMMC and microSD - is installing it the s - jovval - 08-02-2018

I have already searched the forum for RAID. If I missed something pertinent my questions, please let me know.
    I do not know whether the following data are correct; regardless, I am more concerned with outliers of failure. I include these details for general information.
eMMC lifespan - https://electronics.stackexchange.com/questions/218914/how-long-until-my-emmc-is-dead - "The optimistic estimation would be based on the assumption that your system accumulates data until it can fill one complete erase block, then writes all the data in one go. In that case, your eMMC will live 4'000'000 * 3'000 / (4*20) = 150'000'000 seconds That's about 4.75 years."
microSD lifespan - https://superuser.com/questions/17350/whats-the-life-expectancy-of-an-sd-card - "My experience with FLASH is integrity begins to falter in as little as 5 years."

1a. Can I compose a RAID1 using eMMC and microSD?
1b. How may I set the boot priority? - https://forum.armbian.com/topic/4583-rock64/ tells me how to disable, but I do not necessarily want to do so.

2. What is the performance of eMMC? (I gather that the microSD will operate at ~23MB/s, and will set the rate determining step for RAID.) The closest answer I found to my question seems to be only theoretical - https://forum.pine64.org/showthread.php?tid=4881

    And, if applicable
3. How may I use /usr/local/sbin/resize_rootfs.sh on the RAID? Must I disassemble it to do one element at a time?
4. How may I use an/the store's USB adapter(s) to repeat the entire RAID1 installation (including my subsequent addition and configuration of servers)?


RE: Rock64: Debian root fs on software RAID1 of eMMC and microSD - is installing it the s - Trash_Can_Man - 08-03-2018

(08-02-2018, 02:28 PM)jovval Wrote: I have already searched the forum for RAID. If I missed something pertinent my questions, please let me know.
    I do not know whether the following data are correct; regardless, I am more concerned with outliers of failure. I include these details for general information.
eMMC lifespan - https://electronics.stackexchange.com/questions/218914/how-long-until-my-emmc-is-dead - "The optimistic estimation would be based on the assumption that your system accumulates data until it can fill one complete erase block, then writes all the data in one go. In that case, your eMMC will live 4'000'000 * 3'000 / (4*20) = 150'000'000 seconds That's about 4.75 years."
microSD lifespan - https://superuser.com/questions/17350/whats-the-life-expectancy-of-an-sd-card - "My experience with FLASH is integrity begins to falter in as little as 5 years."

1a. Can I compose a RAID1 using eMMC and microSD?
1b. How may I set the boot priority? - https://forum.armbian.com/topic/4583-rock64/ tells me how to disable, but I do not necessarily want to do so.

2. What is the performance of eMMC? (I gather that the microSD will operate at ~23MB/s, and will set the rate determining step for RAID.) The closest answer I found to my question seems to be only theoretical - https://forum.pine64.org/showthread.php?tid=4881

    And, if applicable
3. How may I use /usr/local/sbin/resize_rootfs.sh on the RAID? Must I disassemble it to do one element at a time?
4. How may I use an/the store's USB adapter(s) to repeat the entire RAID1 installation (including my subsequent addition and configuration of servers)?

My question is why? if its for boot/work speed you lose a lot of speed because the system is going to wait for the slowest media to finish in writes (IIRC) (microsd in this case) or its not going to be faster than the faster media, if its for security microsd is super unreliable in any case (specially if you write to it a lot, if you are so worried about losing info im guessing its info that change a lot), a better solution is to do some automated backup externally, being a usb hdd or ssd or some cloud service...i know that this is not what you ask for but personally i wouldnt trust a microsd neither for speed nor for security not to mention that for security you also forget that both medias are inside the same device, in the case of a major tragic failure (fire, power surge) you can lose both at the same time, on the other hand if the device backup externally to a different location you can recover it...


RE: Rock64: Debian root fs on software RAID1 of eMMC and microSD - is installing it the s - jovval - 08-03-2018

Trash_Can_Man,
    thank you for your reply.

    The answer does not matter, but to satisfy any curiosity, it is that I will not have ready access to the Rock64 once installed.
    I already acknowledged a diminution in speed (see my comment about the rate determining step). I would like some quantification of my expected loss (from eMMC's performance).
    I already do and will implement remote backup, and sometimes local too, so I am not concerned about failure catastrophic or correctable. I suppose the inclusion of that point would have clarified my focus.

    By the way, I now see that the title, even here in the thread, clipped off "is installing the system just as straightforward as usual?" or something to that effect. By "as usual" I meant, as a typical debian installation to RAID1, adapted to install from the eMCC (or, if must be, the microSD -- for which I lack a usb adapter).
    So, is RAID1 this way do-able and at what non-economic cost precisely?

    If anyone can address the corrected title's question, the aforementioned pair, and, most important, those in the OP, I would be most grateful.