From: Boyd Stephen Smith Jr. on
On Monday 28 June 2010 21:14:32 Magicloud Magiclouds wrote:
> Hi,
> I am trying to make a debian sid system with btrfs as root.

Make sure it is Sid. There were some changes made to dpkg in order to prevent
package meta-data corruption from occurring on btrfs. Btrfs behaves
differently from most other file systems in the way dirents are returned while
the directory is being modified. I can't remember the exact dpkg version
these changes were made.

> I installed debian sid on ext3 root, compiled 2.6.34 kernel. Booted
> to 2.6.34, it mounted a btrfs data partition right.
> Then I booted into debian live, converted the root to btrfs, rebooted.
> I got this:
> FATAL: Error inserting btrfs
> (/lib/modules/2.6.34/kernel/fs/btrfs/btrfs.ko): Unknown symbol in
> module, or unknown parameter (see dmesg)
> modprobe: FATAL: Error inserting btrfs
> (/lib/modules/2.6.34/kernel/fs/btrfs/btrfs.ko): Unknown symbol in
> module, or unknown parameter (see dmesg)
> Any idea? Thanks.

Oh, yeah. I ran into this as well. The btrfs module needs to load then
crc32c module in order to resolve some symbols. Unfortunately, this seems to
be done in a way that depmod does not detect, even in Sid. Because of this,
your initramfs may not have the crc32c module available since it is not
detected as a dependency of the btrfs module. Add it to /etc/initramfs-
tools/modules to force the initramfs to include that module.

I believe you need a fairly recent initramfs-tools in order for it to
correctly include even the btrfs module, so it maybe be best to use my
/etc/initramfs-tools/modules in its entirety:
btrfs
libcrc32c
zlib_deflate
crc32c

Sorry there's no bug on this. Perhaps there should be one, but I don't know
if it is a problem with the btrfs module or depmod.

I am currently running btrfs as my root file system. While I have not noticed
any breakage I could blame specifically on btrfs, I fear that it may be
silently corrupting files in some cases. You may want to use debsums in a
cron job, tripwire, or some other monitoring. I had to recover from an
unrelated issue and noticed a few packages that had debsums errors during
diagnosis.
--
Boyd Stephen Smith Jr. ,= ,-_-. =.
bss(a)iguanasuicide.net ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/ \_/
From: Sven Joachim on
On 2010-06-29 12:02 +0200, Boyd Stephen Smith Jr. wrote:

> On Monday 28 June 2010 21:14:32 Magicloud Magiclouds wrote:
>> Hi,
>> I am trying to make a debian sid system with btrfs as root.
>
> Make sure it is Sid. There were some changes made to dpkg in order to prevent
> package meta-data corruption from occurring on btrfs. Btrfs behaves
> differently from most other file systems in the way dirents are returned while
> the directory is being modified. I can't remember the exact dpkg version
> these changes were made.

That was in dpkg 1.15.7. Both sid and squeeze have 1.15.7.2 now.

>> I installed debian sid on ext3 root, compiled 2.6.34 kernel. Booted
>> to 2.6.34, it mounted a btrfs data partition right.
>> Then I booted into debian live, converted the root to btrfs, rebooted.
>> I got this:
>> FATAL: Error inserting btrfs
>> (/lib/modules/2.6.34/kernel/fs/btrfs/btrfs.ko): Unknown symbol in
>> module, or unknown parameter (see dmesg)
>> modprobe: FATAL: Error inserting btrfs
>> (/lib/modules/2.6.34/kernel/fs/btrfs/btrfs.ko): Unknown symbol in
>> module, or unknown parameter (see dmesg)
>> Any idea? Thanks.
>
> Oh, yeah. I ran into this as well. The btrfs module needs to load then
> crc32c module in order to resolve some symbols. Unfortunately, this seems to
> be done in a way that depmod does not detect, even in Sid. Because of this,
> your initramfs may not have the crc32c module available since it is not
> detected as a dependency of the btrfs module.

