linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Any help to restore broken partition?
@ 2015-01-11 19:59 Dmitriy Perlow
  2015-01-12  1:52 ` Qu Wenruo
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitriy Perlow @ 2015-01-11 19:59 UTC (permalink / raw)
  To: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 1798 bytes --]

Hi to all!

I've been using btrfs at my /home partition without any problems for about
3 years but today it was made read only. I umounted it and executed `btrfs
check --repair` and got lots of errors.

I run openSUSE 13.1 x64 with linux 3.11.10, Btrfs v3.18+20141230.

# btrfs fi show
Label: none  uuid: 96e5c775-86b2-4dd9-a671-fe9a343cc10b
             Total devices 1 FS bytes used 5.35GiB
             devid    1 size 10.85GiB used 10.85GiB path /dev/sda3

# mount -o ro,recovery /home
→ no directories except of lost+found.

# btrfs check /dev/sda3
Checking filesystem on /dev/sda3
UUID: 96e5c775-86b2-4dd9-a671-fe9a343cc10b
checking extents
Block Group[0, 4194304] existed.
Block Group[4194304, 8388608] existed.
Block Group[12582912, 8388608] existed.
Block Group[20971520, 8388608] existed.
Block Group[29360128, 1073741824] existed.
Block Group[1103101952, 1073741824] existed.
Block Group[2176843776, 1073741824] existed.
Block Group[3250585600, 1073741824] existed.
Block Group[4324327424, 1073741824] existed.
Block Group[5398069248, 1073741824] existed.
Block Group[6471811072, 1073741824] existed.
Block Group[7545552896, 1073741824] existed.
Block Group[8619294720, 1073741824] existed.
Block Group[9693036544, 874512384] existed.
Errors found in extent allocation tree or chunk allocation
checking free space cache
cache and super generation don't match, space cache will be invalidated
checking fs roots
checking csums
checking root refs
found 36864 bytes used err is 0
total csum bytes: 0
total tree bytes: 20480
total fs tree bytes: 8192
total extent tree bytes: 4096
btree space waste bytes: 15135
file data blocks allocated: 0
  referenced 0


Any help please?

-- 
Best regards,
Dmitriy DA(P).DarkneSS Perlow @ Linux x64

[-- Attachment #2: messages.log --]
[-- Type: application/octet-stream, Size: 28759 bytes --]

2015-01-11T20:10:18.445663+03:00 DarkneSS org.freedesktop.UDisks[448]: **** Refreshing ATA SMART data for /sys/devices/pci0000:00/0000:00:0a.0/ata1/host0/target0:0:0/0:0:0:0/block/sda
2015-01-11T20:10:18.489733+03:00 DarkneSS org.freedesktop.UDisks[448]: helper(pid  8442): launched job udisks-helper-ata-smart-collect on /dev/sda
2015-01-11T20:10:18.490326+03:00 DarkneSS org.freedesktop.UDisks[448]: **** Refreshing ATA SMART data for /sys/devices/pci0000:00/0000:00:0a.0/ata4/host3/target3:0:0/3:0:0:0/block/sdc
2015-01-11T20:10:18.490703+03:00 DarkneSS org.freedesktop.UDisks[448]: helper(pid  8444): launched job udisks-helper-ata-smart-collect on /dev/sdc
2015-01-11T20:10:18.491088+03:00 DarkneSS org.freedesktop.UDisks[448]: **** Refreshing ATA SMART data for /sys/devices/pci0000:00/0000:00:0a.0/ata3/host2/target2:0:0/2:0:0:0/block/sdb
2015-01-11T20:10:18.491470+03:00 DarkneSS org.freedesktop.UDisks[448]: helper(pid  8445): launched job udisks-helper-ata-smart-collect on /dev/sdb
2015-01-11T20:10:18.491834+03:00 DarkneSS org.freedesktop.UDisks[448]: helper(pid  8444): completed with exit code 0
2015-01-11T20:10:18.509902+03:00 DarkneSS org.freedesktop.UDisks[448]: **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:0a.0/ata4/host3/target3:0:0/3:0:0:0/block/sdc
2015-01-11T20:10:18.560021+03:00 DarkneSS org.freedesktop.UDisks[448]: helper(pid  8445): completed with exit code 0
2015-01-11T20:10:18.586091+03:00 DarkneSS org.freedesktop.UDisks[448]: **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:0a.0/ata3/host2/target2:0:0/2:0:0:0/block/sdb
2015-01-11T20:10:18.606139+03:00 DarkneSS org.freedesktop.UDisks[448]: helper(pid  8442): completed with exit code 0
2015-01-11T20:10:18.633221+03:00 DarkneSS org.freedesktop.UDisks[448]: **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:0a.0/ata1/host0/target0:0:0/0:0:0:0/block/sda
2015-01-11T20:15:01.353854+03:00 DarkneSS systemd[1]: Starting Session 55 of user root.
2015-01-11T20:15:01.354682+03:00 DarkneSS systemd[1]: Started Session 55 of user root.
2015-01-11T20:30:01.497629+03:00 DarkneSS systemd[1]: Starting Session 56 of user root.
2015-01-11T20:30:01.524306+03:00 DarkneSS systemd[1]: Started Session 56 of user root.
2015-01-11T20:40:18.429346+03:00 DarkneSS org.freedesktop.UDisks[448]: **** Refreshing ATA SMART data for /sys/devices/pci0000:00/0000:00:0a.0/ata1/host0/target0:0:0/0:0:0:0/block/sda
2015-01-11T20:40:18.431977+03:00 DarkneSS org.freedesktop.UDisks[448]: helper(pid 31045): launched job udisks-helper-ata-smart-collect on /dev/sda
2015-01-11T20:40:18.432974+03:00 DarkneSS org.freedesktop.UDisks[448]: **** Refreshing ATA SMART data for /sys/devices/pci0000:00/0000:00:0a.0/ata4/host3/target3:0:0/3:0:0:0/block/sdc
2015-01-11T20:40:18.434094+03:00 DarkneSS org.freedesktop.UDisks[448]: helper(pid 31046): launched job udisks-helper-ata-smart-collect on /dev/sdc
2015-01-11T20:40:18.435065+03:00 DarkneSS org.freedesktop.UDisks[448]: **** Refreshing ATA SMART data for /sys/devices/pci0000:00/0000:00:0a.0/ata3/host2/target2:0:0/2:0:0:0/block/sdb
2015-01-11T20:40:18.451363+03:00 DarkneSS org.freedesktop.UDisks[448]: helper(pid 31047): launched job udisks-helper-ata-smart-collect on /dev/sdb
2015-01-11T20:40:18.466666+03:00 DarkneSS org.freedesktop.UDisks[448]: helper(pid 31046): completed with exit code 0
2015-01-11T20:40:18.499685+03:00 DarkneSS org.freedesktop.UDisks[448]: **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:0a.0/ata4/host3/target3:0:0/3:0:0:0/block/sdc
2015-01-11T20:40:18.549070+03:00 DarkneSS org.freedesktop.UDisks[448]: helper(pid 31047): completed with exit code 0
2015-01-11T20:40:18.574392+03:00 DarkneSS org.freedesktop.UDisks[448]: **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:0a.0/ata3/host2/target2:0:0/2:0:0:0/block/sdb
2015-01-11T20:40:18.589108+03:00 DarkneSS org.freedesktop.UDisks[448]: helper(pid 31045): completed with exit code 0
2015-01-11T20:40:18.614383+03:00 DarkneSS org.freedesktop.UDisks[448]: **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:0a.0/ata1/host0/target0:0:0/0:0:0:0/block/sda
2015-01-11T20:45:01.598331+03:00 DarkneSS systemd[1]: Starting Session 57 of user root.
2015-01-11T20:45:01.640708+03:00 DarkneSS systemd[1]: Started Session 57 of user root.
2015-01-11T20:51:10.651231+03:00 DarkneSS kernel: [50509.306663] parent transid verify failed on 579305472 wanted 812980 found 809482
2015-01-11T20:51:10.657223+03:00 DarkneSS kernel: [50509.312399] parent transid verify failed on 579305472 wanted 812980 found 809482
2015-01-11T20:51:10.657263+03:00 DarkneSS kernel: [50509.312418] ------------[ cut here ]------------
2015-01-11T20:51:10.657267+03:00 DarkneSS kernel: [50509.312466] WARNING: CPU: 1 PID: 436 at /home/abuild/rpmbuild/BUILD/kernel-desktop-3.11.10/linux-3.11/fs/btrfs/super.c:253 __btrfs_abort_transaction+0x10d/0x120 [btrfs]()
2015-01-11T20:51:10.657271+03:00 DarkneSS kernel: [50509.312468] btrfs: Transaction aborted (error -5)
2015-01-11T20:51:10.657274+03:00 DarkneSS kernel: [50509.312470] Modules linked in: cpufreq_powersave nls_utf8 ufs qnx4 hfsplus hfs minix vfat msdos fat jfs xfs reiserfs joydev st af_packet sr_mod cdrom fuse snd_hda_codec_realtek usb_storage snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_pcm snd_seq snd_timer snd_seq_device snd_mixer_oss nvidia(PO) powernow_k8 kvm_amd kvm snd serio_raw ppdev drm edac_core soundcore pcspkr k8temp edac_mce_amd shpchp snd_page_alloc pata_amd r8169 mii parport_pc parport floppy i2c_nforce2 mperf button sg dm_mod autofs4 btrfs raid6_pq zlib_deflate xor libcrc32c fan thermal processor thermal_sys ohci_pci scsi_dh_hp_sw scsi_dh_alua scsi_dh_emc scsi_dh_rdac scsi_dh ata_generic bfq_iosched(O)
2015-01-11T20:51:10.657278+03:00 DarkneSS kernel: [50509.312517] CPU: 1 PID: 436 Comm: btrfs-transacti Tainted: P           O 3.11.10-25-desktop #1
2015-01-11T20:51:10.657281+03:00 DarkneSS kernel: [50509.312519] Hardware name: BIOSTAR Group TF560 A2+/TF560 A2+, BIOS 6.00 PG 06/11/2007
2015-01-11T20:51:10.657284+03:00 DarkneSS kernel: [50509.312521]  0000000000000009 ffffffff815a1822 ffff8801f4553b50 ffffffff81051e82
2015-01-11T20:51:10.657287+03:00 DarkneSS kernel: [50509.312526]  00000000fffffffb ffff8801f4553ba0 ffff8801d3fa64f0 ffffffffa013a800
2015-01-11T20:51:10.657290+03:00 DarkneSS kernel: [50509.312529]  000000000000164f ffffffff81051ee7 ffffffffa013e398 ffff880100000020
2015-01-11T20:51:10.657293+03:00 DarkneSS kernel: [50509.312532] Call Trace:
2015-01-11T20:51:10.657296+03:00 DarkneSS kernel: [50509.312549]  [<ffffffff81004ad8>] dump_trace+0x88/0x310
2015-01-11T20:51:10.657299+03:00 DarkneSS kernel: [50509.312554]  [<ffffffff81004e30>] show_stack_log_lvl+0xd0/0x1d0
2015-01-11T20:51:10.657302+03:00 DarkneSS kernel: [50509.312559]  [<ffffffff8100626c>] show_stack+0x1c/0x50
2015-01-11T20:51:10.657305+03:00 DarkneSS kernel: [50509.312565]  [<ffffffff815a1822>] dump_stack+0x50/0x89
2015-01-11T20:51:10.657308+03:00 DarkneSS kernel: [50509.312572]  [<ffffffff81051e82>] warn_slowpath_common+0x72/0x90
2015-01-11T20:51:10.657311+03:00 DarkneSS kernel: [50509.312577]  [<ffffffff81051ee7>] warn_slowpath_fmt+0x47/0x50
2015-01-11T20:51:10.657314+03:00 DarkneSS kernel: [50509.312590]  [<ffffffffa00a169d>] __btrfs_abort_transaction+0x10d/0x120 [btrfs]
2015-01-11T20:51:10.657317+03:00 DarkneSS kernel: [50509.312619]  [<ffffffffa00b2ade>] __btrfs_free_extent+0x53e/0xb00 [btrfs]
2015-01-11T20:51:10.657320+03:00 DarkneSS kernel: [50509.312656]  [<ffffffffa00b6c16>] run_clustered_refs+0x386/0xdc0 [btrfs]
2015-01-11T20:51:10.657323+03:00 DarkneSS kernel: [50509.312696]  [<ffffffffa00bbc60>] btrfs_run_delayed_refs+0xd0/0x520 [btrfs]
2015-01-11T20:51:10.657327+03:00 DarkneSS kernel: [50509.312740]  [<ffffffffa00cb754>] btrfs_commit_transaction+0x44/0x9e0 [btrfs]
2015-01-11T20:51:10.657330+03:00 DarkneSS kernel: [50509.312796]  [<ffffffffa00c3455>] transaction_kthread+0x185/0x220 [btrfs]
2015-01-11T20:51:10.657333+03:00 DarkneSS kernel: [50509.312833]  [<ffffffff81072c1f>] kthread+0xaf/0xc0
2015-01-11T20:51:10.657336+03:00 DarkneSS kernel: [50509.312838]  [<ffffffff815af3fc>] ret_from_fork+0x7c/0xb0
2015-01-11T20:51:10.657339+03:00 DarkneSS kernel: [50509.312843] ---[ end trace a434c99df3fd3e18 ]---
2015-01-11T20:51:10.657342+03:00 DarkneSS kernel: [50509.312847] BTRFS error (device sda3) in __btrfs_free_extent:5711: errno=-5 IO failure
2015-01-11T20:51:10.657345+03:00 DarkneSS kernel: [50509.312849] BTRFS info (device sda3): forced readonly
2015-01-11T20:51:10.657348+03:00 DarkneSS kernel: [50509.312854] BTRFS debug (device sda3): run_one_delayed_ref returned -5
2015-01-11T20:51:10.657351+03:00 DarkneSS kernel: [50509.312858] BTRFS error (device sda3) in btrfs_run_delayed_refs:2685: errno=-5 IO failure
2015-01-11T20:53:47.546852+03:00 DarkneSS sudo:       da : TTY=pts/1 ; PWD=/home/da ; USER=root ; COMMAND=/usr/bin/less /var/log/messages
2015-01-11T20:53:47.875333+03:00 DarkneSS sudo: pam_systemd(sudo:session): pam_putenv: delete non-existent entry; XDG_RUNTIME_DIR
2015-01-11T20:54:30.393890+03:00 DarkneSS sudo:       da : TTY=pts/1 ; PWD=/home/da ; USER=root ; COMMAND=/usr/bin/grep UDisks /var/log/messages
2015-01-11T20:54:30.422894+03:00 DarkneSS sudo: pam_systemd(sudo:session): pam_putenv: delete non-existent entry; XDG_RUNTIME_DIR
2015-01-11T20:54:57.734933+03:00 DarkneSS sudo:       da : TTY=pts/1 ; PWD=/home/da ; USER=root ; COMMAND=/usr/bin/less /var/log/messages
2015-01-11T20:54:57.746319+03:00 DarkneSS sudo: pam_systemd(sudo:session): pam_putenv: delete non-existent entry; XDG_RUNTIME_DIR
2015-01-11T20:58:46.132207+03:00 DarkneSS kernel: [50964.787052] usb 1-2: new high-speed USB device number 3 using ehci-pci
2015-01-11T20:58:46.249471+03:00 DarkneSS kernel: [50964.903656] usb 1-2: New USB device found, idVendor=1b1c, idProduct=1ab1
2015-01-11T20:58:46.249516+03:00 DarkneSS kernel: [50964.903664] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
2015-01-11T20:58:46.249520+03:00 DarkneSS kernel: [50964.903667] usb 1-2: Product: Voyager
2015-01-11T20:58:46.249524+03:00 DarkneSS kernel: [50964.903669] usb 1-2: Manufacturer: Corsair
2015-01-11T20:58:46.249527+03:00 DarkneSS kernel: [50964.903671] usb 1-2: SerialNumber: 4000000A6534FF
2015-01-11T20:58:46.250648+03:00 DarkneSS kernel: [50964.905635] usb-storage 1-2:1.0: USB Mass Storage device detected
2015-01-11T20:58:46.250691+03:00 DarkneSS kernel: [50964.905848] scsi7 : usb-storage 1-2:1.0
2015-01-11T20:58:46.804438+03:00 DarkneSS mtp-probe: checking bus 1, device 3: "/sys/devices/pci0000:00/0000:00:02.1/usb1/1-2"
2015-01-11T20:58:46.927579+03:00 DarkneSS mtp-probe: bus: 1, device: 3 was not an MTP device
2015-01-11T20:58:47.080612+03:00 DarkneSS org.freedesktop.UDisks[448]: **** scsi_host ADDING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/scsi_host/host7
2015-01-11T20:58:47.081559+03:00 DarkneSS org.freedesktop.UDisks[448]: **** scsi_host IGNORING ADD /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/scsi_host/host7
2015-01-11T20:58:47.255045+03:00 DarkneSS kernel: [50965.910434] scsi 7:0:0:0: Direct-Access     Corsair  Voyager          0.00 PQ: 0 ANSI: 2
2015-01-11T20:58:47.256304+03:00 DarkneSS kernel: [50965.911914] sd 7:0:0:0: [sdd] 31719424 512-byte logical blocks: (16.2 GB/15.1 GiB)
2015-01-11T20:58:47.256343+03:00 DarkneSS kernel: [50965.912092] sd 7:0:0:0: Attached scsi generic sg3 type 0
2015-01-11T20:58:47.258195+03:00 DarkneSS kernel: [50965.913310] sd 7:0:0:0: [sdd] Write Protect is off
2015-01-11T20:58:47.258222+03:00 DarkneSS kernel: [50965.913320] sd 7:0:0:0: [sdd] Mode Sense: 00 00 00 00
2015-01-11T20:58:47.259232+03:00 DarkneSS kernel: [50965.914287] sd 7:0:0:0: [sdd] Asking for cache data failed
2015-01-11T20:58:47.259280+03:00 DarkneSS kernel: [50965.914290] sd 7:0:0:0: [sdd] Assuming drive cache: write through
2015-01-11T20:58:47.265194+03:00 DarkneSS kernel: [50965.920301] sd 7:0:0:0: [sdd] Asking for cache data failed
2015-01-11T20:58:47.265233+03:00 DarkneSS kernel: [50965.920309] sd 7:0:0:0: [sdd] Assuming drive cache: write through
2015-01-11T20:58:47.266180+03:00 DarkneSS kernel: [50965.921194]  sdd: sdd1
2015-01-11T20:58:47.281184+03:00 DarkneSS kernel: [50965.936290] sd 7:0:0:0: [sdd] Asking for cache data failed
2015-01-11T20:58:47.281214+03:00 DarkneSS kernel: [50965.936296] sd 7:0:0:0: [sdd] Assuming drive cache: write through
2015-01-11T20:58:47.281219+03:00 DarkneSS kernel: [50965.936301] sd 7:0:0:0: [sdd] Attached SCSI removable disk
2015-01-11T20:58:47.652098+03:00 DarkneSS org.freedesktop.UDisks[448]: **** ADDING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd
2015-01-11T20:58:47.653177+03:00 DarkneSS org.freedesktop.UDisks[448]: **** UPDATING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd
2015-01-11T20:58:47.656595+03:00 DarkneSS org.freedesktop.UDisks[448]: **** ADDED /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd
2015-01-11T20:58:47.658420+03:00 DarkneSS org.freedesktop.UDisks[448]: **** EMITTING ADDED for /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd
2015-01-11T20:58:47.773116+03:00 DarkneSS org.freedesktop.UDisks[448]: **** ADDING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:58:47.773746+03:00 DarkneSS org.freedesktop.UDisks[448]: **** UPDATING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:58:47.774311+03:00 DarkneSS org.freedesktop.UDisks[448]: **** ADDED /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:58:47.774683+03:00 DarkneSS org.freedesktop.UDisks[448]: **** EMITTING ADDED for /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:58:52.073305+03:00 DarkneSS kernel: [50970.727098] FAT-fs (sdd1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
2015-01-11T20:58:52.126546+03:00 DarkneSS org.freedesktop.UDisks[448]: **** /proc/self/mountinfo changed
2015-01-11T20:58:52.205118+03:00 DarkneSS org.freedesktop.UDisks[448]: **** MOUNTED /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:58:52.205782+03:00 DarkneSS org.freedesktop.UDisks[448]: **** CHANGING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:58:52.206144+03:00 DarkneSS org.freedesktop.UDisks[448]: **** UPDATING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:58:52.206513+03:00 DarkneSS udisksd[3561]: Mounted /dev/sdd1 at /run/media/da/openSUSE 13.2 KDE Live on behalf of uid 1000
2015-01-11T20:58:52.324503+03:00 DarkneSS org.freedesktop.UDisks[448]: **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:58:52.325243+03:00 DarkneSS org.freedesktop.UDisks[448]: **** CHANGED /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:58:52.325645+03:00 DarkneSS org.freedesktop.UDisks[448]: **** MOUNTED /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:58:52.326030+03:00 DarkneSS org.freedesktop.UDisks[448]: **** CHANGING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:58:52.326441+03:00 DarkneSS org.freedesktop.UDisks[448]: **** UPDATING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:58:52.326839+03:00 DarkneSS org.freedesktop.UDisks[448]: **** CHANGED /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:59:16.337297+03:00 DarkneSS org.freedesktop.UDisks[448]: **** /proc/self/mountinfo changed
2015-01-11T20:59:16.344272+03:00 DarkneSS org.freedesktop.UDisks[448]: **** UNMOUNTED /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:59:16.344915+03:00 DarkneSS org.freedesktop.UDisks[448]: **** CHANGING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:59:16.345504+03:00 DarkneSS org.freedesktop.UDisks[448]: **** UPDATING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:59:16.345908+03:00 DarkneSS org.freedesktop.UDisks[448]: **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:59:16.346711+03:00 DarkneSS org.freedesktop.UDisks[448]: **** CHANGED /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:59:16.350054+03:00 DarkneSS org.freedesktop.UDisks[448]: **** UNMOUNTED /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:59:16.351107+03:00 DarkneSS org.freedesktop.UDisks[448]: **** CHANGING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:59:16.352750+03:00 DarkneSS org.freedesktop.UDisks[448]: **** UPDATING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:59:16.354520+03:00 DarkneSS org.freedesktop.UDisks[448]: **** CHANGED /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:59:16.356037+03:00 DarkneSS udisksd[3561]: Cleaning up mount point /run/media/da/openSUSE 13.2 KDE Live (device 8:49 is not mounted)
2015-01-11T20:59:16.377548+03:00 DarkneSS udisksd[3561]: Unmounted /dev/sdd1 on behalf of uid 1000
2015-01-11T20:59:16.434443+03:00 DarkneSS org.freedesktop.UDisks[448]: **** REMOVING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:59:16.435319+03:00 DarkneSS org.freedesktop.UDisks[448]: **** EMITTING REMOVED for /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd/sdd1
2015-01-11T20:59:16.437206+03:00 DarkneSS kernel: [50995.092813] sdd: detected capacity change from 16240345088 to 0
2015-01-11T20:59:16.516826+03:00 DarkneSS org.freedesktop.UDisks[448]: **** CHANGING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd
2015-01-11T20:59:16.530913+03:00 DarkneSS org.freedesktop.UDisks[448]: **** UPDATING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd
2015-01-11T20:59:16.531529+03:00 DarkneSS org.freedesktop.UDisks[448]: **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd
2015-01-11T20:59:16.531870+03:00 DarkneSS org.freedesktop.UDisks[448]: **** CHANGED /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd
2015-01-11T20:59:16.532215+03:00 DarkneSS org.freedesktop.UDisks[448]: **** CHANGING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd
2015-01-11T20:59:16.532533+03:00 DarkneSS org.freedesktop.UDisks[448]: **** UPDATING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd
2015-01-11T20:59:16.532840+03:00 DarkneSS org.freedesktop.UDisks[448]: **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd
2015-01-11T20:59:16.533351+03:00 DarkneSS org.freedesktop.UDisks[448]: **** CHANGED /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd
2015-01-11T20:59:16.533701+03:00 DarkneSS org.freedesktop.UDisks[448]: **** CHANGING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd
2015-01-11T20:59:16.534012+03:00 DarkneSS org.freedesktop.UDisks[448]: **** UPDATING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd
2015-01-11T20:59:16.534347+03:00 DarkneSS org.freedesktop.UDisks[448]: **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd
2015-01-11T20:59:16.534658+03:00 DarkneSS org.freedesktop.UDisks[448]: **** CHANGED /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd
2015-01-11T21:00:01.695840+03:00 DarkneSS systemd[1]: Starting Session 58 of user root.
2015-01-11T21:00:01.697339+03:00 DarkneSS systemd[1]: Started Session 58 of user root.
2015-01-11T21:00:14.747888+03:00 DarkneSS sudo:       da : TTY=pts/1 ; PWD=/home/da ; USER=root ; COMMAND=/usr/bin/dd_rescue /mnt/E-Install/Soft/crucial-m500.mu05-01-S0-tcg.iso /dev/sdd
2015-01-11T21:00:14.756092+03:00 DarkneSS sudo: pam_systemd(sudo:session): pam_putenv: delete non-existent entry; XDG_RUNTIME_DIR
2015-01-11T21:00:22.289701+03:00 DarkneSS kernel: [51060.943201] usb 1-2: USB disconnect, device number 3
2015-01-11T21:00:22.294330+03:00 DarkneSS org.freedesktop.UDisks[448]: **** REMOVING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd
2015-01-11T21:00:22.317254+03:00 DarkneSS org.freedesktop.UDisks[448]: **** EMITTING REMOVED for /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdd
2015-01-11T21:00:22.318468+03:00 DarkneSS org.freedesktop.UDisks[448]: **** scsi_host IGNORING REMOVE /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host7/scsi_host/host7
2015-01-11T21:00:26.068193+03:00 DarkneSS kernel: [51064.723046] usb 1-2: new high-speed USB device number 4 using ehci-pci
2015-01-11T21:00:26.184218+03:00 DarkneSS kernel: [51064.839901] usb 1-2: New USB device found, idVendor=1b1c, idProduct=1ab1
2015-01-11T21:00:26.184271+03:00 DarkneSS kernel: [51064.839909] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
2015-01-11T21:00:26.184275+03:00 DarkneSS kernel: [51064.839911] usb 1-2: Product: Voyager
2015-01-11T21:00:26.184278+03:00 DarkneSS kernel: [51064.839913] usb 1-2: Manufacturer: Corsair
2015-01-11T21:00:26.184281+03:00 DarkneSS kernel: [51064.839915] usb 1-2: SerialNumber: 4000000A6534FF
2015-01-11T21:00:26.186194+03:00 DarkneSS kernel: [51064.841481] usb-storage 1-2:1.0: USB Mass Storage device detected
2015-01-11T21:00:26.186232+03:00 DarkneSS kernel: [51064.841717] scsi8 : usb-storage 1-2:1.0
2015-01-11T21:00:26.195574+03:00 DarkneSS mtp-probe: checking bus 1, device 4: "/sys/devices/pci0000:00/0000:00:02.1/usb1/1-2"
2015-01-11T21:00:26.217174+03:00 DarkneSS mtp-probe: bus: 1, device: 4 was not an MTP device
2015-01-11T21:00:26.217650+03:00 DarkneSS org.freedesktop.UDisks[448]: **** scsi_host ADDING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host8/scsi_host/host8
2015-01-11T21:00:26.218111+03:00 DarkneSS org.freedesktop.UDisks[448]: **** scsi_host IGNORING ADD /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host8/scsi_host/host8
2015-01-11T21:00:27.192504+03:00 DarkneSS kernel: [51065.845715] scsi 8:0:0:0: Direct-Access     Corsair  Voyager          0.00 PQ: 0 ANSI: 2
2015-01-11T21:00:27.192558+03:00 DarkneSS kernel: [51065.846900] sd 8:0:0:0: Attached scsi generic sg3 type 0
2015-01-11T21:00:27.192565+03:00 DarkneSS kernel: [51065.848074] sd 8:0:0:0: [sdd] 31719424 512-byte logical blocks: (16.2 GB/15.1 GiB)
2015-01-11T21:00:27.194231+03:00 DarkneSS kernel: [51065.849582] sd 8:0:0:0: [sdd] Write Protect is off
2015-01-11T21:00:27.194294+03:00 DarkneSS kernel: [51065.849594] sd 8:0:0:0: [sdd] Mode Sense: 00 00 00 00
2015-01-11T21:00:27.197222+03:00 DarkneSS kernel: [51065.852581] sd 8:0:0:0: [sdd] Asking for cache data failed
2015-01-11T21:00:27.197271+03:00 DarkneSS kernel: [51065.852592] sd 8:0:0:0: [sdd] Assuming drive cache: write through
2015-01-11T21:00:27.202216+03:00 DarkneSS kernel: [51065.857549] sd 8:0:0:0: [sdd] Asking for cache data failed
2015-01-11T21:00:27.202266+03:00 DarkneSS kernel: [51065.857561] sd 8:0:0:0: [sdd] Assuming drive cache: write through
2015-01-11T21:00:27.203206+03:00 DarkneSS kernel: [51065.858593]  sdd: sdd1
2015-01-11T21:00:27.222200+03:00 DarkneSS kernel: [51065.877545] sd 8:0:0:0: [sdd] Asking for cache data failed
2015-01-11T21:00:27.222250+03:00 DarkneSS kernel: [51065.877556] sd 8:0:0:0: [sdd] Assuming drive cache: write through
2015-01-11T21:00:27.222256+03:00 DarkneSS kernel: [51065.877565] sd 8:0:0:0: [sdd] Attached SCSI removable disk
2015-01-11T21:00:27.360895+03:00 DarkneSS org.freedesktop.UDisks[448]: **** ADDING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host8/target8:0:0/8:0:0:0/block/sdd
2015-01-11T21:00:27.361603+03:00 DarkneSS org.freedesktop.UDisks[448]: **** UPDATING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host8/target8:0:0/8:0:0:0/block/sdd
2015-01-11T21:00:27.397660+03:00 DarkneSS org.freedesktop.UDisks[448]: **** ADDED /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host8/target8:0:0/8:0:0:0/block/sdd
2015-01-11T21:00:27.398489+03:00 DarkneSS org.freedesktop.UDisks[448]: **** EMITTING ADDED for /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host8/target8:0:0/8:0:0:0/block/sdd
2015-01-11T21:00:27.446152+03:00 DarkneSS org.freedesktop.UDisks[448]: **** ADDING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host8/target8:0:0/8:0:0:0/block/sdd/sdd1
2015-01-11T21:00:27.446809+03:00 DarkneSS org.freedesktop.UDisks[448]: **** UPDATING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host8/target8:0:0/8:0:0:0/block/sdd/sdd1
2015-01-11T21:00:27.447181+03:00 DarkneSS org.freedesktop.UDisks[448]: **** ADDED /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host8/target8:0:0/8:0:0:0/block/sdd/sdd1
2015-01-11T21:00:27.447529+03:00 DarkneSS org.freedesktop.UDisks[448]: **** EMITTING ADDED for /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host8/target8:0:0/8:0:0:0/block/sdd/sdd1
2015-01-11T21:00:29.226761+03:00 DarkneSS sudo:       da : TTY=pts/1 ; PWD=/home/da ; USER=root ; COMMAND=/usr/bin/dd_rescue /mnt/E-Install/Soft/crucial-m500.mu05-01-S0-tcg.iso /dev/sdd
2015-01-11T21:00:29.231043+03:00 DarkneSS sudo: pam_systemd(sudo:session): pam_putenv: delete non-existent entry; XDG_RUNTIME_DIR
2015-01-11T21:00:29.573199+03:00 DarkneSS org.freedesktop.UDisks[448]: **** CHANGING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host8/target8:0:0/8:0:0:0/block/sdd
2015-01-11T21:00:29.574151+03:00 DarkneSS org.freedesktop.UDisks[448]: **** UPDATING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host8/target8:0:0/8:0:0:0/block/sdd
2015-01-11T21:00:30.091957+03:00 DarkneSS org.freedesktop.UDisks[448]: **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host8/target8:0:0/8:0:0:0/block/sdd
2015-01-11T21:00:30.092948+03:00 DarkneSS org.freedesktop.UDisks[448]: **** CHANGED /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host8/target8:0:0/8:0:0:0/block/sdd
2015-01-11T21:00:36.430516+03:00 DarkneSS org.freedesktop.UDisks[448]: **** CHANGING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host8/target8:0:0/8:0:0:0/block/sdd
2015-01-11T21:00:36.431471+03:00 DarkneSS org.freedesktop.UDisks[448]: **** UPDATING /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host8/target8:0:0/8:0:0:0/block/sdd
2015-01-11T21:00:36.433194+03:00 DarkneSS org.freedesktop.UDisks[448]: **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host8/target8:0:0/8:0:0:0/block/sdd
2015-01-11T21:00:36.433832+03:00 DarkneSS org.freedesktop.UDisks[448]: **** CHANGED /sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host8/target8:0:0/8:0:0:0/block/sdd
2015-01-11T21:01:32.761811+03:00 DarkneSS polkitd[646]: Unregistered Authentication Agent for unix-session:1 (system bus name :1.29, object path /org/kde/PolicyKit1/AuthenticationAgent, locale ru_RU.UTF-8)
2015-01-10T21:46:51.165747+03:00 DarkneSS org.freedesktop.ITmagesEngine[1827]: message repeated 2 times: [ Daemon is not running]
2015-01-11T21:01:47.913318+03:00 DarkneSS org.kde.kuiserver[1827]: kuiserver: Fatal IO error: client killed
2015-01-11T21:01:48.543522+03:00 DarkneSS org.gtk.vfs.Daemon[1827]: A connection to the bus can't be made
2015-01-11T21:01:48.637147+03:00 DarkneSS org.gtk.vfs.Daemon[1827]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
2015-01-11T21:01:48.733123+03:00 DarkneSS org.freedesktop.UDisks[448]: **** /proc/self/mountinfo changed
2015-01-11T21:01:48.746623+03:00 DarkneSS kdm: :0[14009]: Cannot update authorization file in home dir /home/da

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Any help to restore broken partition?
  2015-01-11 19:59 Any help to restore broken partition? Dmitriy Perlow
@ 2015-01-12  1:52 ` Qu Wenruo
  2015-01-12  3:59   ` Dmitriy Perlow
  0 siblings, 1 reply; 4+ messages in thread
From: Qu Wenruo @ 2015-01-12  1:52 UTC (permalink / raw)
  To: Dmitriy Perlow, linux-btrfs

Hi,
-------- Original Message --------
Subject: Any help to restore broken partition?
From: Dmitriy Perlow <dap@open.by>
To: <linux-btrfs@vger.kernel.org>
Date: 2015年01月12日 03:59
> Hi to all!
>
> I've been using btrfs at my /home partition without any problems for 
> about
> 3 years but today it was made read only. I umounted it and executed 
> `btrfs
> check --repair` and got lots of errors.
Did you saved all the outputs of the btrfsck --repair?
>
> I run openSUSE 13.1 x64 with linux 3.11.10, Btrfs v3.18+20141230.
Kernel is somewhat old, but btrfs-progs is new enough for possible recovery.
>
> # btrfs fi show
> Label: none  uuid: 96e5c775-86b2-4dd9-a671-fe9a343cc10b
>             Total devices 1 FS bytes used 5.35GiB
>             devid    1 size 10.85GiB used 10.85GiB path /dev/sda3
Size seems small enough to do a full dd backup.
Better to do it in case btrfsck --repair makes things worse.
But it seems too late for your case.... it should be done before any 
'btrfs check --repair'

Also, you can use btrfs-image to do a backup, which should be much 
smaller than dd dump,
at the cost of no data dumped
(mainly used for dev purpose, like to check btrfsck works as expected or 
not,
and since it contains no data but only metadata, it should be somewhat 
OK to send it to developers)

If it's OK for you, it would be better to dump the driver with "-c9" 
option and send it to us for better test.

>
> # mount -o ro,recovery /home
> → no directories except of lost+found.
And what's inside that dir?
>
> # btrfs check /dev/sda3
> Checking filesystem on /dev/sda3
> UUID: 96e5c775-86b2-4dd9-a671-fe9a343cc10b
> checking extents
> Block Group[0, 4194304] existed.
> Block Group[4194304, 8388608] existed.
> Block Group[12582912, 8388608] existed.
> Block Group[20971520, 8388608] existed.
> Block Group[29360128, 1073741824] existed.
> Block Group[1103101952, 1073741824] existed.
> Block Group[2176843776, 1073741824] existed.
> Block Group[3250585600, 1073741824] existed.
> Block Group[4324327424, 1073741824] existed.
> Block Group[5398069248, 1073741824] existed.
> Block Group[6471811072, 1073741824] existed.
> Block Group[7545552896, 1073741824] existed.
> Block Group[8619294720, 1073741824] existed.
> Block Group[9693036544, 874512384] existed.
Seems only block group problems. --init-extent-tree may helps.
WARNING: Do it *AFTER* a full backup or do it on a btrfs-image restored 
backup!!
> Errors found in extent allocation tree or chunk allocation
> checking free space cache
> cache and super generation don't match, space cache will be invalidated
> checking fs roots
> checking csums
> checking root refs
Other things seems good.
Seems btrfsck --repair did the job, hoping your btrfs-progs has the 
patch to fix a bug that
may delete all the repaired files...

Thanks,
Qu
>
> found 36864 bytes used err is 0
> total csum bytes: 0
> total tree bytes: 20480
> total fs tree bytes: 8192
> total extent tree bytes: 4096
> btree space waste bytes: 15135
> file data blocks allocated: 0
>  referenced 0
>
>
> Any help please?
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Any help to restore broken partition?
  2015-01-12  1:52 ` Qu Wenruo
