星期二, 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 無法認證問題