ystk / fs-test Goto Github PK
View Code? Open in Web Editor NEWData reliability (consistency) test for file systems
License: GNU General Public License v2.0
Data reliability (consistency) test for file systems
License: GNU General Public License v2.0
fs-test ======= Data reliability (consistency) test for file systems [Instructions] Log host name : loghost (IP: 10.0.0.1) Target host name : target (IP: 10.0.0.2) Target device node: /dev/sdb1 File system type : Ext4 journal Directory name : /home2 0. Linux kernel preparation 0-1. Apply two patches under the patch directory $ cd $KERNSRC $ patch -p1 < $FSTESTSRC/patch/kernel-sys-c.patch 0-2. Build and install kernel 1. Install required packages on target host and log host Debian: # apt-get install build-essentials # apt-get install rsync # apt-get install openssh-server openssh-client # apt-get install perl 2. Edit config.* 3. Copy source code to target host and log host # rsync -atv fs-test root@target:/opt # rsync -atv fs-test root@loghost:/opt 4. Run make on each host # make 5. (loghost) Start the log-server # ./log-server 6. (targethost) Edit /etc/fstab (add the following line) /dev/sdb1 /home2 ext4 defaults,sync,data=journal,barrier=1 0 2 7. (targethost) Make a new filesystem # mkfs.ext4 /dev/sdb1 8. (targethost) Edit testcase.txt [Change this value to 0] 6 deadline 5 deadline 6 deadline 5 noop 6 noop 5 cfq 6 cfq 9. (targethost) Add the following lines to the end of rc.local (Debian) cd /opt/fs-test ./test.pl 10. (targethost) Reboot .... (Please wait for a while. It depends on number of test cases) .... 11. (loghost) Type 'q' to quit log-server 12. (loghost) Make directories to store logs # mkdir /opt/result-check/ext4-j # mkdir /opt/result-check/ext4-j/check # mkdir /opt/result-check/ext4-j/log # mkdir /opt/result-check/ext4-j/results 12. (loghost) Copy log into /opt/result-check/ext4-j/log # cd /opt # rsync -atv fs-test /opt/result-check/ext4-j/log/ 13. (targethost) Copy results to loghost:/opt/result-check/ext4-j/results # cd /opt # rsync -atv fs-test /opt/result-check/ext4-j/results/ 14. (loghost) Create synlinks in check directory # cd /opt/result-check/ext4-j/check # ln -s ../results/checker/* . # cp ../results/config.pl . 15. Run all.sh with an argument # ./all.sh ext4journal 16. Please check lstat-*
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.