From owner-freebsd-questions@FreeBSD.ORG Tue Jul 27 21:21:43 2004 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 B3BB916A4CE for ; Tue, 27 Jul 2004 21:21:43 +0000 (GMT) Received: from mail.infotechfl.com (mailrelay.infotechfl.com [209.251.147.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6FA343D3F for ; Tue, 27 Jul 2004 21:21:34 +0000 (GMT) (envelope-from gmulder@infotechfl.com) Received: from garymulder ([172.20.0.75]) by mail.infotechfl.com (8.11.6/8.11.6) with ESMTP id i6RLLSN22910 for ; Tue, 27 Jul 2004 17:21:32 -0400 Message-Id: <4.2.0.58.20040727165107.011d98c8@mail.infotechfl.com> X-Sender: gmulder@mail.infotechfl.com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Tue, 27 Jul 2004 17:21:27 -0400 To: freebsd-questions@freebsd.org From: Gary Mulder Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: vinum create drive problem, can't add second disk to config 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: Tue, 27 Jul 2004 21:21:43 -0000 All, I have two 160GB disks I want to mirror (ad0 and ad2). I loaded a fresh install FreeBSD 4.10-RELEASE on the boot disk, and are following the mirroring instructions at: http://devel.reinikainen.net/docs/how-to/Vinum/ I have successfully added one half of the mirror and now are booting off the vinum devices (the vinum devices fsck and boot fine). However I persistently get the following error when adding the second disk. Here's my environment: # uname -a FreeBSD testbox 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Tue May 25 22:47:12 GMT 2004 root@perseus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 # disklabel -r ad2s1 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 320159322 0 unused 0 0 # (Cyl. 0 - 19928*) h: 320159306 16 vinum # (Cyl. 0*- 19928*) Note that the fstype of /dev/ad2s1h is correctly set to vinum, a common cause of the following vinum error, but apparently not the cause of my problem. # ls -l /dev/ad2s1h crw-r----- 2 root operator 116, 0x00020017 Jul 26 21:23 /dev/ad2s1h And here is how I am trying to add the second disk: # cat /etc/vinum1_onlydrive.conf drive mirror1 device /dev/ad2s1h # vinum create /etc/vinum1_onlydrive.conf 1: drive mirror1 device /dev/ad2s1h ** 1 : Invalid argument 1 drives: D mirror0 State: up Device /dev/ad0s1h Avail: 0/156327 MB (0%) 5 volumes: V swap State: up Plexes: 1 Size: 511 MB V root State: up Plexes: 1 Size: 4096 MB V usr State: up Plexes: 1 Size: 4096 MB V var State: up Plexes: 1 Size: 4096 MB V home State: up Plexes: 1 Size: 140 GB 5 plexes: P swap.p0 C State: up Subdisks: 1 Size: 511 MB P root.p0 C State: up Subdisks: 1 Size: 4096 MB P usr.p0 C State: up Subdisks: 1 Size: 4096 MB P var.p0 C State: up Subdisks: 1 Size: 4096 MB P home.p0 C State: up Subdisks: 1 Size: 140 GB 5 subdisks: S swap.p0.s0 State: up PO: 0 B Size: 511 MB S root.p0.s0 State: up PO: 0 B Size: 4096 MB S usr.p0.s0 State: up PO: 0 B Size: 4096 MB S var.p0.s0 State: up PO: 0 B Size: 4096 MB S home.p0.s0 State: up PO: 0 B Size: 140 GB # tail -4 /var/log/vinum_history 27 Jul 2004 20:54:33.452226 *** vinum started *** 27 Jul 2004 20:54:33.452846 create /etc/vinum1_onlydrive.conf drive mirror1 device /dev/ad2s1h 27 Jul 2004 20:54:33.471889 *** Created devices *** # tail -1 /var/log/messages Jul 27 20:54:33 testbox /kernel: vinum: drive mirror1 is up I am either missing something obvious or something strange is occurring. The above vinum how-to suggests using the "-f" option to create for the second disk. However when I do this the drive count in "vinum list" goes up but mirror1 is never created. Any help would be appreciated! Thanks, Gary