From: Dmitry Monakhov <dmonakhov@openvz.org>
To: "Buehl, Reiner" <reiner.buehl@hp.com>
Cc: "linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>,
"linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>
Subject: Re: ext3 filesystem corruption on md RAID1 device
Date: Thu, 20 May 2010 14:56:54 +0400 [thread overview]
Message-ID: <877hmy264p.fsf@openvz.org> (raw)
In-Reply-To: <BA8A2107B0FD8A48AEB0405BDC36CE4F3F48B1DCFD@GVW1115EXC.americas.hpqcorp.net> (Reiner Buehl's message of "Thu, 20 May 2010 10:08:21 +0000")
"Buehl, Reiner" <reiner.buehl@hp.com> writes:
> Hi,
>
> I keep getting ext3 filesystem corruptions on one of my md RAID1 arrays. Shortly after booting, I get messages like the following one:
>
> EXT3-fs error (device md1): htree_dirblock_to_tree: bad entry in
> directory #17269110: rec_len is smaller than minimal - offset=0,
> inode=0, rec_len=0, name_len=0
How does it happen? Do you remember any power failures happened
previously?
What mount options do you used? Probably you use default options
which means that fs was mounted w/o barrier support. Even if was mounted
with barriers, your raid driver may simply ignore it.
Running ext3 without barriers is dangerous if disk support
power-depended wcache on your disks and where is possibility for
a power failure(BUG or OOPS are not dangerous)
Can you please post following info:
1) mount options and cat /proc/mount
2) Write something to your fs and sync;
like follows "echo test > /path_to_your_mnt/test ; sync"
3) dmesg log after stage(2)
IMHO my proved recipe is to disable wcache on all drivers
I do it via "hdparm -W 0 /dev/sdXXX"
It is reasonable to enable NCQ for your driver no decrease performance
penalty due to absence of wcache if you have good chipset.
I use it on my developer host where power failures are frequent (1-2 in
a week) while directories activity is intensive.
> This forces an automatic fsck at the next reboot that fails. The manual fsck.ext3 -y /dev/md1 takes a long time but manages to get a clean FS again. After the reboot, it takes just a few minutes until the first of these messages appear again.
>
> The two disks used in the RAID1 md device are both Seagate ST31000528AS that show no errors in long and short SMART test and Seatools. Memtest shows no memory problems. Two other RAID1 systems connected to the same Intel Ibex Peak 6 port SATA AHCI Controller (rev 06) show no such problems. A RAID5 with 4 Seagate ST3750640AS on a Promise PDC40718 (SATA 300 TX4) also works without problems in the same system.
>
> I saw that sata_sil.c has a blacklist that includes mainly Seagate drives but do not know if this is related to my problem since I my system uses an Intel SATA controller.
>
> Here is the output of sh /usr/lib/linux-kbuild-2.6.32/scripts/ver_linux:
> ---------
> If some fields are empty or look unusual you may have an old version.
> Compare to the current minimal requirements in Documentation/Changes.
>
> Linux bilbo.lan.buehl.net 2.6.32-bpo.4-686 #1 SMP Mon Apr 12 16:20:13 UTC 2010 i686 GNU/Linux
>
> Gnu C 4.3.2
> Gnu make 3.81
> binutils 2.18.0.20080103
> util-linux 2.13.1.1
> mount 2.13.1.1
> module-init-tools 3.4
> e2fsprogs 1.41.3
> Linux C Library 2.7
> Dynamic linker (ldd) 2.7
> Procps 3.2.7
> Net-tools 1.60
> Console-tools 0.2.3
> Sh-utils 6.10
> udev 125
> Modules Loaded dvb_ttpci dvb_core saa7146_vv videodev v4l1_compat saa7146 videobuf_dma_sg videobuf_core ttpci_eeprom ppdev parport_pc lp parport autofs4 acpi_cpufreq cpufreq_powersave cpufreq_stats cpufreq_conservative cpufreq_userspace nfsd exportfs nfs lockd fscache nfs_acl auth_rpcgss sunrpc snd_hda_codec_realtek snd_hda_intel i2c_i801 snd_hda_codec snd_hwdep snd_pcm ati_remote pcspkr snd_seq snd_timer snd_seq_device snd evdev soundcore snd_page_alloc button processor ext3 mbcache dm_mirror dm_region_hash dm_log dm_snapshot dm_mod raid456 async_raid6_recov async_pq raid6_pq async_xor xor async_memcpy async_tx it8213 ide_core usbhid hid usb_storage ata_generic sata_promise ahci r8169 mii libata ehci_hcd uhci_hcd usbcore nls_base thermal fan thermal_sys radeonfb fb_ddc i2c_algo_
bit i2c_core jbd sd_mod scsi_mod crc_t10dif raid1 md_mod
> ---------
>
> Best regards,
> Reiner.
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: Dmitry Monakhov <dmonakhov@openvz.org>
To: "Buehl\, Reiner" <reiner.buehl@hp.com>
Cc: "linux-ide\@vger.kernel.org" <linux-ide@vger.kernel.org>,
"linux-fsdevel\@vger.kernel.org" <linux-fsdevel@vger.kernel.org>
Subject: Re: ext3 filesystem corruption on md RAID1 device
Date: Thu, 20 May 2010 14:56:54 +0400 [thread overview]
Message-ID: <877hmy264p.fsf@openvz.org> (raw)
In-Reply-To: <BA8A2107B0FD8A48AEB0405BDC36CE4F3F48B1DCFD@GVW1115EXC.americas.hpqcorp.net> (Reiner Buehl's message of "Thu, 20 May 2010 10:08:21 +0000")
"Buehl, Reiner" <reiner.buehl@hp.com> writes:
> Hi,
>
> I keep getting ext3 filesystem corruptions on one of my md RAID1 arrays. Shortly after booting, I get messages like the following one:
>
> EXT3-fs error (device md1): htree_dirblock_to_tree: bad entry in
> directory #17269110: rec_len is smaller than minimal - offset=0,
> inode=0, rec_len=0, name_len=0
How does it happen? Do you remember any power failures happened
previously?
What mount options do you used? Probably you use default options
which means that fs was mounted w/o barrier support. Even if was mounted
with barriers, your raid driver may simply ignore it.
Running ext3 without barriers is dangerous if disk support
power-depended wcache on your disks and where is possibility for
a power failure(BUG or OOPS are not dangerous)
Can you please post following info:
1) mount options and cat /proc/mount
2) Write something to your fs and sync;
like follows "echo test > /path_to_your_mnt/test ; sync"
3) dmesg log after stage(2)
IMHO my proved recipe is to disable wcache on all drivers
I do it via "hdparm -W 0 /dev/sdXXX"
It is reasonable to enable NCQ for your driver no decrease performance
penalty due to absence of wcache if you have good chipset.
I use it on my developer host where power failures are frequent (1-2 in
a week) while directories activity is intensive.
> This forces an automatic fsck at the next reboot that fails. The manual fsck.ext3 -y /dev/md1 takes a long time but manages to get a clean FS again. After the reboot, it takes just a few minutes until the first of these messages appear again.
>
> The two disks used in the RAID1 md device are both Seagate ST31000528AS that show no errors in long and short SMART test and Seatools. Memtest shows no memory problems. Two other RAID1 systems connected to the same Intel Ibex Peak 6 port SATA AHCI Controller (rev 06) show no such problems. A RAID5 with 4 Seagate ST3750640AS on a Promise PDC40718 (SATA 300 TX4) also works without problems in the same system.
>
> I saw that sata_sil.c has a blacklist that includes mainly Seagate drives but do not know if this is related to my problem since I my system uses an Intel SATA controller.
>
> Here is the output of sh /usr/lib/linux-kbuild-2.6.32/scripts/ver_linux:
> ---------
> If some fields are empty or look unusual you may have an old version.
> Compare to the current minimal requirements in Documentation/Changes.
>
> Linux bilbo.lan.buehl.net 2.6.32-bpo.4-686 #1 SMP Mon Apr 12 16:20:13 UTC 2010 i686 GNU/Linux
>
> Gnu C 4.3.2
> Gnu make 3.81
> binutils 2.18.0.20080103
> util-linux 2.13.1.1
> mount 2.13.1.1
> module-init-tools 3.4
> e2fsprogs 1.41.3
> Linux C Library 2.7
> Dynamic linker (ldd) 2.7
> Procps 3.2.7
> Net-tools 1.60
> Console-tools 0.2.3
> Sh-utils 6.10
> udev 125
> Modules Loaded dvb_ttpci dvb_core saa7146_vv videodev v4l1_compat saa7146 videobuf_dma_sg videobuf_core ttpci_eeprom ppdev parport_pc lp parport autofs4 acpi_cpufreq cpufreq_powersave cpufreq_stats cpufreq_conservative cpufreq_userspace nfsd exportfs nfs lockd fscache nfs_acl auth_rpcgss sunrpc snd_hda_codec_realtek snd_hda_intel i2c_i801 snd_hda_codec snd_hwdep snd_pcm ati_remote pcspkr snd_seq snd_timer snd_seq_device snd evdev soundcore snd_page_alloc button processor ext3 mbcache dm_mirror dm_region_hash dm_log dm_snapshot dm_mod raid456 async_raid6_recov async_pq raid6_pq async_xor xor async_memcpy async_tx it8213 ide_core usbhid hid usb_storage ata_generic sata_promise ahci r8169 mii libata ehci_hcd uhci_hcd usbcore nls_base thermal fan thermal_sys radeonfb fb_ddc i2c_algo_
bit i2c_core jbd sd_mod scsi_mod crc_t10dif raid1 md_mod
> ---------
>
> Best regards,
> Reiner.
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-05-20 10:56 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-20 10:08 ext3 filesystem corruption on md RAID1 device Buehl, Reiner
2010-05-20 10:56 ` Dmitry Monakhov [this message]
2010-05-20 10:56 ` Dmitry Monakhov
2010-05-20 11:10 ` Buehl, Reiner
2010-05-20 11:27 ` Dmitry Monakhov
2010-05-20 11:27 ` Dmitry Monakhov
2010-05-20 11:35 ` Buehl, Reiner
2010-05-20 11:49 ` Tim Small
2010-05-20 12:04 ` Buehl, Reiner
2010-05-20 14:30 ` tytso
2010-05-21 14:40 ` Buehl, Reiner
2010-05-23 3:21 ` Buehl, Reiner
2010-05-23 5:46 ` Buehl, Reiner
2010-05-27 20:12 ` Jan Kara
2010-05-29 13:48 ` Buehl, Reiner
2010-05-31 20:55 ` Jan Kara
2010-06-01 7:25 ` Buehl, Reiner
[not found] ` <20100601102240.GA4275@quack.suse.cz>
2010-06-18 7:12 ` Buehl, Reiner
2010-06-18 11:09 ` Bug#582275: " Theodore Tso
2010-06-18 11:25 ` Theodore Tso
2010-05-21 4:40 ` Robert Hancock
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877hmy264p.fsf@openvz.org \
--to=dmonakhov@openvz.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-ide@vger.kernel.org \
--cc=reiner.buehl@hp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.