公告版位

一、安裝與設定VNC Server

Step 1) 安裝vnc-server package

(此為CentOS 5.5安裝package方式)
[root]$ yum install -y vnc-server

(此為CentOS 6.2安裝package方式)
[root]$ yum install -y tigervnc-server

dreamtails 發表在 痞客邦 留言(0) 人氣()

一、YUM Server環境建置:

Step 1) 下載mirrordir套件安裝

mirrordir:http://pkgs.repoforge.org/mirrordir/

 

Step 2) 下載yum-arch套件安裝(自動產生headers資料夾)

yum-arch:http://rpm.pbone.net/index.php3/stat/4/idpl/4852179/com/yum-arch-2.2.2-2.el5.noarch.rpm.html

 

Step3) 安裝createrepo套件(建立索引檔用)

$ yum install -y createrepo

 

Step 4) 安裝並啟動httpd套件

$ yum install -y httpd

 

dreamtails 發表在 痞客邦 留言(1) 人氣()

原本在用的一台Server有四張網卡,分別是eth0, eth1, eth2, and eth3

我們都是使用eth2來做PXE的CentOS deploy

結果因應工程師的需求,裝了一張兩個ports的10G網卡

想說就直接照著裝,因為我們還是要使用原本的eth2來作deploy,

結果一直不行,deploy時,OS會使用eth0去跟DHCP Server要IP,

怎麼會這樣呢? 東找找、西找找,才發現10G的一張網卡接上後,

OS把這張10G網卡的兩個ports認為是eth0 and eth1,

相對的我們原本的eth0, eth1, eth2, and eth3就往後順移兩個號碼,

也就是eth2, eth3, eth4, and eth5,

所以我們最後是tftpboot目錄裡的設定與kickstart file設定由原本eth2改為eth4後,

就成功deploy了。終於找了問題也順利解決。

 

dreamtails 發表在 痞客邦 留言(0) 人氣()

dreamtails 發表在 痞客邦 留言(0) 人氣()

以下資料來源參考自:
(1) http://ssorc.tw/?p=198
(2) http://blog.yam.com/keynes0918/article/31351174

 

環境:
(1) Windows AD Server:
                                   Homename:AD.COM
                                   IP Address:10.100.99.99
(2) CentOS 6.2 x64:
                                   Homename:HH-AABBCCSS
                                   IP Address:10.100.1.1 (以下設定並未用到)

(3) 需要一組用來驗證AD Server的一般使用者帳號(A12345)/密碼(以下範例使用的非管理者administrator帳號/密碼,而是一般使用者)。

dreamtails 發表在 痞客邦 留言(0) 人氣()

使用檔案系統格式為Ext3, 預設OS會開啟ACL功能,但現在我們要mount一個新的磁區,就需要另外開啟ACL功能,方法如下:

(1) mount -t ext3 -o remount,acl /

(2) vim /etc/fstab

--------------------------------------------------------------
 /dev/sdb1    /mnt     ext3    defaults,acl    1    0
--------------------------------------------------------------

dreamtails 發表在 痞客邦 留言(0) 人氣()

step 1) $ yum install -y setuptool ntsysv system-config-*

dreamtails 發表在 痞客邦 留言(0) 人氣()

一、名詞定義與必要packages:

      (1) Server為Monitoring Host
           - $ yum install -y httpd php gcc glibc glibc-common \
                gd gd-devel openssl openssl-devel

           - nagios-3.4.1.tar.gz (Nagios Core)
           - nagios-plugins-1.4.15.tar.gz (Nagios plugins)
           - nrpe-2.13.tar.gz (NRPE)

      (2) Client為Remote Host
           - $ yum install -y httpd php gcc glibc glibc-common \
                gd gd-devel openssl openssl-devel xinetd

           - nagios-plugins-1.4.15.tar.gz (Nagios plugins)
           - nrpe-2.13.tar.gz (NRPE)

dreamtails 發表在 痞客邦 留言(0) 人氣()

step 1. $ yum install xfsprogs*

step 2. $ yum install xfsdump

step 3. $ fdisk /dev/sdc

                n → Enter

                p → Enter

                1 → Enter

                Enter → Enter → w

 

step 4. $ mkfs -t xfs -f /dev/sdc1

dreamtails 發表在 痞客邦 留言(0) 人氣()

若我們要用IOZone來測試mount在/mnt/iscsi下的iSCSI磁區benchmark, 指令可以如下:

Example 1:
$ iozone -Rab output.xls -i 0 -i 1 -i 2 -y 4K -q 2M -n 4K -g 2G -S 8M -+u -f /mnt/iscsi/iotest.file -z

Example 2:
$ iozone -Rb output.xls -r 4K -s 2G

dreamtails 發表在 痞客邦 留言(0) 人氣()

$ yum install -y sysstat

$ iostat -d -m -t 2 10

dreamtails 發表在 痞客邦 留言(0) 人氣()

$ time ls > output.txt 2>&1

註:一定要加"2>&1"才會將時間寫入output.txt喔!

dreamtails 發表在 痞客邦 留言(0) 人氣()

$ time ls

real 0m0.007s
user 0m0.006s
sys 0m0.001s

dreamtails 發表在 痞客邦 留言(0) 人氣()

Q:
     
原來在Vsphere 5在安裝後,使用local端只能設定一個管理IP (如:10.10.1.1),假如有兩張網卡時,而且這兩張網卡又要設定不同網段時怎麼辦呢? 假設現在我們有兩張實體網路卡,vmnic0(設定10.10.1.1)與vmnic1(192.168.1.1)。

dreamtails 發表在 痞客邦 留言(0) 人氣()

情境:若今天我們要建立兩個Pool,第一個Pool有兩個Lun,這兩個Lun分別只給192.168.1.1與192.168.2.2掛載。而第二個Pool只有一個Lun,這個Lun可以給所有人掛載。那我們的設定檔可以如下。

$ vim /etc/tgt/targets.conf

-------------------------------------------------------------------------
default-driver iscsi

<target iqn.2012-05.hostname:iSCSI-Pool_one>
        <backing-store /mnt/iscsi/LUN1>
                lun 1        #此為這個Pool下的Lun編號:1
                initiator-address 192.168.1.1
        </backing-store>

        <backing-store /mnt/iscsi/LUN2>
                lun 2        #此為這個Pool下的Lun編號:2
                initiator-address 192.168.2.2
        </backing-store>
</target>

<target iqn.2012-05.hostname:iSCSI-Pool_two>
        backing-store /mnt/iscsi/LUN3
        lun 1        #此為這個Pool下的Lun編號:1
        initiator-address ALL

</target>
-------------------------------------------------------------------------

dreamtails 發表在 痞客邦 留言(0) 人氣()