Skip to contentSkip to conversation

Btrfsck repair, strange df numbers and cannot write

DISCUSSION Sem 3 participants 4 messages Nov 12, 2012 – Aug 4, 2013 Btrfs file system

lore
Share & tools
lore

Sem

author
#0 lore raw

Hi,

After doing a btrfsck --repair on my file system, it now has very strange numbers in df:

[root ~]# df -h | grep sdc
/dev/sdc 15T -64Z 16E 101% /usr/data

Prior to this it was 81% used.

I can read the files, but i cannot write a file.

Does anyone have a clue as to what is going on?

Any idea how to fix?

Thanks.

---

Details:

[root ~]# uname -a
Linux t1.localdomain 3.6.6-1.fc16.x86_64 #1 SMP Mon Nov 5 16:56:43 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

[root ~]# btrfs --version
Btrfs v0.20-rc1-37-g91d9eec

#1 lore raw
Quoted 5 lines · Sem

Hi,

After doing a btrfsck --repair on my file system, it now has very strange numbers in df:

Quoted 9 lines

[root ~]# df -h | grep sdc
/dev/sdc 15T -64Z 16E 101% /usr/data

Prior to this it was 81% used.

I can read the files, but i cannot write a file.

Does anyone have a clue as to what is going on?

Can you show here what 'btrfs fi df /usr/data' prints?

And also 'btrfs-debug-tree sdc'.

thanks,
liubo

Quoted 20 lines

Any idea how to fix?

Thanks.

---

Details:

[root ~]# uname -a
Linux t1.localdomain 3.6.6-1.fc16.x86_64 #1 SMP Mon Nov 5 16:56:43 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

[root ~]# btrfs --version
Btrfs v0.20-rc1-37-g91d9eec

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#2 lore raw
Quoted 40 lines · Liu Bo <bo.li.liu <at> oracle.com> writes:
Quoted 5 lines · Sem

Hi,

After doing a btrfsck --repair on my file system, it now has very strange numbers in df:

Quoted 9 lines

[root ~]# df -h | grep sdc
/dev/sdc 15T -64Z 16E 101% /usr/data

Prior to this it was 81% used.

I can read the files, but i cannot write a file.

Does anyone have a clue as to what is going on?

Can you show here what 'btrfs fi df /usr/data' prints?

And also 'btrfs-debug-tree sdc'.

thanks,
liubo

Quoted 16 lines

Any idea how to fix?

Thanks.

---

Details:

[root ~]# uname -a
Linux t1.localdomain 3.6.6-1.fc16.x86_64 #1 SMP Mon Nov 5 16:56:43 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

[root ~]# btrfs --version
Btrfs v0.20-rc1-37-g91d9eec

Quoted 10 lines
Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo <at> vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo <at> vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

[root@ data]# btrfs-debug-tree /dev/sdc

warning, bad space info total_bytes 8589934592 used 17179541504 warning, bad space info total_bytes 12884901888 used 25768099840 warning, bad space info total_bytes 17179869184 used 34358034432 warning, bad space info total_bytes 21474836480 used 42947969024 warning, bad space info total_bytes 25769803776 used 51537903616 warning, bad space info total_bytes 30064771072 used 60109676544 warning, bad space info total_bytes 34359738368 used 68699611136 warning, bad space info total_bytes 38654705664 used 77289545728 warning, bad space info total_bytes 42949672960 used 85810184192 warning, bad space info total_bytes 47244640256 used 94400118784 warning, bad space info total_bytes 51539607552 used 102990053376 warning, bad space info total_bytes 55834574848 used 111552487424 And thousands more lines.

[root@ data]# btrfs fi df /usr/data

Data, RAID0: total=13.95TB, used=23.99TB
System, RAID1: total=64.00MB, used=1.63MB
System: total=4.00MB, used=0.00
Metadata, RAID1: total=297.96GB, used=146.77GB

#3 lore raw
Quoted 12 lines · Sem <smith_it2000 <at> yahoo.com> writes:
Quoted 11 lines · Liu Bo <bo.li.liu <at> oracle.com> writes:
Quoted 11 lines

After doing a btrfsck --repair on my file system, it now has very strange numbers in df:

[root ~]# df -h | grep sdc
/dev/sdc 15T -64Z 16E 101% /usr/data

Prior to this it was 81% used.

I can read the files, but i cannot write a file.

Does anyone have a clue as to what is going on?

...

Quoted 4 lines

[root <at> data]# btrfs-debug-tree /dev/sdc

warning, bad space info total_bytes 8589934592 used 17179541504 warning, bad space info total_bytes 12884901888 used 25768099840

...

Quoted 10 lines

warning, bad space info total_bytes 51539607552 used 102990053376 warning, bad space info total_bytes 55834574848 used 111552487424 And thousands more lines.

[root <at> data]# btrfs fi df /usr/data

Data, RAID0: total=13.95TB, used=23.99TB
System, RAID1: total=64.00MB, used=1.63MB
System: total=4.00MB, used=0.00
Metadata, RAID1: total=297.96GB, used=146.77GB

Hello.

Did you find a solution for the issue below?
Cause i have run into the same problem.

I thought adding two disks to the array would help, but it only ended up as showing up ad filled.

After doing another btrfsck i can not mount the volume at all.

Cheers
Jesper