* Meta data full on a Readynas
@ 2015-08-27 10:02 Mike Aubury
2015-08-27 16:23 ` Chris Murphy
0 siblings, 1 reply; 8+ messages in thread
From: Mike Aubury @ 2015-08-27 10:02 UTC (permalink / raw)
To: linux-btrfs
Hi,
Wondering if anyone can help me.
I've got a readynas which uses btrfs - and the meta data is full.
root@ReadyNAS:~# uname -a
Linux ReadyNAS 3.0.101.RN_ARM.4 #1 Mon Jun 29 19:02:35 PDT 2015 armv7l GNU/Linux
root@ReadyNAS:~# btrfs --version
Btrfs v3.17.3
root@ReadyNAS:~# btrfs fi show
Label: '0e36d290:data' uuid: e75a9856-d9e5-4d02-92e6-a217056c69b7
Total devices 3 FS bytes used 5.88TiB
devid 1 size 2.71TiB used 2.71TiB path /dev/md127
devid 2 size 1.82TiB used 1.82TiB path /dev/md126
devid 3 size 1.82TiB used 1.82TiB path /dev/md125
Btrfs v3.17.3
root@ReadyNAS:~# btrfs fi df /data
Data, single: total=6.33TiB, used=5.87TiB
System, RAID1: total=32.00MiB, used=768.00KiB
System, single: total=4.00MiB, used=0.00B
Metadata, RAID1: total=9.00GiB, used=8.98GiB
Metadata, DUP: total=3.00GiB, used=2.12GiB
At some point (I dont know if its btrfs, or some Readynas process) -
the filesystem goes readyonly.
This seems to scupper most attempts at fixing things.
I've tried all sorts,I've tried deleting off files - but - when the
machine reboots they re-appear, various different "btrfs balance" type
commands - they seem to exit because of lack of free space - eg
# btrfs balance start /data -dlimit=3 -v
Dumping filters: flags 0x1, state 0x0, force is off
DATA (flags 0x20): balancing, limit=3
ERROR: error during balancing '/data' - No space left on device
There may be more info in syslog - try dmesg | tail
# dmesg | tail
BTRFS error (device md125) in __btrfs_free_extent:5648: errno=-28 No space left
BTRFS info (device md125): forced readonly
BTRFS debug (device md125): run_one_delayed_ref returned -28
BTRFS error (device md125) in btrfs_run_delayed_refs:2688: errno=-28
No space left
BTRFS error (device md125) in __btrfs_free_extent:5648: errno=-28 No space left
BTRFS debug (device md125): run_one_delayed_ref returned -28
BTRFS error (device md125) in btrfs_run_delayed_refs:2688: errno=-28
No space left
BTRFS error (device md125) in __btrfs_free_extent:5648: errno=-28 No space left
BTRFS debug (device md125): run_one_delayed_ref returned -28
BTRFS error (device md125) in btrfs_run_delayed_refs:2688: errno=-28
No space left
Nothing seems to fix it, every time I reboot - I get the same 8.98GB
used out of 9GB
I tried the readynas forum - the advice seemed to be wipe the device
and start again...
Any suggestion before I just wipe the /data and start again ?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Meta data full on a Readynas
2015-08-27 10:02 Meta data full on a Readynas Mike Aubury
@ 2015-08-27 16:23 ` Chris Murphy
2015-08-27 16:35 ` Mike Aubury
0 siblings, 1 reply; 8+ messages in thread
From: Chris Murphy @ 2015-08-27 16:23 UTC (permalink / raw)
To: Mike Aubury; +Cc: Btrfs BTRFS
On Thu, Aug 27, 2015 at 4:02 AM, Mike Aubury <mike@aubit.com> wrote:
> Hi,
> Wondering if anyone can help me.
> I've got a readynas which uses btrfs - and the meta data is full.
>
> root@ReadyNAS:~# uname -a
> Linux ReadyNAS 3.0.101.RN_ARM.4 #1 Mon Jun 29 19:02:35 PDT 2015 armv7l GNU/Linux
> root@ReadyNAS:~# btrfs --version
> Btrfs v3.17.3
> root@ReadyNAS:~# btrfs fi show
> Label: '0e36d290:data' uuid: e75a9856-d9e5-4d02-92e6-a217056c69b7
> Total devices 3 FS bytes used 5.88TiB
> devid 1 size 2.71TiB used 2.71TiB path /dev/md127
> devid 2 size 1.82TiB used 1.82TiB path /dev/md126
> devid 3 size 1.82TiB used 1.82TiB path /dev/md125
>
> Btrfs v3.17.3
> root@ReadyNAS:~# btrfs fi df /data
> Data, single: total=6.33TiB, used=5.87TiB
> System, RAID1: total=32.00MiB, used=768.00KiB
> System, single: total=4.00MiB, used=0.00B
> Metadata, RAID1: total=9.00GiB, used=8.98GiB
> Metadata, DUP: total=3.00GiB, used=2.12GiB
>
>
> At some point (I dont know if its btrfs, or some Readynas process) -
> the filesystem goes readyonly.
> This seems to scupper most attempts at fixing things.
>
> I've tried all sorts,I've tried deleting off files - but - when the
> machine reboots they re-appear, various different "btrfs balance" type
> commands - they seem to exit because of lack of free space - eg
>
> # btrfs balance start /data -dlimit=3 -v
> Dumping filters: flags 0x1, state 0x0, force is off
> DATA (flags 0x20): balancing, limit=3
> ERROR: error during balancing '/data' - No space left on device
> There may be more info in syslog - try dmesg | tail
> # dmesg | tail
> BTRFS error (device md125) in __btrfs_free_extent:5648: errno=-28 No space left
> BTRFS info (device md125): forced readonly
> BTRFS debug (device md125): run_one_delayed_ref returned -28
> BTRFS error (device md125) in btrfs_run_delayed_refs:2688: errno=-28
> No space left
> BTRFS error (device md125) in __btrfs_free_extent:5648: errno=-28 No space left
> BTRFS debug (device md125): run_one_delayed_ref returned -28
> BTRFS error (device md125) in btrfs_run_delayed_refs:2688: errno=-28
> No space left
> BTRFS error (device md125) in __btrfs_free_extent:5648: errno=-28 No space left
> BTRFS debug (device md125): run_one_delayed_ref returned -28
> BTRFS error (device md125) in btrfs_run_delayed_refs:2688: errno=-28
> No space left
>
>
>
> Nothing seems to fix it, every time I reboot - I get the same 8.98GB
> used out of 9GB
>
> I tried the readynas forum - the advice seemed to be wipe the device
> and start again...
>
>
> Any suggestion before I just wipe the /data and start again ?
First umount then remount, because it needs to be rw first. If you
can't get it to mount rw, then it's stuck.
Next, connect a USB stick that's already erased (wipefs -a on each
partition and whole block device), then add the whole block device.
Ideally it's small, around 2-8GB, you can partition it if it's a large
USB stick.
btrfs dev add /dev/<usbstick> /data
btrfs balance start /data
btrfs dev delete /dev/<usbstick> /data
You could use filters, such as -dusage=0 or -dusage=15 to make it go a
bit faster. Realize that some fs metadata will end up on the USB
stick, so don't remove it until the dev delete completes and fi show
lists that it's not part of the volume anymore.
--
Chris Murphy
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Meta data full on a Readynas
2015-08-27 16:23 ` Chris Murphy
@ 2015-08-27 16:35 ` Mike Aubury
2015-08-27 16:55 ` Chris Murphy
0 siblings, 1 reply; 8+ messages in thread
From: Mike Aubury @ 2015-08-27 16:35 UTC (permalink / raw)
To: Chris Murphy; +Cc: Btrfs BTRFS
Thanks for that.
I found something similar online - using a loop back device and a file
on a usb stick.
I created a 2GB file, and mounted that tried the balance - and once
completed - rebooted.
It seems to have fried the whole thing - won't mount at all now - with
or without the usb device in place.
Currently running a "recover" to try to pull off what I can..
On 27 August 2015 at 17:23, Chris Murphy <lists@colorremedies.com> wrote:
> On Thu, Aug 27, 2015 at 4:02 AM, Mike Aubury <mike@aubit.com> wrote:
>> Hi,
>> Wondering if anyone can help me.
>> I've got a readynas which uses btrfs - and the meta data is full.
>>
>> root@ReadyNAS:~# uname -a
>> Linux ReadyNAS 3.0.101.RN_ARM.4 #1 Mon Jun 29 19:02:35 PDT 2015 armv7l GNU/Linux
>> root@ReadyNAS:~# btrfs --version
>> Btrfs v3.17.3
>> root@ReadyNAS:~# btrfs fi show
>> Label: '0e36d290:data' uuid: e75a9856-d9e5-4d02-92e6-a217056c69b7
>> Total devices 3 FS bytes used 5.88TiB
>> devid 1 size 2.71TiB used 2.71TiB path /dev/md127
>> devid 2 size 1.82TiB used 1.82TiB path /dev/md126
>> devid 3 size 1.82TiB used 1.82TiB path /dev/md125
>>
>> Btrfs v3.17.3
>> root@ReadyNAS:~# btrfs fi df /data
>> Data, single: total=6.33TiB, used=5.87TiB
>> System, RAID1: total=32.00MiB, used=768.00KiB
>> System, single: total=4.00MiB, used=0.00B
>> Metadata, RAID1: total=9.00GiB, used=8.98GiB
>> Metadata, DUP: total=3.00GiB, used=2.12GiB
>>
>>
>> At some point (I dont know if its btrfs, or some Readynas process) -
>> the filesystem goes readyonly.
>> This seems to scupper most attempts at fixing things.
>>
>> I've tried all sorts,I've tried deleting off files - but - when the
>> machine reboots they re-appear, various different "btrfs balance" type
>> commands - they seem to exit because of lack of free space - eg
>>
>> # btrfs balance start /data -dlimit=3 -v
>> Dumping filters: flags 0x1, state 0x0, force is off
>> DATA (flags 0x20): balancing, limit=3
>> ERROR: error during balancing '/data' - No space left on device
>> There may be more info in syslog - try dmesg | tail
>> # dmesg | tail
>> BTRFS error (device md125) in __btrfs_free_extent:5648: errno=-28 No space left
>> BTRFS info (device md125): forced readonly
>> BTRFS debug (device md125): run_one_delayed_ref returned -28
>> BTRFS error (device md125) in btrfs_run_delayed_refs:2688: errno=-28
>> No space left
>> BTRFS error (device md125) in __btrfs_free_extent:5648: errno=-28 No space left
>> BTRFS debug (device md125): run_one_delayed_ref returned -28
>> BTRFS error (device md125) in btrfs_run_delayed_refs:2688: errno=-28
>> No space left
>> BTRFS error (device md125) in __btrfs_free_extent:5648: errno=-28 No space left
>> BTRFS debug (device md125): run_one_delayed_ref returned -28
>> BTRFS error (device md125) in btrfs_run_delayed_refs:2688: errno=-28
>> No space left
>>
>>
>>
>> Nothing seems to fix it, every time I reboot - I get the same 8.98GB
>> used out of 9GB
>>
>> I tried the readynas forum - the advice seemed to be wipe the device
>> and start again...
>>
>>
>> Any suggestion before I just wipe the /data and start again ?
>
> First umount then remount, because it needs to be rw first. If you
> can't get it to mount rw, then it's stuck.
>
> Next, connect a USB stick that's already erased (wipefs -a on each
> partition and whole block device), then add the whole block device.
> Ideally it's small, around 2-8GB, you can partition it if it's a large
> USB stick.
>
> btrfs dev add /dev/<usbstick> /data
> btrfs balance start /data
> btrfs dev delete /dev/<usbstick> /data
>
> You could use filters, such as -dusage=0 or -dusage=15 to make it go a
> bit faster. Realize that some fs metadata will end up on the USB
> stick, so don't remove it until the dev delete completes and fi show
> lists that it's not part of the volume anymore.
>
> --
> Chris Murphy
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Meta data full on a Readynas
2015-08-27 16:35 ` Mike Aubury
@ 2015-08-27 16:55 ` Chris Murphy
[not found] ` <CAGAq4WF1-aeLHzz25WjqnrP9wrfjERFy+MqdTK5nbqfg6c5xcA@mail.gmail.com>
0 siblings, 1 reply; 8+ messages in thread
From: Chris Murphy @ 2015-08-27 16:55 UTC (permalink / raw)
To: Mike Aubury; +Cc: Chris Murphy, Btrfs BTRFS
On Thu, Aug 27, 2015 at 10:35 AM, Mike Aubury <mike@aubit.com> wrote:
> Thanks for that.
> I found something similar online - using a loop back device and a file
> on a usb stick.
> I created a 2GB file, and mounted that tried the balance - and once
> completed - rebooted.
OK but did you delete the loop device before rebooting? If not, then
that's why. You need to reactivate that loop device from the file to
mount the fs normally. It's not good enough to just balance. You have
to use btrfs dev del on the extra device so the fs moves everything
off that soon to be removed device.
>>> root@ReadyNAS:~# btrfs fi df /data
>>> Data, single: total=6.33TiB, used=5.87TiB
>>> System, RAID1: total=32.00MiB, used=768.00KiB
>>> System, single: total=4.00MiB, used=0.00B
>>> Metadata, RAID1: total=9.00GiB, used=8.98GiB
>>> Metadata, DUP: total=3.00GiB, used=2.12GiB
I just noticed this, and it's confusing. All data is single copy. Some
of the metadata is DUP on *one* device rather than RAID1. So it's
entirely possible that some of the DUP metadata, without conversion,
ends up on the loop device and if that loop device isn't first deleted
before the reboot, then you have a broken file system because that
necessary fs metadata isn't available anywhere. The metadata DUP is
kinda dangerous in multiple device cases.
--
Chris Murphy
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-08-27 17:43 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-27 10:02 Meta data full on a Readynas Mike Aubury
2015-08-27 16:23 ` Chris Murphy
2015-08-27 16:35 ` Mike Aubury
2015-08-27 16:55 ` Chris Murphy
[not found] ` <CAGAq4WF1-aeLHzz25WjqnrP9wrfjERFy+MqdTK5nbqfg6c5xcA@mail.gmail.com>
2015-08-27 17:27 ` Chris Murphy
2015-08-27 17:33 ` Mike Aubury
2015-08-27 17:41 ` Chris Murphy
2015-08-27 17:43 ` Chris Murphy
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).