[PC-BSD Testing] Mirror Setup failed

Lars Engels lars.engels at 0x20.net
Thu Sep 8 08:55:41 PDT 2011


I just tried to install BETA1.5 in VirtualBox with a mirrored setup.

There seems to be a typo in the creation script for the mirror.

The debug log shows:

# PC-SYSINSTALL LOG
Running: gmirror label -vb round-robin gm0 /dev//dev/ada0
gmirror: Can't get informations about /dev//dev/ada0: No such file or 
directory.
EXITERROR: Error 1: gmirror label -vb round-robin gm0 /dev//dev/ada0

# PC-SYSINSTALL CFG
# Auto-Generated pc-sysinstall configuration
installInteractive=no
installMode=fresh
installType=FreeBSD
packageType=tar
hostname=testbsdbox
installMedium=dvd

# Timezone
timeZone=Europe/Berlin
enableNTP=no

# Keyboard Layout Options
localizeKeyModel=pc105
localizeKeyLayout=de
localizeKeyVariant=nodeadkeys

# Disk Setup for ada0
disk0=ada0
partition=ALL
bootManager=none
partscheme=MBR
mirror=ada1
mirrorbal=round-robin
commitDiskPart

# Partition Setup for ada0(ALL)
# All sizes are expressed in MB
# Avail FS Types, UFS, UFS+S, UFS+SUJ, UFS+J, ZFS, SWAP
# UFS.eli, UFS+S.eli, UFS+SUJ, UFS+J.eli, ZFS.eli, SWAP.eli
disk0-part=UFS+SUJ 1024 /
disk0-part=SWAP 1534 none
disk0-part=UFS+SUJ 2048 /var
disk0-part=UFS+SUJ 0 /usr
commitDiskLabel


# Optional Components
installComponents=

# Root Password

# Users
userName=lars
userComment=lars
userShell=/bin/tcsh
userHome=/home/lars
userGroups=wheel,operator
commitUser

userName=lars2
userComment=lars2
userShell=/bin/tcsh
userHome=/home/lars2
userGroups=wheel,operator
commitUser


# DMESG OUTPUT
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 9.0-BETA1 #0: Fri Aug 12 15:34:27 PDT 2011
     
root at build9x64.pcbsd.org:/usr/obj/pcbsd-build90/fbsd-source/9.0/sys/GENERIC 
amd64
WARNING: WITNESS option enabled, expect reduced performance.
CPU: Intel(R) Core(TM)2 Duo CPU     U9400  @ 1.40GHz (1396.62-MHz 
K8-class CPU)
   Origin = "GenuineIntel"  Id = 0x10676  Family = 6  Model = 17  
Stepping = 6
   
Features=0x783fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2>
   Features2=0x209<SSE3,MON,SSSE3>
   AMD Features=0x20100800<SYSCALL,NX,LM>
   AMD Features2=0x1<LAHF>
real memory  = 805240832 (767 MB)
avail memory = 718258176 (684 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <VBOX   VBOXAPIC>
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
cryptosoft0: <software crypto> on motherboard
acpi0: <VBOX VBOXXSDT> on motherboard
acpi0: Power Button (fixed)
acpi0: Sleep Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
cpu0: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd000-0xd00f at device 1.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
vgapci0: <VGA-compatible display> mem 0xe0000000-0xe1ffffff irq 18 at 
device 2.0 on pci0
pcn0: <AMD PCnet/PCI 10/100BaseTX> port 0xd020-0xd03f mem 
0xf0000000-0xf0000fff,0xf0080000-0xf00fffff irq 19 at device 3.0 on pci0
pcn0: Chip ID 2625 (Am79C973)
miibus0: <MII bus> on pcn0
acphy0: <AC101 10/100 media interface> PHY 0 on miibus0
acphy0:  none, 10baseT
pcn0: Ethernet address: 08:00:27:01:2b:9b
pci0: <base peripheral> at device 4.0 (no driver attached)
ohci0: <OHCI (generic) USB controller> mem 0xf0804000-0xf0804fff irq 22 
at device 6.0 on pci0
usbus0: <OHCI (generic) USB controller> on ohci0
pci0: <bridge> at device 7.0 (no driver attached)
ahci0: <Intel ICH8M AHCI SATA controller> port 
0xd060-0xd067,0xd070-0xd077,0xd080-0xd08f mem 0xf0806000-0xf0807fff irq 
21 at device 13.0 on pci0
ahci0: AHCI v1.10 with 2 3Gbps ports, Port Multiplier not supported
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
battery0: <ACPI Control Method Battery> on acpi0
acpi_acad0: <AC Adapter> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> flags 0x1000 irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse Explorer, device ID 4
attimer0: <AT timer> port 0x40-0x43,0x50-0x53 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
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
atrtc0: <AT realtime clock> at port 0x70 irq 8 on isa0
Event timer "RTC" frequency 32768 Hz quality 0
ppc0: cannot reserve I/O port range
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 5
ZFS storage pool version 28
Timecounters tick every 10.000 msec
md0: Preloaded image </boot/mfsroot> 28672000 bytes at 
0xffffffff818a06f0
usbus0: 12Mbps Full Speed USB v1.0
ugen0.1: <Apple> at usbus0
uhub0: <Apple OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on 
usbus0
ada0 at ahcich0 bus 0 scbus2 target 0 lun 0
ada0: <VBOX HARDDISK 1.0> ATA-6 SATA 2.x device
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 8192MB (16777216 512 byte sectors: 16H 63S/T 16383C)
ada0: Previously was known as ad4
ada1 at ahcich1 bus 0 scbus3 target 0 lun 0
ada1: <VBOX HARDDISK 1.0> ATA-6 SATA 2.x device
ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada1: Command Queueing enabled
ada1: 8192MB (16777216 512 byte sectors: 16H 63S/T 16383C)
ada1: Previously was known as ad6
cd0 at ata0 bus 0 scbus0 target 0 lun 0
cd0: <VBOX CD-ROM 1.0> Removable CD-ROM SCSI-0 device
cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes)
cd0: cd present [1750000 x 2048 byte records]
Timecounter "TSC" frequency 1396623935 Hz quality 800
WARNING: WITNESS option enabled, expect reduced performance.
uhub0: 8 ports with 8 removable, self powered
Root mount waiting for: usbus0
ugen0.2: <VirtualBox> at usbus0
uhid0: <VirtualBox USB Tablet, class 0/0, rev 1.10/1.00, addr 2> on 
usbus0
Trying to mount root from ufs:/dev/ufs/ROOTFS []...
md1.uzip: 16537 x 65536 blocks
lock order reversal:
  1st 0xfffffe000646cbd8 ufs (ufs) @ 
