HD , Network , FC –檢查 Error count
測試環境為 Ubuntu14.04 HD , Network , FC 這幾種常見的 I/O 介面要如何檢查是不是有產生 Error count HD 透過硬碟本身所提供的 S.M.A.R.T. (Self-Monitoring Analysis and Reporting Technology )技術 ,就可以檢測該顆硬碟的 Error count (Errors Corrected by ECC...
View ArticleLinux command – sfck
系統有一顆硬碟壞了,抽出來到別台 RedHat RHEL 6.5 檢查得到一個無情的結果 [root@localhost Desktop]# fsck -y /dev/sdb1 fsck from util-linux 2.20.1 e2fsck 1.42.9 (4-Feb-2014) ext2fs_open2: Bad magic number in super-block fsck.ext2:...
View ArticleiPXE
之前使用的 PXE 環境都是使用 “pxelinux.0″ (這個檔案由 Syslinux 套件提供) PXELinux 提供的功能比較簡單,只能透過 DHCP , TFTP 協定與設定檔來進行網路開機的作業.請參考 http://benjr.tw/83 同性質的 PXE 還有 iPXE 官方網站說明 http://ipxe.org/start iPXE is the leading open...
View ArticleLXC (Linux Containers)
虛擬化的種類很多 Full Virtualization (Paravirtualization , Hardware-assisted virtualization) , OS-Level Virtualization ,那 LXC 算是哪種虛擬化? LXC 提供類似於作業系統層級的虛擬化 OS-Level Virtualization ,先來看看之前所謂的 作業系統層級的虛擬化 ....
View ArticleLXC – Network
前面有討論到 LXC 虛擬化 http://benjr.tw/95955 與 Ubuntu LXC 的使用 http://benjr.tw/93708 ,這邊我們來看看關於 LXC 的網路架構. 安裝完 LXC 會發現多了一個網路埠 lxcbr0 root@ubuntu:~# ifconfig ... lxcbr0 Link encap:Ethernet HWaddr...
View ArticleVNC – tigervnc
測試環境為 CentOS 7 Minimal Install.測試環境建議可以先關閉 firewall 與 selinux http://benjr.tw/95368 先來討論一下 Minimal Install 可以使用 VNC 嗎? 我們得先了解 X-Window 的運作方式, X Server 負責顯示介面與繪圖,並將使用者的輸入行為告知 X Client,而 X client...
View ArticleQEMU machine emulator (Ubuntu)
測試環境 Ubuntu 16.04 (X86_64) 如何在 x86_64 環境下產生非 x86_64 的虛擬機器.這就需要透過 QEMU machine emulator 透過全模擬的方式來做. 在使用 QEMU machine emulator 前,我們先來看看 QEMU 三種不同的模擬方式 machine emulator , virtualizer 在加上 KVM. machine...
View ArticleLinux command – smartctl (-t)
指令 #smartctl – http://benjr.tw/95984 是透過硬碟本身所提供的 S.M.A.R.T. (Self-Monitoring Analysis and Reporting Technology )技術 ,他可以根據檢測屬性的結果來決定該顆硬碟的使用是否快故障. 我們可以透過 #smartctl 提供的參數 -t 來進行測試. 測試環境為 Ubuntu14.04 . -t...
View ArticleLinux command – Memtester
之前用過 Memtest86+ http://benjr.tw/491 ,無法直接在 Linux 環境下直接來使用,Memtester 可以直接在 Linux 環境下執行,且可以從 apt-get 下載使用,官方網站 http://pyropus.ca/software/memtester/ root@ubuntu:~# apt-get install memtester Reading...
View ArticleLinux command – smartctl (RAID controllers)
指令 #smartctl – http://benjr.tw/95984 是透過硬碟本身所提供的 S.M.A.R.T. (Self-Monitoring Analysis and Reporting Technology )技術 ,他可以根據檢測屬性的結果來決定該顆硬碟的使用是否快故障. 我們可以透過 #smartctl 提供的參數 -t 來進行測試 http://benjr.tw/96015 ....
View ArticleFio –硬碟的壓力測試
要把 Fio 當作硬碟的壓力測試工具,有兩個參數可以使用,關於 FIO 的基礎使用與設定請參考 http://benjr.tw/34632 測試環境為 Ubuntu 16.04 64bit verify=str Method of verifying file contents after each iteration of the job. 支援這幾種驗證方式 md5 crc16 crc32...
View ArticleLinux – Stressful Application Test
測試環境為 Ubuntu16.04 64bits Stressful Application Test (stressapptest) 程式可以在 memory 到 processor 與 I/O 之間產生大量的隨機流量,主要用於模擬系統在高負載情況下的壓力測試,他現在屬於 apache 2.0 license.連 google 也使用這工具是確保系統在高負載下的穩定性. 從 apt-get...
View Article多網段 DHCP
測試環境為 RHEL (RedHat Enterprise Linux) 6.8 如果你的 DHCP Server 有多個網路埠就可以設定成不同網段的 subnet Subnet – 10.0.0.0 (DHCP : 10.0.0.1) eth0 Subnet – 172.16.0.0 (DHCP : 172.16.0.1) eth1 [root@benjr ~]# vi...
View ArticleLinux – Stressful Application Test (Disk)
前面有使用過 Stressful Application Test (Stressapptest) http://benjr.tw/96740 這邊針對他的硬碟測試來做說明. 測試環境為 Ubuntu16.04 64bits File Copy 執行 2 個檔案的 IO threads, 自動檢測 memory 大小與 core 數量以選擇分配的記憶體和記憶體複製線程 (threads)....
View ArticleLinux – Stressful Application Test (Network)
前面有使用過 Stressful Application Test (Stressapptest) http://benjr.tw/96740 這邊針對他的網路測試來做說明. 測試環境為 Ubuntu16.04 64bits Net Copy Stressapptest 也可以透過網路來進行測試,需要使用兩台機器,並使用下面兩個參數. -n ipaddr : add a network thread...
View ArticleLinux – Stressful Application Test (CPU-Cache)
前面有使用過 Stressful Application Test (Stressapptest) http://benjr.tw/96740 這邊針對他的 CPU-Cache 測試來做說明. 測試環境為 Ubuntu16.04 64bits CPU-Cache 測試多處理器的快取一致性(cache coherency ),確認系統不會因為在快取記憶體中的資料不一致所產生的問題. –cc_test...
View ArticleLinux – Stressful Application Test (Memory)
前面有使用過 Stressful Application Test (Stressapptest) http://benjr.tw/96740 這邊針對他的 記憶體 測試詳細來做說明. 測試環境為 Ubuntu16.04 64bits Memory 與記憶體相關的參數 -m threads : Number of memory copy threads to run. -C (c) threads...
View ArticleNUMA (Non-uniform memory access)
多核心的處理器最早是透過對稱多處理 SMP (Symmetric multiprocessing) 的方式,所有的 CPU 核心對於記憶體的存取是共用的,但是當 CPU 核心數太多時反而是一個限制,當不同的處理器需要交換資料時都是透過系統匯流排將資料儲存在記憶體中,但當核心數多時,交換資料變成常態, CPU 與記憶體之間的速度跟不上 CPU 處理的速度.越多的核心反而讓整體效能降低. 因此有了...
View ArticleLinux – Stressful Application Test (NUMA)
前面有使用過 Stressful Application Test (Stressapptest) http://benjr.tw/96740 這邊針對他的記憶體 NUMA 測試來做說明. 測試環境為 Ubuntu16.04 64bits NUMA (Non-uniform memory access) NUMA (Non-uniform memory access) 把 CPU...
View ArticleLinux command – tcpdump
有時候設定一些跟網路相關的服務,服務雖然是啟動的,但是功能卻是有問題,這時候可透過 #tcpdump 這個指令來觀看目前封包的狀況. 測試環境為 Ubuntu 16.04 64bits 直接下 tcpdump 就可以看到所有的封包,但資料量太大了,封包資訊一下就過去了,可以加入參數來使用. root@ubuntu:~# tcpdump 01:12:49.391892 IP...
View Article