linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Russell Coker <russell@coker.com.au>
To: george@chinilu.com
Cc: "linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: btrfs on whole disk (no partitions)
Date: Thu, 19 Jun 2014 14:52:31 +1000	[thread overview]
Message-ID: <1588129.Lk34yRcVbz@xev> (raw)
In-Reply-To: <53A23678.7070806@chinilu.com>

On Wed, 18 Jun 2014 18:01:44 George Mitchell wrote:
> A lot of good comments on this topic already.  I would just add that on 
> large (TB) drives, not partitioning can result in some pretty slow mount 
> and umount times (even applies to mounting subvolumes).

If you mount a subvol then the kernel goes through the process of mounting the 
filesystem and makes just the subvol visible.  Mounting a second subvol from 
that filesystem while the first is mounted should be instant.

Mounting multiple filesystems on separate partitions should take longer than 
mounting a single large filesystem.  If mounting a 4TB filesystem takes longer 
than 4*1TB filesystems then that would probably be a bug.

> That is one of 
> the frustrating side effects I have noticed with a non-partitioned 4TB 
> drive on 32bit dual core pentium system.

BTRFS can take a lot of CPU time (some of that is probably bugs in BTRFS).  I 
wouldn't do anything serious with it on a 32bit system.  That said there might 
be some performance bugs you are hitting so giving details about that on this 
list might be useful.

> Additionally, with one big 
> partitionless drive, any serious defect on any part of the drive can 
> cost you the whole shebang, while, if partitioned, your loss is limited 
> to the affected partition.

Backups are the first step to solving that problem.  The next step is RAID, 
BTRFS allows you to convert to RAID-1 on the fly which is convenient for that 
situation.

If you want to have data survive after getting errors in one part of a disk 
then you can run RAID-1 across 2 partitions on the same disk.  Performance 
will be poor but it works well.  I have a BTRFS RAID-1 on 2*1.5TB partitions 
on a 3TB disk that has ~100 bad sectors.  It's working well for me.

> I would also re-emphasize something that has 
> been mentioned by someone else already, which is that most partitioning 
> tools see a non-partitioned drive as being EMPTY, which can pose dangers 
> and risk costly mistakes with the push of a button.  So there are 
> definitely some trade-offs.

file(1) is one way of finding out what the disk is used for.  Admittedly a 
Linux installation disk might have some problems, but it could mess up a 
partitioned disk just as easily.

# file -s /dev/sd?
/dev/sda: sticky x86 boot sector; partition 1: ID=0x83, active, starthead 32, 
startsector 2048, 997376 sectors; partition 2: ID=0x82, starthead 53, 
startsector 999424, 1953792 sectors; partition 3: ID=0x83, starthead 211, 
startsector 2953216, 231487488 sectors, code offset 0x63
/dev/sdb: sticky BTRFS Filesystem sectorsize 4096, nodesize 4096, leafsize 
4096)
/dev/sdc: sticky BTRFS Filesystem sectorsize 4096, nodesize 4096, leafsize 
4096)

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/


      reply	other threads:[~2014-06-19  4:52 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-18 19:29 btrfs on whole disk (no partitions) Daniel Cegiełka
2014-06-18 20:10 ` Chris Murphy
2014-06-19 11:15   ` Austin S Hemmelgarn
2014-06-18 21:19 ` Imran Geriskovan
2014-06-19  0:07 ` Russell Coker
2014-06-19  8:58   ` Imran Geriskovan
2014-06-19  9:11     ` Imran Geriskovan
2014-06-21 19:19       ` Daniel Cegiełka
2014-06-22  1:36         ` Chris Murphy
2014-06-21 19:12   ` Daniel Cegiełka
2014-06-22  1:34     ` Chris Murphy
2014-06-22  7:49       ` Imran Geriskovan
2014-06-22 13:44         ` George Mitchell
2014-06-22 14:11           ` Roman Mamedov
2014-06-22 14:41             ` George Mitchell
2014-06-22 14:46             ` George Mitchell
2014-06-22 18:56               ` Chris Murphy
2014-06-22 18:47           ` Chris Murphy
2014-06-23  2:10             ` Duncan
2014-06-23 12:24               ` Martin K. Petersen
2014-06-24  5:37                 ` Duncan
2014-06-25 13:01                 ` Imran Geriskovan
2014-06-25 16:01                   ` Duncan
2014-06-26 18:26                     ` Imran Geriskovan
2014-06-26 18:41                   ` Chris Murphy
2014-06-26 20:46                     ` Imran Geriskovan
2014-06-22 18:31         ` Chris Murphy
2014-06-23 11:34           ` Martin K. Petersen
2014-06-19  1:01 ` George Mitchell
2014-06-19  4:52   ` Russell Coker [this message]

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=1588129.Lk34yRcVbz@xev \
    --to=russell@coker.com.au \
    --cc=george@chinilu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).