标签: NAS

  • NexentaStor 4.0 – New Beta Coming in January

    好消息,终于来一个比较像样的 Beta 版本了。可从 3 升级,有可更新的 apt source etc…

    Dear Nexenta Community,

    Happy Holidays from the Nexenta Team. As we prepare for the holidays, Nexenta is also finishing up final testing and release efforts for a newly revamped 4.0 release of NexentaStor.

    NexentaStor 4.0.1 ( the ".1" has been added to differentiate from earlier versions of the 4.0 beta software) will be released for beta testing the first full week of January. This will be a simultaneous beta release including:

    • Enterprise Users – Selected enterprise customers will be testing under NDA for enterprise edition.
    • Reseller Partners – All of premier and certified reseller partners will have access to enterprise edition for solutions testing.
    • Community Users – All interested community users are invited to download and test the new 4.0.1 community edition beta software.

    The software images and beta release notes will be published at the start of the beta period in January. in the interim, there are a few key updates to be aware of for those who have previously tested the earlier beta releases of NexentaStor 4.0 Community Edition (any milestone version):

    1. Seamless Upgrade from 3.1.5 to 4.0.1 – We will be supporting an inline upgrade (rather than a reinstall) to 4.0.1. In order to be able to do a seamless upgrade, systems will have to be upgraded to the latest 3.1.5 release, and community users must be using a standard image without additional binaries installed on their NexentaStor system.
    2. New license keys – In order to support a seamless upgrade from 3.x to 4.0.1, a previous change to the length of the machine ID has been removed. This however, will impact current 4.0 beta users, requiring 4.0.1 to be a reinstall rather than an upgrade.
    3. Improved support for Windows clients – Support for SMB 2.1 has been added (a natural stopping point to SMB 3.0) and will be tested during beta.
    4. Up to date Illumos kernel – The most current changes have been integrated, and Nexenta has begun updating the open source repository in preparation for the full release.

    Check the Forums for the most up to date information about the beta, including question to get your feedback about monitoring beta progress.

    We thank you for your patience and continued support while the 4.0 release has been reworked for the upcoming release.

    Nexenta Product Management

    http://nexentastor.org/news/33

  • NexentaStor 翘掉一例

    一时手贱,把下面这个参数由自己调好的1,跳到10,结果系统死机不断。

    判断应该是磁盘负载过重,导致 NexentaStor 并 ESXi 一起死掉。

    Sys_zfs_vdev_max_pending 该系统配置变量控制设备 I/O 队列大小 (I/O 并发性)。 This system configuration variable controls device I/O queue size (I/O concurrency). 对于 SATA 磁盘,建议值为 ‘1’。 对于所有其他磁盘种类,请保持系统默认。 For SATA disks, the recommended value is ‘1’. For all other disk types, please keep the system default. 请注意,调整此参数可能会影响 I/O 延迟,也许会以原始流吞吐量为代价。 Note that tuning this parameter may affect I/O latency, possibly at the expense of raw streaming throughput. 更多信息,参见 http://en.wikipedia.org/wiki/Native_Command_Queuing.
  • New Public Beta: NexentaStor Community 4.0 milestone 23

    New Public Beta: NexentaStor Community 4.0 milestone 23

    NexentaStor 4.0 is now based on the illumos core, which brings along the latest stability and driver updates.

    Details: This release is intended for a clean install, upgrading from the 3.x series is not supported in this build.

    ISO Image Download: NexentaStor-Community-4.0.0-milestone_23.iso (737MB, md5: f87a860168cb1cb00a874370f1b9a595) Installation Guide: NexentaStor Installation Guide v4.0 Beta.pdf User Guide: NexentaStor User Guide v4.0 Beta.pdf

    Changes since M20:

    #12123 – implemented cacheing for sesctl – NMS #12274 – Joining to Active Directory – NMS #12290 – Fix display unbound target host for slave service – AUTOSYNC #12327 – NMV waits 10 sec on each unavailable host – NS-CLUSTER #12340 – Can not create namespase link in server placed in group – NS-CLUSTER #12444 – ifconfig call has wrong options for ipmpgroupint – NMS #12455 – Interface settings dialogue shows gibberish in local terminal – NMC #12472 – NMV: can not remove namespace link – NS-CLUSTER #12499 – Socket descriptor leak is fixed – REMOTE-REP #12521 – Disk slot numbers do not map into numbers on picture of JBOD – NMS #12529 – Add Multiple ipdevice monitoring support to NMS – RSF-CLUSTER #12535 – update help files – NMV-ON-LINE-HELP-SYSTEM #12393 – Kerberos and smbd disagree about who is our AD server – nza-kernel #12464 – Spurious errors setting up new sessions – nza-kernel #12394 – Even NULL sessions should use SPNEGO – nza-kernel #11780 – Improve hypervisor environment detection – nza-kernel #12453 – Fixed the logic that calculates and shows Utilized value to an user – NMS #12889 – Dashboard page: server counter is not incremented after server was added – NS-CLUSTER #12891 – update size and size_bytes zvol props – NMS #12928 – Fixed some mistakes in process of convertion CE to EE – NMC #13128 – replace gz with bz2 for CollectLogsDiags – NMS #13167 – Can not destroy cluster, add force signals reconnect – NS-CLUSTER #12277 – new psrinfo does not print socket type – nza-kernel #12675 – some e1000g devices don’t support 15 unicast addresses – nza-kernel #10360 – Unable to use /usr/lib/fm/fmd/fmtopo to discover SES / drive topology with the Dell MD1200. – nza-kernel #12739 – AD join with lmauth_level=2 fails – nza-kernel #12927 – LSI 2008 mpt_sas nza-kernel #12534 – Race between logsyseventfilename() and logeventupcall() can cause panic – nza-kernel #8564 – "mutex_enter: bad mutex" panic when under heavy load – nza-kernel #7126 – smbd panic with missing negotiate challenge – nza-kernel #10479 – NM Interfaces have no way to review the differences between two zfs snapshots – NMC #10917, #12504 – target groups sync, ALUA – COMSTAR #11264 – allow send tech support request during wizard in NMV – NMV #12022 – NMC network services configuration and log file hints are not translated – NMS #12043 – volume-check runner: data parsed incorrectly – NMS #12263,12291 – Two minor NMC/NMS localization bugs – NMS #12312 Fix buffer large than 16Mb – REMOTE-REP #12411 – fixed process of plugin installation in NMV – NMV #12433 – update year in copyright string in NMV – NMV #12452 – Question about compression should not be shown to user if he does grow operation for volume – NMC #12493 – SVC remove nmdtrace dependency from nmv, increase nmdtrace start attempt limit. – NMV #12586 – Fix R2L destination address. – AUTOSYNC #12609 – Sessions count In ALUA mode – COMSTAR #12638 – vdev changes + alua fix – RSF-CLUSTER #12790 – quota-check: exclude zvols from check – NMS #12798 – NMV: error on create network interface – NMV #12813 – Fix invalid auto-complete for create/destroy iscsi commands in nmc – COMSTAR #12815 – Fix IPC call logging – NMS #12818 – NMV Internal Error when iSCSI target service is disabled – COMSTAR #12819 – Dont try listing iSCSI initiators when iSCSI target service is disabled – COMSTAR #12820 – Prohibition of creating subfolder if parent folder is not mounted or read-only – NMS #12830 – Fix invalid auto-complete for create/destroy auto service command in nmc – NMC #12836 – re #12377 – Unregister/Remove HyperV VM action is fixed – VMDC #12837 – Ability to start/suspend/stop several VStorage VMs – VMDC #12859 – Increase nmdtrace start attempt time. – NMV #12852 – Community Edition ISO has old foreground image in grub menu – nexenta-builder #12769 – dont send obsolete mode pages to SSDs, SATA, SBC2 and later conforming devices – nza-kernel #12720 – It should be possible to customize available languages and text of EULA in installer – nexenta-builder #12765 #12279 – statd is not handling incoming SM_NOTIFY properly when the hostname is not resolvable – nza-kernel #11612 – Failing vdev of a mirrored pool should not take zfs operations out of action for extended periods of time. – nza-kernel #9110 – zdb dies with arithmetic exception – nza-kernel

  • NexentaStor NAS 家用环境置备(一):BT 客户端

    前言

    对于 7*24 运行的家用 NAS 来说,你肯定想装上可通过 Web 界面访问控制的 BT 客户端——通过动态域名服务的支持,种子在办公室或路上就可以扔到上面,苍老师在你回家之前就已躺好了……:D

    这一切在 Linux 的诸多发行版下很容易实现,比如 Debian 只需用 apt-get 就基本上搞定了所有事情。而如果你的 NAS 基于 Solaris,比如 NexentaStor,这也有现成的包,但缺失了一些基本的东西——软件包没给你创建服务进程专有的用户,以及没有按照 Solaris 的标准将“服务”给定义出来。

    为什么要选用 NexentaStor?NexentaStor 系出 Solaris,在商业化运作的基础上也提供 Community 版本的软件,对 OS 底层封装得非常不错,相比其他 BSD NAS 方案有着良好的用户使用体验!二则是 ZFS 的优良特性,使得其非常适合家庭持久数据的保存。

    nexentastor4

    NexentaStor ACL

    下文将解释如何在 NexentaStor 上安装 BT 客户端 Transmission(它也被很多 PT 支持),并将其配置为 svcadm 所能管控的系统服务。

    本文使用的 NexentaStor 为 4.0.0 Beta M20,你可以到 NexentaStor Community Beta 网站上关注其更新。

    系统准备

    NexentaStor 使用了 Debian 的软件包管理机制,支持 apt 方式安装和更新软件包。作为一个尚处于 Beta 阶段的专有 OS,官方并未给 NexentaStor 4.0.0 Beta M20 提供可用的 apt deb source,但由于其核心与 Dilos 一样基于 illumos,且都使用 apt,所以我们把下面这几个源加到 /etc/apt/sources.list 当中应当是可行的:

    deb http://apt.dilos.org/dilos dilos-unstable main contrib non-free deb http://apt.dilos.org/dilos dilos-testing main contrib non-free

    对了,对于 NexentaStor 来说,默认的 Shell 并不是常见的 Bash,而是其封装好的 nmc,你得进到 Bash 才能编辑上述的 sources.list。这你得动点手脚,具体可以点击这里

    nmc@nas:/$ option expert_mode = 1
    nmc@nas:/$ !bash
    You are about to enter the Unix ("raw") shell and execute low-level Unix command(s). Warning: using low-level Unix commands is not recommended! Execute?  (y/n)

    按”y”之后,熟悉的bash#就回来了!

    root@nas:/volumes#

    接下来是导入 dilos 的公钥以验证该 source 的签名,参见“apt-get update 的 NO_PUBKEY 问题解决”:

    root@nas:~# gpg --keyserver subkeys.pgp.net --recv-keys 74DA7924C5513486
    root@nas:~# gpg --export 74DA7924C5513486 | apt-key add -
    

    更新系统:

    root@nas:~# apt-get update
    root@nas:~# apt-get install curl
    root@nas:~# apt-get install unzip

    但是,切记除了安装你需要的软件包,不推荐你运行 apt-get upgrade 或者 apt-get dist-upgrade 来更新系统。

    基本安装

    同样,我们通过 apt-get install transmission 来完成 Transmission 基本软件包的安装。

    root@nas:~# apt-get install transmission
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Note, selecting 'network-transmission' instead of 'transmission'
    The following extra packages will be installed:
      library-libevent
    The following NEW packages will be installed:
      library-libevent network-transmission
    0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
    Need to get 30.9 MB of archives.
    After this operation, 108 MB of additional disk space will be used.
    Do you want to continue [Y/n]? Y
    Get:1 http://apt.dilos.org/dilos/ dilos-unstable/main library-libevent solaris-i386 1.2.10.1 [628 kB]
    Get:2 http://apt.dilos.org/dilos/ dilos-unstable/main network-transmission solaris-i386 1.2.10.2 [30.3 MB]
    Fetched 30.9 MB in 1min 7s (460 kB/s)                                                                                                                                 
    Selecting previously unselected package library-libevent.
    (Reading database ... 62440 files and directories currently installed.)
    Unpacking library-libevent (from .../library-libevent_1.2.10.1_solaris-i386.deb) ...
    Selecting previously unselected package network-transmission.
    Unpacking network-transmission (from .../network-transmission_1.2.10.2_solaris-i386.deb) ...
    Setting up library-libevent (1.2.10.1) ...
    Setting up network-transmission (1.2.10.2) ...
    

    查看 Transmission 版本,2.73,不是最新也尚可:

    root@nas:~# transmission-cli --version
    transmission-cli 2.73 (13592)

    创建一个新用户 torrentd,用于替换 root 来运行 Transmission 服务进程。

    root@nas:~# mkdir -p /export/home/torrentd
    root@nas:~# cd /export/home/
    root@nas:/export/home# useradd -d /export/home/torrentd -s /bin/false torrentd
    root@nas:/export/home# chown torrentd:other torrentd/
    root@nas:/export/home# ls -la
    total 6
    drwxr-xr-x 4 root     root  4 Feb  8 00:24 .
    drwxr-xr-x 3 root     sys   3 Feb  8  2013 ..
    drwxr-xr-x 2 admin    staff 6 Feb  8  2013 admin
    drwxr-xr-x 2 torrentd other 2 Feb  8 00:24 torrentd

    你可以同时创建 BT 使用的存储目录。NexentaStor 下无疑你希望用上自己的 ZFS 池。

    root@nas:~# mkdir -p /volumes/main/stuff/btdownloads
    root@nas:~# chown -R torrentd:other /volumes/main/stuff/btdownloads

    配置

    这些基本步骤过后,我们还需要配置 Transmission,而创建配置文件最方便容易的方式莫过于运行 transmission-daemon,它会为我们创建一个母本。通常情况下,这些配置文件将在当前登录的用户主目录中生成,在多用户环境中这是 OK 的,但在这里的场景下我们把它们放在 /var/transmission 目录中。

    root@nas:~# mkdir /var/transmission/
    root@nas:~# transmission-daemon --config-dir /var/transmission -f
    [00:35:04.262] Transmission 2.73 (13592) started (session.c:720)
    [00:35:04.263] RPC Server Adding address to whitelist: 127.0.0.1 (rpc-server.c:803)
    [00:35:04.263] RPC Server Serving RPC and Web requests on port 127.0.0.1:9091/transmission/ (rpc-server.c:997)
    [00:35:04.263] RPC Server Whitelist enabled (rpc-server.c:1001)
    [00:35:04.263] UDP Failed to set receive buffer: No buffer space available (tr-udp.c:58)
    [00:35:04.263] UDP Failed to set receive buffer: requested 4194304, got 57344 (tr-udp.c:77)
    [00:35:04.263] DHT Generating new id (tr-dht.c:309)
    [00:35:04.263] Using settings from "/var/transmission" (daemon.c:517)
    [00:35:04.263] Saved "/var/transmission/settings.json" (bencode.c:1731)
    [00:35:04.263] Port Forwarding (NAT-PMP) initnatpmp succeeded (0) (natpmp.c:72)
    [00:35:04.263] Port Forwarding (NAT-PMP) sendpublicaddressrequest succeeded (2) (natpmp.c:72)
    [00:35:12.337] Port Forwarding Port Forwarding (port-forwarding.c:93)
    [00:35:12.337] Port Forwarding Port Forwarding (port-forwarding.c:93)
    [00:35:37.568] DHT Attempting bootstrap from dht.transmissionbt.com (tr-dht.c:247)

    现在进程已经起来,配置文件也已经生成,按 CTRL-C 把 transmission-daemon 进程杀掉。你可以看到一些文件已经生成出来:

    root@nas:~# cd /var/transmission/
    root@nas:/var/transmission# ls -la
    total 11
    drwxr-xr-x  5 root root    6 Feb  8 00:37 ./
    drwxr-xr-x 41 root sys    41 Feb  8 00:34 ../
    drwxr-xr-x  2 root root    2 Feb  8 00:35 blocklists/
    drwxr-xr-x  2 root root    2 Feb  8 00:35 resume/
    -rw-------  1 root root 2147 Feb  8 00:37 settings.json
    drwxr-xr-x  2 root root    2 Feb  8 00:35 torrents/

    最重要的文件是 settings.json ,我们需要在其中设置下载目录(download-directory)以及对本地局域网设置白名单(whitelist) (我这里是 192.168.168.*)。

    关于设置文件的一个注意事项:你可以任意编辑此文件,但如果你编辑 settings.json 时 transmission-daemon 处于运行状态,那么服务进程停止时设置文件将被覆写。所以要停掉 transmission-daemon 之后再编辑 settings.json。

    "download-dir": "/volumes/main/stuff/btdownloads",
    ...
    "rpc-authentication-required": false,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,
    "rpc-password": "------------",
    "rpc-port": 9091,
    "rpc-username": "",
    "rpc-whitelist": "127.0.0.1,192.168.168.*",
    "rpc-whitelist-enabled": true,

    Web GUI 的默认端口为 9091,这可以通过编辑 rpc-port 值来变更。

    设置文件的更多信息在这里找:

    https://trac.transmissionbt.com/wiki/EditConfigFiles

    然后更变配置文件夹的属主。

    root@nas:/var/transmission# chown -R torrentd:other /var/transmission

    Transmission 配置为系统服务

    最后一步是将 Transmission 集成到系统的 Service Management Facility (smf) 当中。这需要一个描述了 Transmission 服务的 XML 配置文件。

    基本的 XML 配置文件在 4amlunch.net 可以找到。但因为该配置文件中需要设置一些特定的目录,所以此处编辑了这个文件以适合本文中的叙述。新文件可以在这里找到: transmission.zip

    假设传送至 /tmp 目录。

    root@nas:/tmp# unzip transmission.zip
    Archive:  transmission.zip
      inflating: transmission-daemon
      inflating: transmission-daemon.xml
    
    root@nas:/tmp# mv transmission-daemon /lib/svc/method/
    root@nas:/tmp# chmod +x /lib/svc/method/transmission-daemon
    root@nas:/tmp# chown root:bin /lib/svc/method/transmission-daemon
    root@nas:/tmp# svccfg import -V transmission-daemon.xml

    现在,我们已经将 transmission-daemon 安装成为了 NexentaStor 的一个服务,它可以使用 svcadm 命令来启动及停止,并使用 svcs 来检查其运行状态。

    相关命令: svcadm enable transmission-daemon svcadm disable transmission-daemon

    以下步骤将启用 Transmission 服务,并检查其状态。

    root@nas:/tmp# svcadm enable transmission-daemon
    root@nas:/tmp# svcs -x transmission-daemon
    svc:/application/transmission-daemon:default (Transmission BitTorrent Client (Daemon))
     State: online since February  8, 2013 01:33:33 AM PST
       See: transmission-daemon(1)
       See: http://www.transmissionbt.org
       See: /var/svc/log/application-transmission-daemon:default.log
    Impact: None.

    这样就可以了,服务已启动并运行,现在我们可以在端口 9091 访问 Transmission 的 WebGUI:

    http://YourServerAddress:9091/

    transmission-web-ui

    如果希望使用 uTorrent 风格的客户端,那推荐你使用 RPC 客户端来访问 Transmission 守护进程,比如 Transmission Remote GUI,比 Web GUI 更方便强大: https://code.google.com/p/transmisson-remote-gui/

  • 硬件达人自制高性能SOHO NAS

    目前市面上的SOHO NAS有几个阵营:

    第一阵营

    群辉(Synology) 威联通(QNAP)

    优点:软件功能强大,简单易用 缺点:贵

    第二阵营及其他

    色卡司 美禄可(Buffalo) 网件 艾美佳(Iconnect) D-link 等

    其他厂商基本上是壳和UI不同

    本着降低NAS家庭用户门槛,让网友们多一个DIY选择的精神,一帮硬件高手正着手在DIY嵌入式的NAS平台。

    目前的进度:

    2012年9-14 1 PCB 打板完成,正在快递中…预计9月17日前完成焊接. 2 下周末可以制作出3套样品.

    看看,这些家伙在这里: DDNAS论坛 http://ddnas.openmobilefree.net

  • 家用NAS的过去、现在与将来 [2008年9月]

    PCOnline 2008年的文章,如今4年过去了,再回顾一下。

    时间:2008-09-04 16:50:13 出处:pconline 原文:http://network.pconline.com.cn/memory/0809/1407792.html

    一个家庭中拥有多台电脑在目前已经不是什么新鲜事了。不过,相信不少用户都面临这样的问题:每台电脑上高达数十甚至上百GB的影音数据让人非常头疼!如果能够将这些“各自为政”的影音数据整理起来并加以快速共享该多好啊。如果这时家里有一台专用的存储设备,网络上下载的任何视频、音频文件都可以方便地通过这台设备在家中的多台电脑中共享,而且还能在其他电脑关机的状态下,不间断下载网络上的资源,还能方便你在其他地方访问和提取家中的文件数据,那将是多么惬意的事情啊!而这些,正是家庭NAS服务器的专长。

    【评点】“数十”G,4年后仅是一台设备一张卡拍数天照片或一天视频的存储量了。

    一 家庭NAS存储技术发展简史

    在宽带普及、BT共享时代,相信在许多用户的家中都会有一台甚至多台电脑会长时间开着,下载网络上丰富的音视频资源。但能耗过大和不方便管理的问题是我们不得不面对的。于是,有厂商推出了支持BT功能的路由器。虽然从严格意义上来说,这并不属于家庭服务器的范畴,而仅仅是一个支持资源下载,并实现了简单共享功能的网络设备,但它却让网络资源共享走向了傻瓜化操作时代,这正是许多家庭所需要的。但这类产品由于定价较高,且很多产品没有集成存储介质,不带硬盘,通常需要用户自己去购买USB接口移动硬盘与之连接,所以,并没有形成太大的气候。

    随后,厂商们又在BT路由器的基础上推出了支持BT功能及共享功能的网络硬盘,真正实现了脱离PC主机、实现网络连接下载共享的服务,这便是家用级共享存储服务器的雏形。而随着服务器技术的发展和市场的细分,这类产品也有了自己明确的名称——家用NAS产品。

    近年来家用NAS应用范围逐渐扩大, 开始具有多媒体文件共享、BT下载、媒体服务器、FTP服务器等小型服务器的功能,而且设置相当简单。而传统桌面硬盘容量的提升和大降价,也为这类产品注入了一针兴奋剂。现在,一块配备500GB硬盘的家用NAS产品,价格多在3000元以内,得到了不少高端个人/家庭用户的青睐。

    二 家庭NAS服务器可以给我们带来什么?

    以前NAS产品主要应用于企业,功能主要是文件共享、数据(远程)备份和网络打印等。而家庭消费级市场中的NAS产品,则多具备多媒体文件共享、媒体服务器功能,同时支持Web网站和FTP服务器的架设,可以说,家用NAS产品就是一台多功能的小型服务器。

    1.完善的网络存储功能

    家庭NAS产品具备相当完善的网络存储功能,这正是一台家用级服务器所应充当的主要角色。借助NAS,你可以将所有的影音数据网络化,家中的电脑仅需调用NAS上的音乐文件、数码照片和电影文件即可。

    为了提高安全性,有的家用NAS产品甚至还可以将文件分类存放,并可以对文件加密,为不同的用户设定不同的访问权限。做到访问的差异化。

    同时,大部分的NAS产品都支持多个硬盘的阵列,给存储带来了性能的巨大提升(组建RAID 0阵列)和安全性保障(组建RAID1阵列)。

    2.BT下载简单稳定

    BT下载是这两年最流行的下载方式,通过P2P共享方式实现大型媒体文件的共享与下载。相信经常下载的玩家都有过整夜开着电脑BT下载的经历,时间长了对PC的稳定、耗电以及室内静音都是挑战。而NAS产品则可以代替PC来进行BT下载,同时分类保存下载文件,再也不会有稳定性、噪音等方面的困扰。同时大多数NAS服务器的BT下载界面方便友好,操作简便,易于上手。由于NAS产品比普通PC功耗要低许多,耗电量也大大降低,对能源节约大有好处。

    3.影音播放

    娱乐对于家庭而言是必不可少的组成部分,家庭服务器不仅可以安装最新的光盘驱动器(例如:蓝光、HDDVD)来播放高清晰度电影,网络上下载的任何视频、音频文件都可以成为良好的片源、音源。而服务器本身的处理性能,还能完成不同于传统家电的功能,例如语音朗读等等。

    自从GeForce 4系列以来NVIDIA就可以实现视频/VGA/DVI的多种显示功能,甚至让指定的设备以全屏方式显示视频,这对于家庭服务器的影音播放功能尤为重要。

    【评点】4年前HDMI似乎还未流行?

    4.安全保障

    即使最简单的摄像头都可以作为家庭安全监控的设备,通过互联网,我们可以在任何地方看到家庭内部的实时图像,甚至可以通过设置,使服务器直接以某种方式报警。

    5.远程访问,方便快捷

    目前NAS产品不仅可以让你方便地在局域网内访问它上面的资源,还允许用户通过互联网远程访问它上面的资源。比如你在公司里面同样可以通过互联网,使用远程访问功能来提取家中NAS产品上的数据资源。

    相对于设置烦琐的专业服务器,NAS服务器的这些功能的操作也是傻瓜化的。当然,为了实现这些,你需要为路由器开放相应端口。最愉快的是,你还可以远程控制自己家中的NAS产品去进行BT下载,做到“网络在手,天下我有”。

    6.特色小功能帮大忙

    除了文件存储、BT下载、文件共享和远程访问这些主要的功能之外,现在的家庭NAS产品还提供了一些小功能,比如能够让你时刻监控自己家庭网络的状况,看是否有电脑连接到这台NAS服务器,连接电脑的一些基本信息也可以查看到。还有的NAS有一个液晶屏,可以根据城市设置显示天气预报。除此之外,大部分的NAS产品都具备USB及IEEE 1394接口,方便接驳闪存、移动硬盘等外围存储设备。

    【评点】技术升级先后带来了eSATA和USB3.0。

    三 家庭NAS的普及现况与前景分析

    家用NAS好处多多,但是就目前国内的普及情况来看,并不理想,可以说也就仅限于NAS发烧友玩家吧,在国外的市场明显大于国内。到底什么成为了家用NAS普及的绊脚石呢?就笔者看来,原因有很多,但改变消费习惯是成败的关键。

    【评点】目前的市场成熟度仍然有限。

    首先,家用NAS面临的其它挑战包括与通过USB和网络备份服务连接的简单外部驱动器之间的竞争。不少消费者的确表示面对庞大的影音数据,感到非常烦恼,但是另一方面,他们似乎更习惯去买个刻录机进行数据备份,然后把这些数据“永久地封存起来”,再也不去碰它。外部硬盘驱动器操作简单,日渐流行,并且其所占有的市场份额比家用NAS产品要多很多。另一方面,习惯性的刻录所花的资金的确比买个NAS便宜得多。

    【评点】随着数据量上升,光盘刻录的备份已被摒弃。

    其次,在国外,假如你从苹果(计算机)iTunes以每首歌99美分的价格购买了多首歌曲。若你下载了1,000首歌,那么你就支付了1,000美元。而当你的硬盘损坏时,你损失了1,000美元。在中国,可以说基本不花费一分钱。再假如说你给你刚出生的宝宝照了很多照片,三年后,硬盘损坏或者当时用于备份的光盘丢失了,这意味这所有照片都丢失了,你才会体会数据丢失的代价。

    也许我觉得,当消费者真正意识到丢失数据的代价时,就比较容易接受NAS了。

    当然,家庭NAS产品的发展已经进入了一个比较成熟的阶段,而且,它的功能还在不断完善,操作也越趋于人性化简单化。很多家电厂商也注意到这一新产品,他们也在思考如何让自己的家电产品具备这种功能,或者能够与这类产品进行“无缝连接”。

    要想实现真正的数字家庭,打开家用NAS的市场话,做好消费习惯的引导,进行良好的造势并降价,将是家庭NAS产品及相关厂商目前应该解决的主要问题。

    【评点】相对于家用电脑硬件的价格,尽管家用NAS的价格有其附加的存储管理软件成分,但目前的定价还是存在相当的虚火。当然了,这也是个市场机会 :)。

  • NexentaStor下获取真正的root权限

    NexentaStor一切都被封装得严严实实,即使用ssh下用root登录到它的NMC(Nexenta Management Console)也是如此。当然了,这主要还是为了安全计——如果这台机器这个OS下的系统专用作存储服务,似乎真实的root shell确已无必要,使用其WEB界面的NMV及字符界面的NMC就已足够。但凡事总有例外,如果NexentaStor运行在ESXi下,像VMware tools之类的安装活儿,你还非得真正的UNIX shell不可。

    NexentaStor其实就是Solaris开源分支的一个封装发行,那么我们怎样找到熟悉的UNIX bash呢?我们来搞搞震吧!

    在NexentaStor启动使用root登录之后,你进入的是NMC shell,不管如何,先使用你的"root"账号登录,然后遵循以下步骤:

    nmc@homenas:/$ option expert_mode = 1 nmc@homenas:/$ !bash You are about to enter the Unix ("raw") shell and execute low-level Unix command(s). Warning: using low-level Unix commands is not recommended! Execute?  (y/n)

    按"y"之后,熟悉的bash#就回来了!

    nmc@homenas:/volumes#

    好吧,现在你可以为所欲为了!

    退出这个bash shell的时候,注意系统的提示。

    nmc@homenas:/volumes# exit exit

    Important: To re-sync the appliance's management state information, please consider running 'setup appliance nms restart' command.

    nmc@homenas:/$

    为系统完整性考虑,你应该考虑运行它建议的命令"setup appliance nms restart"。

  • SOHO NAS 折腾 – HP ProLiant MicroServer N40L

    杂凑大纲:

    需求篇

     

    硬件篇

    内存、SATA扩展、线缆、网卡、光驱位扩展、硬盘

    软件篇

    操作系统底层

    Server OS or ESXi

    ZFS及NexentaStor/NAS4Free/FreeNAS

    Windows

    〇、需求篇

     

    一、硬件篇

    1.1 HP ProLiant MicroServer N40L Quick Specs

    http://h18000.www1.hp.com/products/quickspecs/13716_div/13716_div.html

    1.2 内存

    ECC UDIMM

    为什么要使用ECC内存,对于存储系统来说,数据的持久性正确性是最重要的。不使用ECC内存,如果内存损坏而无提示,则可能会损坏数据,并往硬盘写入已损毁的数据。

    1.3 SATA/SAS扩展

    当下(2012年9月)最廉价的8口SATA3卡当属LSI的OEM型号IBM M1015/9220-8i。

    1.3.1 RAID Controller

    IBM ServeRAID M1015 SAS/SATA Controller for System x http://www.redbooks.ibm.com/abstracts/tips0740.html http://www-947.ibm.com/support/entry/portal/docdisplay?lndocid=MIGR-5073015

    [caption id="" align="aligncenter" width="400"]IBM ServeRAID M1015 SAS/SATA Controller for System x IBM ServeRAID M1015 SAS/SATA Controller for System x[/caption]

    LSI MegaRAID SAS 9240-8i http://www.lsi.com/products/storagecomponents/Pages/MegaRAIDSAS9240-8i.aspx

    [caption id="" align="aligncenter" width="540"]LSI MegaRAID SAS 9240-8i LSI MegaRAID SAS 9240-8i[/caption]

    1.3.2 HBA

    IBM HBA

    IBM 6 Gb SAS Host Bus Adapter for System x (4e4i) http://www.redbooks.ibm.com/abstracts/tips0776.html

    [caption id="" align="aligncenter" width="450"]IBM 6 Gb SAS Host Bus Adapter for System x IBM 6 Gb SAS Host Bus Adapter for System x[/caption]

    IBM 6 Gb Performance Optimized HBA (* Formerly known as the IBM 6Gb SSD Host Bus Adapter for IBM System x) http://www.redbooks.ibm.com/abstracts/tips0744.html

    [caption id="" align="aligncenter" width="450"]IBM 6 Gb Performance Optimized HBA IBM 6 Gb Performance Optimized HBA[/caption]

    LSI HBA

    LSI SAS 9211-8i HBA http://www.lsi.com/products/storagecomponents/Pages/LSISAS9211-8i.aspx

    [caption id="" align="aligncenter" width="540"]LSI SAS 9211-8i HBA LSI SAS 9211-8i HBA[/caption]

    参考: IBM ServeRAID Adapter Quick Reference http://www.redbooks.ibm.com/abstracts/tips0054.html

     

    1.4 线缆

    如何选择SAS线缆 http://stor-age.zdnet.com.cn/stor-age/2009/0514/1368653.shtml

    1.5 网卡

     

    1.6 光驱位扩展

    Orico 5226ss : 2.5″ * 6 扩展 Orico 5224ss : 2.5″ * 4 扩展

    1.7 硬盘

     

    二、软件篇

    2.1 ESXi

    SAS卡等PCI-E设备直通到虚拟机 http://www.servethehome.com/configure-passthrough-vmdirectpath-vmware-esxi-raid-hba-usb-drive/

    非官方支持的“本地”硬盘RDM挂载 http://blog.davidwarburton.net/2010/10/25/rdm-mapping-of-local-sata-storage-for-esxi/