linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
To: <franziska.naepelt@hiperscan.com>
Cc: <linux-btrfs@vger.kernel.org>
Subject: Re: cancel btrfs delete job
Date: Fri, 27 Jun 2014 08:29:19 +0900	[thread overview]
Message-ID: <53ACACCF.8040609@jp.fujitsu.com> (raw)
In-Reply-To: <1403782463.7657.20.camel@hsew-frn.HIPERSCAN>

Hi Franziska,

(2014/06/26 20:34), Franziska Näpelt wrote:
> Hi Satoru,
>
> I'm sorry, but the boot process is always runnig(i hope so), i can't
> login until now. So therefore i have currently no logs.
> I don't want to interrupt these process, because there are a lot of
> fileactions on the harddrive (LED is blinking).
>
> I'm not sure about the mkfs.btrfs option, because the system was set up
> more than one year ago.
>
> mount-options in fstab:
> LABEL=btrfs-pool /mnt/btrfs btrfs compress=lzo,degraded 0 1
>
> kernel version is 3.15 on a Debian Whezzy with current btrfs-tools
> installed
>
> Can you estimate, how long the boot-process (repairing btrfs?) could
> take? The boot-process works for five hours now.

To do so, I'll try to follow your steps with the system which similar
to your environment as possible. Unfortunately I don't have plenty
of disks.

Thanks,
Satoru

>
> best regards,
> Franziska
>
>
>
> Hi Franziska,
>
> (2014/06/26 19:05), Franziska Näpelt wrote:
>> Hello Satoru,
>>
>> here are your requested informations:
>>
>> environment:
>>
>> - four 2 TB disks: /dev/sd[c-f]
>> - two 3 TB disks: /dev/sdg (but until now, only one is connected)
>>
>> filesystem consists of/dev/sd[c-f]
>>
>> I wanted to replace /dev/sdc by /dev/sdg ( with commands add and after
>> that delete.
>> In the second step, I wanted to replace the next disk.
>>
>> But it hanged during btrfs delete command (after successfull add).
>> The delete process was still in progress, but with iotop it seems to me, that there is was no data transfer.
>
> Hm, them something bad would happen on Btrfs.
>
>> Today in the morning the hole computer hangs and there was no other possibility than reset :(
>
> So, unfortunately any debug info like sysrq-w can't be get.
>
>>
>> Until now, he tries to boot with a lot of erros. But I can see, that there are fileactions on the harddrive.
>>
>> There are a lot of following messages:
>> btrfs free space inode generation (0) did not match free space cache generation
>
> And doesn't finish to mount process?
>
> Your filesystem is in inconsistent state since you
> reset during rebalancing filesystem which triggered by
> device deletion.
>
> The following link would help you. But I'm not sure whether
> your data can be restored or not.
>
> https://btrfs.wiki.kernel.org/index.php/Btrfsck
>
> Could you tell me your mkfs.btrfs options, mount options,
> and kernel version, if possible? I'd like to try to
> reproduce your problem anyway.
>
> Thanks,
> Satoru
>
>>
>>
>> best regards,
>> Franziska
>>
>> -------- Weitergeleitete Nachricht --------
>> Von: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
>> An: franziska.naepelt@hiperscan.com, linux-btrfs@vger.kernel.org
>> <linux-btrfs@vger.kernel.org>
>> Betreff: Re: cancel btrfs delete job
>> Datum: Thu, 26 Jun 2014 16:17:30 +0900
>>
>> Hi Franziska,
>>
>> (2014/06/24 16:50), Franziska Näpelt wrote:
>>> Hi,
>>>
>>> i want to expand a btrfs filesystem. In the moment I have four 2 TB HDDs
>>> for one btrfs pool.
>>> I want to replace two of the HDDs with 3 TB devices. For this reason i
>>> added as first one 3 TB device. After that, i do the btrfs delete job.
>>> This job lasts since 4 days and it seems, that it hangs.
>>>
>>> Is it possible to cancel a btrfs delete job?
>>> And when so, how can i do that?
>>
>> Unfortunately you can't cancel btrfs delete.
>>
>> Q1. Does your environment and operations are as follows?
>>
>> Environment:
>>     - You have six disks.
>>       - four 2TB disks: /dev/sd[a-d]
>>       - two 3TB disks: /dev/sd[ef]
>>     - Currently your btrfs filesystem consists of /dev/sd[a-d].
>>     - You want to replace /dev/sd[cd] with /dev/[ef].
>>
>> Your operation:
>>     1. Add one 3TB disk, /dev/sde.     # It works correctly.
>>     2. Delete one 2TB disk, /dev/sdc   # Hanged up happens here!
>>
>> Q2. Does I/Os for delete still in progress, or there is no I/O?
>>
>> Thanks,
>> Satoru
>>
>>>
>>> Best regards,
>>> Franziska
>>>
>>>
>>>
>>> --
>>> 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
>>>
>>
>>
>>
>>
>
>
>
> --
> 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
>


  reply	other threads:[~2014-06-26 23:29 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-24  7:50 cancel btrfs delete job Franziska Näpelt
2014-06-26  7:17 ` Satoru Takeuchi
     [not found]   ` <1403777123.7657.5.camel@hsew-frn.HIPERSCAN>
     [not found]     ` <53AC013E.5000702@jp.fujitsu.com>
2014-06-26 11:34       ` Franziska Näpelt
2014-06-26 23:29         ` Satoru Takeuchi [this message]
2014-06-27  8:55           ` Satoru Takeuchi
2014-06-26 11:06 ` Franziska Näpelt
2014-06-26 11:30   ` Duncan
  -- strict thread matches above, loose matches on Subject: below --
2014-06-26 11:47 Franziska Näpelt
2014-06-26 13:25 ` Duncan
2014-06-26 13:47   ` Franziska Näpelt
2014-06-27  0:49   ` Russell Coker
2014-06-27  5:26     ` Duncan
2014-06-27  5:00 Franziska Näpelt
2014-06-27  5:58 ` Satoru Takeuchi
2014-06-27  8:09   ` Satoru Takeuchi

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=53ACACCF.8040609@jp.fujitsu.com \
    --to=takeuchi_satoru@jp.fujitsu.com \
    --cc=franziska.naepelt@hiperscan.com \
    --cc=linux-btrfs@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).