Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759694AbZIQR5W (ORCPT ); Thu, 17 Sep 2009 13:57:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759253AbZIQR5V (ORCPT ); Thu, 17 Sep 2009 13:57:21 -0400 Received: from mail-ew0-f206.google.com ([209.85.219.206]:65534 "EHLO mail-ew0-f206.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756830AbZIQR5J convert rfc822-to-8bit (ORCPT ); Thu, 17 Sep 2009 13:57:09 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=Sa2/U6bc5X/gqyIT6MZwjj0QVn5/kpKz3eN7XQy99xWlifnvpsme2bDsfVrGGgIJaR zllp7M+rxEITNDqAmp1zxqK/wE9VgNfjPI1BPPvchTvFjwPacUoglk30oYmed53V0TxA t6jlWEDSAGrhYcqKaqk8/Jtu0AMa8yJNFA2fg= MIME-Version: 1.0 In-Reply-To: <4AA5E5F3.30309@primeinteractive.net> References: <4AA5E5F3.30309@primeinteractive.net> From: Nao Nakashima Date: Thu, 17 Sep 2009 23:56:51 +0600 Message-ID: <570e33fe0909171056x774ebbe5jc461e5a044d8d31@mail.gmail.com> Subject: Re: ext4+quota+nfs issue To: Pavol Cvengros Cc: linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 11010 Lines: 255 Hello. I have a similiar issues with kernels 2.6.30-gentoo-r4 and 2.6.31-gentoo (vanilla + this patches: http://dev.gentoo.org/~dsd/genpatches) Size of ext4 file system is 457Gb. fs located on LVM2, converted from ext3 and resized (with resize2fs) many times after. quotas are turned on and set for one user. NFS are not used at all. warnings are below: ------------[ cut here ]------------ WARNING: at fs/quota/dquot.c:964 dquot_claim_space+0x64/0x150() Hardware name: Modules linked in: vfat fat sit tunnel4 radeon drm ipv6 snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device pppoe pppox ppp_generic slhc bridge stp llc ipt_REJECT xt_state xt_multiport iptable_filter xt_comment xt_owner xt_DSCP iptable_mangle iptable_raw ipt_MASQUERADE ipt_REDIRECT xt_tcpudp iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 ip_tables x_tables joydev gamecon snd_pcm_oss snd_mixer_oss analog gameport pcspkr snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm snd_timer snd parport_pc nvidia_agp snd_page_alloc agpgart forcedeth parport evdev Pid: 28435, comm: pdflush Not tainted 2.6.30-gentoo-r4 #1 Call Trace: ?[] ? dquot_claim_space+0x64/0x150 ?[] ? dquot_claim_space+0x64/0x150 ?[] ? warn_slowpath_common+0x76/0xd0 ?[] ? dquot_claim_space+0x64/0x150 ?[] ? warn_slowpath_null+0x13/0x20 ?[] ? dquot_claim_space+0x64/0x150 ?[] ? ext4_mb_mark_diskspace_used+0x466/0x480 ?[] ? ext4_mb_new_blocks+0x300/0x490 ?[] ? ext4_ext_find_extent+0x124/0x2d0 ?[] ? ext4_ext_get_blocks+0xac9/0xed0 ?[] ? generic_make_request+0x1d2/0x370 ?[] ? scheduler_tick+0x82/0x90 ?[] ? run_timer_softirq+0x12/0x180 ?[] ? ext4_get_blocks_wrap+0x1b2/0x2f0 ?[] ? mpage_da_map_blocks+0xc7/0x860 ?[] ? pagevec_lookup_tag+0x2a/0x40 ?[] ? write_cache_pages+0xd4/0x360 ?[] ? __mpage_da_writepage+0x0/0x170 ?[] ? jbd2_journal_start+0x7f/0xc0 ?[] ? ext4_da_writepages+0x2a4/0x410 ?[] ? __bread+0x10/0xb0 ?[] ? ext4_da_writepages+0x0/0x410 ?[] ? do_writepages+0x2b/0x50 ?[] ? __writeback_single_inode+0x76/0x3a0 ?[] ? generic_sync_sb_inodes+0x24e/0x3c0 ?[] ? writeback_inodes+0x31/0xa0 ?[] ? background_writeout+0x9c/0xc0 ?[] ? pdflush+0x0/0x1a0 ?[] ? pdflush+0xdf/0x1a0 ?[] ? background_writeout+0x0/0xc0 ?[] ? kthread+0x40/0x70 ?[] ? kthread+0x0/0x70 ?[] ? kernel_thread_helper+0x7/0x14 ---[ end trace 5d62dca1c9500b01 ]--- ------------[ cut here ]------------ WARNING: at fs/quota/dquot.c:964 dquot_claim_space+0x64/0x150() Hardware name: Modules linked in: radeon drm snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device ipv6 pppoe pppox ppp_generic slhc bridge stp llc ipt_MASQUERADE ipt_REDIRECT iptable_nat nf_nat iptable_raw xt_owner xt_DSCP iptable_mangle ipt_REJECT xt_tcpudp nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack xt_comment xt_multiport iptable_filter ip_tables x_tables joydev gamecon snd_pcm_oss snd_mixer_oss analog gameport pcspkr parport_pc snd_intel8x0 parport snd_ac97_codec ac97_bus snd_pcm snd_timer snd evdev forcedeth snd_page_alloc nvidia_agp agpgart Pid: 274, comm: pdflush Not tainted 2.6.31-gentoo #2 Call Trace: ?[] ? dquot_claim_space+0x64/0x150 ?[] ? dquot_claim_space+0x64/0x150 ?[] ? warn_slowpath_common+0x76/0xd0 ?[] ? dquot_claim_space+0x64/0x150 ?[] ? warn_slowpath_null+0x13/0x20 ?[] ? dquot_claim_space+0x64/0x150 ?[] ? ext4_mb_mark_diskspace_used+0x2fe/0x310 ?[] ? ext4_mb_new_blocks+0x300/0x490 ?[] ? __jbd2_journal_file_buffer+0x77/0x1e0 ?[] ? ext4_new_meta_blocks+0xbd/0xd0 ?[] ? ext4_ext_insert_extent+0x1dc/0x1040 ?[] ? ext4_mb_release_context+0xf1/0x300 ?[] ? ext4_mb_new_blocks+0x1c0/0x490 ?[] ? __split_and_process_bio+0x52b/0x770 ?[] ? ext4_ext_get_blocks+0xaae/0xe60 ?[] ? cfq_merged_request+0x0/0x60 ?[] ? elv_merged_request+0x28/0xb0 ?[] ? generic_make_request+0x1d2/0x370 ?[] ? bio_alloc_bioset+0x33/0xf0 ?[] ? check_block_validity+0x39/0xb0 ?[] ? ext4_get_blocks+0x1ea/0x380 ?[] ? submit_bio+0x46/0xd0 ?[] ? mpage_da_map_blocks+0xc0/0x8b0 ?[] ? find_get_pages_tag+0x40/0xb0 ?[] ? pagevec_lookup_tag+0x2a/0x40 ?[] ? write_cache_pages+0xd4/0x360 ?[] ? __mpage_da_writepage+0x0/0x180 ?[] ? jbd2_journal_start+0x7f/0xc0 ?[] ? ext4_da_writepages+0x29c/0x410 ?[] ? ext4_da_writepages+0x0/0x410 ?[] ? do_writepages+0x2b/0x50 ?[] ? writeback_single_inode+0x15b/0x360 ?[] ? generic_sync_sb_inodes+0x24e/0x3c0 ?[] ? writeback_inodes+0x31/0xa0 ?[] ? background_writeout+0x99/0xc0 ?[] ? pdflush+0x0/0x1a0 ?[] ? pdflush+0xdf/0x1a0 ?[] ? background_writeout+0x0/0xc0 ?[] ? kthread+0x7c/0x90 ?[] ? kthread+0x0/0x90 ?[] ? kernel_thread_helper+0x7/0x14 ---[ end trace caa6ce044da37453 ]--- This is info after about 8 hours from last warning (computer are not rebooted within this period): $ sudo quota -u virma Disk quotas for user virma (uid 1002): ???? Filesystem? blocks?? quota?? limit?? grace?? files?? quota?? limit?? grace /dev/mapper/vg-home ??????????????? 7048538? 8718592 9018592??????????? 4139?????? 0?????? 0 $ quotastats Kernel quota version: 6.5.1 Number of dquot lookups: 167609 Number of dquot drops: 166913 Number of dquot reads: 6 Number of dquot writes: 8 Number of quotafile syncs: 44 Number of dquot cache hits: 167603 Number of allocated dquots: 6 Number of free dquots: 2 Number of in use dquot entries (user/group): 4 $ sudo dumpe2fs -h /dev/vg/home dumpe2fs 1.41.3 (12-Oct-2008) Filesystem volume name:?? Last mounted on:????????? /home Filesystem UUID:????????? 6efb6e9c-ffb0-4508-990c-bbd7f33973de Filesystem magic number:? 0xEF53 Filesystem revision #:??? 1 (dynamic) Filesystem features:????? has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize Filesystem flags:???????? signed_directory_hash Default mount options:??? user_xattr acl Filesystem state:???????? clean Errors behavior:????????? Continue Filesystem OS type:?????? Linux Inode count:????????????? 30384128 Block count:????????????? 121528320 Reserved block count:???? 607358 Free blocks:????????????? 3519198 Free inodes:????????????? 29730602 First block:????????????? 0 Block size:?????????????? 4096 Fragment size:??????????? 4096 Reserved GDT blocks:????? 995 Blocks per group:???????? 32768 Fragments per group:????? 32768 Inodes per group:???????? 8192 Inode blocks per group:?? 512 Flex block group size:??? 16 Filesystem created:?????? Fri May 22 02:14:00 2009 Last mount time:????????? Wed Sep 16 15:42:09 2009 Last write time:????????? Wed Sep 16 15:42:09 2009 Mount count:????????????? 1 Maximum mount count:????? 39 Last checked:???????????? Wed Sep 16 15:17:15 2009 Check interval:?????????? 15552000 (6 months) Next check after:???????? Mon Mar 15 14:17:15 2010 Reserved blocks uid:????? 0 (user root) Reserved blocks gid:????? 0 (group root) First inode:????????????? 11 Inode size:??? ????????? 256 Required extra isize:???? 28 Desired extra isize:????? 28 Journal inode:??????????? 8 Default directory hash:?? half_md4 Directory Hash Seed:????? 08226871-9df1-4fe7-ad56-3dbc308c555b Journal backup:?????????? inode blocks Journal size:???????????? 128M $ grep /dev/vg/home /etc/fstab /dev/vg/home??? ??? /home??? ??? ??? ext4??? ??? noatime,acl,usrquota??? 0 2 On Tue, Sep 8, 2009 at 11:04 AM, Pavol Cvengros wrote: > > Hello, > > recently we have build and started to use raid storage with formatted capacity of 4.5T (ext4 formatted, default params). > FS has quota turned on and is exported via NFS to nodes. > If we turn qouta on on this FS and are trying to use it over NFS we get the following: > > ------------[ cut here ]------------ > WARNING: at fs/quota/dquot.c:964 dquot_claim_space+0x181/0x190() > Hardware name: S3210SH > Modules linked in: nfs fscache nfsd lockd auth_rpcgss exportfs sunrpc coretemp hwmon ipmi_si ipmi_msghandler ehci_hcd sr_mod cdrom uhci_hcd floppy usbcore i2c_i801 i2c_core processor 3w_9xxx button thermal > Pid: 268, comm: pdflush Tainted: G ? ? ? ?W ?2.6.30-gentoo-r3_host #1 > Call Trace: > ?[] ? dquot_claim_space+0x181/0x190 > ?[] ? warn_slowpath_common+0x89/0x100 > ?[] ? dquot_claim_space+0x181/0x190 > ?[] ? ext4_mb_mark_diskspace_used+0x423/0x440 > ?[] ? ext4_mb_new_blocks+0x2cf/0x460 > ?[] ? ext4_ext_find_extent+0x307/0x330 > ?[] ? ext4_ext_get_blocks+0x578/0xfc0 > ?[] ? __pagevec_free+0x48/0x70 > ?[] ? blk_rq_bio_prep+0x35/0x130 > ?[] ? ext4_get_blocks_wrap+0x210/0x380 > ?[] ? mpage_da_map_blocks+0xe8/0x750 > ?[] ? pagevec_lookup_tag+0x2e/0x50 > ?[] ? write_cache_pages+0x11c/0x400 > ?[] ? __mpage_da_writepage+0x0/0x190 > ?[] ? ext4_da_writepages+0x329/0x4b0 > ?[] ? do_writepages+0x32/0x70 > ?[] ? __writeback_single_inode+0xb0/0x490 > ?[] ? dequeue_entity+0x23/0x1c0 > ?[] ? generic_sync_sb_inodes+0x316/0x4f0 > ?[] ? writeback_inodes+0x5e/0x110 > ?[] ? wb_kupdate+0xc6/0x160 > ?[] ? pdflush+0x120/0x230 > ?[] ? wb_kupdate+0x0/0x160 > ?[] ? pdflush+0x0/0x230 > ?[] ? kthread+0x64/0xc0 > ?[] ? child_rip+0xa/0x20 > ?[] ? kthread+0x0/0xc0 > ?[] ? child_rip+0x0/0x20 > ---[ end trace cb54e6523e9ab60d ]--- > > fstab entry: > /dev/sdb1 ? ? ? ? ? ? ?/mnt/storage ? ?ext4 ? ? ? ? ? ?noatime,nodiratime,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 > > qith quotaoff on tihs FS, warnings stop. > > Question is if it's safe to use quotas with this problem (warning) or not. Can't afford data damage. > > Thanks, > > Pavol Cvengros > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at ?http://vger.kernel.org/majordomo-info.html > Please read the FAQ at ?http://www.tux.org/lkml/ > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/