Idea: Psuedo Mirroring
|
26th Mar, 2014, 03:35 AM
Post: #1
|
|||
|
|||
Psuedo Mirroring
Currently I have a 4Gb SD card and a 8Gb USB flash drive with Xbian booting off of the USB drive.
The SD card is only used to boot from, so the rest of the space is wasted. Would it be possible to have a “mirror” function that would mirror the USB drive so that I have Xbian (and all updates) on both the USB and the SD card – so they are mirrored (to an extent) so if the USB fails I still have a working copy on the SD card (by just altering cmdline.txt) Just a thought! Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
26th Mar, 2014, 05:34 AM
Post: #2
|
|||
|
|||
RE: Psuedo Mirroring
The problem is that btrfs doesn't (normally) allow you to boot from a degraded mirror. If that's not a problem you can.
https://github.com/xbianonpi/xbian-package-initramfs/issues/18#issuecomment-20597109 Quote:I did some benchmarks and the results are as follows (SD card + USB stick): pilight - modular domotica solution
|
|||
26th Mar, 2014, 01:17 PM
Post: #3
|
|||
|
|||
RE: Psuedo Mirroring
@IriDium
you want online mirror or offline mirror? cause offline mirror is simply a clone, or cp, or rsync, or what ever - so as we have xbianclone(copy) I would use this to make daily copy (actually if I implement incremental snapshots copy then we will even not push hardware by copying all content daily). cron record would look like this Code: btrfs-auto-snapshot xbiancopy /dev/root /dev/mmcblk0p2 online mirror you can do with sw raid, or with device mapper layer, or easiest with btrfs. but online multidisk solutions have some drawbacks (for user). for example writes. by default system will wait for all devices to finish a block write (so if you add slower device, you will slow down on writes to level of slowest device). Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
« Next Oldest | Next Newest »
|