最近我又遇到這個問題,兩間公司合併但還是各自獨立網段,MAIL SERVER 整合後另一邊外站人太多,又習慣用 mail 傳檔, 2M上傳每天都滿載.....又因群組關係,每封信一卡就是好久,重複收信狀況超嚴重,信件延持收到也是很誇張,剛自己寫了個script,然後每10分鐘跑一次,同用到啟用中斷過程非常微小,卻可以把mailq內老是積50封因LOCK問題的信給寄出去清乾淨.

小插曲…如果有個天兵寄了5MB以上的檔案,想想看外站如果40個人同時收這信,2M上傳不知道要傳到何時才能把信傳給大家,這時候又中斷大家收信……想想USER又要重收信,看來要用這個Script真的要小心.

#!/bin/bash
/etc/init.d/dovecot stop

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

 
 
如果你要套用其中一筆 Queue 中的郵件,可以先用 mailq 或 postqueue 指令查詢出或篩選出你要重新排 Queue 的郵件 ID,並使用以下指令重新排 Queue:
#postsuper -r 7B8CE830BD

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

這個產品真屌,不過如果可以變成軟螢幕折疊,攜帶更方便,我想離這項科技不遠了!

SAMSUNG GALAXY Tab 無限機重量僅 380g 的輕薄精巧外觀設計,是 Apple iPad 的一半。

http://mag.udn.com/mag/digital/storypage.jsp?f_MAIN_ID=320&f_SUB_ID=2942&f_ART_ID=278225


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

參考來源 : http://s852254.blogspot.com/2009/09/esxport.html
esx所用的port列表

不翻譯了,直接看比較快
port 80
vCenter Server requires port 80 for direct HTTP connections. Port 80 redirects requests to HTTPS port443. This is useful if you accidentally use http://server instead of https://server.
port 389

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

Delphi下使用function FileSetDate(Handle: Integer; Age: Integer): Integer; overload;函式修改檔案的”修改日期”:

參考:http://delphi.ktop.com.tw/board.php?cid=30&fid=70&tid=37667

procedure TForm1.Button1Click(Sender: TObject);
Var
    FileHandle : Integer;
    Str : String;
begin

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

今天想修改ESXi 4.1 自動開啟SSH 與關閉LOADING IPMI功能,修改設定檔無法作用,重開機後復原設定值?廠商真是貼心………

IPMI功能為何關閉如下:
http://ithelp.ithome.com.tw/question/10051917

==================================================================================

發問文章:http://ithelp.ithome.com.tw/question/10052113

小弟又來了,測試了 ESXi 開啟ssh 與 關閉IPMI功能的方式,修改設定檔,但是只要重開機就會回復預設值,例如我開了 SSH :

 

  1. 1、在控制台下,按 ALT+F1 進入控制台界面   
  2. 2、輸入 unsupported 然後按 enter  (輸入的時候是看不到你輸入的,所以一定要注意)   
  3. 3、如果輸入的 unsupported 正確,您將看到支持模式和密碼提示,然後輸入 root 密碼進行登錄   
  4. 4、登錄后,修改設定檔    
  5.      # vi /etc/inetd.conf
  6. 5、搜索  #SSH  這一項后,把前面的 # 去掉       
  7. 6、然後保存退出 
1、在控制台下,按 ALT+F1 進入控制台界面
2、輸入 unsupported 然後按 enter  (輸入的時候是看不到你輸入的,所以一定要注意)
3、如果輸入的 unsupported 正確,您將看到支持模式和密碼提示,然後輸入 root 密碼進行登錄
4、登錄后,修改設定檔 
     # vi /etc/inetd.conf
5、搜索  #SSH  這一項后,把前面的 # 去掉    
6、然後保存退出

但是重開機後,進去看又被#號起來,必需手動在啟動一次.........IPMI修改設定檔的情形也是這樣,查了關鍵字都沒看到有人遇到相同問題,請問有人知道原因與解法嗎?
ESXi 4.1是安裝在USB當開機系統.懷疑是因為開機只從USB讀入?修改是修改記憶體內的設定檔,所以開機從USB讀入又回復原狀?如果真是這樣,那要如何才能改到正確的設定檔?

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

最近公司買了便宜的ASUS TS-300/PS4 SERVER,很怪的是 安裝ESX4.1 到選安裝系統到那個硬碟畫面時,硬碟有抓到 LSI 2.8TB,但是卻是反灰不能選,另外使用USB也是一樣,變成兩個都反灰,已打去原廠反應,但都沒下文………………………可是ESXi4.1免費版本確可以正常安裝,傻眼………

但是遇到了2TB限制問題,外加原廠 LSI 1078 MegaRaid陣列卡配上4顆 1TB 原廠 3.5吋7200轉硬碟做RAID 5,容量有2.8TB左右,可是如果直接安裝系統在 LSI上,因2TB限制,則會有800G空間左右浪費。

