From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Greaves Subject: 2.6.22-rc4 XFS fails after hibernate/resume Date: Sat, 16 Jun 2007 20:56:21 +0100 Message-ID: <46744065.6060605@dgreaves.com> Reply-To: LVM general discussion and development Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-lvm-bounces@redhat.com Errors-To: linux-lvm-bounces@redhat.com To: "'linux-kernel@vger.kernel.org'" , xfs@oss.sgi.com, LVM general discussion and development Cc: linux-pm List-Id: linux-pm@vger.kernel.org This isn't a regression. I was seeing these problems on 2.6.21 (but 22 was in -rc so I waited to try it). I tried 2.6.22-rc4 (with Tejun's patches) to see if it had improved - no. Note this is a different (desktop) machine to that involved my recent bugs. The machine will work for days (continually powered up) without a problem and then exhibits a filesystem failure within minutes of a resume. I know xfs/raid are OK with hibernate. Is lvm? The root filesystem is xfs on raid1 and that doesn't seem to have any problems. System info: /dev/mapper/video_vg-video_lv on /scratch type xfs (rw) haze:~# vgdisplay --- Volume group --- VG Name video_vg System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 19 VG Access read/write VG Status resizable MAX LV 0 Cur LV 1 Open LV 1 Max PV 0 Cur PV 1 Act PV 1 VG Size 372.61 GB PE Size 4.00 MB Total PE 95389 Alloc PE / Size 95389 / 372.61 GB Free PE / Size 0 / 0 VG UUID I2gW2x-aHcC-kqzs-Efpd-Q7TE-dkWf-KpHSO7 haze:~# pvdisplay --- Physical volume --- PV Name /dev/md1 VG Name video_vg PV Size 372.62 GB / not usable 3.25 MB Allocatable yes (but full) PE Size (KByte) 4096 Total PE 95389 Free PE 0 Allocated PE 95389 PV UUID IUig5k-460l-sMZc-23Iz-MMFl-Cfh9-XuBMiq md1 : active raid5 sdd1[0] sda1[2] sdc1[1] 390716672 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU] 00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400/KT600 AGP] Host Bridge (rev 80) 00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI Bridge 00:0a.0 Mass storage controller: Silicon Image, Inc. SiI 3112 [SATALink/SATARaid] Serial ATA Controller (rev 02) 00:0b.0 Ethernet controller: Marvell Technology Group Ltd. 88E8001 Gigabit Ethernet Controller (rev 12) 00:0f.0 RAID bus controller: VIA Technologies, Inc. VIA VT6420 SATA RAID Controller (rev 80) 00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) 00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81) 00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81) 00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81) 00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81) 00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86) 00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge [KT600/K8T800/K8T890 South] 00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60) 00:11.6 Communication controller: VIA Technologies, Inc. AC'97 Modem Controller (rev 80) 00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 78) 01:00.0 VGA compatible controller: ATI Technologies Inc RV280 [Radeon 9200 PRO] (rev 01) tail end of info from dmesg: k_prepare_write+0x272/0x490 [] xfs_iomap+0x391/0x4b0 [] xfs_bmap+0x0/0x10 [] xfs_map_blocks+0x47/0x90 [] xfs_page_state_convert+0x3dc/0x7b0 [] xfs_ilock+0x71/0xa0 [] xfs_iunlock+0x85/0x90 [] xfs_vm_writepage+0x60/0xf0 [] __writepage+0x8/0x30 [] write_cache_pages+0x1ff/0x320 [] __writepage+0x0/0x30 [] generic_writepages+0x20/0x30 [] do_writepages+0x2b/0x50 [] __filemap_fdatawrite_range+0x72/0x90 [] xfs_file_fsync+0x0/0x80 [] filemap_fdatawrite+0x23/0x30 [] do_fsync+0x4e/0xb0 [] __do_fsync+0x25/0x40 [] syscall_call+0x7/0xb ======================= Filesystem "dm-0": XFS internal error xfs_btree_check_sblock at line 334 of file fs/xfs/xfs_btree.c. Caller 0xc01b27be [] xfs_btree_check_sblock+0x5b/0xd0 [] xfs_alloc_lookup+0x17e/0x390 [] xfs_alloc_lookup+0x17e/0x390 [] xfs_alloc_ag_vextent_near+0x59/0xa30 [] xfs_alloc_ag_vextent+0x8d/0x100 [] xfs_alloc_vextent+0x223/0x450 [] xfs_bmap_btalloc+0x400/0x770 [] xfs_iext_bno_to_ext+0x9d/0x1d0 [] xfs_bmapi+0x10bd/0x1490 [] xlog_grant_log_space+0x22e/0x2b0 [] xfs_log_reserve+0xc0/0xe0 [] xfs_iomap_write_allocate+0x27f/0x4f0 [] __block_prepare_write+0x421/0x490 [] __block_prepare_write+0x272/0x490 [] xfs_iomap+0x391/0x4b0 [] xfs_bmap+0x0/0x10 [] xfs_map_blocks+0x47/0x90 [] xfs_page_state_convert+0x3dc/0x7b0 [] xfs_ilock+0x71/0xa0 [] xfs_iunlock+0x85/0x90 [] xfs_vm_writepage+0x60/0xf0 [] __writepage+0x8/0x30 [] write_cache_pages+0x1ff/0x320 [] __writepage+0x0/0x30 [] generic_writepages+0x20/0x30 [] do_writepages+0x2b/0x50 [] __filemap_fdatawrite_range+0x72/0x90 [] xfs_file_fsync+0x0/0x80 [] filemap_fdatawrite+0x23/0x30 [] do_fsync+0x4e/0xb0 [] __do_fsync+0x25/0x40 [] syscall_call+0x7/0xb ======================= Filesystem "dm-0": XFS internal error xfs_btree_check_sblock at line 334 of file fs/xfs/xfs_btree.c. Caller 0xc01b27be [] xfs_btree_check_sblock+0x5b/0xd0 [] xfs_alloc_lookup+0x17e/0x390 [] xfs_alloc_lookup+0x17e/0x390 [] xfs_alloc_ag_vextent_near+0x59/0xa30 [] xfs_alloc_ag_vextent+0x8d/0x100 [] xfs_alloc_vextent+0x223/0x450 [] xfs_bmap_btalloc+0x400/0x770 [] xfs_iext_bno_to_ext+0x9d/0x1d0 [] xfs_bmapi+0x10bd/0x1490 [] xlog_grant_log_space+0x22e/0x2b0 [] xfs_log_reserve+0xc0/0xe0 [] xfs_iomap_write_allocate+0x27f/0x4f0 [] __block_prepare_write+0x421/0x490 [] __block_prepare_write+0x272/0x490 [] xfs_iomap+0x391/0x4b0 [] xfs_bmap+0x0/0x10 [] xfs_map_blocks+0x47/0x90 [] xfs_page_state_convert+0x3dc/0x7b0 [] xfs_ilock+0x71/0xa0 [] xfs_iunlock+0x85/0x90 [] xfs_vm_writepage+0x60/0xf0 [] __writepage+0x8/0x30 [] write_cache_pages+0x1ff/0x320 [] __writepage+0x0/0x30 [] generic_writepages+0x20/0x30 [] do_writepages+0x2b/0x50 [] __filemap_fdatawrite_range+0x72/0x90 [] xfs_file_fsync+0x0/0x80 [] filemap_fdatawrite+0x23/0x30 [] do_fsync+0x4e/0xb0 [] __do_fsync+0x25/0x40 [] syscall_call+0x7/0xb ======================= Filesystem "dm-0": XFS internal error xfs_btree_check_sblock at line 334 of file fs/xfs/xfs_btree.c. Caller 0xc01b27be [] xfs_btree_check_sblock+0x5b/0xd0 [] xfs_alloc_lookup+0x17e/0x390 [] xfs_alloc_lookup+0x17e/0x390 [] xfs_alloc_ag_vextent_near+0x59/0xa30 [] xfs_alloc_ag_vextent+0x8d/0x100 [] xfs_alloc_vextent+0x223/0x450 [] xfs_bmap_btalloc+0x400/0x770 [] xfs_iext_bno_to_ext+0x9d/0x1d0 [] xfs_bmapi+0x10bd/0x1490 [] xlog_grant_log_space+0x22e/0x2b0 [] xfs_log_reserve+0xc0/0xe0 [] xfs_iomap_write_allocate+0x27f/0x4f0 [] __block_prepare_write+0x421/0x490 [] __block_prepare_write+0x272/0x490 [] xfs_iomap+0x391/0x4b0 [] xfs_bmap+0x0/0x10 [] xfs_map_blocks+0x47/0x90 [] xfs_page_state_convert+0x3dc/0x7b0 [] xfs_ilock+0x71/0xa0 [] xfs_iunlock+0x85/0x90 [] xfs_vm_writepage+0x60/0xf0 [] __writepage+0x8/0x30 [] write_cache_pages+0x1ff/0x320 [] __writepage+0x0/0x30 [] generic_writepages+0x20/0x30 [] do_writepages+0x2b/0x50 [] __filemap_fdatawrite_range+0x72/0x90 [] xfs_file_fsync+0x0/0x80 [] filemap_fdatawrite+0x23/0x30 [] do_fsync+0x4e/0xb0 [] __do_fsync+0x25/0x40 [] syscall_call+0x7/0xb ======================= Filesystem "dm-0": XFS internal error xfs_btree_check_sblock at line 334 of file fs/xfs/xfs_btree.c. Caller 0xc01b27be [] xfs_btree_check_sblock+0x5b/0xd0 [] xfs_alloc_lookup+0x17e/0x390 [] xfs_alloc_lookup+0x17e/0x390 [] xfs_alloc_ag_vextent_near+0x59/0xa30 [] xfs_alloc_ag_vextent+0x8d/0x100 [] xfs_alloc_vextent+0x223/0x450 [] xfs_bmap_btalloc+0x400/0x770 [] xfs_iext_bno_to_ext+0x9d/0x1d0 [] xfs_bmapi+0x10bd/0x1490 [] xlog_grant_log_space+0x22e/0x2b0 [] xfs_log_reserve+0xc0/0xe0 [] xfs_iomap_write_allocate+0x27f/0x4f0 [] __block_prepare_write+0x421/0x490 [] __block_prepare_write+0x272/0x490 [] xfs_iomap+0x391/0x4b0 [] xfs_bmap+0x0/0x10 [] xfs_map_blocks+0x47/0x90 [] xfs_page_state_convert+0x3dc/0x7b0 [] xfs_ilock+0x71/0xa0 [] xfs_iunlock+0x85/0x90 [] xfs_vm_writepage+0x60/0xf0 [] __writepage+0x8/0x30 [] write_cache_pages+0x1ff/0x320 [] __writepage+0x0/0x30 [] generic_writepages+0x20/0x30 [] do_writepages+0x2b/0x50 [] __filemap_fdatawrite_range+0x72/0x90 [] xfs_file_fsync+0x0/0x80 [] filemap_fdatawrite+0x23/0x30 [] do_fsync+0x4e/0xb0 [] __do_fsync+0x25/0x40 [] syscall_call+0x7/0xb ======================= Filesystem "dm-0": XFS internal error xfs_btree_check_sblock at line 334 of file fs/xfs/xfs_btree.c. Caller 0xc01b27be [] xfs_btree_check_sblock+0x5b/0xd0 [] xfs_alloc_lookup+0x17e/0x390 [] xfs_alloc_lookup+0x17e/0x390 [] xfs_alloc_ag_vextent_near+0x59/0xa30 [] xfs_alloc_ag_vextent+0x8d/0x100 [] xfs_alloc_vextent+0x223/0x450 [] xfs_bmap_btalloc+0x400/0x770 [] xfs_iext_bno_to_ext+0x9d/0x1d0 [] xfs_bmapi+0x10bd/0x1490 [] xlog_grant_log_space+0x22e/0x2b0 [] xfs_log_reserve+0xc0/0xe0 [] xfs_iomap_write_allocate+0x27f/0x4f0 [] __block_prepare_write+0x421/0x490 [] __block_prepare_write+0x272/0x490 [] xfs_iomap+0x391/0x4b0 [] xfs_bmap+0x0/0x10 [] xfs_map_blocks+0x47/0x90 [] xfs_page_state_convert+0x3dc/0x7b0 [] xfs_ilock+0x71/0xa0 [] xfs_iunlock+0x85/0x90 [] xfs_vm_writepage+0x60/0xf0 [] __writepage+0x8/0x30 [] write_cache_pages+0x1ff/0x320 [] __writepage+0x0/0x30 [] generic_writepages+0x20/0x30 [] do_writepages+0x2b/0x50 [] __filemap_fdatawrite_range+0x72/0x90 [] xfs_file_fsync+0x0/0x80 [] filemap_fdatawrite+0x23/0x30 [] do_fsync+0x4e/0xb0 [] __do_fsync+0x25/0x40 [] syscall_call+0x7/0xb ======================= Filesystem "dm-0": XFS internal error xfs_btree_check_sblock at line 334 of file fs/xfs/xfs_btree.c. Caller 0xc01b27be [] xfs_btree_check_sblock+0x5b/0xd0 [] xfs_alloc_lookup+0x17e/0x390 [] xfs_alloc_lookup+0x17e/0x390 [] xfs_alloc_ag_vextent_near+0x59/0xa30 [] xfs_alloc_ag_vextent+0x8d/0x100 [] xfs_alloc_vextent+0x223/0x450 [] xfs_bmap_btalloc+0x400/0x770 [] xfs_iext_bno_to_ext+0x9d/0x1d0 [] xfs_bmapi+0x10bd/0x1490 [] xlog_grant_log_space+0x22e/0x2b0 [] xfs_log_reserve+0xc0/0xe0 [] xfs_iomap_write_allocate+0x27f/0x4f0 [] __block_prepare_write+0x421/0x490 [] __block_prepare_write+0x272/0x490 [] xfs_iomap+0x391/0x4b0 [] xfs_bmap+0x0/0x10 [] xfs_map_blocks+0x47/0x90 [] xfs_page_state_convert+0x3dc/0x7b0 [] xfs_ilock+0x71/0xa0 [] xfs_iunlock+0x85/0x90 [] xfs_vm_writepage+0x60/0xf0 [] __writepage+0x8/0x30 [] write_cache_pages+0x1ff/0x320 [] __writepage+0x0/0x30 [] generic_writepages+0x20/0x30 [] do_writepages+0x2b/0x50 [] __filemap_fdatawrite_range+0x72/0x90 [] xfs_file_fsync+0x0/0x80 [] filemap_fdatawrite+0x23/0x30 [] do_fsync+0x4e/0xb0 [] __do_fsync+0x25/0x40 [] syscall_call+0x7/0xb ======================= Filesystem "dm-0": XFS internal error xfs_btree_check_sblock at line 334 of file fs/xfs/xfs_btree.c. Caller 0xc01b27be [] xfs_btree_check_sblock+0x5b/0xd0 [] xfs_alloc_lookup+0x17e/0x390 [] xfs_alloc_lookup+0x17e/0x390 [] xfs_alloc_ag_vextent_near+0x59/0xa30 [] xfs_alloc_ag_vextent+0x8d/0x100 [] xfs_alloc_vextent+0x223/0x450 [] xfs_bmap_btalloc+0x400/0x770 [] xfs_iext_bno_to_ext+0x9d/0x1d0 [] xfs_bmapi+0x10bd/0x1490 [] xlog_grant_log_space+0x22e/0x2b0 [] xfs_log_reserve+0xc0/0xe0 [] xfs_iomap_write_allocate+0x27f/0x4f0 [] __block_prepare_write+0x421/0x490 [] __block_prepare_write+0x272/0x490 [] xfs_iomap+0x391/0x4b0 [] xfs_bmap+0x0/0x10 [] xfs_map_blocks+0x47/0x90 [] xfs_page_state_convert+0x3dc/0x7b0 [] xfs_ilock+0x71/0xa0 [] xfs_iunlock+0x85/0x90 [] xfs_vm_writepage+0x60/0xf0 [] __writepage+0x8/0x30 [] write_cache_pages+0x1ff/0x320 [] __writepage+0x0/0x30 [] generic_writepages+0x20/0x30 [] do_writepages+0x2b/0x50 [] __filemap_fdatawrite_range+0x72/0x90 [] xfs_file_fsync+0x0/0x80 [] filemap_fdatawrite+0x23/0x30 [] do_fsync+0x4e/0xb0 [] __do_fsync+0x25/0x40 [] syscall_call+0x7/0xb ======================= Filesystem "dm-0": XFS internal error xfs_btree_check_sblock at line 334 of file fs/xfs/xfs_btree.c. Caller 0xc01b27be [] xfs_btree_check_sblock+0x5b/0xd0 [] xfs_alloc_lookup+0x17e/0x390 [] xfs_alloc_lookup+0x17e/0x390 [] xfs_alloc_ag_vextent_near+0x59/0xa30 [] xfs_alloc_ag_vextent+0x8d/0x100 [] xfs_alloc_vextent+0x223/0x450 [] xfs_bmap_btalloc+0x400/0x770 [] xfs_iext_bno_to_ext+0x9d/0x1d0 [] xfs_bmapi+0x10bd/0x1490 [] __do_softirq+0x42/0x90 [] xlog_grant_log_space+0x22e/0x2b0 [] xfs_log_reserve+0xc0/0xe0 [] xfs_iomap_write_allocate+0x27f/0x4f0 [] __block_prepare_write+0x421/0x490 [] __block_prepare_write+0x272/0x490 [] xfs_iomap+0x391/0x4b0 [] xfs_bmap+0x0/0x10 [] xfs_map_blocks+0x47/0x90 [] xfs_page_state_convert+0x3dc/0x7b0 [] xfs_ilock+0x71/0xa0 [] xfs_iunlock+0x85/0x90 [] xfs_vm_writepage+0x60/0xf0 [] __writepage+0x8/0x30 [] write_cache_pages+0x1ff/0x320 [] __writepage+0x0/0x30 [] generic_writepages+0x20/0x30 [] do_writepages+0x2b/0x50 [] __filemap_fdatawrite_range+0x72/0x90 [] xfs_file_fsync+0x0/0x80 [] filemap_fdatawrite+0x23/0x30 [] do_fsync+0x4e/0xb0 [] __do_fsync+0x25/0x40 [] syscall_call+0x7/0xb ======================= Filesystem "dm-0": XFS internal error xfs_btree_check_sblock at line 334 of file fs/xfs/xfs_btree.c. Caller 0xc01b27be [] xfs_btree_check_sblock+0x5b/0xd0 [] xfs_alloc_lookup+0x17e/0x390 [] xfs_alloc_lookup+0x17e/0x390 [] xfs_alloc_ag_vextent_near+0x59/0xa30 [] xfs_alloc_ag_vextent+0x8d/0x100 [] xfs_alloc_vextent+0x223/0x450 [] xfs_bmap_btalloc+0x400/0x770 [] xfs_iext_bno_to_ext+0x9d/0x1d0 [] xfs_bmapi+0x10bd/0x1490 [] xlog_grant_log_space+0x22e/0x2b0 [] xfs_log_reserve+0xc0/0xe0 [] xfs_iomap_write_allocate+0x27f/0x4f0 [] __block_prepare_write+0x421/0x490 [] __block_prepare_write+0x272/0x490 [] xfs_iomap+0x391/0x4b0 [] xfs_bmap+0x0/0x10 [] xfs_map_blocks+0x47/0x90 [] xfs_page_state_convert+0x3dc/0x7b0 [] xfs_ilock+0x71/0xa0 [] xfs_iunlock+0x85/0x90 [] xfs_vm_writepage+0x60/0xf0 [] __writepage+0x8/0x30 [] write_cache_pages+0x1ff/0x320 [] __writepage+0x0/0x30 [] generic_writepages+0x20/0x30 [] do_writepages+0x2b/0x50 [] __filemap_fdatawrite_range+0x72/0x90 [] xfs_file_fsync+0x0/0x80 [] filemap_fdatawrite+0x23/0x30 [] do_fsync+0x4e/0xb0 [] __do_fsync+0x25/0x40 [] syscall_call+0x7/0xb ======================= Filesystem "dm-0": XFS internal error xfs_btree_check_sblock at line 334 of file fs/xfs/xfs_btree.c. Caller 0xc01b27be [] xfs_btree_check_sblock+0x5b/0xd0 [] xfs_alloc_lookup+0x17e/0x390 [] xfs_alloc_lookup+0x17e/0x390 [] xfs_free_ag_extent+0x2de/0x720 [] xfs_free_extent+0xbb/0xf0 [] xfs_bmap_finish+0x139/0x180 [] xfs_bunmapi+0x0/0xf80 [] xfs_itruncate_finish+0x26f/0x3f0 [] xfs_inactive+0x48b/0x500 [] xfs_fs_clear_inode+0x31/0x80 [] clear_inode+0x54/0xf0 [] truncate_inode_pages+0x17/0x20 [] generic_delete_inode+0xd2/0x100 [] iput+0x5c/0x70 [] d_kill+0x35/0x60 [] dput+0xa1/0x150 [] sys_renameat+0x1d8/0x200 [] dput+0x1c/0x150 [] __fput+0x113/0x180 [] mntput_no_expire+0x13/0x90 [] sys_rename+0x27/0x30 [] syscall_call+0x7/0xb ======================= xfs_force_shutdown(dm-0,0x8) called from line 4258 of file fs/xfs/xfs_bmap.c. Return address = 0xc02113cc Filesystem "dm-0": Corruption of in-memory data detected. Shutting down filesystem: dm-0 Please umount the filesystem, and rectify the problem(s) _______________________________________________ linux-lvm mailing list linux-lvm@redhat.com https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/