Date: Thu, 19 Apr 2007 12:59:32 -0700 From: "Steve Franks" <stevefranks@ieee.org> To: "L Goodwin" <xrayv19@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: Samba and RAID 1 using gmirror on 2 new disks Message-ID: <539c60b90704191259k4279a4a1i80119ad91087099@mail.gmail.com> In-Reply-To: <14876.14778.qm@web58105.mail.re3.yahoo.com> References: <14876.14778.qm@web58105.mail.re3.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <xrayv19@yahoo.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?539c60b90704191259k4279a4a1i80119ad91087099>