星期四, 5月 07, 2015

Dell OpenManage (OMSA) on XenServer 6.5

1.Add Dell OpenManage Repository
It seems that the latest OMSA version doesn’t support CentOS 5.
wget -q -O - http://linux.dell.com/repo/hardware/Linux_Repository_14.12.00/bootstrap.cgi | bash
2.Disable Citrix repository .
 vi /etc/yum.repos.d/Citrix.repo
enable=0
3. start the installation
yum --enablerepo=base install srvadmin-all
 4.Open port 1311 in iptables,
#vi /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -m conntrack --ctstate NEW -m udp -p udp --dport 161 -j ACCEPT
-A RH-Firewall-1-INPUT -m conntrack --ctstate NEW -m tcp -p tcp --dport 1311 -j ACCEPT

-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
 5.Restart iptables
/etc/rc.d/init.d/iptables restart

6.Start Dell OpenManage Server Administrator
 /opt/dell/srvadmin/sbin/srvadmin-services.sh start
 Other
Update dell firmware repository
yum install firmware-tools
yum install $(bootstrap_firmware)
update_firmware --yes
Reference
Dell OpenManage (OMSA) 7.4 on XenServer 6.5
How to Install Dell OpenManage on XenServer 6.5
Dell firmware repository - out of date firmware?


星期四, 4月 23, 2015

前進到openSUSE 12.1 (Ati 硬解測試篇3)

不是早已經到 13.2版本了嗎?

標題是不是下錯,並沒有,只是因為好久沒有使用了,這網誌也開始往奇怪路線(誤)伺服器應用走了(誤)

還記得之前關於ati 硬解作的測試,當時是使用AMD 880 內顯晶片,前陣子購買了一張R7 250,想說就來測試一下吧,看看現在ATI到底進步了嗎。

首先開機進入系統之後進不了圖形介面,接下來到AMD 官網下載驅動安裝
接著測試執行VLC來撥放1080P

小提醒:開啟VLC,工具\偏好設定-->視訊:確認 accelerated video output(Overlay)是否打勾。輸入與編解碼器: Use GPU acceleration 打勾
開啟硬解時:

CPU-使用率大約落在20~40%左右!
哇塞:這真是太棒了,有種說不出的感動。
希望日後還有這方面相關的資訊繼續測試。
(N卡早在多年前就擺脫了這問題了吧,大笑,A卡加油啊)

LSI MegaRaid Monitor @Debian Linux

OS: OpenmediaVault (Debian 7.7)
RAID:MegaRaid 8300 xlp

#wge http://www.lsi.com/downloads/Public/RAID%20Controllers/RAID%20Controllers%20Common%20Files/8.07.10_MegaCLI_Linux.zip

#unzip 8.07.10_MegaCLI_Linux.zip

# cd 8.07.10_MegaCLI_Linux

#rpm2cpio MegaCli-8.07.10-1.noarch.rpm | cpio -idmv

#./opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aALL

PS.you might need apt-install unzip , apt-install rpm2cpio
Now you can use command to get what you want  
For me ,it's my example.
/root/opt/MegaRAID/MegaCli/MegaCli64 -AdpALLInfo -aALL|grep 'Device Present' -A7

Reference
http://www.how2forge.info/megacli-for-debian-ubuntu/







星期二, 4月 14, 2015

Can’t create volume in Openfiler 2.99

The magic number is 60.
All you have to do is increasing 60 cylinders more in starting cylinders.

For example:

Before
 starting cylinders       ending starting cylinders
 177                              19581

After
 starting cylinders       ending starting cylinders
237                              19581
I hope it works out well for you!


裝好openfiler 時,會發現他一整個見鬼的不能增加磁區,後來看到網友說只要在起始磁區加上60就可以了,一試之下果然可以XD,希望你們也能順利解決這個問題。

Reference
Can't Add Partitions in Openfiler 2.99

星期三, 3月 04, 2015

移除virbr0 網卡

今天碰到一台虛擬化伺服器從xenserver 5.5匯出至xenserver 5.6之後,系統開機時多了一個網路virbr0的網路裝置,麻煩的是這個裝置默認是使用NAT模式,而且非常惱人。

後來GOOGLE了一下,終於找到解決的方法 。


# yum groupremove "Virtualization"
# yum remove libvirt

# reboot
參考來源:

解決 CentOS 關閉KVM libvirt 產生的virbr0網卡

星期二, 1月 27, 2015

Citrix XenServer Storage is running out of space

It's very dangerous to del base copy .

*It seems that it'll auto reclaim freed space on XenServer 6.5.:D

Please don't do it,if you aren't sure.
If you really did it,such like what I did the stupid things.
And I'm still looking for the answear.
http://discussions.citrix.com/topic/347790-parent-vdi-deleted-accidentally/

Before delete it,you have to make sure which VHD-Files are linked together.
 you can use this command
# xe vdi-list uuid=VDIUUID params=all
or

# xe vdi-list name-labe=$VDI_NAME params=all
And you can see  vhd-parent:(if you had ever did the snapshot or something like that.)
Please keep it and do not delete it!
PS.The  vhd-parent could be linked with another vhd file.

My citrix xenserver storage is running out of space.
It shows 700.1 GB used of 853.1 GB total (376 GB allocated)
When I google and get the answer is  "base copy".
you can use this command to show all the vdi file.
# xe vdi-list

1.find the name-label is base copy,and make sure the $STORAGE_UUID is the storage that you want to delete.
# xe vdi-list name-label="base copy" 

output:
uuid ( RO) : $UUID
name-label ( RW): base copy
name-description ( RW):
sr-uuid ( RO): $STORAGE_UUID
virtual-size ( RO): 386547056640
sharable ( RO): false
read-only ( RO): true
2.find the path.
# lvdisplay|grep "$UUID"output:
LV Name $PATH
3.remove it and rescan the storage.
# lvremove -f $PATH
# xe sr-scan uuid=
$STORAGE_UUID
My space is back and i hope it works out well for you !


This article was extremely useful: http://appsense.wordpress.com/2009/11/24/deleting-orphaned-disks-in-citrix-xenserver-5-5/


星期四, 1月 15, 2015

dovecot pop3 無法認證問題

許久沒有架設MAIL SERVER,某日跟朋友聊到MAIL SERVER狀況。

MAIL SERVER 只能從本機收發信件,無法透過SMTP 以及POP3 去做收發服務。

趕緊翻開鳥哥的文章溫習一下,SMTP 問題解決了,但是POP3 卻是怎麼樣都會有問題。

原來是Dovecot 2.X設定檔的位置改了,必須針對相對應的位置逐一設定。

比較需要注意的地方紀錄一下:

 確認有啟用POP3  ,IMAP則看有沒有需要。
# vi  /etc/dovecot/dovecot.conf
protocols = pop3 imap
 如果沒有啟用SSL加密,記得要關閉
#vi /etc/dovecot/conf.d/10-ssl.conf
ssl = no
非常關鍵的mail_location,一直卡在這邊
#vi /etc/dovecot/conf.d/10-mail.conf
mail_location = maildir:/var/spool/mail/%u
修改好後記得重新啟動服務
#/etc/init.d/dovecot restart
最後最最最重要的步驟在這
根據 mwu4 在iT邦幫忙中 補充回答的關鍵
 如果信件放在「 /var/mail 」(「 /var/mail 」連結到「 /var/spool/mail 」),記得要將檔案權限由「 0660 」更改為「 0600 」。謝謝。
#chmod 600 /var/mail/foo
foo 為使用者帳號
參考來源:
centos 6.5 dovecot pop3 無法認證問題