我的解決方式如下:

使用USB當開機系統碟。

使用SSH連入

看分割狀況 一個RAID5 一個USB開機

~ # fdisk -l

Disk /dev/disks/naa.600e0180000b5a40143c6d7206ef1a34: 2998.9 GB, 2998960914432 bytes

255 heads, 63 sectors/track, 364602 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

/dev/disks/naa.600e0180000b5a40143c6d7206ef1a34p1 1 523 4193280 6 FAT16

Partition 1 does not end on cylinder boundary

/dev/disks/naa.600e0180000b5a40143c6d7206ef1a34p2 523 537 112640 fc VMKcore

Partition 2 does not end on cylinder boundary

/dev/disks/naa.600e0180000b5a40143c6d7206ef1a34p3 537 97254 776882176 fb VMFS

Disk /dev/disks/mpx.vmhba32:C0:T0:L0: 1030 MB, 1030750208 bytes

64 heads, 32 sectors/track, 983 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot Start End Blocks Id System

/dev/disks/mpx.vmhba32:C0:T0:L0p1 5 900 917504 5 Extended

/dev/disks/mpx.vmhba32:C0:T0:L0p4 * 1 4 4080 4 FAT16 <32M

/dev/disks/mpx.vmhba32:C0:T0:L0p5 5 254 255984 6 FAT16

/dev/disks/mpx.vmhba32:C0:T0:L0p6 255 504 255984 6 FAT16

/dev/disks/mpx.vmhba32:C0:T0:L0p7 505 614 112624 fc VMKcore

/dev/disks/mpx.vmhba32:C0:T0:L0p8 615 900 292848 6 FAT16

 

分割指定硬碟

~ # fdisk /dev/disks/naa.600e0180000b5a40143c6d7206ef1a34

The number of cylinders for this disk is set to 364602.

There is nothing wrong with that, but this is larger than 1024,

and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs

(e.g., DOS FDISK, OS/2 FDISK)

按 m 看指令有那些

Command (m for help): m

Command Action

a toggle a bootable flag

b edit bsd disklabel

c toggle the dos compatibility flag

d delete a partition

l list known partition types

n add a new partition

o create a new empty DOS partition table

p print the partition table

q quit without saving changes

s create a new empty Sun disklabel

t change a partition's system id

u change display/entry units

v verify the partition table

w write table to disk and exit

x extra functionality (experts only)

 

刪除所有磁區

Command (m for help): d

Partition number (1-4): 3

列表看看 第三磁區已刪除

Command (m for help): p

Disk /dev/disks/naa.600e0180000b5a40143c6d7206ef1a34: 2998.9 GB, 2998960914432 bytes

255 heads, 63 sectors/track, 364602 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

/dev/disks/naa.600e0180000b5a40143c6d7206ef1a34p1 1 523 4193280 6 FAT16

Partition 1 does not end on cylinder boundary

/dev/disks/naa.600e0180000b5a40143c6d7206ef1a34p2 523 537 112640 fc VMKcore

Partition 2 does not end on cylinder boundary

Command (m for help):

 

使用 VMware vSphere Client 連入管理

clip_image001

clip_image002

clip_image003

若刪除分割區後第一次應該會有第三個選項,執行第三個選項一次,即可讓系統自動分割。

clip_image005

clip_image006

clip_image007

clip_image008

再新增一次

clip_image009

clip_image010

clip_image011

剛第三項新增 LOCAL DISK動作系統自己幫我們切割好一個 2TB與一個 744.89 剩餘空間的兩個分割區,選第一項可以把這兩個分割區合併成一個VM內邏輯的分割區。第四個選項可以回到2TB限制原狀,因手動刪除分割區無效,要回復原狀就要使用這方式。

clip_image012

clip_image013

成功破除2TB限制,實際上是兩個分割區合併後的狀況,一個實體分割還是不能超過2TB

clip_image014

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

要改回來用Outlook Express開啟,到 資料夾 => 工具 => 資料夾選項 => 檔案類型 => 找到eml => 點選進階 => 編輯

直接修改open內執行命令即可

C:\Program Files\Outlook Express\MSIMN.EXE" /eml:%1

1

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

SQL2005匯入EXCEL注意事項

這兩天測試從SQLA使用SQL指令查詢的資料匯出成EXCEL,然後再匯入SQLB同個資料表內,可是一直失敗,後來同事說,EXCEL要匯入SQL2005,必須把EXCEL內的SHEET NAME改成你要匯入的TABLE NAME,才可以正確匯入。

匯出EXCEL:

1

選擇來源(從SQL匯出)

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

ExtractFileName(FileName);  //去除檔案的路徑

ChangeFileExt(FileName);     //去除副檔名


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