You are not logged in.

#1 2016-09-03 17:10:13

drsjlazar
Member
From: Kasama
Registered: 2009-10-01
Posts: 133
Website

btrfs - balance to stop striping across multiple devices

Hi all

Some years ago when I was first trying btrfs on my laptop I had a strange (rather dumb in retrospect) idea. I created multiple partitions on my hard drive and then created a large btrfs volume spanning most of the partitions. The idea was to allow me the option of using the partitions for other distros or OSs as needed. As it turns out, now I have btrfs spanning all partitions but now it seems to be striping data equally between all the partitions. The problem is they are all on the same disk and it is degrading performance. How can I stop this striping? I guess I need to use 'balance' but I'm not sure and hope not to mess things up.

sudo fdisk -l
[sudo] password for shane: 
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: E97E37EC-BC01-4489-B7DE-C7908D1D34AD

Device         Start       End  Sectors  Size Type
/dev/sda1       2048    999423   997376  487M EFI System
/dev/sda2     999424   2930687  1931264  943M Linux swap
/dev/sda3    2930688  97656831 94726144 45.2G Microsoft basic data
/dev/sda4   97656832 195311615 97654784 46.6G Microsoft basic data
/dev/sda5  195311616 292968447 97656832 46.6G Microsoft basic data
/dev/sda6  292968448 390625279 97656832 46.6G Microsoft basic data
/dev/sda7  390625280 488282111 97656832 46.6G Microsoft basic data
/dev/sda8  488282112 585936895 97654784 46.6G Microsoft basic data
/dev/sda9  585936896 683593727 97656832 46.6G Microsoft basic data
/dev/sda10 683593728 781250559 97656832 46.6G Microsoft basic data
/dev/sda11 781250560 878905343 97654784 46.6G Microsoft basic data
/dev/sda12 878905344 976773119 97867776 46.7G Microsoft basic data
:) shane on Betelgeuse-Arch Sat Sep 03 06:42 PM [dir.= ~] 
[jobs=0: $] sudo btrfs filesystem show
[sudo] password for shane: 
Label: none  uuid: 59b667fa-df84-4eea-89b3-4ac47f8822d8
	Total devices 10 FS bytes used 274.53GiB
	devid    1 size 45.17GiB used 44.17GiB path /dev/sda3
	devid    2 size 46.57GiB used 45.56GiB path /dev/sda4
	devid    3 size 46.57GiB used 45.57GiB path /dev/sda5
	devid    4 size 46.57GiB used 44.56GiB path /dev/sda6
	devid    5 size 46.57GiB used 44.56GiB path /dev/sda7
	devid    6 size 46.57GiB used 44.56GiB path /dev/sda8
	devid    7 size 46.57GiB used 44.56GiB path /dev/sda9
	devid    8 size 46.57GiB used 44.56GiB path /dev/sda10
	devid    9 size 46.57GiB used 44.56GiB path /dev/sda11
	devid   10 size 46.67GiB used 44.66GiB path /dev/sda12

This is what I see in Gparted
http://i.imgur.com/ivgEGou.png

Mod note: Converted img to url. Please see the CoC regarding acceptable image sizes. -- WorMzy

Last edited by WorMzy (2016-09-03 18:11:33)

Offline

Board footer

Powered by FluxBB