Вы находитесь на странице: 1из 8

nas.

pdf
how i build a webbased SMB NAS Server with nexentacore 2.0

- my hardware
- setup pools
- setup datasets
- setup cif shares

- workgroup mode and domain mode

(c) günther alka June 07 2009

newest document see http://www.babelcon.de/napp-it


you are allowed to distribute this document in any way
1. my hardware

1.1 my mainboards

zfs need power and ram. like opensolaris, it does not support all
mainboards. at the moment i use mainboards with intel p5000 chipsets like

supermicro x7dbe (my main storage boxes for our commercial nexentastores,
(with ha failover, cdp mirrorring, san-plugin for vmware..)
http://www.supermicro.com/products/motherboard/Xeon1333/5000P/X7DBE.cfm

supermicro x7dca-l (a nice and cheap micro atx board, about 250 euro)
for my nexentacore installations.
http://www.supermicro.com/products/motherboard/Xeon1333/5100/X7DCA-L.cfm

use at least 4 gb ram and a quadcore cpu if you need performance

1.2 my storage controller



first and important thing: do not use any hardware raid-controller
or nexenta will lost control of your disks and you will lost a lot of
the benefits of zfs. all you will need are simple discs.

you can use onboard sata (not in raid-mode) if nexena can work with it

1.3 my 8 channel controller

supermicro aoc-sat2-mv8 (pci-x, sata, about 100 euro)


http://www.supermicro.com/products/accessories/addon/AoC-SAT2-MV8.cfm

supermicro aoc-usas-l4i (pci-e, sas, about 100 euro)


http://www.supermicro.com/products/accessories/addon/AOC-USAS-L4i_R.cfm

1.4 my 10 gbe ethernet adapters

for our servers we use 10 gbe over cx4 cable


i can recommend supermicro low profile aoc stg i2 (below 400 euro) and
aoc-utg-i2 with same chipset (below 300 euro but only usable on uio systems)
http://www.supermicro.com/products/accessories/addon/AOC-UTG-i2.cfm

1.5 my harddrives (drives, read cache , write cache)

hd: western digital raid edition 3 drives (1 tb about 150 euro)

optional but recommended


read cache: large mlc-ssd like intel x25-m
write cache: small (16gb are enough) slc-ssd like intel x25-e

my small servers are raid 1 with 1 hotfix spare drive (3 drives)


my main servers are zfs2 with one or two hotfix spare drives (5 drives +)
i always use ssd for read-cache and mostly ssd for write cache

what i had to learn: zfs with its snapshot possibilities needs a lot of space.
use hds, hds, hds and start with raidz2. if you will need more space then, simply add a drive.

2. Basic setup

2.1 install nexentacore + napp-it
see http://www.babelcon.de/napp-it/setup_nexentacore2.pdf

now you should have a working server with:


- nexentacore
- working ssh server
- napp-it

2.2 Build a zfs pool from your harddrives

start napp-it http://serverip/cgi-bin/napp-it/admin.pl


go to menue: disks and pools - zpool - create

you will see a list of available hd´s

create a new pool example vol2 from your drives


default settings are optimized for use as a smb nas-box

recommendation:
use mirror with 2 drives + 1 hotspare or
use raidz2 with at least 5 drives + 1 hotspare
if you need performance: add ssd drives for read and write cache
2.3 create zfs datasets on this pool

datasets are like folders on your pool
you can set shares and attributes on datasets.

go to menue zfs and shares - zfs - create

select a pool where you want to create


your zfs folder

you can keep defaults if you want to setup


a smb nas box

defaults:
smb share = on (folder is a share)
case sensitivity is mac/windows like
snapdir is visible on your share
acl settings are set:
everybody: modify
root (administrator) full rights

unix rights are set to:


full access to everyone

all rights handling is done in windows create zfs folder in napp-it

Overview of your zfs folder with most important settings

> Klick on a folder to see all details


3. Details of a ZFS Folder

default acl: if you create new files and folders, they will get default rights (those with @ at the end of the listing)
4. SMB Server
5. That' s it for a NAS Box at home (SMB in workgroup mode)

You can login as root. default settings of your shares are:



user root: full access
everybody: modify

default acl settings (acl for new files and folders) are the same

if you need more user:

1. create them on your nexentabox Console (Putty)

2. you must set a password for this user at Console (Putty)



passwd user

Snapshots
You can create snapshots (at the moment via Console)
example:

zfs snapshot vol1@newset

They are visible in windows if you set zfs property snapdir=visible

Nexentacore in domain mode


see small how to on next page.

what's missing

snapdir and usermanagement in napp-it


is coming soon...

bugfixes
remember: napp-it is beta
but already useable

if you have actions for certain settings


please share them....
6. SMB Server in Domain Mode for Windows Active Directory

more is coming..

guenther

Вам также может понравиться