From owner-freebsd-questions@FreeBSD.ORG Thu Feb 19 20:13:12 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 8E5F016A4CE for ; Thu, 19 Feb 2004 20:13:12 -0800 (PST) Received: from mail009.syd.optusnet.com.au (mail009.syd.optusnet.com.au [211.29.132.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 957C743D2D for ; Thu, 19 Feb 2004 20:13:11 -0800 (PST) (envelope-from tfrank@optushome.com.au) Received: from marvin.home.local (c211-28-241-189.eburwd5.vic.optusnet.com.au [211.28.241.189])i1K4D8109841; Fri, 20 Feb 2004 15:13:08 +1100 Received: by marvin.home.local (Postfix, from userid 1001) id 220C71C0; Fri, 20 Feb 2004 15:13:05 +1100 (EST) Date: Fri, 20 Feb 2004 15:13:04 +1100 From: Tony Frank To: "Pietralla, Siegfried P" Message-ID: <20040220041304.GB25852@marvin.home.local> References: <826F6467CFB0B24C8D37E2E9A7758A53098B1420@aumem200.au.eds.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <826F6467CFB0B24C8D37E2E9A7758A53098B1420@aumem200.au.eds.com> User-Agent: Mutt/1.4.2i cc: freebsd-questions@freebsd.org Subject: Re: vinum - suitablity for use with removable disks 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, 20 Feb 2004 04:13:12 -0000 Hi there, On Fri, Feb 20, 2004 at 09:46:48AM +1100, Pietralla, Siegfried P wrote: > i want to use vinum with some removable ( e.g. usb2 ) hard disks. i want to > use vinum because : it lets me create as many appropriately sized volumes as > i need ; and, it doesn't matter whether the disk connects as da0 or da1 > since vinum uses it's own label. > > my question is, will vinum comfortably handle more than one disk where there > is an equal chance that none, one or more will be online at any one time. if > i plug in a disk, will i need to "restart" or "bring up" or whatever the > disk, or the plex etc every time a disk comes back online? if so, what is > the smallest set of commands i can use to do this? > > note that i only intend to run single plexes ( no mirrors or raid 5 ) where > all subdisks reside on the same physical disk. > > any thoughts or experiences appreciated. Sounds interesting. Note I have not tried this myself - will have to get USB support running to try it locally. But... Basic setup is quite straightforward (as per any other disk): 1. fdisk the USB drive to put a freebsd slice on there 2. create vinum partition on the disk 3. create vinum drive with the device 4. build subdisks/plex/volumes etc 5. newfs volumes 6. mount volume 7. transfer data as needed I expect you would want to at least umount the volume before removing a device. Probably want to 'stop' the volume/plex/subdisk also. That way vinum says disk is 'down' and wont try to write to it. You should then be able to remove safely (minus any other FreeBSD USB disk caveats that I am not aware of) Possibly camcontrol stop would be appropriate - I'll have to do some research on this. If the disk is used in a different USB port etc such that it gets a different device name I expect Vinum should still be able to recognise it. My experience here is nonexistant. At such time you should be able to start the objects and mount the filesystem again. If nothing else this has raised some ideas for things to spend a day or two on :) Hope there was something useful in that, Tony