From owner-freebsd-questions@FreeBSD.ORG Fri Jun 18 18:21:25 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 E291316A4CE for ; Fri, 18 Jun 2004 18:21:24 +0000 (GMT) Received: from frodo.aecom.yu.edu (frodo.aecom.yu.edu [129.98.1.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5260543D48 for ; Fri, 18 Jun 2004 18:21:24 +0000 (GMT) (envelope-from lshovsky@aecom.yu.edu) Received: from aecom.yu.edu (kgb.rit.aecom.yu.edu [129.98.4.95]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by frodo.aecom.yu.edu (Postfix) with ESMTP id 50FD425D3 for ; Fri, 18 Jun 2004 14:23:10 -0400 (EDT) Message-ID: <40D33132.6060302@aecom.yu.edu> Date: Fri, 18 Jun 2004 14:15:14 -0400 From: Lenny Shovsky User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040115 X-Accept-Language: en-us, en, ru MIME-Version: 1.0 Cc: freebsd-questions@freebsd.org References: <20040617120130.D35887@mail.wirewalk.com> <20040617215356.GC46408@wantadilla.lemis.com> <20040618114657.H45206@mail.wirewalk.com> In-Reply-To: <20040618114657.H45206@mail.wirewalk.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: vinum setup 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, 18 Jun 2004 18:21:25 -0000 nevermind. I figured this out. still, Greg is one smart guy :). I just wish disklabel was at least a bit more user friendly. Every time I use it I have to understand it all over :) /boot/loader.conf vinum_load="YES" vinum.root="root" vinum.drives="/dev/ad2 /dev/ad3" synrat wrote: > thanx Greg, you're right as always. > I booted into single user from start up and sure enough everything was > editable then. > > I got another problem though. > > I set up 2 disks for vinum and want to allocate exisiting partitions to > vinum mirrored volumes. I left 16 blocks at the begining, moved first > partition ( swap ) to 281, recalculated offsets in vinum config with -16, run vinum > config, everything's peachy, drives rebuild, fsck sees no errors, I edit > fstab, reboot, vinum module loads but root can not be mounted as a vinum > device, I still have to manually specify my regular root ( > /dev/das1a ) partition. dmesg output below and vinum/disklabel too. > > thanx a million. Greg for US president :) > > Mounting root from ufs:/dev/vinum/root > missing unit number > setrootbyname failed > ffs_mountroot: can't find rootvp > Root mount failed: 6 > > > disklabel ( similar for both disks ) > --------------------------------- > > a: 21094400 2109440 4.2BSD 2048 16384 89 # (Cyl. 131*- 1444*) > b: 2109159 281 swap # (Cyl. 0*- 131*) > c: 156248127 0 unused 0 0 # (Cyl. 0 - 9725*) > e: 133044287 23203840 4.2BSD 2048 16384 89 # (Cyl. 1444*- 9725*) > h: 156248111 16 vinum # (Cyl. 0*- 9725*) > > vinum > ------------------ > > drive a device /dev/ad2s1h > drive b device /dev/ad3s1h > > volume root > plex org concat > sd length 21094400s driveoffset 2109424s drive a > plex org concat > sd length 21094400s driveoffset 2109424s drive > > volume home > plex org concat > sd length 133044287s driveoffset 23203824s drive a > plex org concat > sd length 133044287s driveoffset 23203824s drive b > > > > On Fri, 18 Jun 2004, Greg 'groggy' Lehey wrote: > > >>[Format recovered--see http://www.lemis.com/email/email-format.html] >> >>Output wrapped. >> >>On Thursday, 17 June 2004 at 12:04:01 -0400, synrat wrote: >> >>>4.8 >>> >>>I'm trying to setup partitions for vinum. >>>I am in single user mode, but every time I try >>>to modify swap size to accomodate for vinum confuration >>>I get >>> >>>disklabel: ioctl DIOCWDINFO: open partition would move or shrink >>>re-edit the label? [y] >>> >>># size offset fstype [fsize bsize bps/cpg] >>> a: 21094400 2109440 4.2BSD 2048 16384 89 # (Cyl. 131*- 1444*) >>> b: 2109000 430 swap # (Cyl. 0 - 131*) >>> c: 156248127 0 unused 0 0 # (Cyl. 0 - 9725*) >>> e: 133044287 23203840 4.2BSD 2048 16384 89 # (Cyl. 1444*- 9725*) >>> h: 156248111 16 vinum # (Cyl. 0*- 9725*) >> >>You can't change open partitions. You also can't unmount swap. If >>you go from multi-user to single user mode, the swap remains mounted. >>You'll need to boot to single user mode to do that. >> >>If this doesn't answer your question, more details, please, including >>any log messages. Please don't wrap them. >> >>Greg >>-- >>When replying to this message, please copy the original recipients. >>If you don't, I may ignore the reply or reply to the original recipients. >>For more information, see http://www.lemis.com/questions.html >>Note: I discard all HTML mail unseen. >>Finger grog@FreeBSD.org for PGP public key. >>See complete headers for address and phone numbers. >> > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"