@ 2015-01-12  3:59   ` Dmitriy Perlow
  2015-01-12  4:20     ` Qu Wenruo
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitriy Perlow @ 2015-01-12  3:59 UTC (permalink / raw)
  To: linux-btrfs, Qu Wenruo

[-- Attachment #1: Type: text/plain, Size: 4308 bytes --]

Qu Wenruo <quwenruo@cn.fujitsu.com>  Mon, 12 Jan 2015 04:52:48 +0300:

> Hi,
> -------- Original Message --------
> Subject: Any help to restore broken partition?
> From: Dmitriy Perlow <dap@open.by>
> To: <linux-btrfs@vger.kernel.org>
> Date: 2015年01月12日 03:59
>> Hi to all!
>>
>> I've been using btrfs at my /home partition without any problems for  
>> about
>> 3 years but today it was made read only. I umounted it and executed  
>> `btrfs
>> check --repair` and got lots of errors.
> Did you saved all the outputs of the btrfsck --repair?

No, sorry.

>> I run openSUSE 13.1 x64 with linux 3.11.10, Btrfs v3.18+20141230.
> Kernel is somewhat old, but btrfs-progs is new enough for possible  
> recovery.
>>
>> # btrfs fi show
>> Label: none  uuid: 96e5c775-86b2-4dd9-a671-fe9a343cc10b
>>             Total devices 1 FS bytes used 5.35GiB
>>             devid    1 size 10.85GiB used 10.85GiB path /dev/sda3
> Size seems small enough to do a full dd backup.
> Better to do it in case btrfsck --repair makes things worse.
> But it seems too late for your case.... it should be done before any  
> 'btrfs check --repair'
>
> Also, you can use btrfs-image to do a backup, which should be much  
> smaller than dd dump,
> at the cost of no data dumped
> (mainly used for dev purpose, like to check btrfsck works as expected or  
> not,
> and since it contains no data but only metadata, it should be somewhat  
> OK to send it to developers)

Attached.

> If it's OK for you, it would be better to dump the driver with "-c9"  
> option and send it to us for better test.
>
>>
>> # mount -o ro,recovery /home
>> → no directories except of lost+found.
> And what's inside that dir?

-rwx------ 1 root root 0 2015-01-11 23:23 1103101952
-rwx------ 1 root root 0 2015-01-11 23:23 12582912
-rwx------ 1 root root 0 2015-01-11 23:23 20971520
-rwx------ 1 root root 0 2015-01-11 23:23 2176843776
-rwx------ 1 root root 0 2015-01-11 23:23 29360128
-rwx------ 1 root root 0 2015-01-11 23:23 29368320
-rwx------ 1 root root 0 2015-01-11 23:23 29380608
-rwx------ 1 root root 0 2015-01-11 23:23 29384704
-rwx------ 1 root root 0 2015-01-11 23:23 3250585600
-rwx------ 1 root root 0 2015-01-11 23:23 4194304
-rwx------ 1 root root 0 2015-01-11 23:23 4324327424
-rwx------ 1 root root 0 2015-01-11 23:23 5398069248
-rwx------ 1 root root 0 2015-01-11 23:23 6471811072
-rwx------ 1 root root 0 2015-01-11 23:23 7545552896
-rwx------ 1 root root 0 2015-01-11 23:23 8619294720
-rwx------ 1 root root 0 2015-01-11 23:23 9693036544

>> # btrfs check /dev/sda3
>> Checking filesystem on /dev/sda3
>> UUID: 96e5c775-86b2-4dd9-a671-fe9a343cc10b
>> checking extents
>> Block Group[0, 4194304] existed.
>> Block Group[4194304, 8388608] existed.
>> Block Group[12582912, 8388608] existed.
>> Block Group[20971520, 8388608] existed.
>> Block Group[29360128, 1073741824] existed.
>> Block Group[1103101952, 1073741824] existed.
>> Block Group[2176843776, 1073741824] existed.
>> Block Group[3250585600, 1073741824] existed.
>> Block Group[4324327424, 1073741824] existed.
>> Block Group[5398069248, 1073741824] existed.
>> Block Group[6471811072, 1073741824] existed.
>> Block Group[7545552896, 1073741824] existed.
>> Block Group[8619294720, 1073741824] existed.
>> Block Group[9693036544, 874512384] existed.
> Seems only block group problems. --init-extent-tree may helps.
> WARNING: Do it *AFTER* a full backup or do it on a btrfs-image restored  
> backup!!

It didn't.

>> Errors found in extent allocation tree or chunk allocation
>> checking free space cache
>> cache and super generation don't match, space cache will be invalidated
>> checking fs roots
>> checking csums
>> checking root refs
> Other things seems good.
> Seems btrfsck --repair did the job, hoping your btrfs-progs has the  
> patch to fix a bug that
> may delete all the repaired files...
>
> Thanks,
> Qu
>>
>> found 36864 bytes used err is 0
>> total csum bytes: 0
>> total tree bytes: 20480
>> total fs tree bytes: 8192
>> total extent tree bytes: 4096
>> btree space waste bytes: 15135
>> file data blocks allocated: 0
>>  referenced 0
>>
>>
>> Any help please?


-- 
Best regards,
Dmitriy DA(P).DarkneSS Perlow @ Linux x64

[-- Attachment #2: btrfsimage --]
[-- Type: application/octet-stream, Size: 37888 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Any help to restore broken partition?
  2015-01-12  3:59   ` Dmitriy Perlow
@ 2015-01-12  4:20     ` Qu Wenruo
  0 siblings, 0 replies; 4+ messages in thread
From: Qu Wenruo @ 2015-01-12  4:20 UTC (permalink / raw)
  To: Dmitriy Perlow, linux-btrfs


-------- Original Message --------
Subject: Re: Any help to restore broken partition?
From: Dmitriy Perlow <dap@open.by>
To: <linux-btrfs@vger.kernel.org>, Qu Wenruo <quwenruo@cn.fujitsu.com>
Date: 2015年01月12日 11:59
> Qu Wenruo <quwenruo@cn.fujitsu.com>  Mon, 12 Jan 2015 04:52:48 +0300:
>
>> Hi,
>> -------- Original Message --------
>> Subject: Any help to restore broken partition?
>> From: Dmitriy Perlow <dap@open.by>
>> To: <linux-btrfs@vger.kernel.org>
>> Date: 2015年01月12日 03:59
>>> Hi to all!
>>>
>>> I've been using btrfs at my /home partition without any problems for 
>>> about
>>> 3 years but today it was made read only. I umounted it and executed 
>>> `btrfs
>>> check --repair` and got lots of errors.
>> Did you saved all the outputs of the btrfsck --repair?
>
> No, sorry.
>
>>> I run openSUSE 13.1 x64 with linux 3.11.10, Btrfs v3.18+20141230.
>> Kernel is somewhat old, but btrfs-progs is new enough for possible 
>> recovery.
>>>
>>> # btrfs fi show
>>> Label: none  uuid: 96e5c775-86b2-4dd9-a671-fe9a343cc10b
>>>             Total devices 1 FS bytes used 5.35GiB
>>>             devid    1 size 10.85GiB used 10.85GiB path /dev/sda3
>> Size seems small enough to do a full dd backup.
>> Better to do it in case btrfsck --repair makes things worse.
>> But it seems too late for your case.... it should be done before any 
>> 'btrfs check --repair'
>>
>> Also, you can use btrfs-image to do a backup, which should be much 
>> smaller than dd dump,
>> at the cost of no data dumped
>> (mainly used for dev purpose, like to check btrfsck works as expected 
>> or not,
>> and since it contains no data but only metadata, it should be 
>> somewhat OK to send it to developers)
>
> Attached.
It's quite wired....
BLOCK_GROUP_ITEM is everywhere where it shouldn't be...
In ROOT tree, CSUM tree, even FS tree.

So the filesystem is totally damaged.
>
>> If it's OK for you, it would be better to dump the driver with "-c9" 
>> option and send it to us for better test.
>>
>>>
>>> # mount -o ro,recovery /home
>>> → no directories except of lost+found.
>> And what's inside that dir?
>
> -rwx------ 1 root root 0 2015-01-11 23:23 1103101952
> -rwx------ 1 root root 0 2015-01-11 23:23 12582912
> -rwx------ 1 root root 0 2015-01-11 23:23 20971520
> -rwx------ 1 root root 0 2015-01-11 23:23 2176843776
> -rwx------ 1 root root 0 2015-01-11 23:23 29360128
> -rwx------ 1 root root 0 2015-01-11 23:23 29368320
> -rwx------ 1 root root 0 2015-01-11 23:23 29380608
> -rwx------ 1 root root 0 2015-01-11 23:23 29384704
> -rwx------ 1 root root 0 2015-01-11 23:23 3250585600
> -rwx------ 1 root root 0 2015-01-11 23:23 4194304
> -rwx------ 1 root root 0 2015-01-11 23:23 4324327424
> -rwx------ 1 root root 0 2015-01-11 23:23 5398069248
> -rwx------ 1 root root 0 2015-01-11 23:23 6471811072
> -rwx------ 1 root root 0 2015-01-11 23:23 7545552896
> -rwx------ 1 root root 0 2015-01-11 23:23 8619294720
> -rwx------ 1 root root 0 2015-01-11 23:23 9693036544
btrfsck repaired the fs tree with what it can recover, but only inode 
number is recovered...
So no help.
>
>>> # btrfs check /dev/sda3
>>> Checking filesystem on /dev/sda3
>>> UUID: 96e5c775-86b2-4dd9-a671-fe9a343cc10b
>>> checking extents
>>> Block Group[0, 4194304] existed.
>>> Block Group[4194304, 8388608] existed.
>>> Block Group[12582912, 8388608] existed.
>>> Block Group[20971520, 8388608] existed.
>>> Block Group[29360128, 1073741824] existed.
>>> Block Group[1103101952, 1073741824] existed.
>>> Block Group[2176843776, 1073741824] existed.
>>> Block Group[3250585600, 1073741824] existed.
>>> Block Group[4324327424, 1073741824] existed.
>>> Block Group[5398069248, 1073741824] existed.
>>> Block Group[6471811072, 1073741824] existed.
>>> Block Group[7545552896, 1073741824] existed.
>>> Block Group[8619294720, 1073741824] existed.
>>> Block Group[9693036544, 874512384] existed.
>> Seems only block group problems. --init-extent-tree may helps.
>> WARNING: Do it *AFTER* a full backup or do it on a btrfs-image 
>> restored backup!!
>
> It didn't.
Due to the totally damaged trees, it's not strange it didn't help.

Sorry for not providing too much help

Thanks,
Qu
>
>>> Errors found in extent allocation tree or chunk allocation
>>> checking free space cache
>>> cache and super generation don't match, space cache will be invalidated
>>> checking fs roots
>>> checking csums
>>> checking root refs
>> Other things seems good.
>> Seems btrfsck --repair did the job, hoping your btrfs-progs has the 
>> patch to fix a bug that
>> may delete all the repaired files...
>>
>> Thanks,
>> Qu
>>>
>>> found 36864 bytes used err is 0
>>> total csum bytes: 0
>>> total tree bytes: 20480
>>> total fs tree bytes: 8192
>>> total extent tree bytes: 4096
>>> btree space waste bytes: 15135
>>> file data blocks allocated: 0
>>>  referenced 0
>>>
>>>
>>> Any help please?
>
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-01-12  4:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-11 19:59 Any help to restore broken partition? Dmitriy Perlow
2015-01-12  1:52 ` Qu Wenruo
2015-01-12  3:59   ` Dmitriy Perlow
2015-01-12  4:20     ` 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).