- 论坛徽章:
- 0
|
考虑http://www.nmedia.net/flashrd/
flashrd picture of $20 8GB USB key used with flashrd
flashrd is an OpenBSD installer with an eye towards larger flash devices. The primary targets are USB key, Flash disk module, Compact Flash adapter, or hard disk.
The flashrd installation is targeted towards infrastructure equipment. It installs a complete OpenBSD system with "one-touch" upgrade capability. The system stays mounted read-only during normal operation, with writes directed towards a memory filesystem, eliminating the need for frequent disk writes. This greatly reduces the potential for both boot failure due to a dirty filesystem and for flash corruption from repeated writes. It boots from a ramdisk to make in-place upgrades easy and complete.
flashrd allows the disk filesystem to be used in a read-write manner as well. All memory filesystems can be easily eliminated from the flashrd configuration by changing parameters at the top of the flashrd script.
A flashrd image can be used in an application where many copies of the same machine run concurrently. If your servers don't experience frequent changes, the advantage of using the flashrd scheme comes once your primary flashrd upgrade image is created. With just a kernel and filesystem image, upgrades are fast and trivial across your server farm,
flashrd images can be created based on any running system, they don't have to be default OpenBSD system releases. Your setup could be as simple as mounting the filesystem tree you want to duplicate under /mnt. Then, just use /mnt as your file source.
flashrd works within 64MB RAM and 1GB flash hosting a default OpenBSD/i386 or OpenBSD/amd64 installation. To hold more than one version of a system on the flash at any given time, a 2GB or larger flash is recommended. |
|