2023/10/28

Blog Migration

Blogging has been in the sidelines long enough for me, time to switch gears and write more stuff.

Here is the new blog, I cherry-picked & migrated a few articles from this blog.

https://blog.tonysan.fun/



2022/10/07

TrueNAS (FreeNAS) - 7 years later

7 years after the original FreeNAS, It has changed a lot. Guess it's time to write some recap and experiences along the additions and modifications to my NAS. It's gonna be a long one, for those impatient, here is the TL;DR:

  • Maxed RAM to 128G
  • Added a PCIe NVMe expansion card, and
    • Upgraded mirrored boot device to NVMe drives
    • Added another NVMe drive for L2ARC
  • Upgraded disks to 8TB
  • Upgraded switch to MultiGig (10G/2.5G) - Not directly related to the NAS itself
  • Peak CIFS get a nice bump, from 3.5Gbps to 5.45Gbps

自從組 FreeNAS 已經過了七年,特別寫一篇 blog 詳述中間各種變化與升級,下面條列升級重點,給沒時間細讀的人參考。

  • 記憶體加滿 - 128G
  • 加了一張 PCIe NVMe 擴充卡
    • 把開機 USB 換成 NVMe
    • 再多加一張 NVMe 當成 L2ARC
  • 硬碟就地升級成 8TB
    • 拆外接硬碟,改 SATA 電源接頭
    • smartctlbadblocks 壓力測試硬碟
    • 陣列重組 (resilvering)
  • 升級區網,終於讓主機板上的 10G 網卡解除限制器
  • CIFS 效能從 3.5Gbps 提升到 5.45Gbps

 

If you are still interested, keep going...

對細節有興趣的請繼續往下看...

2018/11/23

Setting up a PXE boot environment - Part 0

Upon learning that Raspberry Pi 3 and above has PXE boot capabilities, I pulled out my dust gathering, poor Raspberry Pi 3B... My motive is NOT to re-image that MicroSD card every time I want to tinker stuff, simply plug-in, power up, and viola, at least ideally.

Following the guidelines from various sources:
https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/net_tutorial.md  https://help.ubuntu.com/community/DisklessUbuntuHowto


2018/06/10

Building stuff

When I was 12, a relative lend me a set of PC, I vaguely remember it was a Pentium 133, has a turbo button in its case, and a fairly large, 400MB hard drive. He lend it to me so I can take it apart and put it back, see if everything is still working.

2017/06/11

Configure a http/2 Nginx using Let's Encrypt free SSL certificate

Once upon a time (circa. 2015), it would cost you for a few dozen bucks, to a few hundred dollars, per year, to get that shiny green little locky thingy appear on your URL bar in the browser. The cost would be justifiable for someone that runs a large business on the web, not so much for small companies or someone who occasionally runs a random httpd somewhere, like me. That was the dark time of the internet.

Setting up a LAMP alternative on Ubuntu 16.04 - Nginx / HHVM / MariaDB / Nodejs

When I started my freelancer career a decade ago, AppServ was my development environment. It is essentially an one-click setup WAMP. I run Wordpress, xtCommerce, MediaWiki, and lots of other popular packages. Time flies, people changed, things changed. And the time to upgrade my old server has come.

2015/11/27

Setting up a FreeNAS from scratch / FreeNAS 開箱與組裝

更新: 似乎有許多外站連結到這篇文章,像是這篇, Google 翻譯出來慘不忍睹,所以我稍微翻譯了一下

Edit: So I got linked from a lot of places like this and Google Translate is horrible, so I decided to translate it myself.



世界上有二種硬碟:壞掉的硬碟,與將會壞掉的硬碟。三個月前,我手上的二顆舊硬碟被列為前者。上面沒有什麼重要資料,但少了二顆硬碟,很不方便。硬碟就跟醬油一樣,用完了就得出去添購。

There are two kinds of hard drive: broken ones; and will be broken ones. Two of my hard drives were categorized as the latter three months ago. There is nothing important on those, just inconvenient - thou shalt not be short on storage ever.

2010/01/26

用7-zip在linux下分割壓縮

請先裝7-zip

ubuntu上可以用下列指令安裝

sudo apt-get p7zip p7zip-full

懶人用法

7z a -mx=[壓縮比] -t[類型] -v[分割大小] [檔名] [欲壓縮檔案]

範例 (flag與option間無空格)

將 verybigfile.ext 用zip格式壓縮成 archive.zip, 每200M分割, 用最高壓縮比(9最高,1最低)

7z a -mx=9 -tzip -v200m archive.zip verybigfile.ext

最後會輸出archive.zip.001, archive.zip.002 ....

由於.7z還不是那麼流行,所以我傾向壓成.zip

因為在Linux上找不大到Windows比較能支援的分割壓縮法(用split需要用cat合起來...)

算是折衷方案

2009/02/04

Aten CS661 使用心得

由於某個抽獎活動,敝Blog的文章被選為前十名最有創意,

(敝人可是實用取向的呢,怎麼會說有創意呢...),因此也得到了Aten贈送的CS661。

2008/11/14

ATEN CS661, 新世代的溝通橋樑


簡單說明這個產品:

具有二個USB公頭,與一個USB母頭,官方主打其KVM(VNC-Like)功能。

USB母頭上的裝置可以被二台電腦共用。