From: Hugo Mills <hugo-lkml@carfax.org.uk>
To: Evert Vorster <evorster@gmail.com>
Cc: Helmut Hullen <Hullen@t-online.de>, linux-btrfs@vger.kernel.org
Subject: Re: 800 GByte free, but "no space left"
Date: Sun, 5 Dec 2010 11:22:08 +0000 [thread overview]
Message-ID: <20101205112208.GD4087@carfax.org.uk> (raw)
In-Reply-To: <AANLkTim9nJrfHeFqLp4d+KYs4jX3hQBV_JTuSBCzFmu3@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2976 bytes --]
On Sun, Dec 05, 2010 at 04:08:26AM -0700, Evert Vorster wrote:
> On Sun, Dec 5, 2010 at 12:48 AM, Helmut Hullen <Hullen@t-online.de> wrote:
> > Hallo, Evert,
> >
> > Du meintest am 04.12.10 zum Thema Re: 800 GByte free, but "no space left":
> >
> >> I am not an expert on this by a long shot, but it looks like you
> >> added these two disks in raid0.
Nope -- btrfs will spread out its allocations across both disks.
> >> This means that the total space cannot exceed the space of the
> >> smallest disk.
[...]
> > Especially: no RAID definition.
> >
> > If the smallest device defines the capacity then I should use 2*1.35
> > TiByte, but my system tells "no space left" at about 2.4 TiByte - where
> > are (at least) 300 GiByte hidden?
>
> >>> devid 2 size 1.35TB used 1.35TB path /dev/sdc3
> >>> devid 1 size 1.81TB used 1.35TB path /dev/sdf2
>
> Here devid 2 is at 100%, and hence you are getting the no more space
> left errors. So, the 300 TB is on the bigger disk, and not usable for
> you right now.
I _think_ that a balance is all that's needed at this point. It
can't hurt, anyway (other than taking quite a long time).
> I know of the disk mode you speak.. an old raid card of mine called it
> "Just a bunch of disks" and it literally filled up the first disk
> before carrying on to the second one until that was full under
> windows... under UNIX it had the effect of just adding all the sectors
> to each other, and stretching the file system over the disks in a
> linear fashion. Most UNIX file systems writes files in the middle of
> the largest contiguous free space, which meant that some files got
> written on the first disk, and some on the second. As far as I know,
> btrfs does not support this raid mode.
It does support it: that's what the "single" RAID profile in
mkfs.btrfs is. It attempts to use the disk space marginally more
intelligently than traditional linear mode, though, as it allocates
block groups (in chunks of about 1G) to each disk in turn. This isn't
the same as RAID-0, which stripes within block groups with a much
smaller stripe size.
> Another thing to keep in mind is that as far as I know you cannot
> remove devid 1 from a btrfs volume. This is due to be fixed, but I
> have no idea on the status of that.
I've done it (I have a filesystem with IDs 7, 8, 9, 12, 13, 14).
Looks like that particular problem has been fixed.
> You could, if you really wanted to use all of two differently sized
> disks in a btrfs, subdivide the disks in equal sized partitions, and
> just put all of those partitions in a btrfs raid0...
[...]
That would be a really bad idea, as your disks would thrash
horribly, reading stripes from different locations on the disk.
Hugo.
--
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
--- Nostalgia isn't what it used to be. ---
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
next prev parent reply other threads:[~2010-12-05 11:22 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AANLkTimJ3dDdOFiQb8G=rrjCk2h68Y59oWdKEGH-80jN@mail.gmail.com>
2010-12-05 7:48 ` 800 GByte free, but "no space left" Helmut Hullen
2010-12-05 8:59 ` cwillu
2010-12-05 9:51 ` Helmut Hullen
2010-12-05 10:36 ` cwillu
2010-12-05 11:46 ` Helmut Hullen
2010-12-05 11:08 ` Evert Vorster
2010-12-05 11:22 ` Hugo Mills [this message]
2010-12-05 12:21 ` Helmut Hullen
2010-12-05 13:49 ` Evert Vorster
2010-12-05 14:33 ` Helmut Hullen
2010-12-05 18:00 ` Evert Vorster
2010-12-05 18:26 ` Helmut Hullen
2010-12-06 9:56 ` Brian Rogers
2010-12-06 11:41 ` Hugo Mills
2010-12-05 20:28 ` Helmut Hullen
2010-12-06 7:43 ` Helmut Hullen
2010-12-06 11:43 ` Hugo Mills
2010-12-06 12:42 ` Helmut Hullen
2010-12-06 12:48 ` Hugo Mills
2010-12-06 13:13 ` Helmut Hullen
2010-12-06 13:28 ` Hugo Mills
2010-12-06 14:45 ` Helmut Hullen
2010-12-06 15:18 ` Hugo Mills
2010-12-06 17:13 ` Helmut Hullen
2010-12-06 18:29 ` Hugo Mills
2010-12-07 17:05 ` Helmut Hullen
2010-12-07 17:25 ` Hugo Mills
2010-12-07 17:44 ` Helmut Hullen
2010-12-05 11:35 ` Helmut Hullen
2010-12-02 18:23 Helmut Hullen
2010-12-03 3:28 ` Mike Fedyk
2010-12-03 6:47 ` Helmut Hullen
2010-12-04 17:17 ` Helmut Hullen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101205112208.GD4087@carfax.org.uk \
--to=hugo-lkml@carfax.org.uk \
--cc=Hullen@t-online.de \
--cc=evorster@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.