Revision [3931]
Last edited on 2011-04-07 20:40:37 by KenFongAdditions:
==Resize filesystem==
btrfsctl -r +20g /vm
btrfsctl -r +20g /vm
Revision [3740]
Edited on 2010-06-30 12:15:48 by KenFongAdditions:
%%(text; btrfs raid1)
time dd if=/dev/zero of=test.img bs=1G count=2
2147483648 bytes (2.1 GB) copied, 12.1612 s, 177 MB/s
real 0m12.322s
user 0m0.000s
sys 0m3.050s
time dd if=/dev/zero of=test.img bs=1G count=2
2147483648 bytes (2.1 GB) copied, 12.1612 s, 177 MB/s
real 0m12.322s
user 0m0.000s
sys 0m3.050s
Revision [3739]
Edited on 2010-06-30 11:54:19 by KenFongAdditions:
When coying from md raid to btrfs raid, I noticed the IO usage is uneven on each member
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
sda 111.05 28364.40 19436.09 313317712 214694198 <-- destination
sdb 93.13 9767.72 37604.06 107895805 415380440 <-- destination
md4 80.53 7000.99 12343.80 77334096 136351640 <-- source
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
sda 111.05 28364.40 19436.09 313317712 214694198 <-- destination
sdb 93.13 9767.72 37604.06 107895805 415380440 <-- destination
md4 80.53 7000.99 12343.80 77334096 136351640 <-- source
Revision [3738]
Edited on 2010-06-30 11:51:43 by KenFongAdditions:
Total devices 2 FS bytes used 26.32GB
devid 1 size 139.70GB used 51.03GB path /dev/sda6
devid 2 size 139.70GB used 51.01GB path /dev/sdb6
devid 1 size 139.70GB used 51.03GB path /dev/sda6
devid 2 size 139.70GB used 51.01GB path /dev/sdb6
Deletions:
devid 1 size 139.70GB used 9.03GB path /dev/sda6
devid 2 size 139.70GB used 9.01GB path /dev/sdb6
Revision [3737]
Edited on 2010-06-30 11:51:10 by KenFongAdditions:
> btrfs-show vm
Deletions:
Revision [3736]
Edited on 2010-06-30 11:44:22 by KenFongAdditions:
Now when doing a df, it shows RAID0 usage - as oppose to RAID1. To check the actual usage, use **btrfs-show**. It tells you the usage on each member
Deletions:
Revision [3735]
Edited on 2010-06-30 11:42:56 by KenFongAdditions:
Seems the author is still not 100% confident with the filesystem so it's still being tagged as experimental. Well it kinda is. **Use it at your own risk!**
Deletions:
Revision [3734]
Edited on 2010-06-30 11:42:29 by KenFongAdditions:
Seems the author is still not 100% confident with the filesystem so it's still being tagged as experimental. Well it kinda is. *Use it at your own risk!*
Deletions:
Revision [3733]
Edited on 2010-06-30 11:42:06 by KenFongAdditions:
Seems the author is still not 100% confident with the filesystem so it's still being tagged as experimental. Use it at your own risk!
Revision [3732]
Edited on 2010-06-30 11:40:33 by KenFongAdditions:
==RAID1 with BTRFS==
Interesting option with btrfs. I created a mirror volume with:
mkfs.btrfs -Lvm -d raid1 -m raid1 /dev/sda6 /dev/sdb6
mount -tbtrfs /dev/sda6 /vm
# with btrfs, mount any member will work
Now when doing a df, it doesn't show RAID1 usage. To check the actual usage, do this. It tells you the usage on each member
> btrfs-show
Label: vm uuid: bdf5ee15-4888-4d0d-9a82-5f381c061ddf
Total devices 2 FS bytes used 3.97GB
devid 1 size 139.70GB used 9.03GB path /dev/sda6
devid 2 size 139.70GB used 9.01GB path /dev/sdb6
Adding or replacing member
https://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices
Interesting option with btrfs. I created a mirror volume with:
mkfs.btrfs -Lvm -d raid1 -m raid1 /dev/sda6 /dev/sdb6
mount -tbtrfs /dev/sda6 /vm
# with btrfs, mount any member will work
Now when doing a df, it doesn't show RAID1 usage. To check the actual usage, do this. It tells you the usage on each member
> btrfs-show
Label: vm uuid: bdf5ee15-4888-4d0d-9a82-5f381c061ddf
Total devices 2 FS bytes used 3.97GB
devid 1 size 139.70GB used 9.03GB path /dev/sda6
devid 2 size 139.70GB used 9.01GB path /dev/sdb6
Adding or replacing member
https://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices
Revision [2153]
Edited on 2009-01-13 07:29:00 by WikiAdminAdditions:
==Auto mount onboot==
echo "alias btrfs btrfs" >> /etc/modules.conf
echo "/dev/vg0/TEST /btrfs btrfs defaults 0 0" >> /etc/fstab
cd /boot
mv initrd-2.6.28.img initrd-2.6.28.img-O
mkinitrd initrd-2.6.28.img 2.6.28
echo "alias btrfs btrfs" >> /etc/modules.conf
echo "/dev/vg0/TEST /btrfs btrfs defaults 0 0" >> /etc/fstab
cd /boot
mv initrd-2.6.28.img initrd-2.6.28.img-O
mkinitrd initrd-2.6.28.img 2.6.28