[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Solved (kind of)] Re: Installing Wheezy on btrfs only (multi-device)



On Sun, May 27, 2012 at 8:15 PM, Steven Post
<redalert.commander@gmail.com> wrote:
> On Sun, 2012-05-27 at 18:40 -0400, Tom H wrote:


>> I was wondering about d-i's progress with btrfs so I tested Wheezy and
>> Precise. Wheezy's current dailies and weeklies are broken so I'll wait
>> for them to be fixed. For Precise, I chose just one partition (no
>> "/boot", no swap) and the installed (d-i not ubiquity, I didn't try
>> the latter) and the installed created two subvolumes "@" and "@home"
>> for "/" and "/home".
>
> This really sounds interesting, do you think support for multi-device
> btrfs and user controlled subvolumes will be fully supported by d-i by
> the time Wheezy is released?

I doubt it because, AFAIK, the freeze is imminent.


>> You'd said in a previous email that you didn't think that grub
>> supported having "/boot" on a multi-device btrfs volume but in this
>> grub-devel thread [1], the first email says that raid support hasn't
>> been implemented and the last email says that it is.
>>
>> 1. http://web.archiveorange.com/archive/v/aVxzlidgDid2J9Mtd2eb
>
> That is very good news, that means it is just the d-i that can't handle
> it, a single device btrfs worked fine (at least in virtualbox), but d-i
> refused to install grub with my raid 10 btrfs volume.

I created a 2-disk device using a live disk ("mkfs.btrfs -L th -m
raid1 -d raid1 /dev/sda1 /dev/sdb1") and Precise was installed on (I
chose /dev/sda1 from the d-i partition menu) and was bootable, and sda
was mirrored to sdb.

I ran bootinfoscript after booting into the install and found that
grub was installed in the MBR of sda but not of sdb. I ran
"grub-install /dev/sdb", re-ran bootinfoscript, and found that grub2's
installed on sdb, but it's "installed in the MBR of /dev/sdb and looks
at sector 1 of the same hard drive for core.img. core.img is at this
location and uses an embedded config file: ...". (For the record,
running "grub-install /dev/sda" installs grub on sda "properly,"
without embedding.)

I rebooted without sda connected and was dropped to an initramfs
shell, so "/boot"-on-btrfs isn't yet ready for a multidevice setup; at
least not without some extra work like, possibly, installing grub on
sdb while booted from a live or rescue disk.


Reply to: