system hangs after deleting bad file
Hallo, next problem (sorry): my cluster of 3 2-TByte-disks has some damaged files. When I try to delete the directory entries with the midnight commander (via putty, over the LAN) then mc hangs. Killing the putty session and opening (via putty) a new mc window shows that the directory entry doesn't exist - looks good. Mountpoint is /mnt/btr. lsof /mnt/btr still shows a mc entry which I can't remove with killall -9 mc or kill -9 mc-PID. And more bad: reboot doesn't work, Ctrl Alt Delete (on the machine, not over LAN) doesn't work too. I have to restart the machine via main power switch - no good job. Viele Gruesse! Helmut -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: BTRFS thinks that a device is mounted
2011-10-21, 00:39(+03), Nikos Voutsinas: [...] ## Comment: Of course /dev/sdh is not mounted. mount |grep /dev/sdh root@lxc:~# [...] Note that mount(8) uses /etc/mtab to find out what is mounted. And if that file is not a symlink to /proc/mounts, the information is not necessarily correct. You can also have a look at /proc/mounts directly. OK, I found what went wrong, however I am not sure whose fault this is and If I am going to describe a case that is already known to this list. To cut a long story short, the consecutive root@btrfs:~# btrfs device add /dev/sdc / root@btrfs:~# btrfs device delete /dev/sdc / led to inconsistency between the contents of /proc/mounts and /dev/disk/by-uuid (ie the mapping of UUIDs to devices). Actually, btrfs device add /dev/sdc / changed the mapping of root's UUID to point to /dev/sdc, and the system left it this way, even after the btrfs device delete /dev/sdc /. Thus I ended up with the following situation. root@btrfs:~# cat /etc/mtab /proc/mounts |grep btrfs /dev/sdd2 / btrfs rw 0 0 /dev/disk/by-uuid/cc8211ba-6f62-46d6-ba17-49250f06a941 / btrfs rw 0 0 root@btrfs:~# root@btrfs:~# ls -l /dev/disk/by-uuid/cc8211ba-6f62-46d6-ba17-49250f06a941 lrwxrwxrwx 1 root root 9 Oct 22 16:13 /dev/disk/by-uuid/cc8211ba-6f62-46d6-ba17-49250f06a941 - ../../sdc Although this may be a udev issue, I think that the userspace tools of btrfs should have handled this in a better way. Nikos -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Kernel BUG unable to handle kernel NULL pointer dereference
Hello, I got a kernel bug error, my guess from BTRFS. Here is the report, Oct 22 20:44:43 localhost kernel: [25554.947970] BUG: unable to handle kernel NULL pointer dereference at 0030 Oct 22 20:44:43 localhost kernel: [25554.948002] IP: [a01ab027] btrfs_print_leaf+0x37/0x880 [btrfs] Oct 22 20:44:43 localhost kernel: [25554.948037] PGD bfa44067 PUD bfa43067 PMD 0 Oct 22 20:44:43 localhost kernel: [25554.948052] Oops: [#1] PREEMPT SMP Oct 22 20:44:43 localhost kernel: [25554.948066] CPU 1 Oct 22 20:44:43 localhost kernel: [25554.948072] Modules linked in: nls_cp437 vfat fat ipv6 loop fuse hid_apple usbhid hid uvcvideo videodev media v4l2_compat_ioctl32 adt7475 hwmon_vid evdev nouveau snd_emu10k1 snd_rawmidi snd_intel8x0 ttm drm_kms_helper sg snd_ac97_codec snd_seq_device firewire_ohci drm snd_util_mem ac97_bus snd_pcm snd_hwdep edac_core k8temp psmouse firewire_core emu10k1_gp snd_timer edac_mce_amd pcspkr snd i2c_algo_bit gameport mxm_wmi wmi crc_itu_t serio_raw soundcore video snd_page_alloc fan i2c_nforce2 thermal i2c_core floppy processor button uas usb_storage forcedeth btrfs zlib_deflate crc32c libcrc32c ext4 jbd2 crc16 ext3 jbd mbcache ohci_hcd ehci_hcd usbcore sr_mod sd_mod cdrom sata_nv pata_amd libata scsi_mod Oct 22 20:44:43 localhost kernel: [25554.948321] Oct 22 20:44:43 localhost kernel: [25554.948327] Pid: 4834, comm: firefox Not tainted 3.0-ARCH #1/LP UT NF4 Expert Oct 22 20:44:43 localhost kernel: [25554.948522] RIP: 0010:[a01ab027] [a01ab027] btrfs_print_leaf+0x37/0x880 [btrfs] Oct 22 20:44:43 localhost kernel: [25554.948547] RSP: 0018:8800b341fb38 EFLAGS: 00010282 Oct 22 20:44:43 localhost kernel: [25554.948557] RAX: ffe4 RBX: RCX: 8800b341ffd8 Oct 22 20:44:43 localhost kernel: [25554.948570] RDX: 8800b341e000 RSI: RDI: 880135075000 Oct 22 20:44:43 localhost kernel: [25554.948582] RBP: 8800b341fbc8 R08: R09: Oct 22 20:44:43 localhost kernel: [25554.948595] R10: ffe4 R11: R12: 0005 Oct 22 20:44:43 localhost kernel: [25554.948607] R13: 05114000 R14: ffe4 R15: 1000 Oct 22 20:44:43 localhost kernel: [25554.948621] FS: 7f1c5a2f4720() GS:88013fd0() knlGS:f68227f0 Oct 22 20:44:43 localhost kernel: [25554.948634] CS: 0010 DS: ES: CR0: 80050033 Oct 22 20:44:43 localhost kernel: [25554.948645] CR2: 0030 CR3: bfa41000 CR4: 06e0 Oct 22 20:44:43 localhost kernel: [25554.948658] DR0: DR1: DR2: Oct 22 20:44:43 localhost kernel: [25554.948670] DR3: DR6: 0ff0 DR7: 0400 Oct 22 20:44:43 localhost kernel: [25554.948683] Process firefox (pid: 4834, threadinfo 8800b341e000, task 88012d817300) Oct 22 20:44:43 localhost kernel: [25554.948701] Stack: Oct 22 20:44:43 localhost kernel: [25554.948708] 2000 1000 8800b341fc70 05114000 Oct 22 20:44:43 localhost kernel: [25554.948730] 0282 81142c03 880135075000 0090 Oct 22 20:44:43 localhost kernel: [25554.948755] 0090 805037106510 a8051140 1000 Oct 22 20:44:43 localhost kernel: [25554.948777] Call Trace: Oct 22 20:44:43 localhost kernel: [25554.948787] [81142c03] ? kmem_cache_alloc+0x133/0x160 Oct 22 20:44:43 localhost kernel: [25554.948807] [a01a32df] __btrfs_free_extent+0x61f/0x6d0 [btrfs] Oct 22 20:44:43 localhost kernel: [25554.948827] [a01a5b6d] ? run_clustered_refs+0x11d/0x830 [btrfs] Oct 22 20:44:43 localhost kernel: [25554.948847] [a01a5dd9] run_clustered_refs+0x389/0x830 [btrfs] Oct 22 20:44:43 localhost kernel: [25554.948867] [a01a6348] btrfs_run_delayed_refs+0xc8/0x220 [btrfs] Oct 22 20:44:43 localhost kernel: [25554.948881] [813f29ce] ? mutex_unlock+0xe/0x10 Oct 22 20:44:43 localhost kernel: [25554.948900] [a01b8381] btrfs_commit_transaction+0x81/0x8a0 [btrfs] Oct 22 20:44:43 localhost kernel: [25554.948915] [8107f790] ? abort_exclusive_wait+0xb0/0xb0 Oct 22 20:44:43 localhost kernel: [25554.948928] [8116e6be] ? dput+0x10e/0x1a0 Oct 22 20:44:43 localhost kernel: [25554.948948] [a01c6ac4] btrfs_sync_file+0x194/0x1e0 [btrfs] Oct 22 20:44:43 localhost kernel: [25554.948961] [8118321f] vfs_fsync_range+0x5f/0xa0 Oct 22 20:44:43 localhost kernel: [25554.948973] [811832cc] vfs_fsync+0x1c/0x20 Oct 22 20:44:43 localhost kernel: [25554.948984] [811835e3] sys_fsync+0x33/0x50 Oct 22 20:44:43 localhost kernel: [25554.948995] [813f4c42] system_call_fastpath+0x16/0x1b Oct 22 20:44:43 localhost kernel: [25554.949008] Code: 89 5d d8 4c 89 65 e0 4c 89 6d e8 4c 89 75 f0 4c 89 7d f8 66 66 66 66 90 65 48 8b 0c 25 48 cd 00 00 48 8d 91 28 e0 ff ff 48 89