From owner-freebsd-stable@FreeBSD.ORG Sat Sep 14 06:04:23 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 090A3890 for ; Sat, 14 Sep 2013 06:04:23 +0000 (UTC) (envelope-from bblister@gmail.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DFA6323DB for ; Sat, 14 Sep 2013 06:04:22 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VKixr-0003ZL-RJ for freebsd-stable@freebsd.org; Fri, 13 Sep 2013 23:04:15 -0700 Date: Fri, 13 Sep 2013 23:04:15 -0700 (PDT) From: BBlister To: freebsd-stable@freebsd.org Message-ID: <1379138655839-5843931.post@n5.nabble.com> Subject: fsck_ufs always exits on signal 11 on a VPS (virtio) with SU+J MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Sep 2013 06:04:23 -0000 HI, On a VPS machine with virtio drivers, whenever the fsck_ufs is iniated to check a filesystem in autoboot that has softupdates journaling SU+J , from /etc/rc.d/fsck the fsck_ufs exits with SIGNAL 11, and has the very bad consequent, that the reboot is unable to be completed. I have to connect the console, press enter at /bin/sh prompt and issue the fsck /dev/vtbd0s1? by hand. Of course I have to press 'N' to the prompt of using the journal file. This happens on 2 out of 5 partitions every time (on /tmp and on /var, which I believe carry the most write tasks). Because it is very annoying for a headless server that should be up 24/7, I removed all journaling from all filesystems (tunefs -j disable ...) and from then I do not have any problem, during the automatic fsck. Currently, I cannot do many experiments with this system, because it is a production server. But if you have something to propose that wont affect the uptime of it, I could do it. I will do the 9.2 upgrade when we have the release (perhaps this fixes it?). I do not have any other VPS yet, so I cannot do extensive experiments. I am just informing that something wrong exist with virtio drivers and fsck journal. On all other physical servers journaling works as expected. My system is: FreeBSD XXXXX 9.1-STABLE FreeBSD 9.1-STABLE #1 r252094: Sat Jun 22 13:01:50 EEST 2013 root@XXX:/usr/obj/usr/src/sys/arch amd64 while my dmesg is: Copyright (c) 1992-2013 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 9.1-STABLE #1 r252094: Sat Jun 22 13:01:50 EEST 2013 root@aXXXXXX:/usr/obj/usr/src/sys/arch amd64 gcc version 4.2.1 20070831 patched [FreeBSD] CPU: QEMU Virtual CPU version 0.12.5 (2266.75-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x623 Family = 0x6 Model = 0x2 Stepping = 3 Features=0x783fbfd Features2=0x80802001 AMD Features=0x20100800 AMD Features2=0x1 real memory = 536870912 (512 MB) avail memory = 503635968 (480 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: ioapic0: Changing APIC ID to 1 ioapic0 irqs 0-23 on motherboard acpi0: on motherboard acpi0: Power Button (fixed) cpu0: on acpi0 atrtc0: port 0x70-0x71,0x72-0x77 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 100000000 Hz quality 950 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <24-bit timer at 3.579545MHz> port 0xb008-0xb00b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci_link4: Unable to route IRQs: AE_NOT_FOUND isab0: at device 1.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xc000-0xc00f at device 1.1 on pci0 ata0: at channel 0 on atapci0 ata1: at channel 1 on atapci0 uhci0: port 0xc020-0xc03f irq 11 at device 1.2 on pci0 usbus0: controller did not stop usbus0 on uhci0 pci0: at device 1.3 (no driver attached) vgapci0: mem 0xf0000000-0xf1ffffff,0xf2000000-0xf2000fff at device 2.0 on pci0 virtio_pci0: port 0xc040-0xc05f mem 0xf2020000-0xf2020fff irq 11 at device 3.0 on pci0 vtnet0: on virtio_pci0 virtio_pci0: host features: 0x511fffa3 virtio_pci0: negotiated features: 0x110fbba3 vtnet0: Ethernet address: de:db:ee:d9:35:32 virtio_pci1: port 0xc080-0xc0bf mem 0xf2030000-0xf2030fff irq 11 at device 4.0 on pci0 vtblk0: on virtio_pci1 virtio_pci1: host features: 0x51000294 virtio_pci1: negotiated features: 0x10000214 vtblk0: 80000MB (163840000 512 byte sectors) atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] orm0: at iomem 0xc9000-0xd0fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 attimer0: at port 0x40 on isa0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 wbwd0: HEFRAS and EFER do not align: EFER 0x2e DevID 0xff DevRev 0xff CR26 0xff Timecounters tick every 10.000 msec ipfw2 (+ipv6) initialized, divert enabled, nat enabled, default to accept, logging disabled usbus0: 12Mbps Full Speed USB v1.0 ugen0.1: at usbus0 uhub0: on usbus0 pass0 at ata1 bus 0 scbus1 target 0 lun 0 pass0: Removable CD-ROM SCSI-0 device pass0: 16.700MB/s transfers (WDMA2, ATAPI 12bytes, PIO 65534bytes) Timecounter "TSC-low" frequency 1133374638 Hz quality 800 Root mount waiting for: usbus0 uhub0: 2 ports with 2 removable, self powered Root mount waiting for: usbus0 ugen0.2: at usbus0 Trying to mount root from ufs:/dev/vtbd0s1a [rw]... -- View this message in context: http://freebsd.1045724.n5.nabble.com/fsck-ufs-always-exits-on-signal-11-on-a-VPS-virtio-with-SU-J-tp5843931.html Sent from the freebsd-stable mailing list archive at Nabble.com.