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

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to