/pcbsd-build90/fbsd-source/9.0/sys/kern/vfs_mount.c:1194
  2nd 0xfffffe0006465098 devfs (devfs) @ 
/pcbsd-build90/fbsd-source/9.0/sys/kern/vfs_subr.c:2246
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2a
kdb_backtrace() at kdb_backtrace+0x37
_witness_debugger() at _witness_debugger+0x2e
witness_checkorder() at witness_checkorder+0x807
__lockmgr_args() at __lockmgr_args+0xdc6
vop_stdlock() at vop_stdlock+0x39
VOP_LOCK1_APV() at VOP_LOCK1_APV+0x9b
_vn_lock() at _vn_lock+0x47
vputx() at vputx+0x328
cd9660_unmount() at cd9660_unmount+0x115
dounmount() at dounmount+0x2e6
unmount() at unmount+0x280
syscallenter() at syscallenter+0x1aa
syscall() at syscall+0x4c
Xfast_syscall() at Xfast_syscall+0xdd
--- syscall (22, FreeBSD ELF64, unmount), rip = 0x8008a519c, rsp = 
0x7fffffffd508, rbp = 0x800c07eb0 ---
lock order reversal:
  1st 0xffffff802bd0c238 bufwait (bufwait) @ 
/pcbsd-build90/fbsd-source/9.0/sys/kern/vfs_bio.c:2658
  2nd 0xfffffe0006929600 dirhash (dirhash) @ 
/pcbsd-build90/fbsd-source/9.0/sys/ufs/ufs/ufs_dirhash.c:284
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2a
kdb_backtrace() at kdb_backtrace+0x37
_witness_debugger() at _witness_debugger+0x2e
witness_checkorder() at witness_checkorder+0x807
_sx_xlock() at _sx_xlock+0x55
ufsdirhash_acquire() at ufsdirhash_acquire+0x33
ufsdirhash_add() at ufsdirhash_add+0x19
ufs_direnter() at ufs_direnter+0x909
ufs_makeinode() at ufs_makeinode+0x26a
VOP_CREATE_APV() at VOP_CREATE_APV+0x8d
vn_open_cred() at vn_open_cred+0x46a
kern_openat() at kern_openat+0x182
syscallenter() at syscallenter+0x1aa
syscall() at syscall+0x4c
Xfast_syscall() at Xfast_syscall+0xdd
--- syscall (5, FreeBSD ELF64, open), rip = 0x802e77e4c, rsp = 
0x7fffffffb908, rbp = 0x8060d0273 ---
/tmp: optimization changed from SPACE to TIME
ugen0.3: <Kingston> at usbus0
umass0: <Kingston DataTraveler 2.0, class 0/0, rev 1.10/1.00, addr 3> 
on usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x0000
umass0:4:0:-1: Attached to scbus4
da0 at umass-sim0 bus 0 scbus4 target 0 lun 0
da0: <Kingston DataTraveler 2.0 PMAP> Removable Direct Access SCSI-0 
device
da0: 1.000MB/s transfers
da0: 3875MB (7936000 512 byte sectors: 255H 63S/T 493C)

# DISK INFO ada0
/dev/ada0

# DISK INFO ada1
/dev/ada1

# DISK INFO da0
/dev/da0
/dev/da0s1
=>     63  7935937  da0  MBR  (3.8G)
        63  7919982    1  !6  [active]  (3.8G)
   7920045    15955       - free -  (7.8M)


# MOUNT OUTPUT
/dev/ufs/ROOTFS on / (ufs, local)
devfs on /dev (devfs, local, multilabel)
/dev/md6 on /tmp (ufs, local)
/dev/md2 on /uzip (ufs, local)
/dev/md1.uzip on /usr (ufs, local, read-only)



More information about the Testing mailing list