* unable to remove files because of No space left
@ 2021-12-25 10:14 Jingyun He
2021-12-26 4:36 ` Qu Wenruo
0 siblings, 1 reply; 2+ messages in thread
From: Jingyun He @ 2021-12-25 10:14 UTC (permalink / raw)
To: linux-btrfs
Hello,
I have a HM-SMR device, and have fill the disk full.
the disk went into read-only when I started a balance process,
Now I'm unable to remove any files nor add files.
Once I mount the device, it will automatically start the balance, and
go into read only immediately.
Then I tried the skip_balance option, I can mount the device, and I
tried to remove some files, but it became read only again.
I got following error message when I tried to remove file.
[435609.942923] BTRFS: error (device sdb) in
__btrfs_update_delayed_inode:995: errno=-28 No space left
Any ideas?
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: unable to remove files because of No space left
2021-12-25 10:14 unable to remove files because of No space left Jingyun He
@ 2021-12-26 4:36 ` Qu Wenruo
0 siblings, 0 replies; 2+ messages in thread
From: Qu Wenruo @ 2021-12-26 4:36 UTC (permalink / raw)
To: Jingyun He, linux-btrfs; +Cc: Johannes Thumshirn
On 2021/12/25 18:14, Jingyun He wrote:
> Hello,
> I have a HM-SMR device, and have fill the disk full.
> the disk went into read-only when I started a balance process,
This is already a big problem.
Although btrfs needs extra space to do metadata COW, we should not going
to read-only half way.
This mostly means, the extent allocation and space reservation are not
doing ENOSPC check correctly for HM zoned devices.
Add Johannes to CC list, as I believe it's zoned code causing the
behavior change.
Any extra info like `btrfs fi df` and `btrfs fi usage`?
Also the dmesg for the readonly failure would also help.
Thanks,
Qu
>
> Now I'm unable to remove any files nor add files.
> Once I mount the device, it will automatically start the balance, and
> go into read only immediately.
> Then I tried the skip_balance option, I can mount the device, and I
> tried to remove some files, but it became read only again.
> I got following error message when I tried to remove file.
> [435609.942923] BTRFS: error (device sdb) in
> __btrfs_update_delayed_inode:995: errno=-28 No space left
>
> Any ideas?
> Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-26 4:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-25 10:14 unable to remove files because of No space left Jingyun He
2021-12-26 4:36 ` Qu Wenruo
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).