[IDEA] Psuedo Mirroring - Printable Version +- Forum (http://forum.xbian.org) +-- Forum: Software (/forum-6.html) +--- Forum: Installation (/forum-16.html) +--- Thread: [IDEA] Psuedo Mirroring (/thread-2207.html) |
Psuedo Mirroring - IriDium - 26th Mar, 2014 03:35 AM 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! RE: Psuedo Mirroring - CurlyMo - 26th Mar, 2014 05:34 AM 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): RE: Psuedo Mirroring - mk01 - 26th Mar, 2014 01:17 PM @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). |