linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Anand Jain <anand.jain@oracle.com>
To: linux-btrfs@vger.kernel.org
Subject: Re: RAID0 wrong (raw) device?
Date: Fri, 14 Aug 2015 00:24:11 +0800	[thread overview]
Message-ID: <55CCC4AB.2080600@oracle.com> (raw)
In-Reply-To: <20150813145556.GA27405@rus.uni-stuttgart.de>



On 08/13/2015 10:55 PM, Ulli Horlacher wrote:
> On Thu 2015-08-13 (14:02), Ulli Horlacher wrote:
>> On Thu 2015-08-13 (15:34), anand jain wrote:
>>
>>>> root@toy02:~# df -T /data
>>>> Filesystem     Type   1K-blocks      Used  Available Use% Mounted on
>>>> /dev/sdb       btrfs 3906909856 140031696 3765056176   4% /data
>>>>
>>>> root@toy02:~# btrfs filesystem show /data
>>>> Label: data  uuid: 411af13f-6cae-4f03-99dc-5941acb3135b
>>>>           Total devices 2 FS bytes used 129.81GiB
>>>>           devid    3 size 1.82TiB used 67.03GiB path /dev/drbd2
>>>>           devid    4 size 1.82TiB used 67.03GiB path /dev/sdb
>>>>
>>>> Btrfs v3.12
>>>>
>>>> ==> btrfs shows the wrong (raw) device /dev/sdb instead of /dev/drbd3 !
>>>
>>> Don't be too alarmed by that, progs do a bit of user land fabrication
>>> (wrong). kernel may /may-not be using sdb. try -m option.
>>
>> It is really weird: meanwhile (without any mount change or even reboot) I
>> get:
>>
>> root@toy02:~# btrfs filesystem show
>> Label: data  uuid: 411af13f-6cae-4f03-99dc-5941acb3135b
>>          Total devices 2 FS bytes used 106.51GiB
>>          devid    3 size 1.82TiB used 82.03GiB path /dev/drbd2
>>          devid    4 size 1.82TiB used 82.03GiB path /dev/drbd3
>
> And now, after a reboot:
>
> root@toy02:~/bin# btrfs filesystem show
> Label: data  uuid: 411af13f-6cae-4f03-99dc-5941acb3135b
>          Total devices 2 FS bytes used 119.82GiB
>          devid    3 size 1.82TiB used 82.03GiB path /dev/drbd2
>          devid    4 size 1.82TiB used 82.03GiB path /dev/sde
>
> GRMPF!

pls use 'btrfs fi show -m' and just ignore no option or -d if fs is 
mounted, as -m reads from the kernel.

at mount you could assemble correct set of devices using mount -o device 
option.

Thanks, -Anand



  reply	other threads:[~2015-08-13 16:24 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-12 13:07 RAID0 wrong (raw) device? Ulli Horlacher
2015-08-12 17:03 ` Chris Murphy
2015-08-12 17:43   ` Hugo Mills
2015-08-12 17:53     ` Chris Murphy
2015-08-13 12:11   ` Ulli Horlacher
2015-08-13  7:34 ` anand jain
2015-08-13 12:02   ` Ulli Horlacher
2015-08-13 14:55     ` Ulli Horlacher
2015-08-13 16:24       ` Anand Jain [this message]
2015-08-14  7:32         ` Ulli Horlacher
2015-08-15  0:02           ` Anand Jain
2015-08-15 10:09             ` Ulli Horlacher
2015-08-13 11:44 ` Austin S Hemmelgarn
2015-08-13 12:06   ` Ulli Horlacher
2015-08-13 22:32   ` Gareth Pye
2015-08-13 22:54     ` Hugo Mills
2015-08-13 23:29       ` Gareth Pye
2015-08-14 11:26         ` Austin S Hemmelgarn

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=55CCC4AB.2080600@oracle.com \
    --to=anand.jain@oracle.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).