From owner-freebsd-questions@FreeBSD.ORG Thu Apr 19 19:59:36 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0249116A404 for ; Thu, 19 Apr 2007 19:59:36 +0000 (UTC) (envelope-from bahamasfranks@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.190]) by mx1.freebsd.org (Postfix) with ESMTP id 766AB13C448 for ; Thu, 19 Apr 2007 19:59:34 +0000 (UTC) (envelope-from bahamasfranks@gmail.com) Received: by mu-out-0910.google.com with SMTP id g7so802226muf for ; Thu, 19 Apr 2007 12:59:33 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=VmEpFhp8pXySK8hfILyF/Myh9vnwP0nZY8IqWvvyHERcqTpJHH865otrWQFum5Twho0uqdMlzLRoHBDsEbL++qUF2ebP6gcKKPPAjtmA9dsHAqElyleByJQo/ga6k+UCmUJkxS5BogsniFHdBkv9Y95xWZgUr5tTS3z3IkUXg/U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=tMm1QbS0Dmr922p5hkBzgSmiBvl0t/YIY67iNPgAjLo4mKBOdrcAk7tfAXnJwGQu5vraUxfQS5s6Zx+uuZ1GscCJ6cpLrfg3ggvPS4RSMloUKt1M1GcWo4+wN53ULFQp8plO4EjRvzA49cusGxTOHZrDC4DvGQyI9kIjSkxtrEQ= Received: by 10.82.148.7 with SMTP id v7mr3454069bud.1177012773032; Thu, 19 Apr 2007 12:59:33 -0700 (PDT) Received: by 10.82.175.3 with HTTP; Thu, 19 Apr 2007 12:59:32 -0700 (PDT) Message-ID: <539c60b90704191259k4279a4a1i80119ad91087099@mail.gmail.com> Date: Thu, 19 Apr 2007 12:59:32 -0700 From: "Steve Franks" Sender: bahamasfranks@gmail.com To: "L Goodwin" In-Reply-To: <14876.14778.qm@web58105.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <14876.14778.qm@web58105.mail.re3.yahoo.com> X-Google-Sender-Auth: 01290ed1717089f2 Cc: freebsd-questions@freebsd.org Subject: Re: Samba and RAID 1 using gmirror on 2 new disks X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Apr 2007 19:59:36 -0000 I was initially hung up on the boot disk issue as well - everything in the handbook applies to a data-only drive as well, except the part about dumping the filesystem, etc. I presume your disks are uninitialized. I suggest a look at the actual gmirror manpage, it has more & better examples, and I pretty much followed one of those exactly. There's really only 2 things to do: 1) make sure gmirror gets loaded on startup (specific directions are in the handbook/man) 2) initialize your disks with gmirror as per the man page. After that works, you'll have something like /dev/mirror/gm0 (you'll still have /dev/da1 and da2, but you want to use the gm0 in fstab instead, otherwise, it won't be mirrored). Then, if you are a newbie like me, you can just run sysinstall to fdisk and label (aka. 'partition/format') your new disk. It was quite easier than I expected, acutally, and my disks have live data on them - no problems ensued. Since it's a 'normal' disk after gmirror is configured, samba works with it just like the rest of your filesystem. Samba was a bit more work for me, but again, just followed the handbook and samba.org instructions, and I had no major issues. Steve On 4/19/07, L Goodwin wrote: > Hello. I have a server with 3 SCSI drives. FreeBSD is installed on da0 (4.3GB), and da1 and da2 (both identical 9GB drives) are to be used in a RAID 1 array for file storage on a LAN with Windows XP and Vista clients, using Samba to share the filesystem on da1. Backups will be taken from da2. > > Drives da1 and da2 are currently "unused" (reclaimed from a Windows server). I have not done anything to prepare these 2 drives yet. > > I also have not configured Samba yet. > > Please walk me through the process of setting up a FreeBSD 6.2 fileserver given these conditions? > > I tried configuring the RAID1 array using the following sources, but got judging from the errors I got, it looks like I need to prepare da1/da2 first: > > http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-mirror.html > > Both assume you only have 2 drives and want to mirror the drive containing FreeBSD. I only want to mirror the data drive da1, and would appreciate a concise set of steps for doing this right the first time. > > Thanks! > > > --------------------------------- > Ahhh...imagining that irresistible "new car" smell? > Check outnew cars at Yahoo! Autos. > _______________________________________________ > 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" > -- Steve Franks, KE7BTE Staff Engineer La Palma Devices, LLC http://www.lapalmadevices.com (520) 312-0089