Rolffokkens (talk | contribs) (Created page with "Category:Package bcache-tools test cases {{QA/Test_Case |description=/ on bcache (no LVM) Once your fresh Fedora 20 system is running, we will "move" /home to a Logical V...") |
Rolffokkens (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
|description=/ on bcache (no LVM) | |description=/ on bcache (no LVM) | ||
Now we have a stable system with /home on bcache, we can go forward and have / on bcache. Consider though that bcache is EXPERIMENTAL! | |||
To get / on bcache we'll stop using /home on bcache first: | |||
|setup= | |setup= | ||
# Open terminal | # Open terminal | ||
# Switch to root user: <code>su -</code> | # Switch to root user: <code>su -</code> | ||
# | # if needed make a bachup of /home on your root filesystem. | ||
# | # comment /home out in your /etc/fstab | ||
# | # unmount /home: <code>umount /home</code> | ||
# | # if needed restore your bachup to the /home directory | ||
Now | Now your /home is in your root filesystem. Next: | ||
|actions= | |actions= | ||
# create a new filesystem on /dev/bcache0: <code>mkfs -t ext4 -L ROOTFS /dev/bcache0</code> | |||
# create a | # mount it: <code>mount /dev/bcache0 /mnt</code> | ||
# copy your current root filesystem to /mnt: <code>cp -ax / /mnt</code> | |||
# edit /mnt/fstab so your root fs is mounted like: <code>LABEL=ROOTFS / ext4 defaults 1 1</code> | |||
Now we have a duplicate root filesystem on /dev/bcache0. To use it we need to build a new initramfs: | |||
# rename your current initramfs: <code>mv /boot/initramfs...img /boot/initramfs...img.sav</code> | |||
# | |||
# | |||
# | |||
# build a new initramfs with <code>dracut -N</code> | # build a new initramfs with <code>dracut -N</code> | ||
Now reboot your system. | |||
* while in grub replace the root=UUID=... parameter in the "linux" line by: root=LABEL=ROOTFS | |||
* boot your system. | |||
If all goes well, your system now boots fine and it's running on bcache! | |||
* Edit your /etc/grub2.cfg file.. | |||
* .. duplicate the first "menuentry ... { ...}" (about 15 lines). | |||
* Now change the first one and replace the root=UUID=... parameter in the "linux" line by root=LABEL=ROOTFS | |||
* reboot again | |||
|results= | |results= | ||
# All steps complete without errors | # All steps complete without errors |
Revision as of 17:19, 10 October 2013
Description
/ on bcache (no LVM)
Now we have a stable system with /home on bcache, we can go forward and have / on bcache. Consider though that bcache is EXPERIMENTAL!
To get / on bcache we'll stop using /home on bcache first:
Setup
- Open terminal
- Switch to root user:
su -
- if needed make a bachup of /home on your root filesystem.
- comment /home out in your /etc/fstab
- unmount /home:
umount /home
- if needed restore your bachup to the /home directory
Now your /home is in your root filesystem. Next:
How to test
- create a new filesystem on /dev/bcache0:
mkfs -t ext4 -L ROOTFS /dev/bcache0
- mount it:
mount /dev/bcache0 /mnt
- copy your current root filesystem to /mnt:
cp -ax / /mnt
- edit /mnt/fstab so your root fs is mounted like:
LABEL=ROOTFS / ext4 defaults 1 1
Now we have a duplicate root filesystem on /dev/bcache0. To use it we need to build a new initramfs:
- rename your current initramfs:
mv /boot/initramfs...img /boot/initramfs...img.sav
- build a new initramfs with
dracut -N
Now reboot your system.
- while in grub replace the root=UUID=... parameter in the "linux" line by: root=LABEL=ROOTFS
- boot your system.
If all goes well, your system now boots fine and it's running on bcache!
- Edit your /etc/grub2.cfg file..
- .. duplicate the first "menuentry ... { ...}" (about 15 lines).
- Now change the first one and replace the root=UUID=... parameter in the "linux" line by root=LABEL=ROOTFS
- reboot again
Expected Results
- All steps complete without errors
- reboot your system to see if it boots OK.
- do some other testing if you like.