fsck_ufs always exits on signal 11 on a VPS (virtio) with SU+J

BBlister bblister at gmail.com
Sat Sep 14 06:04:23 UTC 2013


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 at 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 at 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<FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2>
  Features2=0x80802001<SSE3,CX16,POPCNT,HV>
  AMD Features=0x20100800<SYSCALL,NX,LM>
  AMD Features2=0x1<LAHF>
real memory  = 536870912 (512 MB)
avail memory = 503635968 (480 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <BOCHS  BXPCAPIC>
ioapic0: Changing APIC ID to 1
ioapic0 <Version 1.1> irqs 0-23 on motherboard
acpi0: <BOCHS BXPCRSDT> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71,0x72-0x77 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
hpet0: <High Precision Event Timer> 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: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci_link4: Unable to route IRQs: AE_NOT_FOUND
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX3 WDMA2 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xc000-0xc00f at device 1.1 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ata1: <ATA channel> at channel 1 on atapci0
uhci0: <Intel 82371SB (PIIX3) USB controller> port 0xc020-0xc03f irq 11 at
device 1.2 on pci0
usbus0: controller did not stop
usbus0 on uhci0
pci0: <bridge> at device 1.3 (no driver attached)
vgapci0: <VGA-compatible display> mem
0xf0000000-0xf1ffffff,0xf2000000-0xf2000fff at device 2.0 on pci0
virtio_pci0: <VirtIO PCI Network adapter> port 0xc040-0xc05f mem
0xf2020000-0xf2020fff irq 11 at device 3.0 on pci0
vtnet0: <VirtIO Networking Adapter> on virtio_pci0
virtio_pci0: host features: 0x511fffa3
<RingIndirect,NotifyOnEmpty,RxModeExtra,VLanFilter,RxMode,ControlVq,Status,MrgRxBuf,TxUFO,TxTSOECN,TxTSOv6,TxTSOv4,RxUFO,RxECN,RxTSOv6,RxTSOv4,MacAddress,RxChecksum,TxChecksum>
virtio_pci0: negotiated features: 0x110fbba3
<RingIndirect,NotifyOnEmpty,VLanFilter,RxMode,ControlVq,Status,MrgRxBuf,TxTSOECN,TxTSOv6,TxTSOv4,RxECN,RxTSOv6,RxTSOv4,MacAddress,RxChecksum,TxChecksum>
vtnet0: Ethernet address: de:db:ee:d9:35:32
virtio_pci1: <VirtIO PCI Block adapter> port 0xc080-0xc0bf mem
0xf2030000-0xf2030fff irq 11 at device 4.0 on pci0
vtblk0: <VirtIO Block Adapter> on virtio_pci1
virtio_pci1: host features: 0x51000294
<RingIndirect,NotifyOnEmpty,FlushCmd,SCSICmds,DiskGeometry,MaxNumSegs>
virtio_pci1: negotiated features: 0x10000214
<RingIndirect,FlushCmd,DiskGeometry,MaxNumSegs>
vtblk0: 80000MB (163840000 512 byte sectors)
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
orm0: <ISA Option ROM> at iomem 0xc9000-0xd0fff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
attimer0: <AT timer> 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: <Intel> at usbus0
uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
pass0 at ata1 bus 0 scbus1 target 0 lun 0
pass0: <QEMU QEMU DVD-ROM 0.12> 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: <QEMU 0.12.5> 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.


More information about the freebsd-stable mailing list