To be fair, this is not a bug in btrfs. Rather the problem is that
btrfs depends on libcrc32c but that module does not depend on crc32c (or
anything else). Kernel developer Herbert Xu claims that this is because
libcrc32c can be used with optimized implementations�.

> I believe you need a fairly recent initramfs-tools in order for it to
> correctly include even the btrfs module, so it maybe be best to use my
> /etc/initramfs-tools/modules in its entirety:
> btrfs
> libcrc32c
> zlib_deflate
> crc32c

Actually libcrc32c and zlib_deflate do not need to be spelled out,
because btrfs depends on them.

Sven


� http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=69c35efcf1576ab5f00cba83e8ca740923afb6c9


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/87bpauktff.fsf(a)turtle.gmx.de
From: Magicloud Magiclouds on
You are good! And Sven Joachim is right.

On Tue, Jun 29, 2010 at 6:02 PM, Boyd Stephen Smith Jr.
<bss(a)iguanasuicide.net> wrote:
> On Monday 28 June 2010 21:14:32 Magicloud Magiclouds wrote:
>> Hi,
>>   I am trying to make a debian sid system with btrfs as root.
>
> Make sure it is Sid.  There were some changes made to dpkg in order to prevent
> package meta-data corruption from occurring on btrfs.  Btrfs behaves
> differently from most other file systems in the way dirents are returned while
> the directory is being modified.  I can't remember the exact dpkg version
> these changes were made.
>
>>   I installed debian sid on ext3 root, compiled 2.6.34 kernel. Booted
>> to 2.6.34, it mounted a btrfs data partition right.
>>   Then I booted into debian live, converted the root to btrfs, rebooted.
>>   I got this:
>> FATAL: Error inserting btrfs
>> (/lib/modules/2.6.34/kernel/fs/btrfs/btrfs.ko): Unknown symbol in
>> module, or unknown parameter (see dmesg)
>> modprobe: FATAL: Error inserting btrfs
>> (/lib/modules/2.6.34/kernel/fs/btrfs/btrfs.ko): Unknown symbol in
>> module, or unknown parameter (see dmesg)
>>   Any idea? Thanks.
>
> Oh, yeah.  I ran into this as well.  The btrfs module needs to load then
> crc32c module in order to resolve some symbols.  Unfortunately, this seems to
> be done in a way that depmod does not detect, even in Sid.  Because of this,
> your initramfs may not have the crc32c module available since it is not
> detected as a dependency of the btrfs module.  Add it to /etc/initramfs-
> tools/modules to force the initramfs to include that module.
>
> I believe you need a fairly recent initramfs-tools in order for it to
> correctly include even the btrfs module, so it maybe be best to use my
> /etc/initramfs-tools/modules in its entirety:
> btrfs
> libcrc32c
> zlib_deflate
> crc32c
>
> Sorry there's no bug on this.  Perhaps there should be one, but I don't know
> if it is a problem with the btrfs module or depmod.
>
> I am currently running btrfs as my root file system.  While I have not noticed
> any breakage I could blame specifically on btrfs, I fear that it may be
> silently corrupting files in some cases.  You may want to use debsums in a
> cron job, tripwire, or some other monitoring.  I had to recover from an
> unrelated issue and noticed a few packages that had debsums errors during
> diagnosis.
> --
> Boyd Stephen Smith Jr.                   ,= ,-_-. =.
> bss(a)iguanasuicide.net                   ((_/)o o(\_))
> ICQ: 514984 YM/AIM: DaTwinkDaddy         `-'(. .)`-'
> http://iguanasuicide.net/                    \_/
>



--
竹密岂妨流水过
山高哪阻野云飞


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/AANLkTikz_8-BYGojj-HrhS4kVAnIyV5xgYLSKlp_oldK(a)mail.gmail.com