From: Prasad Joshi <prasadjoshi124@gmail.com>
To: "Yan, Zheng" <yanzheng@21cn.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Errors in btrfsck after converting ext2 FS to btrfs.
Date: Mon, 19 Oct 2009 12:47:32 +0530 [thread overview]
Message-ID: <fe291c8c0910190017g533f7db9o6d99623429d5905c@mail.gmail.com> (raw)
In-Reply-To: <3d0408630910181926h69763e86w9041160cdc2c10bc@mail.gmail.com>
On Mon, Oct 19, 2009 at 7:56 AM, Yan, Zheng <yanzheng@21cn.com> wrote:
> On Sun, Oct 18, 2009 at 10:35 PM, Prasad Joshi <prasadjoshi124@gmail.=
com> wrote:
>> Hi,
>>
>> I tried using the btrfs-convert utility to convert the ext2 fs to
>> btrfs. After the conversion was over, just to verify the correctness
>> of operation, ran btrfsck on the device. It showed errors 800. I am
>> not sure what does it mean, so thought of repoting it on mailing lis=
t.
>>
>> # btrfsck /dev/sdb
>> root 256 inode 257 errors 800
>> found 1105965056 bytes used err is 1
>> total csum bytes: 192576
>> total tree bytes: 459956224
>> total fs tree bytes: 449585152
>> btree space waste bytes: 191448023
>> file data blocks allocated: 843206656
>> referenced 843206656
>> Btrfs v0.19-3-g6f3cf25-dirty
>
> "root 256 inode 257" is the ext2 image file. Checksum for file extent=
s in
> the ext2 image file is very special, so btrfsck treat it as error. Th=
is error
> has no harm, =A0it will go away after deleting the ext2 image file.
OKay thanks.
>
>>
>> I also found that, after the conversion of FS from ext2 to btrfs
>> %usage gone up drastically. I mean before the conversion ext2 FS was
>> 22% full but then converted btrfs is 64% used.
>>
>> Steps Followed
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>> 1. Created an ext2 filesystem of size 2G
>> 2. Created about 178 files of size 1M in a directory. FS was 11% ful=
l
>> after the operation.
>> 3. In another directory create near about 1 Lac files of very small
>> size (2K). I kept on creating files till the number of available
>> inodes were exhausted.
>>
>> # fsck /dev/sdb
>> fsck 1.41.3 (12-Oct-2008)
>> e2fsck 1.41.3 (12-Oct-2008)
>> /dev/sdb: clean, 131072/131072 files, 188721/524288 blocks
>>
>> At this point df -kh output showed that FS as 22% full
>>
>> 4. Tried to convert the ext2 FS to btrfs using btrfs-convert utility
>>
>> # btrfs-convert /dev/sdb
>> creating btrfs metadata.
>> creating ext2fs image file.
>> cleaning up system chunk.
>> conversion complete.
>>
>> 5. Ran btrfsck.
>>
>> 6. Mounted the file system
>>
>> # df -kh
>> Filesystem=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Size=A0 Used Avail Use% =
Mounted on
>> ....
>> ....
>> tmpfs=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 251M=A0 104K=A0=
251M=A0=A0 1% /dev/shm
>> /dev/sdb=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 2.0G=A0 1.3G=A0 740M=
=A0 64% /mnt/fs
>>
>> As you can see df displays FS is 64% full, when infact before
>> conversion it was onlly 22% full. Why is so much increase in
>> percentage usage?
>
> This is a accounting bug, it's already fixed in btrfs-progs-unstable =
tree.
I am using the latest btrfs-progs-unstable tree. I had cloned the git
repository, I used the same updated repository. Is there any other
repository than the one declared on Wiki Page?
I used cloned repo from
git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs-unstabl=
e.git
Thanks,
Prasad
>
> Yan, Zheng
>
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2009-10-19 7:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-18 14:35 Errors in btrfsck after converting ext2 FS to btrfs Prasad Joshi
2009-10-19 2:26 ` Yan, Zheng
2009-10-19 7:17 ` Prasad Joshi [this message]
2009-10-19 7:57 ` Yan, Zheng
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=fe291c8c0910190017g533f7db9o6d99623429d5905c@mail.gmail.com \
--to=prasadjoshi124@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=yanzheng@21cn.com \
/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