xnoiz
2017年3月25日土曜日
ファイルサーバ入れ替え FreeBSD on F2-220
---------------------- ファイルサーバ入れ替え ---------------------- # 調査 現在使用しているファイルサーバはProLiant ML115 G1にFreeBSDでZFSの環境で運用している。5年以上もたちそろそろ入れ替えようと思って物色していたところ安くて面白そうなNASを見つけた、TerraMasterの製品だ。 他の製品も調査したがこの価格の安さとARMが多い中Intelを積んでるのはでかい。 スペックやカスタマイズしやすさを調べると、YoutubeでF2-220にWindows Server2016の起動に成功した動画[Terra-Master F2-220 Ninja Hacked with MS Server 2016 - 473](https://youtu.be/fF2DHxoc83Q)があった。 内部に12-pinのVGA出力があり変換ケーブルがあれば、ディスプレイを使って普通にOSがインストールできるみたいだ。 OS入れ替え前提なので調査したのは、HWスペックのみです。 | Model | F2-220 | F4-220 | F5-420 | |---------------|------------------------|------------------------|-----------------------------------------| | CPU | Intel Celeron J1800 dual-core @ 2.4 GHz | Intel Celeron J1800 dual-core @ 2.4 GHz | Intel Celeron J1900 quad-core @ 2.0 GHz | | Memory | 2 GB DDR3 | 2 GB DDR3 | 2 GB DDR3 | | 増設メモリ | 2GB 1600/1333MHz DDR3L 1.35V | 2GB 1600/1333MHz DDR3L 1.35V | 2GB 1600/1333MHz DDR3L 1.35V | NIC | 1000BASE-T x 1 | 1000BASE-T x 1 | 1000BASE-T x 2 | | Flash | 8GB | 8GB | 8GB | | Price | 19,890 | 32,550 | 51,980 | | 最大HDDサイズ | 8TB x 2 | 8TB x 4 | 8TB x 5 | | HDDスロット | 2 | 4 | 5 | | Link |
|
|
| スペック的にはteamingできてquad-codeを積んでいるF5-420が魅力的、仮想ホストとしても活躍。。。 いろいろ迷った挙句必要最低限のF2-220を購入することに決定し、追加で増設用のメモリ、HDD 8TB x2、12pinコネクタVGA変換ケーブルを購入 - HDD : http://amzn.to/2nOK3AD * 実店舗で8TBx2台が50k未満で買えたのでST8000DM002を購入 - メモリ : http://amzn.to/2nRFl5s - VGAケーブル:
# 準備 ## インストールディスクを用意 今回はF2-220に内蔵されているのと同じ8GBのUSBメモリが手元にあったのでそれを使った。 また、インストールするOSは丁度FreeBSD 11 がリリースされているのでそれを使う * 一旦F2-220をバラしてsandiskを取り出して使っても良い ### イメージをダウンロードし展開 USBメモリ用のイメージをダウンロードする ```sh $ wget https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/11.0/FreeBSD-11.0-RELEASE-amd64-memstick.img.xz ``` イメージを展開する $ unxz FreeBSD-11.0-RELEASE-amd64-memstick.img.xz ### USBメモリにイメージを書き込み USBメモリを綺麗にする $ sudo dd if=/dev/zero of=/dev/da1 count=64 GPTとして使うため初期化 $ sudo gpart destroy da1 $ sudo gpart create -s GPT da1 イメージの書き込み $ sudo dd if=FreeBSD-11.0-RELEASE-amd64-memstick.img of=/dev/da1 bs=1m conv=sync ## F2-220の準備 - USBキーボードを接続 - VGAコネクタを接続しディスプレイにも接続 - イメージを書き込んだUSBメモリを接続 ![F2-220](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZP7e51vgBtV84GxHyNWtbeKucQsIEU2Hdqbuk-sxzgthsZisAg09VsEZDbFZKg_-00bQtPGOhHmQJWlQzgPmPG27xT5YMFLczyGmICPZMklW7ifx3deDwt9qGFP_wW9BORPjbon80u7mk/s200/IMG_1858.jpg) ## FreeBSDインストール 普通にFreeBSDのインストールするだけなので詳細は割愛 ## dmesg出力 ``` Copyright (c) 1992-2016 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 11.0-RELEASE-p8 #0: Wed Feb 22 06:12:04 UTC 2017 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0) VT(vga): resolution 640x480 CPU: Intel(R) Celeron(R) CPU J1800 @ 2.41GHz (2416.72-MHz K8-class CPU) Origin="GenuineIntel" Id=0x30678 Family=0x6 Model=0x37 Stepping=8 Features=0xbfebfbff
Features2=0x41d8e3bf
AMD Features=0x28100800
AMD Features2=0x101
Structured Extended Features=0x2282
VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID TSC: P-state invariant, performance statistics real memory = 4294967296 (4096 MB) avail memory = 3974197248 (3790 MB) Event timer "LAPIC" quality 600 ACPI APIC Table:
WARNING: L1 data cache covers less APIC IDs than a core 0 < 1 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) random: unblocking device. ACPI BIOS Warning (bug): 32/64X length mismatch in FADT/Gpe0Block: 128/32 (20160527/tbfadt-650) ioapic0
irqs 0-86 on motherboard random: entropy device external interface kbd1 at kbdmux0 netmap: loaded module module_register_init: MOD_LOAD (vesa, 0xffffffff8101d970, 0) error 19 random: registering fast source Intel Secure Key RNG random: fast provider: "Intel Secure Key RNG" vtvga0:
on motherboard cryptosoft0:
on motherboard acpi0:
on motherboard acpi0: Power Button (fixed) unknown: I/O range not supported cpu0:
on acpi0 cpu1:
on acpi0 atrtc0:
port 0x70-0x77 on acpi0 atrtc0: Warning: Couldn't map I/O. Event timer "RTC" frequency 32768 Hz quality 0 hpet0:
iomem 0xfed00000-0xfed003ff irq 8 on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Event timer "HPET" frequency 14318180 Hz quality 450 Event timer "HPET1" frequency 14318180 Hz quality 440 Event timer "HPET2" frequency 14318180 Hz quality 440 attimer0:
port 0x40-0x43,0x50-0x53 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 pcib0:
port 0xcf8-0xcff on acpi0 pcib0: _OSC returned error 0x10 pci0:
on pcib0 vgapci0:
port 0xf080-0xf087 mem 0xd0000000-0xd03fffff,0xc0000000-0xcfffffff irq 16 at device 2.0 on pci0 vgapci0: Boot video device ahci0:
port 0xf070-0xf077,0xf060-0xf063,0xf050-0xf057,0xf040-0xf043,0xf020-0xf03f mem 0xd0711000-0xd07117ff irq 19 at device 19.0 on pci0 ahci0: AHCI v1.30 with 2 3Gbps ports, Port Multiplier not supported ahcich0:
at channel 0 on ahci0 ahcich1:
at channel 1 on ahci0 xhci0:
mem 0xd0700000-0xd070ffff irq 20 at device 20.0 on pci0 xhci0: 32 bytes context size, 64-bit DMA xhci0: Port routing mask set to 0xffffffff usbus0 on xhci0 pci0:
at device 26.0 (no driver attached) pcib1:
irq 16 at device 28.0 on pci0 pcib1: [GIANT-LOCKED] pcib2:
irq 17 at device 28.1 on pci0 pcib2: [GIANT-LOCKED] pci1:
on pcib2 re0:
port 0xe000-0xe0ff mem 0xd0604000-0xd0604fff,0xd0600000-0xd0603fff irq 17 at device 0.0 on pci1 re0: Using 1 MSI-X message re0: ASPM disabled re0: Chip rev. 0x2c800000 re0: MAC rev. 0x00100000 miibus0:
on re0 rgephy0:
PHY 1 on miibus0 rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow re0: Using defaults for TSO: 65518/35/2048 re0: Ethernet address: 00:0e:c4:ce:94:fc re0: netmap queues/slots: TX 1/256, RX 1/256 pcib3:
irq 18 at device 28.2 on pci0 pcib3: [GIANT-LOCKED] pcib4:
irq 19 at device 28.3 on pci0 pcib4: [GIANT-LOCKED] isab0:
at device 31.0 on pci0 isa0:
on isab0 acpi_button0:
on acpi0 acpi_button1:
on acpi0 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 atkbdc0:
port 0x60,0x64 irq 1 on acpi0 atkbd0:
irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] driver bug: Unable to set devclass (class: atkbdc devname: (unknown)) ppc0: cannot reserve I/O port range est0:
on cpu0 est1:
on cpu1 usbus0: 5.0Gbps Super Speed USB v3.0 ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is present; to enable, add "vfs.zfs.prefetch_disable=0" to /boot/loader.conf. ZFS filesystem version: 5 ZFS storage pool version: features support (5000) Timecounters tick every 1.000 msec nvme cam probe device init ugen0.1: <0x8086> at usbus0 uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0:
ACS-3 ATA SATA 3.x device ada0: Serial Number ZA11J9ZX ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 7630885MB (15628053168 512 byte sectors) ada0: quirks=0x1<4k> ada1 at ahcich1 bus 0 scbus1 target 0 lun 0 ada1:
ACS-3 ATA SATA 3.x device ada1: Serial Number ZA116F51 ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada1: Command Queueing enabled ada1: 7630885MB (15628053168 512 byte sectors) ada1: quirks=0x1<4k> SMP: AP CPU #1 Launched! Timecounter "TSC-low" frequency 1208362372 Hz quality 1000 Trying to mount root from zfs:zroot/ROOT/default []... uhub0: 7 ports with 7 removable, self powered Root mount waiting for: usbus0 Root mount waiting for: usbus0 ugen0.2:
at usbus0 umass0:
on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x8100 umass0:2:0: Attached to scbus2 da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 da0:
Removable Direct Access SPC-4 SCSI device da0: Serial Number 4C530008060520121330 da0: 40.000MB/s transfers da0: 7633MB (15633408 512 byte sectors) da0: quirks=0x2
ugen0.3:
at usbus0 uhub1:
on usbus0 Root mount waiting for: usbus0 uhub1: 3 ports with 2 removable, bus powered ugen0.4:
at usbus0 ukbd0:
on usbus0 kbd2 at ukbd0 re0: link state changed to DOWN re0: link state changed to UP ```
ホーム
登録:
投稿 (Atom)
ファイルサーバ入れ替え FreeBSD on F2-220
ファイルサーバ入れ替え FreeBSD on F2-220
---------------------- ファイルサーバ入れ替え ---------------------- # 調査 現在使用しているファイルサーバはProLiant ML115 G1にFreeBSDでZFSの環境で運用している。5年以上もたちそろそろ入れ替えよ...