自建NAS第一步.......... GEOM/GVINUM RAID0

|

014.jpg009.jpg010.jpg

两块不知什么年代的maxtor硬盘,系统盘安装在10G的硬盘上
%uname -a
FreeBSD nas.qingcha.org 6.1-RELEASE-p7 FreeBSD 6.1-RELEASE-p7

/boot/loader.conf加入 geom_vinum_load="YES"

/etc/rc.conf加入 start_vinum="YES"

两个硬盘是系统装好后加入的,所以要先格式化才能用

newfs /dev/ad2
newfs /dev/ad3

#gvinum
gvinum->create

drive d2 device /dev/ad2
drive d3 device /dev/ad3
volume share< = vinum 名称
plex org striped 64k < = strip size
sd length 0 drive d2
sd length 0 drive d3

格式化新设备
newfs /dev/gvinum/share

创建挂载点
mkdir -p /Disks/share

挂载
mount /dev/gvinum/share /Disks/share

df -h 看一下,是不是已经正确的挂载上

写入/etc/fstab

/dev/gvinum/share /Disks/share rw,noatime 2 2

#reboot 看看有没有错误

接下来要做的工作有: CIFS/ftp/nfs
参考文档:
http://www.cdpa.cc/~tjs/gvinum.htm
http://cnsnap.cn.freebsd.org/doc/zh_CN.GB2312/books/handbook/geom.html
http://www.freebsd.org/cgi/man.cgi?query=gvinum&apropos=0&sektion=0&manpath=FreeBSD+6.1-RELEASE&format=html

About this Entry

This page contains a single entry by 清茶 published on November 20, 2006 5:09 PM.

测试一下从Google Gallery 引用相片 was the previous entry in this blog.

忙了半天,想要的东西原来在这.......... is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.31-zh-cn