Re: -CURRENT (BETA1) zfs pool recognized as corrupted

From: Sebastian Chmielewski <chmiels_at_o2.pl>
Date: Sat, 15 Oct 2011 22:09:18 +0200
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 <chmiels_at_o2.pl>

> On Wed, 7 Sep 2011 23:55:23 +0200
> Sebastian Chmielewski <chmiels_at_o2.pl> 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_at_gmail.com * gg:3336919 *
> icq:224161389
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>
Received on Sat Oct 15 2011 - 18:09:28 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:19 UTC