Download openwrt image
openwrt-ar71xx-nand-wndr3700v4-ubi-factory
https://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/nand/
Install with update feature from web interface
Issue of of 2014.10.2 version
Unable to use the 128MB flash space.
Download openwrt image
openwrt-ar71xx-nand-wndr3700v4-ubi-factory
https://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/nand/
Install with update feature from web interface
Issue of of 2014.10.2 version
Unable to use the 128MB flash space.
A tp-link TL-841N route with ddwrt firmware (build 24160) is used in the test:
Route Config:
Route IP = 192.168.127.2
DNSMasq = Enable
Local DNS = Enable
No DNS Rebind = Enable
Additional DNSMasq Options
dhcp-boot=pxe/pxelinux.0,lzheng-ubuntu-10,192.168.127.88
dhcp-option=44,172.24.63.201,172.24.63.202 dhcp-option=6,172.24.63.212,172.24.63.211,172.24.63.163,172.24.63.161,172.24.63.162
************************************************************************
Note
dhcp-boot, specified pxe boot file and the tftp server
dhcp-option=44, specified wins server
dhcp-option=6, specified upstream DNS server
http://www.hpproliantoptions.com/index.aspx
http://www.jpaul.me/2013/06/hp-gen8-microserver-is-it-time-to-update-your-lab/
http://www.tomshardware.com/forum/id-1702811/ram-comaptible-proliant-micro-server.html
http://www.adamfowlerit.com/2013/09/30/hp-proliant-microserver-gen8-real-world-usage/
OS:
http://h17007.www1.hp.com/us/en/enterprise/servers/supportmatrix/windows.aspx#.VGMhuFcYzKw
RAM:
http://homeservershow.com/forums/index.php?/topic/5639-proliant-microserver-gen8-links/
Kingston RAM
Part Number: KTH-PL316E/8G
Part Number: KTH-PL313E/8G
Part Number: KTH-PL316ES/4G
http://www.chiphell.com/thread-1034824-1-1.html
CPU:
2014/11/19
E3 – 1230v2 $225
E3 – 1220v2 $200
E3 – 1271v3 $364
E3 – 1245v2 $268
E3-1265Lv2 $351
RAM:
Part Number: KTH-PL316E/8G $105
Part Number: KTH-PL316ES/4G $55
Just follow the thread of:
http://linhost.info/2012/05/configure-ubuntu-to-serve-as-an-iscsi-target/
Reference:
http://caia.swin.edu.au/reports/130226A/CAIA-TR-130226A.pdf
https://gist.github.com/Informatic/5893973
# Install iscsi
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install iscsitarget
# Squeezy
# apt-get install iscsitarget-dkms
# Enable iscsi
sudo sed -i "s/false/true/" /etc/default/iscsitarget
# Add two file as iSCSI storage
# File1: /data/tmp/win7_32.img
# File2: /data/tmp/win7.img
# Add following line into /etc/iet/ietd.conf
Target iqn.2014-10.local.zhenglei:storage.sys0
Lun 0 Path=/data/tmp/win7_32.img,Type=fileio,ScsiId=lun0,ScsiSN=lun0
Target iqn.2014-10.local.zhenglei:storage.sys1
Lun 0 Path=/data/tmp/win7.img,Type=fileio,ScsiId=lun1,ScsiSN=lun1
# Start iSCSI service
sudo service iscsitarget stop
sudo service iscsitarget start
# Testing on Windows7 (built in feature)
# by searching iscsi keyword
# Install necessary tools
apt-get clean
apt-get update
apt-get install kpartx
#apt-get install gparted
apt-get installed parted
apt-get install qemu-utils
apt-get install syslinux
apt-get install dosfstools
# Install ms-sys
# wget http://superb-dca3.dl.sourceforge.net/project/ms-sys/ms-sys%20stable/2.4.0/ms-sys-2.4.0.tar.gz
wget http://heanet.dl.sourceforge.net/project/ms-sys/ms-sys%20stable/2.4.1/ms-sys-2.4.1.tar.gz
tar xvfz ms-sys-2.4.1.tar.gz
cd ms-sys-2.4.1
make
make install
http://os.51cto.com/art/201001/176511.htm
对大家推荐很好使用的nfs服务系统之前,像让大家对Ubuntu nfs服务系统有所了解,然后对Ubuntu nfs服务系统全面讲解介绍,希望对大家有用配置Ubuntu nfs服务器,可见Ubuntu隶属于linux阵营。顺便问一句楼主既然没有文档何必一定要学ubuntu,还是学有文档的比较方便。
在Ubuntu下安装、配置Ubuntu nfs服务的步骤如下:
1、安装Ubuntu nfs
Ubuntu上默认是没有安装Ubuntu nfs服务器的,因此我们首先安装Ubuntu nfs服务器端:$sudo apt-get install nfs-kernel-server
在一些文档中,提出还需要使用apt-get来手动安装nfs的客户端nfs-common,以及端口映射器portmap,但其实这是没有必要的,因为在安装nfs-kernel-server时,apt会自动为我们把它们安装好。
2、配置/etc/exports
Ubuntu nfs允许挂载的目录及权限在文件/etc/exports中进行了定义。
例如,我们要将根目录下的rootfs目录共享出来,那么我们需要在/etc/exports文件末尾添加如下一行:/rootfs *(rw,sync,no_root_squash)
其 中:/rootfs是要共享的目录,*代表允许所有的网络段访问,rw是可读写权限,sync是资料同步写入内存和硬盘,no_root_squash是 Ubuntu nfs客户端分享目录使用者的权限,如果客户端使用的是root用户,那么对于该共享目录而言,该客户端就具有root权限。
其它Ubuntu nfs常用的参数有:
ro 只读访问
rw 读写访问sync 所有数据在请求时写入共享
async nfs在写入数据前可以响应请求
secure nfs通过1024以下的安全TCP/IP端口发送
insecure nfs通过1024以上的端口发送
wdelay 如果多个用户要写入nfs目录,则归组写入(默认)
no_wdelay 如果多个用户要写入nfs目录,则立即写入,当使用async时,无需此设置。
hide 在nfs共享目录中不共享其子目录
no_hide 共享nfs目录的子目录
subtree_check 如果共享/usr/bin之类的子目录时,强制nfs检查父目录的权限(默认)
no_subtree_check 和上面相对,不检查父目录权限
all_squash 共享文件的UID和GID映射匿名用户anonymous,适合公用目录。
no_all_squash 保留共享文件的UID和GID(默认)
root_squash root用户的所有请求映射成如anonymous用户一样的权限(默认)
no_root_squas root用户具有根目录的完全管理访问权限
anonuid=xxx 指定nfs服务器/etc/passwd文件中匿名用户的UID
anongid=xxx 指定nfs服务器/etc/passwd文件中匿名用户的GID
3、Ubuntu nfs重启服务
$sudo /etc/init.d/portmap restart
$sudo /etc/init.d/nfs-kernel-server restart
4、测试Ubuntu nfs
此时可以运行以下命令来显示一下共享出来的目录:
$showmount -e
或者可以使用以下命令把它挂载在本地磁盘上,例如将/rootfs挂载到/mnt下:
$ sudo mount -t nfs localhost:/rootfs /mnt
可以运行df命令查看是否挂载成功。查看后可以使用以下命令卸载:
$ sudo umount /mnt
###########################
# eample #
sudo apt-get install nfs-kernel-server
cat /etc/exports
/data/download/iso *(ro,insecure,all_squash)
sudo service portmap restart
sudo /etc/init.d/nfs-kernel-server restart
showmount -e
mkdir /tmp/iso
sudo mount -t nfs 127.0.0.1:/data/download/iso /tmp/iso