kern/156781: zfs is loosing the snapshot directory,
bmeyer at mesoft.com.au
bmeyer at mesoft.com.au
Mon May 2 23:40:10 UTC 2011
>Number: 156781
>Category: kern
>Synopsis: zfs is loosing the snapshot directory,
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon May 02 23:40:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Charlie &
>Release: FreeBSD 8.2-STABLE sparc64
>Organization:
MicroElectronic SOFTworks Pty Ltd
>Environment:
System: FreeBSD helios.mesoft.com.au 8.2-STABLE FreeBSD 8.2-STABLE #1: Sun Apr 24 21:28:12 EST 2011 root at helios.mesoft.com.au:/usr/obj/usr/src/sys/GENERIC sparc64
Sun-Fire V120, FreeBSD 8.2
>Description:
----------------------------------------------------------------------
Command Log Output:
helios.mesoft.com.au : Tue May 3 08:15:30 EST 2011 : /tmp
-> 1013# hostname
helios.mesoft.com.au
helios.mesoft.com.au : Tue May 3 08:15:32 EST 2011 : /tmp
-> 1014# uname -a
FreeBSD helios.mesoft.com.au 8.2-STABLE FreeBSD 8.2-STABLE #1: Sun Apr 24 21:28:12 EST 2011 root at helios.mesoft.com.au:/usr/obj/usr/src/sys/GENERIC sparc64
helios.mesoft.com.au : Tue May 3 08:15:34 EST 2011 : /tmp
-> 1015# gmirror status
Name Status Components
mirror/gm0 COMPLETE da0
da1
helios.mesoft.com.au : Tue May 3 08:15:38 EST 2011 : /tmp
-> 1016# zpool status -v
pool: pool0
state: ONLINE
scrub: scrub completed after 0h2m with 0 errors on Tue May 3 07:15:24 2011
config:
NAME STATE READ WRITE CKSUM
pool0 ONLINE 0 0 0
mirror/gm0h ONLINE 0 0 0
errors: No known data errors
helios.mesoft.com.au : Tue May 3 08:15:42 EST 2011 : /tmp
-> 1017# zfs list
NAME USED AVAIL REFER MOUNTPOINT
pool0 5.00G 263G 24K /pool0
pool0/databases 128M 263G 128M /pool0/databases
pool0/home 45.2M 263G 45.2M /pool0/home
pool0/mail 4.83G 263G 4.83G /pool0/mail
helios.mesoft.com.au : Tue May 3 08:15:49 EST 2011 : /tmp
-> 1018# zfs list -t snapshot
no datasets available
helios.mesoft.com.au : Tue May 3 08:15:53 EST 2011 : /tmp
-> 1019# zfs snapshot pool0/mail at test
helios.mesoft.com.au : Tue May 3 08:16:07 EST 2011 : /tmp
-> 1020# zfs snapshot pool0/home at test
helios.mesoft.com.au : Tue May 3 08:16:19 EST 2011 : /tmp
-> 1021# zfs list -t snapshot
NAME USED AVAIL REFER MOUNTPOINT
pool0/home at test 0 - 45.2M -
pool0/mail at test 59K - 4.83G -
helios.mesoft.com.au : Tue May 3 08:16:22 EST 2011 : /tmp
-> 1022# ls -l /pool0/mail/.zfs
total 0
dr-xr-xr-x 2 root wheel 2 Jun 16 2010 snapshot
helios.mesoft.com.au : Tue May 3 08:16:32 EST 2011 : /tmp
-> 1023# ls -l /pool0/home/.zfs
ls: snapshot: Bad file descriptor
total 0
helios.mesoft.com.au : Tue May 3 08:17:08 EST 2011 : /tmp
-> 1024# zfs destroy pool0/mail at test
helios.mesoft.com.au : Tue May 3 08:17:52 EST 2011 : /tmp
-> 1025# zfs destroy pool0/home at test
helios.mesoft.com.au : Tue May 3 08:18:05 EST 2011 : /tmp
-> 1026# zfs list -t snapshot
no datasets available
helios.mesoft.com.au : Tue May 3 08:22:13 EST 2011 : /tmp
-> 1027# zfs upgrade
This system is currently running ZFS filesystem version 4.
All filesystems are formatted with the current version.
helios.mesoft.com.au : Tue May 3 08:22:18 EST 2011 : /tmp
-> 1028# zpool upgrade
This system is currently running ZFS pool version 15.
All pools are formatted using this version.
helios.mesoft.com.au : Tue May 3 08:22:47 EST 2011 : /tmp
-> 1029# zdb
pool0
version=15
name='pool0'
state=0
txg=908395
pool_guid=2223392563195472406
hostid=1798529942
hostname='helios.mesoft.com.au'
vdev_tree
type='root'
id=0
guid=2223392563195472406
children[0]
type='disk'
id=0
guid=8062368332970890863
path='/dev/mirror/gm0h'
whole_disk=0
metaslab_array=23
metaslab_shift=31
ashift=9
asize=293168742400
is_log=0
DTL=40
helios.mesoft.com.au : Tue May 3 08:24:05 EST 2011 : /tmp
-> 1030# zpool scrub pool0
helios.mesoft.com.au : Tue May 3 08:31:22 EST 2011 : /tmp
-> 1031# zpool status -v
pool: pool0
state: ONLINE
scrub: scrub completed after 0h2m with 0 errors on Tue May 3 08:26:35 2011
config:
NAME STATE READ WRITE CKSUM
pool0 ONLINE 0 0 0
mirror/gm0h ONLINE 0 0 0
errors: No known data errors
----------------------------------------------------------------------
DMESG, CONFIGs, etc.
/var/run/dmesg.boot:
Copyright (c) 1992-2011 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 8.2-STABLE #1: Sun Apr 24 21:28:12 EST 2011
root at helios.mesoft.com.au:/usr/obj/usr/src/sys/GENERIC sparc64
real memory = 4294967296 (4096 MB)
avail memory = 4165672960 (3972 MB)
cpu0: Sun Microsystems UltraSparc-IIe Processor (648.00 MHz CPU)
ispfw: registered firmware <isp_1000>
ispfw: registered firmware <isp_1040>
ispfw: registered firmware <isp_1040_it>
ispfw: registered firmware <isp_1080>
ispfw: registered firmware <isp_1080_it>
ispfw: registered firmware <isp_12160>
ispfw: registered firmware <isp_12160_it>
ispfw: registered firmware <isp_2100>
ispfw: registered firmware <isp_2200>
ispfw: registered firmware <isp_2300>
ispfw: registered firmware <isp_2322>
ispfw: registered firmware <isp_2400>
ispfw: registered firmware <isp_2400_multi>
ispfw: registered firmware <isp_2500>
ispfw: registered firmware <isp_2500_multi>
kbd0 at kbdmux0
nexus0: <Open Firmware Nexus device>
pcib0: <U2P UPA-PCI bridge> mem 0x1fe00000000-0x1fe0000ffff,0x1fe01000000-0x1fe010000ff irq 2032,2030,2031,2021 on nexus0
pcib0: Sabre, impl 0, version 0, IGN 0x1f, bus A, 66MHz
pcib0: DVMA map: 0xc0000000 to 0xc3ffffff 8192 entries
pcib0: [FILTER]
pcib0: [FILTER]
pcib0: [GIANT-LOCKED]
pcib0: [ITHREAD]
pcib0: [FILTER]
pci0: <OFW PCI bus> on pcib0
pcib1: <APB PCI-PCI bridge> at device 1.1 on pci0
pci1: <OFW PCI bus> on pcib1
ebus0: <PCI-EBus3 bridge> mem 0xf0000000-0xf0ffffff,0xf1000000-0xf17fffff at device 12.0 on pci1
ebus0: <idprom>: incomplete
pcib2: <APB PCI-PCI bridge> at device 1.0 on pci0
pci2: <OFW PCI bus> on pcib2
ebus0: <flashprom> addr 0x1000000000-0x10000fffff (no driver attached)
eeprom0: <EEPROM/clock> addr 0x1400000000-0x1400001fff on ebus0
eeprom0: model mk48t59
ebus0: <SUNW,lomh> addr 0x1400200000-0x1400200003 irq 42 (no driver attached)
pci1: <old, non-VGA display device> at device 3.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci1
isa0: <ISA bus> on isab0
gem0: <Sun ERI 10/100 Ethernet> mem 0xe0400000-0xe041ffff at device 12.1 on pci1
miibus0: <MII bus> on gem0
bmtphy0: <BCM5221 10/100baseTX PHY> PHY 1 on miibus0
bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow
gem0: 2kB RX FIFO, 2kB TX FIFO
gem0: Ethernet address: 00:03:ba:68:45:35
gem0: [ITHREAD]
ohci0: <Sun PCIO-2 USB controller> mem 0xe2000000-0xe2007fff at device 12.3 on pci1
ohci0: [ITHREAD]
usbus0: <Sun PCIO-2 USB controller> on ohci0
atapci0: <AcerLabs M5229 UDMA66 controller> port 0x400-0x407,0x418-0x41b,0x410-0x417,0x408-0x40b,0x420-0x42f at device 13.0 on pci1
atapci0: [ITHREAD]
atapci0: using PIO transfers above 137GB as workaround for 48bit DMA access bug, expect reduced performance
ata2: <ATA channel 0> on atapci0
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci0
ata3: [ITHREAD]
gem1: <Sun ERI 10/100 Ethernet> mem 0xe0440000-0xe045ffff at device 5.1 on pci1
miibus1: <MII bus> on gem1
bmtphy1: <BCM5221 10/100baseTX PHY> PHY 1 on miibus1
bmtphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow
gem1: 2kB RX FIFO, 2kB TX FIFO
gem1: Ethernet address: 00:03:ba:68:45:35
gem1: [ITHREAD]
ohci1: <Sun PCIO-2 USB controller> mem 0xe5000000-0xe5007fff at device 5.3 on pci1
ohci1: [ITHREAD]
usbus1: <Sun PCIO-2 USB controller> on ohci1
sym0: <896> port 0xc00000-0xc000ff mem 0x2000-0x23ff,0x4000-0x5fff at device 8.0 on pci2
sym0: No NVRAM, ID 7, Fast-40, LVD, parity checking
sym0: [ITHREAD]
sym1: <896> port 0xc00100-0xc001ff mem 0x6000-0x63ff,0x8000-0x9fff at device 8.1 on pci2
sym1: No NVRAM, ID 7, Fast-40, LVD, parity checking
sym1: [ITHREAD]
re0: <RealTek 8169/8169S/8169SB(L)/8110S/8110SB(L) Gigabit Ethernet> port 0xc00200-0xc002ff mem 0xa000-0xa0ff at device 5.0 on pci2
re0: Chip rev. 0x04000000
re0: MAC rev. 0x00000000
miibus2: <MII bus> on re0
rgephy0: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus2
rgephy0: 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
re0: Ethernet address: 00:08:54:35:a4:97
re0: [FILTER]
nexus0: <syscons> type unknown (no driver attached)
uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 43 on isa0
uart0: [FILTER]
uart0: console (9600,n,8,1)
uart1: <16550 or compatible> at port 0x2e8-0x2ef irq 43 on isa0
uart1: [FILTER]
ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is present;
to enable, add "vfs.zfs.prefetch_disable=0" to /boot/loader.conf.
ZFS filesystem version 4
ZFS storage pool version 15
Timecounter "tick" frequency 648000000 Hz quality 1000
Timecounters tick every 10.000 msec
ipfw2 (+ipv6) initialized, divert loadable, nat loadable, rule-based forwarding disabled, default to deny, logging disabled
load_dn_sched dn_sched FIFO loaded
load_dn_sched dn_sched QFQ loaded
load_dn_sched dn_sched RR loaded
load_dn_sched dn_sched WF2Q+ loaded
load_dn_sched dn_sched PRIO loaded
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
ugen0.1: <SUN> at usbus0
uhub0: <SUN OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <SUN> at usbus1
uhub1: <SUN OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
acd0: DVDROM <DV-28E-B/1.2B> at ata2-master UDMA33
uhub0: 4 ports with 4 removable, self powered
uhub1: 4 ports with 4 removable, self powered
da0 at sym0 bus 0 scbus0 target 0 lun 0
da0: <ACARD SCSIDE BRIDGE320 10EP> Fixed Direct Access SCSI-3 device
da0: 80.000MB/s transfers (40.000MHz, offset 28, 16bit)
da0: Command Queueing enabled
da0: 305245MB (625142448 512 byte sectors: 255H 63S/T 38913C)
da1 at sym0 bus 0 scbus0 target 1 lun 0
da1: <ACARD SCSIDE BRIDGE320 10EP> Fixed Direct Access SCSI-3 device
da1: 80.000MB/s transfers (40.000MHz, offset 28, 16bit)
da1: Command Queueing enabled
da1: 305245MB (625142448 512 byte sectors: 255H 63S/T 38913C)
GEOM_MIRROR: Device mirror/gm0 launched (1/2).
GEOM_MIRROR: Device gm0: rebuilding provider da1.
GEOM: mirror/gm0: adding VTOC8 information.
GEOM_JOURNAL: Journal 4175325748: mirror/gm0e contains data.
GEOM_JOURNAL: Journal 4175325748: mirror/gm0e contains journal.
GEOM_JOURNAL: Journal mirror/gm0e clean.
GEOM_JOURNAL: Journal 2946333449: mirror/gm0g contains data.
GEOM_JOURNAL: Journal 2946333449: mirror/gm0g contains journal.
GEOM_JOURNAL: Journal mirror/gm0g clean.
Trying to mount root from ufs:/dev/mirror/gm0a
/boot/loader.conf :
ipfw_load="YES"
dummynet_load="YES"
geom_mirror_load="YES"
geom_journal_load="YES"
opensolaris_load="YES"
zfs_load="YES"
vm.kmem_size="1024M"
vm.kmem_size_max="1024M"
vfs.zfs.arc_max="128M"
vfs.zfs.vdev.cache.size="16M"
kern.hz="100"
/etc/sysctl.conf :
# $FreeBSD: src/etc/sysctl.conf,v 1.8.34.1 2009/08/03 08:13:06 kensmith Exp $
#
# This file is read when going to multi-user and its contents piped thru
# ``sysctl'' to adjust kernel values. ``man 5 sysctl.conf'' for details.
#
# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
kern.ipc.shmmax=268435456
net.inet.ip.fw.verbose=1
Disk Slicing :
sunlabel da0
# /dev/da0:
text: FreeBSD298G cyl 38911 alt 2 hd 255 sec 63
bytes/sector: 512
sectors/cylinder: 16065
sectors/unit: 625105215
8 partitions:
#
# Size is in sectors.
# Offset is in cylinders.
# size offset
# ---------- ----------
a: 1060290 0
b: 4209030 66
c: 625105215 0
d: 2104515 328
e: 8401995 459
f: 1060290 982
g: 35664300 1048
h: 572604795 3268
sunlabel da1
# /dev/da1:
text: FreeBSD298G cyl 38911 alt 2 hd 255 sec 63
bytes/sector: 512
sectors/cylinder: 16065
sectors/unit: 625105215
8 partitions:
#
# Size is in sectors.
# Offset is in cylinders.
# size offset
# ---------- ----------
a: 1060290 0
b: 4209030 66
c: 625105215 0
d: 2104515 328
e: 8401995 459
f: 1060290 982
g: 35664300 1048
h: 572604795 3268
>How-To-Repeat:
Allow system to run for any length of time.
>Fix:
Only known workaroud at this time is to periodically reboot the box - usually nightly.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list