[Bug 1477858] [NEW] "btrfs filesystem show" shows wrong device

Ulli Horlacher framstag at rus.uni-stuttgart.de
Fri Jul 24 07:29:38 UTC 2015


Public bug reported:


I have created a RAID0 btrfs filesystem with:

root at toy02:~# mkfs.btrfs /dev/drbd2 /dev/drbd3
root at toy02:~# mount /dev/drbd2 /mnt/new


btrfs shows wrong (raw) device /dev/sdb instead of /dev/drbd2 :


root at toy02:~# df -T /mnt/new
Filesystem     Type   1K-blocks    Used  Available Use% Mounted on
/dev/drbd2     btrfs 3906909856 9136960 3895627648   1% /mnt/new

root at toy02:~# btrfs filesystem show /mnt/new
Label: none  uuid: 586a32eb-fd15-4829-a4bf-c72c6d2f9074
        Total devices 2 FS bytes used 8.70GiB
        devid    1 size 1.82TiB used 6.03GiB path /dev/sdb
        devid    2 size 1.82TiB used 6.03GiB path /dev/drbd3

Btrfs v3.12

root at toy02:~# lf sdb /dev
lRWX       - 2015-07-24 09:07 /dev/block/8:16 -> ../sdb
lRWX       - 2015-07-24 09:07 /dev/disk/by-id/ata-HGST_HUS724020ALA640_PN2134P5G2P2AX -> ../../sdb
lRWX       - 2015-07-24 09:07 /dev/disk/by-id/wwn-0x5000cca24ec137db -> ../../sdb
lRWX       - 2015-07-24 09:07 /dev/disk/by-path/pci-0000:08:00.0-sas-0x1221000002000000-lun-0 -> ../../sdb
lRWX       - 2015-07-24 09:07 /dev/disk/by-uuid/586a32eb-fd15-4829-a4bf-c72c6d2f9074 -> ../../sdb
bRW- 008,016 2015-07-24 09:07 /dev/sdb

root at toy02:~# lf drbd2 /dev
lRWX       - 2015-07-23 18:50 /dev/block/147:2 -> ../drbd2
lRWX       - 2015-07-23 18:50 /dev/drbd/by-disk/disk/by-id/ata-HGST_HUS724020ALA640_PN2134P5G2P2AX -> ../../../../drbd2
lRWX       - 2015-07-23 18:50 /dev/drbd/by-res/data_new/0 -> ../../../drbd2
bRW- 147,002 2015-07-23 18:50 /dev/drbd2

root at toy02:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.2 LTS
Release:        14.04
Codename:       trusty

root at toy02:~# dpkg -l | grep btrfs-tools
ii  btrfs-tools                               3.12-1                                  amd64        Checksumming Copy on Write Filesystem utilities

root at toy02:~#  apt-cache policy  btrfs-tools
btrfs-tools:
  Installed: 3.12-1
  Candidate: 3.12-1
  Version table:
 *** 3.12-1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

** Affects: btrfs-tools (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to btrfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1477858

Title:
  "btrfs filesystem show" shows wrong device

Status in btrfs-tools package in Ubuntu:
  New

Bug description:
  
  I have created a RAID0 btrfs filesystem with:

  root at toy02:~# mkfs.btrfs /dev/drbd2 /dev/drbd3
  root at toy02:~# mount /dev/drbd2 /mnt/new

  
  btrfs shows wrong (raw) device /dev/sdb instead of /dev/drbd2 :

  
  root at toy02:~# df -T /mnt/new
  Filesystem     Type   1K-blocks    Used  Available Use% Mounted on
  /dev/drbd2     btrfs 3906909856 9136960 3895627648   1% /mnt/new

  root at toy02:~# btrfs filesystem show /mnt/new
  Label: none  uuid: 586a32eb-fd15-4829-a4bf-c72c6d2f9074
          Total devices 2 FS bytes used 8.70GiB
          devid    1 size 1.82TiB used 6.03GiB path /dev/sdb
          devid    2 size 1.82TiB used 6.03GiB path /dev/drbd3

  Btrfs v3.12

  root at toy02:~# lf sdb /dev
  lRWX       - 2015-07-24 09:07 /dev/block/8:16 -> ../sdb
  lRWX       - 2015-07-24 09:07 /dev/disk/by-id/ata-HGST_HUS724020ALA640_PN2134P5G2P2AX -> ../../sdb
  lRWX       - 2015-07-24 09:07 /dev/disk/by-id/wwn-0x5000cca24ec137db -> ../../sdb
  lRWX       - 2015-07-24 09:07 /dev/disk/by-path/pci-0000:08:00.0-sas-0x1221000002000000-lun-0 -> ../../sdb
  lRWX       - 2015-07-24 09:07 /dev/disk/by-uuid/586a32eb-fd15-4829-a4bf-c72c6d2f9074 -> ../../sdb
  bRW- 008,016 2015-07-24 09:07 /dev/sdb

  root at toy02:~# lf drbd2 /dev
  lRWX       - 2015-07-23 18:50 /dev/block/147:2 -> ../drbd2
  lRWX       - 2015-07-23 18:50 /dev/drbd/by-disk/disk/by-id/ata-HGST_HUS724020ALA640_PN2134P5G2P2AX -> ../../../../drbd2
  lRWX       - 2015-07-23 18:50 /dev/drbd/by-res/data_new/0 -> ../../../drbd2
  bRW- 147,002 2015-07-23 18:50 /dev/drbd2

  root at toy02:~# lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description:    Ubuntu 14.04.2 LTS
  Release:        14.04
  Codename:       trusty

  root at toy02:~# dpkg -l | grep btrfs-tools
  ii  btrfs-tools                               3.12-1                                  amd64        Checksumming Copy on Write Filesystem utilities

  root at toy02:~#  apt-cache policy  btrfs-tools
  btrfs-tools:
    Installed: 3.12-1
    Candidate: 3.12-1
    Version table:
   *** 3.12-1 0
          500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
          100 /var/lib/dpkg/status

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/btrfs-tools/+bug/1477858/+subscriptions



More information about the foundations-bugs mailing list