From owner-freebsd-questions@FreeBSD.ORG Thu Apr 19 19:57:59 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 1D4C716A406 for ; Thu, 19 Apr 2007 19:57:59 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id 0106013C487 for ; Thu, 19 Apr 2007 19:57:58 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from localhost (jn@ns1 [69.55.238.237]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id l3JJvvfW018820; Thu, 19 Apr 2007 15:57:57 -0400 (EDT) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-questions@freebsd.org Date: Thu, 19 Apr 2007 15:55:57 -0400 User-Agent: KMail/1.9.6 References: <14876.14778.qm@web58105.mail.re3.yahoo.com> In-Reply-To: <14876.14778.qm@web58105.mail.re3.yahoo.com> X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*.<=?utf-8?q?of=5F4NrS=0A=09P*M/9CpxDo!D6?=)IY1w<9B1jB; tBQf[RU-R<,I)e"$q7N7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704191555.57840.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: 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:57:59 -0000 On Thursday 19 April 2007 03:24:36 pm 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 man gmirror man newfs man mount man fstab man smb.conf man samba gmirror label -b load sambavol /dev/da1 /dev/da2 newfs -U /dev/mirror/sambavol mkdir /sambavol mount /dev/mirror/sambavol /sambavol echo '/dev/mirror/sambavol /sambavol ufs rw 2 2' >> /etc/fstab The samba config depends a log on how you want to use the share and handle authentication and permissions, etc. The sample config file has most of what you need. Here's a starting point for a section to share a /sambavol directory with a samba share name of sambavol: [sambavol] path = /sambavol browseable = yes writable = yes printable = no You will of course need a correctly configured global section and you'll probably want additional entries in the volume section like "public", "guest ok", "only guest", etc. JN