From owner-freebsd-current@FreeBSD.ORG Sat Oct 15 20:09:28 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C36D106564A for ; Sat, 15 Oct 2011 20:09:28 +0000 (UTC) (envelope-from chmiels@o2.pl) Received: from moh1-ve2.go2.pl (moh1-ve2.go2.pl [193.17.41.132]) by mx1.freebsd.org (Postfix) with ESMTP id 1F1438FC0C for ; Sat, 15 Oct 2011 20:09:27 +0000 (UTC) Received: from moh1-ve2.go2.pl (unknown [10.0.0.132]) by moh1-ve2.go2.pl (Postfix) with ESMTP id E389A104400F for ; Sat, 15 Oct 2011 22:09:22 +0200 (CEST) Received: from unknown (unknown [10.0.0.108]) by moh1-ve2.go2.pl (Postfix) with SMTP for ; Sat, 15 Oct 2011 22:09:22 +0200 (CEST) Received: from mail-gy0-f182.google.com [209.85.160.182] by poczta.o2.pl with ESMTP id rlvfUC; Sat, 15 Oct 2011 22:11:06 +0200 Received: by gyd8 with SMTP id 8so2621865gyd.13 for ; Sat, 15 Oct 2011 13:09:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.86.232 with SMTP id s8mr7687767obz.58.1318709358696; Sat, 15 Oct 2011 13:09:18 -0700 (PDT) Received: by 10.182.48.9 with HTTP; Sat, 15 Oct 2011 13:09:18 -0700 (PDT) In-Reply-To: <20110913073153.0a66866f@o2.pl> References: <20110913073153.0a66866f@o2.pl> Date: Sat, 15 Oct 2011 22:09:18 +0200 Message-ID: From: Sebastian Chmielewski To: freebsd-current@freebsd.org X-O2-Trust: 2, 61 X-O2-SPF: neutral Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: -CURRENT (BETA1) zfs pool recognized as corrupted X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chmiels@o2.pl List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Oct 2011 20:09:28 -0000 Currently I have a strange situation when I have running system on my zroot but I can't import this pool when booted from memstick. I was trying to understand what is going on and here are my observations. My partition table is: gpart show -l => 34 250069613 ada0 GPT (119G) 34 128 1 (null) (64k) 162 1886 5 (null) (943k) 2048 16777216 2 linux0 (8.0G) 16779264 33554432 3 home0 (16G) 50333696 199735951 4 disk0 (95G) but in /dev/gpt I only see: ls /dev/gpt/* /dev/gpt/home0 /dev/gpt/home0.eli /dev/gpt/linux0 (home is encrypted). I have a regular system installed and running on this pool. Filesystem to boot from is called 'zroot' and it can only boot when my whole loader.conf is used. With only zfs.ko booting stops with boot prompt asking for filesystem to boot from, menu shows all my gpt partitions and id's correctly so I don't understand why it can't find it. Below is my loader.conf: # Kernel Options kern.ipc.shmseg=1024 kern.ipc.shmmni=1024 kern.maxproc=10000 # GEOM encrypted device geom_eli_load="YES" geom_label_load="YES" geom_mbr_load="YES" # Intel System management bus smb_load="YES" smbus_load="YES" ichsmb_load="YES" ichwd_load="YES" # Use AHCI instead of ataahci ahci_load="YES" # AHCI deprecated ataahci #ataahci_load="NO" ataintel_load="YES" # Intel HDA sound driver snd_hda_load="YES" # PS/2 Mouse psm_load="NO" # USB ehci_load="YES" ohci_load="YES" uhci_load="YES" # USB mouse ums_load="YES" # POSIX Semaphores # Required by Firefox sem_load="YES" # ACPI drivers acpi_load="YES" acpi_video_load="YES" acpi_ibm_load="YES" acpi_dock_load="YES" # Linuxulator linux_load="YES" # Linux specific pseudo-devices lindev_load="YES" # Bluetooth driver ng_ubt_load="YES" # Intel Centrino driver iwn6000fw_load="YES" iwn6050fw_load="YES" if_iwn_load="YES" # Realtek driver if_re_load="YES" # Intel wireless driver #if_wpi_load="YES" legal.intel_ipw.license_ack=1 legal.intel_iwi.license_ack=1 legal.intel_wpi.license_ack=1 legal.intel_iwn.license_ack=1 # Virtualbox driver (kmod) vboxdrv_load="YES" # ATAPICAM module # required to write DVD atapicam_load="YES" # USB Printer # required by HP D2360 ulpt_load="NO" ugen_load="YES" # Network pseudo-interface which supports failover if_lagg_load="YES" # Joystick support joy_load="YES" # Thermal sensor for Core2 Duo coretemp_load="YES" # Be verbose on ACPI hw.acpi.verbose="1" hw.acpi.reset_video="0" debug.acpi.resume_beep="1" # Firewire drivers firewire_load="YES" fwe_load="YES" fwip_load="YES" # PF firewall driver, # be carefull, when enabled it disables all network traffic, even ping ipfw_load="NO" pf_load="NO" # Trusted Platform Module tpm_load="YES" # TMPFS driver # I'm using mdmfs for /tmp now tmpfs_load="NO" # Boot splash screen #hint.sc.0.flags=0x0180 #hint.sc.0.vesa_mode=0x0118 loader_logo="beastie" #vesa_load="YES" #splash_pcx_load="YES" #bitmap_load="YES" #bitmap_name="/boot/splash.pcx" # Kernel debugger through firewire and dcons dcons_load="YES" dcons_gdb=1 dcons_crom_load="YES" boot_multicons="YES" hw.firewire.phydma_enable=1 #hw.firewire.dcons_crom.force_console=1 # ZFS driver and settings zfs_load="YES" # Disable ZFS prefetching # http://southbrain.com/south/2008/04/the-nightmare-comes-slowly-zfs.html # Increases overall speed of ZFS, but when disk flushing/writes occur, # system is less responsive (due to extreme disk I/O). # NOTE: 8.0-RC1 disables this by default on systems <= 4GB RAM anyway vfs.zfs.prefetch_disable=1 # Increase vm.kmem_size to allow for ZFS ARC to utilise more memory. #vm.kmem_size="512M" #vm.kmem_size_max="1024M" #vfs.zfs.arc_max="100M" # Disable UMA (uma(9)) for ZFS; amd64 was moved to exclusively use UMA # on 2010/05/24. # http://lists.freebsd.org/pipermail/freebsd-stable/2010-June/057162.html #vfs.zfs.zio.use_uma="0" # Decrease ZFS txg timeout value from 30 (default) to 5 seconds. This # should increase throughput and decrease the "bursty" stalls that # happen during immense I/O with ZFS. # http://lists.freebsd.org/pipermail/freebsd-fs/2009-December/007343.html # http://lists.freebsd.org/pipermail/freebsd-fs/2009-December/007355.html vfs.zfs.txg.timeout="5" # WebCam and DVB support cuse4bsd_load="YES" # Memory Stick and SD Card controller mmc_load="YES" mmcsd_load="YES" sdhci_load="YES" # 3G modem card u3g_load="YES" # Load File-System Support libiconv_load="YES" libmchain_load="YES" cd9660_iconv_load="YES" msdosfs_iconv_load="YES" ntfs_load="NO" ntfs_iconv_load="NO" udf_load="YES" udf_iconv_load="YES" # Desktop optimizations # see http://forums.freebsd.org/showthread.php?p=123657#post123657 # boot delay autoboot_delay=10 beastie_disable="NO" # page share factor per proc vm.pmap.shpgperproc=512 # open files kern.maxfiles=49312 kern.maxfilesperproc=16384 # avoid additional 128 interrupts per second per core hint.atrtc.0.clock=0 # do not power devices without driver hw.pci.do_power_nodriver=3 # reduce sound generated interrupts hint.pcm.0.buffersize=65536 hint.pcm.1.buffersize=65536 hint.pcm.2.buffersize=65536 hw.snd.feeder_buffersize=65536 hw.snd.latency=7 # ahci power management # check: dmesg | grep ahcich hint.ahcich.0.pm_level=5 hint.ahcich.1.pm_level=5 hint.ahcich.2.pm_level=5 hint.ahcich.3.pm_level=5 # Disable throttling, use C2 instead (in rc.conf) #hint.p4tcc.0.disabled=1 #hint.acpi_throttle.0.disabled=1 # To increase inactivity periods we should reduce interrupt rate as much as possible by adding to loader.conf # http://wiki.freebsd.org/TuningPowerConsumption kern.hz=100 # Enable support for synaptics touchpad hw.psm.synaptics_support="1" debug.psm.loglevel="1" # ZFS Root file system vfs.root.mountfrom="zfs:zroot" 2011/9/13 Sebastian Chmielewski > On Wed, 7 Sep 2011 23:55:23 +0200 > Sebastian Chmielewski wrote: > > > hi > > I've tried to import my zfs pool on: > > FreeBSD-9.0-BETA1-amd64-memstick.img > > My system currently runs 9.0-BETA1 and pool works correctly. > > zpool import returns: > > > > pool: zroot > > id: 3239789026273107181 > > state: FAULTED > > status: One or more devices contains corrupted data. > > action: The pool cannot be imported due to damaged devices or data. > > The pool may be active on another system, but can be imported using > > the '-f' flag. > > see: http://www.sun.com/msg/ZFS-8000-5E > > config: > > > > zroot FAULTED corrupted data > > 9327291201483595311 UNAVAIL corrupted data > > > > The same symptoms are for FreeBSD-9.0-BETA2-amd64-memstick.img. > > Andriy Gapon suggests that it's the same as issue described in this thread, > http://lists.freebsd.org/pipermail/freebsd-current/2011-May/024888.html > I've checked that mounting root and importing pool from command line > doesn't > work. > Pool can be imported and used on 8.2 and I'm running 9.0 r225439M, only > when > booted from memstick I can't import it. > > best regards, > -- > Sebastian Chmielewski * jid:chmielsster@gmail.com * gg:3336919 * > icq:224161389 > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >