From owner-freebsd-questions@FreeBSD.ORG Fri Jul 25 10:44:49 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD72A37B404 for ; Fri, 25 Jul 2003 10:44:49 -0700 (PDT) Received: from sabre.velocet.net (sabre.velocet.net [216.138.209.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57C3C43FF5 for ; Fri, 25 Jul 2003 10:44:48 -0700 (PDT) (envelope-from steve@nomad.tor.lets.net) Received: from nomad.lets.net (H74.C220.tor.velocet.net [216.138.220.74]) by sabre.velocet.net (Postfix) with SMTP id 7181413A23F for ; Fri, 25 Jul 2003 13:44:12 -0400 (EDT) Received: (qmail 15424 invoked by uid 1008); 25 Jul 2003 18:20:12 -0000 Date: Fri, 25 Jul 2003 14:20:12 -0400 From: Steve Shorter To: questions@freebsd.org Message-ID: <20030725182012.GA15413@nomad.lets.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: vinum root problem - "missing unit number" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jul 2003 17:44:50 -0000 Howdy! I am setting up a fileserver using two completely mirrored disks using vinum. I am using vinum on the root partition. I booted from a third disk and setup the vinum volumes and mounted them under /mnt, then just did "make installworld DESTDIR=/mnt" Everything was cool, could fsck -n /dev/da1a (the "fake" a partition) no problem. Everything is happy booting from a third drive and mounting vinum volumes. The loader comes up fine and shows the vinum module loaded and the variables vinum_root and vinum_drives correctly as specified in loader.conf. The system is 4.8-STABLE from about 3 weeks ago. /boot/loader.conf (on vinum/root) contains vinum_load="YES" # Concatenated/mirror/raid driver vinum_root="root" # Concatenated/mirror/raid driver vinum_drives="/dev/da0 /dev/da1"# Concatenated/mirror/raid driver Loader is finding the correct "fake" disk partition "a" and everything but when the kernel boots mountroot fails with "missing unit number". Any ideas for debugging, or what I am doing wrong welcome. thanx - steve Additional info follows ... kernel boot ... The Regents of the University of California. All rights reserved. FreeBSD 4.8-STABLE #0: Fri Jul 25 10:41:22 EDT 2003 root@mfs0:/usr/src/sys/compile/MFS Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 1130456212 Hz CPU: Intel(R) Pentium(R) III CPU family 1133MHz (1130.46-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6b1 Stepping = 1 Features=0x383fbff real memory = 2147418112 (2097088K bytes) avail memory = 2087862272 (2038928K bytes) Preloaded elf kernel "kernel" at 0x4038a000. Preloaded elf module "vinum.ko" at 0x4038a09c. Pentium Pro MTRR support enabled Using $PIR table, 13 entries at 0x400f3b60 [snip] vinum: loaded Mounting root from ufs:/dev/vinum/root missing unit number setrootbyname failed ffs_mountroot: can't find rootvp Root mount failed: 6 Mounting root from ufs:da0s4a Root mount failed: 6 Mounting root from ufs:da0a Root mount failed: 6 mountroot> ? Possibly valid devices for 'ufs' root: "console" "ctty" "mem" "pts" "ptc" "log" "fd" "da" "FD" "pass" "pci" "vinum" "xpt" /etc/fstab in /dev/vinum/root .... /dev/vinum/swap none swap sw 0 0 /dev/vinum/root / ufs rw 1 1 /dev/vinum/usr /usr ufs rw 2 2 /dev/vinum/var /var ufs rw 2 2 proc /proc procfs rw 0 0 disklabels for both mirrored disks .... 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 253671 281 4.2BSD 2048 16384 97 # (Cyl. 0*- 15*) c: 35843670 0 unused 0 0 # (Cyl. 0 - 2231*) h: 35843654 16 vinum # (Cyl. 0*- 2231*) This is vinum configuration file that was used to set up the volume They were originally recongnized as da1 da2, but I moved them to da0 da1. cause I need the other disk to boot and setup other volumes on other boxen. # vinum.cfg # # # drive d0 device /dev/da1h drive d1 device /dev/da2h volume root setupstate plex org concat sd length 253671s driveoffset 265s drive d0 plex org concat sd length 253671s driveoffset 265s drive d1 volume swap setupstate plex org concat sd length 2097152s driveoffset 253936s drive d0 plex org concat sd length 2097152s driveoffset 253936s drive d1 volume usr setupstate plex org concat sd length 2097152s driveoffset 2351088s drive d0 plex org concat sd length 2097152s driveoffset 2351088s drive d1 volume var setupstate plex org concat sd length 409600s driveoffset 4448240s drive d0 plex org concat sd length 409600s driveoffset 4448240s drive d1 volume netb setupstate plex org concat sd length 10485760s driveoffset 4857840s drive d0 plex org concat sd length 10485760s driveoffset 4857840s drive d1 volume netb_root setupstate plex org concat sd length 16777216s driveoffset 15343600s drive d0 plex org concat sd length 16777216s driveoffset 15343600s drive d1 volume netb_host setupstate plex org concat sd length 3722838s driveoffset 32120816s drive d0 plex org concat sd length 3722838s driveoffset 32120816s drive d1