From owner-freebsd-questions@freebsd.org Sat Jul 25 07:33:54 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4F3649AAD51 for ; Sat, 25 Jul 2015 07:33:54 +0000 (UTC) (envelope-from nibbana@gmx.us) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B453711CA for ; Sat, 25 Jul 2015 07:33:52 +0000 (UTC) (envelope-from nibbana@gmx.us) Received: from mail.gmx.com ([72.251.118.47]) by mail.gmx.com (mrgmx101) with ESMTPA (Nemesis) id 0MLS74-1ZILjM2O2s-000ZVv for ; Sat, 25 Jul 2015 09:33:42 +0200 Date: Fri, 24 Jul 2015 23:33:38 -0800 From: "CK" To: Cc: Subject: Endless Data Loss Reply-To: "CK" X-Mailer: UMail v1.0 Message-ID: <0MRCCJ-1ZUCcr1rAt-00UeQk@mail.gmx.com> X-Provags-ID: V03:K0:TizWpzxgquaXCV5ABSRAqSN3N/AChz/H8QvQNDykass+BwxreIL /XmKWFntqTim/uuxalkAhiQiJocojBCJQbKPRCgi8hqoFEmn2sS/6g7YkvA7nR8V2AHYnMO 5Yl31Y3zC/QoqNYgSnx4EJ6xU5pB1C+3BO9wckJf3oyUikXhFctpi85Vu9zXWNbcC6WSlXV 2L31rSHgy2fOTFMXqQiCw== X-UI-Out-Filterresults: notjunk:1;V01:K0:28wU8UnzbN0=:6bDeMrsVUCP/tZSIj5sjBc gIoE117yKosDDQQDBLWfKQ15OytewyyqoSFILzStXV++GEa9ZnbwzCBdXVZ/O9KtZLs59JTfo 1NG8xDlsYtwk3l2CHcoVEbpKnH+rv7E5Mky1GhGLckRaqwb3IcQd25u+c5Y6+C30Q8vpmFCXa eFlLc/bStDPRdKke1yy/l28jBdVrtpHJHO9V2hXM60mGGs10uTf+ZDeO5i/l859tJ2tT6kswM 6mTc+P+RGJfeqOirv9933RwJKnFIZmusnxudi/h+hI8Lou0d1mBaK77X93sHokNZdnSCOzMW0 EDGvvWBOcJGVaxGCtQ5VTDVt0uWwsvfhySruj58xOtQyuvmA9kvT7kO5aY8Yb3Qwui9KPBeF7 8vKfZSnB2VQXVHgk6aKGqitaSFchCSfRSdk6KPTGhKRj9qVWFeixmVfVqDiPfORqlBhKyrfpf zCdT6gncqKHW74yFhxZ/y17ksZUiYntUZHVRNXkdrdwPBPoSjmxVIpM2MBgz37krMSkRuTvBH TQrzoSF97FS+mSmV7xz8pzd24c+X6Cg72uik7AWZUdabJqh7WDEULqWFw+MrGndSE7xFz4R4T GIn+GPY5JtM0j8QHjszRc/7oR2YDcLzvJQ+F8GQuaGsV/EkgFNi/VZx/phaN0OhEK4BEm8eCa e1YKhfiQzsnNHlnECNxURO1ElzHtqc90WDc9bEeEX78Xpzw== X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jul 2015 07:33:54 -0000 Hi readers, In the last 2 years, I have upgraded from 4.11 to 9.2 then 9.3 releases, and since upgrading to the 9 series, I have experienced endless data loss - every time I reboot my computer, massive numbers of files vanish - 20 - 50 - a lot. And it's driving me crazy. I don't expect to get any fixes here, but something is wrong with the code - it's happening on ATA drives, USB flash drives, a few of each kind. So, it's definitely not a hardware problem. I wrote about this 2 months ago or so, and was advised to run a utility on my hard drives - and the utility showed some wear, but this is happening on USB sticks and cards as well, and has nothing to do with old ATA drive wear. I searched Google for data loss on FreeBSD, and I see that many others have this problem as well. After 20 years, I am not keen on switching away from FreeBSD, but the data loss is just killing me. Every day, I am losing dozens of files. I am backing up, but that is not the best solution, because it's easy to backup and mirror the data loss as well, and it's a pain to constantly have the stress of not knowing if critical files exist or not, and constantly matching directories/archives to see which are complete and current. FreeBSD forums blocks my access, possibly because I don't have a high-speed connection, so I can't read the material there. Sometimes the loss is on newly created/saved files, sometimes on ancient files, sometimes on ATA, sometimes on USB. I can't find any pattern, other than it always happens on a reboot, and it seems slightly worse with SoftUpdates+Journaling. I know this is not an easy thing to analyze, but I never ever had these problems with 4.11 on the same hardware. No problems at all. But with the 9 series, a problem with every reboot. Any advice? PS. One thing I notice is that if I ever ensure correct permissions of the .sujournal files, but setting them to the same values that they already have, upon reboot I get an error message to the effect "timestamp on journal doesn't match last mount time", and then there is a fallback to a full fsck, most always followed by some cleared inodes and file loss. Helpful hint or not, I don't know. -- Copyright (c) 1992-2014 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.3-RELEASE #5: Sat Jul 18 23:07:35 AKDT 2015 root@localhost.earthlink.net:/usr/obj/umass/src/sys/MYKERN i386 gcc version 4.2.1 20070831 patched [FreeBSD] CPU: VIA Nehemiah (666.64-MHz 686-class CPU) Origin = "CentaurHauls" Id = 0x698 Family = 0x6 Model = 0x9 Stepping = 8 Features=0x381b83f VIA Padlock Features=0xdd real memory = 536870912 (512 MB) avail memory = 482418688 (460 MB) cryptosoft0: on motherboard padlock0: on motherboard acpi0: on motherboard acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 1def0000 (3) failed cpu0: on acpi0 attimer0: port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 atrtc0: port 0x70-0x73 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: on hostb0 agp0: aperture size is 128M pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: mem 0xd8000000-0xdbffffff,0xdc000000-0xdcffffff irq 15 at device 0.0 on pci1 drm0: on vgapci0 info: [drm] AGP at 0xd0000000 128MB info: [drm] Initialized via 2.11.1 20070202 vgapci0: Boot video device uhci0: port 0xd000-0xd01f irq 15 at device 16.0 on pci0 usbus0 on uhci0 uhci1: port 0xd400-0xd41f irq 5 at device 16.1 on pci0 usbus1 on uhci1 uhci2: port 0xd800-0xd81f irq 11 at device 16.2 on pci0 usbus2 on uhci2 ehci0: mem 0xde000000-0xde0000ff irq 10 at device 16.3 on pci0 usbus3: EHCI version 1.0 usbus3 on ehci0 isab0: at device 17.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xdc00-0xdc0f at device 17.1 on pci0 ata0: at channel 0 on atapci0 ata1: at channel 1 on atapci0 pcm0: port 0xe000-0xe0ff irq 11 at device 17.5 on pci0 pcm0: pcm0: uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 ppc0: port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus0: on ppc0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 orm0: at iomem 0xd0000-0xd7fff pnpid ORM0000 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 acpi_throttle0: on cpu0 Timecounters tick every 1.000 msec usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 ada0 at ata0 bus 0 scbus0 target 0 lun 0 ada0: ATA-5 device ada0: Serial Number WD-WMA9T1222658 ada0: 100.000MB/s transfers (UDMA5, PIO 8192bytes) ada0: 38166MB (78165360 512 byte sectors: 16H 63S/T 16383C) ada0: Previously was known as ad0 Timecounter "TSC" frequency 666641179 Hz quality 800 Root mount waiting for: usbus3 usbus2 usbus1 usbus0 uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered Root mount waiting for: usbus3 Root mount waiting for: usbus3 uhub3: 6 ports with 6 removable, self powered Root mount waiting for: usbus3 ugen3.2: at usbus3 uhub4: on usbus3 uhub4: 4 ports with 4 removable, self powered Root mount waiting for: usbus3 Root mount waiting for: usbus3 ugen3.3: at usbus3 umass0: on usbus3 da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 da0: Removable Direct Access SCSI-6 device da0: Serial Number 4C530001640512116413 da0: 40.000MB/s transfers da0: 29812MB (61056064 512 byte sectors: 255H 63S/T 3800C) da0: quirks=0x2 ugen3.4: at usbus3 umass1: on usbus3 Trying to mount root from ufs:/dev/ada0p2 [rw]... da1 at umass-sim1 bus 1 scbus3 target 0 lun 0 da1: Removable Direct Access SCSI-0 device da1: Serial Number 058F63666438 da1: 40.000MB/s transfers da1: 30436MB (62333952 512 byte sectors: 255H 63S/T 3880C) da1: quirks=0x2 GEOM_ELI: Device ada0p3.eli created. GEOM_ELI: Encryption: 3DES-CBC 192 GEOM_ELI: Crypto: software GEOM_ELI: Device ada0p4.eli created. GEOM_ELI: Encryption: AES-XTS 128 GEOM_ELI: Crypto: software tun0: link state changed to UP cpu I686_CPU ident MYKERN options ATA_CAM # Handle legacy controllers with CAM options CD9660 # ISO 9660 Filesystem options FFS # Berkeley Fast Filesystem options GEOM_PART_GPT # REQ'D FOR BOOTING! options GEOM_ELI # Crypto Disks. options INET # InterNETworking #options INET6 # IPv6 communications protocols options PADLOCK_RNG # VIA Padlock RNG options SCHED_ULE # options SOFTUPDATES # Enable FFS soft updates support options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options SYSVSHM # SYSV-style shared memory options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions device crypto # cryptosoft0: on motherboard device padlock # padlock0: on motherboard (Via C3/Eden/C7) device acpi # acpi0: on motherboard # acpi0: Power Button (fixed) # acpi0: reservation of 0, a0000 (3) failed # acpi0: reservation of 100000, 1def0000 (3) failed # cpu0: on acpi0 # attimer0: # port 0x40-0x43 irq 0 on acpi0 # Timecounter "i8254" frequency 1193182 Hz quality 0 # Event timer "i8254" frequency 1193182 Hz quality 100 # atrtc0: # port 0x70-0x73 irq 8 on acpi0 # Event timer "RTC" frequency 32768 Hz quality 0 # Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 # acpi_timer0: <24-bit timer at 3.579545MHz> # port 0x408-0x40b on acpi0 # acpi_button0: on acpi0 # pcib0: # port 0xcf8-0xcff on acpi0 # pci0: on pcib0 # acpi_throttle0: on cpu0 device agp # agp0: on hostb0 # agp0: aperture size is 128M device pci # pcib1: at device 1.0 on pci0 # pci1: on pcib1 # vgapci0: # mem 0xd8000000-0xdbffffff,0xdc000000-0xdcffff device drm # drm0: on vgapci0 device viadrm # info: [drm] AGP at 0xd0000000 128MB # info: [drm] Initialized via 2.11.1 20070202 device usb # device uhci # uhci0: # port 0xd000-0xd01f irq 11 # at device 16.0 on pci0 # on usbus0 on uhci0 # uhci1: # port 0xd400-0xd41f irq 3 # at device 16.1 on pci0 # on usbus1 on uhci1 # uhci2: # port 0xd800-0xd81f irq 10 # at device 16.2 on pci0 # on usbus2 on uhci2 device ehci # ehci0: # mem 0xde000000-0xde0000ff irq 5 # at device 16.3 on pci0 # on pci0 # usbus3: EHCI version 1.0 # usbus3 on ehci0 device scbus # SCSI bus (required for ATA/SCSI) device pass # Passthrough device (direct ATA/SCSI access) device ata # atapci0: # port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376 # ata0: at channel 0 on atapci0 # ata1: at channel 1 on atapci0 # ada0 at ata0 bus 0 scbus0 target 0 lun 0 # ada0: ATA-5 device # ada0: 100.000MB/s transfers (UDMA5, PIO 8192 bytes) device sound # Generic sound driver (required) device snd_via8233 # pcm0: # port 0xe000-0xe0ff irq 10 # at device 17.5 on pci0 # pcm0: # pcm0: device uart # uart0: <16550 or compatible> # port 0x3f8-0x3ff irq 4 # flags 0x10 on acpi0 device ppc # ppc0: # port 0x378-0x37f irq 7 # on acpi0 # ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode device ppbus # ppbus0: on ppc0 device lpt # lpt0: on ppbus0, Interrupt-driven port device ppi # on ppbus0 device atkbdc # atkbdc0: # port 0x60,0x64 irq 1 # on acpi0 device atkbd # atkbd0: irq 1 on atkbdc0, [GIANT-LOCKED] # kbd0 at atkbd0 device psm # psm0: irq 12 on atkbdc0, [GIANT-LOCKED] # psm0: model Generic PS/2 mouse, device ID 0 device sc # sc0: at flags 0x100 on isa0 # sc0: VGA <16 virtual consoles, flags=0x300> device vga # vga0: at # port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 #device vr # # port 0xe800-0xe8ff mem 0xde001000-0xde0010ff irq 11 # at device 18.0 on pci0 # vr0: Quirks: 0x0 # vr0: Revision: 0x74 #device miibus # miibus0: on vr0 # ukphy0: # PHY 1 on miibus0 # ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, # 100baseTX-FDX, auto, auto-flow # vr0: Ethernet address: 00:40:63:df:10:d2 device umass # umass0: on usbus3 # umass0: SCSI over Bulk-Only; quirks = 0x4001 # umass0:3:0:-1: Attached to scbus3 device da # da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 # da0: # Removable Direct Access SCSI-0 device # da0: 40.000MB/s transfers # da0: 30436MB # da0: quirks=0x2 device cd # cd0 at ata1 bus 0 scbus1 target 0 lun 0 # cd0: # Removable CD-ROM SCSI-0 device # cd0: 33.300MB/s transfers # (UDMA2, ATAPI 12 bytes, PIO 65534 bytes) # cd0: cd present [274040 x 2048 byte records] device bpf # Berkeley packet filter device ether # Ethernet support device loop # Network loopback device random # Entropy device device splash # Syscons saver device tun # Packet tunnel