Created
June 7, 2012 04:22
-
-
Save viz3/2886529 to your computer and use it in GitHub Desktop.
setup btrfs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://btrfs.wiki.kernel.org/index.php/Getting_started | |
https://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices | |
% echo 'deb http://backports.debian.org/debian-backports squeeze-backports main' > /etc/apt/sources.list.d/backports.list | |
% sudo apt-get update | |
% sudo apt-get -t squeeze-backports install linux-image-2.6-amd64 | |
% sudo apt-get install btrfs-tools | |
% sudo /sbin/shurdown -r now | |
% sudo mkfs.btrfs -m raid0 /dev/sdb /dev/sdc | |
WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL | |
WARNING! - see http://btrfs.wiki.kernel.org before using | |
adding device /dev/sdc id 2 | |
fs created label (null) on /dev/sdb | |
nodesize 4096 leafsize 4096 sectorsize 4096 size 1.82TB | |
Btrfs Btrfs v0.19 | |
% sudo mount /dev/sdb /mnt | |
% sudo btrfs filesystem show | |
failed to read /dev/sr0 | |
Label: none uuid: 33e1da3e-d475-42d3-a674-3806673864c8 | |
Total devices 2 FS bytes used 28.00KB | |
devid 2 size 931.51GB used 2.01GB path /dev/sdc | |
devid 1 size 931.51GB used 2.03GB path /dev/sdb | |
Btrfs Btrfs v0.19 | |
% echo "UUID=33e1da3e-d475-42d3-a674-3806673864c8 /mnt btrfs defaults 0 0" >> /etc/fstab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment