* partition question
@ 2013-01-11 19:21 Roelof Wobben
2013-01-11 22:29 ` Chris Carlin
2013-01-11 22:34 ` Chris Murphy
0 siblings, 2 replies; 7+ messages in thread
From: Roelof Wobben @ 2013-01-11 19:21 UTC (permalink / raw)
To: linux-btrfs
Hello,
I have one thing I think I don't really understand about btrfs,
Normally if I use ext4 I make a 3 partitions for my distro.
one for boot about 1G
one for home about 30G
one for root for the rest of my 100G.
Now I wonder if I want to do the same with btrfs.
Can I do the same so make 3 partitions with btrfs or can I better make 1
partiton of 100G and make the /boot /home and / subvolumes of the big
partitiion.
Can one of you btfrs gurus shine a light of this matter ?
Regards,
Roelof Wobben
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: partition question
2013-01-11 19:21 partition question Roelof Wobben
@ 2013-01-11 22:29 ` Chris Carlin
2013-01-11 22:34 ` Chris Murphy
1 sibling, 0 replies; 7+ messages in thread
From: Chris Carlin @ 2013-01-11 22:29 UTC (permalink / raw)
Cc: linux-btrfs
On Fri, Jan 11, 2013 at 2:21 PM, Roelof Wobben <r.wobben@home.nl> wrote:
> Hello,
>
> I have one thing I think I don't really understand about btrfs,
>
> Normally if I use ext4 I make a 3 partitions for my distro.
>
> one for boot about 1G
> one for home about 30G
> one for root for the rest of my 100G.
>
> Now I wonder if I want to do the same with btrfs.
>
> Can I do the same so make 3 partitions with btrfs or can I better make 1
> partiton of 100G and make the /boot /home and / subvolumes of the big
> partitiion.
Well. what is your motivation for doing it that way in the ext4?
If you're looking to be able to selectively mount sections of your
filesystem, then sure, subvolumes might work, but a lot of people
divide partitions this way so that they'd be independent for purposes
of reliability. Subvolumes of one btrfs partition wouldn't provide
that independence.
~Chris
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: partition question
2013-01-11 19:21 partition question Roelof Wobben
2013-01-11 22:29 ` Chris Carlin
@ 2013-01-11 22:34 ` Chris Murphy
2013-01-11 22:38 ` Hugo Mills
1 sibling, 1 reply; 7+ messages in thread
From: Chris Murphy @ 2013-01-11 22:34 UTC (permalink / raw)
To: linux-btrfs
On Jan 11, 2013, at 12:21 PM, Roelof Wobben <r.wobben@home.nl> wrote:
> Hello,
>
> I have one thing I think I don't really understand about btrfs,
>
> Normally if I use ext4 I make a 3 partitions for my distro.
>
> one for boot about 1G
> one for home about 30G
> one for root for the rest of my 100G.
>
> Now I wonder if I want to do the same with btrfs.
>
> Can I do the same so make 3 partitions with btrfs or can I better make 1 partiton of 100G and make the /boot /home and / subvolumes of the big partitiion.
>
> Can one of you btfrs gurus shine a light of this matter ?
You can make one Btrfs volume with /boot, /home, and / as subvolumes. GRUB2 2.00 can boot this arrangement, and that's the first caveat which is that many distributions are using older versions of GRUB2. It even works with Btrfs data/metadata profiles single, dup; and multiple device raid 0, 1, 10; and compression zlib, and lzo.
Swap still needs to be on a separate partition, as I don't think Btrfs is supporting swapfiles yet still, but maybe someone else can comment on the status of that.
While GRUB2 has LUKS support, its easier to have /boot on a separate partition for such purposes.
The limiting factor is an installer that doesn't offer the unified option, and also won't install to a pre-configured Btrfs volume. I can vouch for Fedora 18, which can do both. That is, it will install to an existing Btrfs volume either reusing or creating subvols for home, boot, usr, var; and it will compel you to create a new subvol for root. Further, it can create new Btrfs volumes. By default with the non-custom partition path, it will put /boot on ext4. If you choose BTRFS in Installation Options > Partition scheme configuration *before* you get to custom partitioning (the screen labeled Manual Partitioning), you will be able to add a Boot mountpoint and change it from ext4 to Btrfs, and set the size however large you want. Any additional mount points other than swap will be created as subvolumes.
Chris Murphy
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: partition question
2013-01-11 22:34 ` Chris Murphy
@ 2013-01-11 22:38 ` Hugo Mills
2013-01-12 8:40 ` Roelof Wobben
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Hugo Mills @ 2013-01-11 22:38 UTC (permalink / raw)
To: Chris Murphy; +Cc: linux-btrfs
[-- Attachment #1: Type: text/plain, Size: 1725 bytes --]
On Fri, Jan 11, 2013 at 03:34:25PM -0700, Chris Murphy wrote:
> On Jan 11, 2013, at 12:21 PM, Roelof Wobben <r.wobben@home.nl> wrote:
> > I have one thing I think I don't really understand about btrfs,
> >
> > Normally if I use ext4 I make a 3 partitions for my distro.
> >
> > one for boot about 1G
> > one for home about 30G
> > one for root for the rest of my 100G.
> >
> > Now I wonder if I want to do the same with btrfs.
> >
> > Can I do the same so make 3 partitions with btrfs or can I better make 1 partiton of 100G and make the /boot /home and / subvolumes of the big partitiion.
> >
> > Can one of you btfrs gurus shine a light of this matter ?
> You can make one Btrfs volume with /boot, /home, and / as
> subvolumes. GRUB2 2.00 can boot this arrangement, and that's the
> first caveat which is that many distributions are using older
> versions of GRUB2. It even works with Btrfs data/metadata profiles
> single, dup; and multiple device raid 0, 1, 10; and compression
> zlib, and lzo.
>
> Swap still needs to be on a separate partition, as I don't think
> Btrfs is supporting swapfiles yet still, but maybe someone else can
> comment on the status of that.
I don't know this area of the code at all well, but as I understand
it, there's been some work in the kernel (swap over NFS) which lays
down some of the underlying infrastructure we'd need to support
swapfiles on btrfs, but we don't have anything beyond that. I don't
know of anyone working on it, either.
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
--- It's against my programming to impersonate a deity! ---
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: partition question
2013-01-11 22:38 ` Hugo Mills
@ 2013-01-12 8:40 ` Roelof Wobben
2013-01-15 1:39 ` dima
2013-01-16 13:12 ` David Sterba
2 siblings, 0 replies; 7+ messages in thread
From: Roelof Wobben @ 2013-01-12 8:40 UTC (permalink / raw)
To: linux-btrfs
Op 11-1-2013 23:38, Hugo Mills schreef:
> On Fri, Jan 11, 2013 at 03:34:25PM -0700, Chris Murphy wrote:
>> On Jan 11, 2013, at 12:21 PM, Roelof Wobben <r.wobben@home.nl> wrote:
>>> I have one thing I think I don't really understand about btrfs,
>>>
>>> Normally if I use ext4 I make a 3 partitions for my distro.
>>>
>>> one for boot about 1G
>>> one for home about 30G
>>> one for root for the rest of my 100G.
>>>
>>> Now I wonder if I want to do the same with btrfs.
>>>
>>> Can I do the same so make 3 partitions with btrfs or can I better make 1 partiton of 100G and make the /boot /home and / subvolumes of the big partitiion.
>>>
>>> Can one of you btfrs gurus shine a light of this matter ?
>> You can make one Btrfs volume with /boot, /home, and / as
>> subvolumes. GRUB2 2.00 can boot this arrangement, and that's the
>> first caveat which is that many distributions are using older
>> versions of GRUB2. It even works with Btrfs data/metadata profiles
>> single, dup; and multiple device raid 0, 1, 10; and compression
>> zlib, and lzo.
>>
>> Swap still needs to be on a separate partition, as I don't think
>> Btrfs is supporting swapfiles yet still, but maybe someone else can
>> comment on the status of that.
> I don't know this area of the code at all well, but as I understand
> it, there's been some work in the kernel (swap over NFS) which lays
> down some of the underlying infrastructure we'd need to support
> swapfiles on btrfs, but we don't have anything beyond that. I don't
> know of anyone working on it, either.
>
> Hugo.
>
Im testing Crux where I must make a custom partiion scheme before I can
start the installer.
And Im making this scheme before because people told me that was the
best way to work.
Roelof
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: partition question
2013-01-11 22:38 ` Hugo Mills
2013-01-12 8:40 ` Roelof Wobben
@ 2013-01-15 1:39 ` dima
2013-01-16 13:12 ` David Sterba
2 siblings, 0 replies; 7+ messages in thread
From: dima @ 2013-01-15 1:39 UTC (permalink / raw)
To: linux-btrfs
> I don't know this area of the code at all well, but as I understand
> it, there's been some work in the kernel (swap over NFS) which lays
> down some of the underlying infrastructure we'd need to support
> swapfiles on btrfs, but we don't have anything beyond that. I don't
> know of anyone working on it, either.
>
> Hugo.
>
You can use swapfile on btrfs with mounting it via a loop device. It
won't be incredibly fast, but it will work.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: partition question
2013-01-11 22:38 ` Hugo Mills
2013-01-12 8:40 ` Roelof Wobben
2013-01-15 1:39 ` dima
@ 2013-01-16 13:12 ` David Sterba
2 siblings, 0 replies; 7+ messages in thread
From: David Sterba @ 2013-01-16 13:12 UTC (permalink / raw)
To: Hugo Mills, Chris Murphy, linux-btrfs
On Fri, Jan 11, 2013 at 10:38:45PM +0000, Hugo Mills wrote:
> On Fri, Jan 11, 2013 at 03:34:25PM -0700, Chris Murphy wrote:
> > Swap still needs to be on a separate partition, as I don't think
> > Btrfs is supporting swapfiles yet still, but maybe someone else can
> > comment on the status of that.
>
> I don't know this area of the code at all well, but as I understand
> it, there's been some work in the kernel (swap over NFS) which lays
> down some of the underlying infrastructure we'd need to support
> swapfiles on btrfs, but we don't have anything beyond that. I don't
> know of anyone working on it, either.
Nobody up to my knowledge.
david
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-01-16 13:12 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-11 19:21 partition question Roelof Wobben
2013-01-11 22:29 ` Chris Carlin
2013-01-11 22:34 ` Chris Murphy
2013-01-11 22:38 ` Hugo Mills
2013-01-12 8:40 ` Roelof Wobben
2013-01-15 1:39 ` dima
2013-01-16 13:12 ` David Sterba
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).