From Fedora Project Wiki
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 14: | Line 14: | ||
== What to test? == | == What to test? == | ||
Today's instalment of Fedora Test Day will focus on SSD Caching in Fedora 20 | Today's instalment of Fedora Test Day will focus on bcache based SSD Caching in Fedora 20. | ||
=== General test objective === | === General test objective === | ||
Line 26: | Line 24: | ||
=== Scope === | === Scope === | ||
SSD caching is a new feature (since kernel 3.9) and should be considered experimental. The focus of this Test day is to evaluate the alignment of bcache-tools with other relevant Fedora packages to support a good basis for experimenting with SSD caching: | |||
* bcache-tools | * bcache-tools | ||
* util-linux | * util-linux | ||
* dracut | * dracut | ||
* lvm2 | * lvm2 | ||
* kernel | * kernel | ||
Anaconda support for bcache is expected to be available not until Fedora 21, so this is not in scope for the test day. | Anaconda support for bcache is expected to be available not until Fedora 21, so this is not in scope for the test day. | ||
Line 41: | Line 39: | ||
The following cast of characters will be available testing, workarounds, bug fixes, and general discussion ... | The following cast of characters will be available testing, workarounds, bug fixes, and general discussion ... | ||
* Development | * Development - [[User:ignatenkobrain|Igor Gnatenko]] (ignatenkobrain), [[User:rolffokkens|Rolf Fokkens]] (rolffokkens) | ||
* Quality Assurance - [[User:jreznik|Jaroslav Reznik]] (jreznik) | |||
== | == Prerequisite for Test Day == | ||
=== Physical or Virtual === | === Physical or Virtual === | ||
Line 67: | Line 57: | ||
* internet connection | * internet connection | ||
* bootable media containg | * bootable media containg Rawhide/F20 (?) netinst (?) image. | ||
=== Other requirements === | === Other requirements === | ||
* Knowledge on how to build physical or virtual machines | * Knowledge on how to build physical or virtual machines | ||
* Knowledge | * Knowledge how to use the Linux command line (There's no graphical installer yet) | ||
* A desire to break software | * A desire to break software | ||
== | === Further reading === | ||
Here's a chunk which is commonly used for most Test Days. Replace XX with whatever Fedora release is pending: | |||
* An updated [http://fedoraproject.org/get-prerelease Fedora 20 pre-release], [[Releases/Rawhide|Rawhide]] (tips on installing Rawhide below), or a [http://alt.fedoraproject.org/pub/alt/nightly-composes/desktop/ nightly live image] | |||
=== | == How to test? == | ||
Because Anaconda does not support bcache yet, the test may be executed in the following steps. The end result will be a F20 system running its root filesystem on bcache. These steps are merely suggestions, to allow testing in limited time. Of course testers are free to choose other ways of testing. | |||
=== Step 1: install F20 === | |||
The first step is to do a minimal install: | The first step is to do a minimal install: | ||
* this is the fastest install | * this is the fastest install | ||
* it also saves time when copying the root filesystem | * it also saves time when copying the root filesystem in later steps | ||
* it allows to install other packages later (yum groupinstall) as part of the test activities. | * it allows to install other packages later (yum groupinstall) as part of the test activities. | ||
To prepare for the following steps, it is important to use the following partitioning: | |||
sda: | |||
sda1 500MB /boot | |||
sda2 2GB /home | |||
sda3 2GB / | |||
sda4 (rest) free space | |||
sdb: | |||
sdb1 >2GB (caching device) | |||
When using a VM sda may be vda and sdb may be vdb. | |||
Both the partitioning and the installation of Fedora can be done by any of the iso's in https://dl.fedoraproject.org/pub/alt/stage/, e.g. Fedora-20-Alpha-x86_64-netinst.iso. | |||
Step | === Step 2: /home on bcache === | ||
Once your fresh Fedora 20 system is running, we will "move" /home to a bcache device. To do this it's convenient to have a minimum amount of data on /home. Do the following steps: | |||
* yum install bcache-tools | |||
* If needed "backup" all data in /home to another place on your root filesystem | |||
* comment /home out in your /etc/fstab | |||
* unmount /home (which is on /dev/sda2) | |||
* Make /dev/sda2 a bcache baching device: make-bcache -B /dev/sda2 | |||
* Make /dev/sdb1 a bcache caching device: make-bcache -C /dev/sdb1 | |||
* Note the set uuid and attach /dev/sdb1 to /dev/sda2: echo <set uuid> > /sys/block/bcache0/bcache/attach | |||
= | Now you have a bcache device: /dev/bcache0 | ||
* use "bcache-status -s" to see details about your bcache device. | |||
* create a filesystem: mkfs -t ext4 -L HOME /dev/bcache0 | |||
* create a /home entry in your /etc/fstab: LABEL=HOME /home ext4 defaults 1 2 | |||
* mount /home: mount -a | |||
* If needed restore the /home backup you made earlier. | |||
Now you have a system with /home on bcache. | |||
* reboot your system to see if it boots OK. | |||
* do some other testing if you like. Limit the amount of data on /home or accept that it gets lost in the following steps. | |||
Step | === Step 3: / on bcache with fallback === | ||
A slightly more complex scenario would be to have a secondary root filesystem on bcache, keeping the primary (non bcache) root filesystem for recovery. | |||
=== Step 4: / on bcache no fallback === | |||
When scenario 2 is completed a possible next step would be to "drop" the primary root filesystem and allocate its space the the root filesystem on bcache. | |||
== | === '''Update your machine''' === | ||
If you're running Fedora XX, make sure you have all the current updates for it installed, using the update manager. If you want to try Rawhide, see the instructions on the [[Releases/Rawhide|Rawhide]] page on the various ways in which you can install or update to Rawhide. Or: | |||
== | === '''Live image''' === | ||
Optionally, you may download a non-destructive Rawhide live image for your architecture. Tips on using a live image are available at [[FedoraLiveCD]]. Live images can be found [http://alt.fedoraproject.org/pub/alt/nightly-composes/desktop/ here]. | |||
== Test Cases == | |||
Provide a list of test areas or test cases that you'd like contributors to execute. For other examples, see [[:Category:Test_Cases]]. | |||
== Test Results == | |||
Construct a table or list to allow testers to post results. Each column should be a test case or configuration, and each row should consist of test results. Include some instructions on how to report bugs, and any special instructions. Here's an example, from a Palimpsest test day: | |||
If you have problems with any of the tests, report a bug to [https://bugzilla.redhat.com Bugzilla] usually for the component [https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&version=13&component= | If you have problems with any of the tests, report a bug to [https://bugzilla.redhat.com Bugzilla] usually for the component [https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&version=13&component=udisks udisks], or [https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&version=13&component=gnome-disk-utility gnome-disk-utility] for bugs in the Palimpsest graphical front end itself. If you are unsure about exactly how to file the report or what other information to include, just ask on IRC and we will help you. Once you have completed the tests, add your results to the Results table below, following the example results from the first line as a template. The first column should be your name with a link to your User page in the Wiki if you have one. For each test case, use the [[Template:result|result template]] to enter your result, as shown in the example result line. | ||
{| | {| | ||
! User | ! User | ||
! [[QA: | ! [[QA:Testcase_sample_1|Sample test 1]] | ||
! [[QA: | ! [[QA:Testcase_sample_2|Sample test 2]] | ||
! [[QA: | ! [[QA:Testcase_sample_3|Sample test 3]] | ||
! [[QA: | ! [[QA:Testcase_sample_4|Sample test 4]] | ||
! References | ! References | ||
|- | |- | ||
| [[User: | | [[User:SampleUser|Sample User]] | ||
| {{result|none}} | |||
| {{result|none}} | | {{result|pass}} | ||
| {{result| | | {{result|warn}} <ref>Test pass, but also encountered {{bz|54321}}</ref> | ||
| {{result|fail}} <ref>{{bz|12345}}</ref> | |||
| {{result|warn}}<ref>Test pass, but | |||
| {{result| | |||
| <references/> | | <references/> | ||
|- | |- | ||
|} | |} | ||
[[Category:Test Days]] [[Category:Fedora 20 Test Days]] | |||