網頁

2011年11月18日 星期五

Oracle VM 3.0.2 筆記

[Manager Discover Server Failed]
Oracle VM 3.0.2 並無法正確在VirtualBox中執行,VM Manager discover server時無法加入。
所以此狀況目前在虛擬環境無解。

若VM Server不是在虛擬機上,可以按照以下處理方式進行:來源
FIX ACTION: (ALL DONE AS ROOT, Do not remove any of your VM Servers from the manager)
1) Make sure the database is running (ps -aef | grep smon) you should see and entry with "ora_smon_"
2) Stopped OVMM. (/etc/init.d/ovmm stop)
3) cd /u01/app/oracle/ovm-manager-3/bin
4) sh ./ovm_upgrade.sh --dbuser=ovs --dbpass=[password for ovs] --deletedb --dbsid=[your SID]
5) cd /media/CDROM
6) ./runInstaller.sh
a) Choose Uninstall
b) Skip Uninstall of Java
c) Uninstall VM Manager 3.0
d) Uninstall Weblogic Server (you have to do this or the re-install will fail)
7) ./runInstaller.sh -u [INPUT YOUR EXISTING UUID]

(you can get this from your VM Server consoles or the .config file from list item 3 above)
8) Follow the prompts to re-install the VM Manager.
9) Discover your existing VM Servers, register your file Servers, discover your Repositories and so on.
10) You are done.

[Rebuild OVS DB]
/etc/init.d/ovs-agent stop
rm -rf /etc/ovs-agent/db
/etc/init.d/ovs-agent start

[Documents]

2011年8月9日 星期二

筆記:取代^M

取代unix文件中的^M (http://zylix666.blogspot.com/2006/02/unixm.html)
^C的ascii碼\003
^M的ascii碼\015
cat file | tr -d "\015" > newfile
在vi中取代 (http://www.tech-recipes.com/unix_tips150.html)
Remove ^M characters at end of lines in vi
To remove the ^M characters at the end of all lines in vi, use:
:%s/^V^M//g
The ^v is a CONTROL-V character and ^m is a CONTROL-M. When you type this, it will look like this:
:%s/^M//g
In UNIX, you can escape a control character by preceeding it with a CONTROL-V. The :%s is a basic search and replace command in vi. It tells vi to replace the regular expression between the first and second slashes (^M) with the text between the second and third slashes (nothing in this case). The g at the end directs vi to search and replace globally (all occurrences).

2011年7月13日 星期三

筆記:Mac OSX 10.6.8 network printer problem

更新到Mac OSX 10.6.8之後列印公司Toshiba e-studio 255事務機會出現 /usr/libexec/cups/backenddnssd failed,有幸網路上有善心人事提供之前版本的檔案,剛剛將/usr/libexec/cups/backend路徑下dnssd, ipp, lpd三個檔案覆蓋回去後,終於可以列印了阿!

感謝神~

我沒有覆蓋socket是因為這個檔案內容看起來是針對HP使用,而我列印HP印表機很正常。

Reference

The files that need to be downgraded back to 10.6.6 or 10.6.7 are in the following folder.
/usr/libexec/cups/backend
The files to replace are as follows.
socket
dnssd
lpd
ipp
You need to backup these files first.

2011年7月11日 星期一

su: No directory!

check /etc/passwd /etc/shadow /etc/nsswitch.conf
User home directory permission
If settings is correct.

check / mount point permission.

root@M4000 # ls -ald /
drwxr-x--- 51 root root 77 Jul 11 11:33 /
root@M4000 # chmod 755 /
root@M4000 #
root@M4000 # su - mds
Oracle Corporation SunOS 5.10 Generic Patch January 2005
$HOSTNAME:`pwd`>
$HOSTNAME:`pwd`> exit
root@M4000 # su - crp2db
Oracle Corporation SunOS 5.10 Generic Patch January 2005
crp2db> exit

2011年7月4日 星期一

Error in unconfig_files: Cannot delete NIS client information from /var/yp/binding.

Error in unconfig_files: Cannot delete NIS client information from /var/yp/binding. Check the ypservers and cache_binding files within each binding directory.

ERROR: Unable to unconfigure the extracted system

Unable to unconfigure the extracted system

Fatal Error

Solaris installation program exited.



You need to exclude NIS from the flarcreate:

flarcreate -S -c -n -I “servername-5.10-sun4v-date” -x /var/yp/binding/yourdomainname /var/tmp/servername-5.10-sun4v-date.flar

Or

flarcreate -S -c -n -I \
“`uname -n`-`uname -r`-`uname -m`-`date +%m%d%Y`” \
-x “/var/yp/binding/`domainname`” \
/var/tmp/”`uname -n`-`uname -r`-`uname -m`-`date +%m%d%Y`.flar”

Refrense: Error when trying to load a flar.

2011年6月22日 星期三

VxVM vxio V-5-3-0 vol_disk_change_iopolicy: Public region policy specific open failed for xxx (0xc900023) ret = 0x0

Environment:
Sun Fire 6800 + IBM DS8000 Storage
Solaris 10 + VxVM 4.1

Description:
IBM DS8000 add 12 Luns & assign to F6800,
after run devfsadm -Cv, OS get the 12 disks,
but after run vxdctl enable, vxvm get duplicate ID and report below messages.

VxVM vxio V-5-3-0 vol_disk_change_iopolicy: Public region policy specific open failed for xxx (0xc900023) ret = 0x0

Solution: (Manually fix)
Edit /etc/vx/disk.info , and fix the wrong assigned id.
Reboot to take effect.

Another Solution: (Rebuild disk.info, I never try.)
Drop /etc/vx/disk.info,
/sbin/vxconfigd -k

2011年5月6日 星期五

新添購聆聽設備開箱 AKG K514 + AudioRiver Mini-uDAC

AKG來自於奧地利,其實之前去奧捷旅遊朋友就有託我在當地找找,只是當時礙於行程安排,沒有很多時間去找到此類商店,有點惋惜。

剛好之前用了好久的耳機掛點了,所以在尋尋覓覓新的聆聽設備途中,突然想起AKG這個品牌,於是就有了這次的收穫。

因為大多數聆聽的音樂都已轉成mp3,其實已經損失很多音質細節及高低音,而且主要設備也是電腦,小弟我又偏愛半開放式耳機所帶來的音場,所以這次就購入了這款入門半開放式耳機。

由於想要提昇一下聆聽的品質,所以順便也入手了一款入門的DAC+耳擴設備。

以下來看圖吧!


第一主角:AKG K514

AKG K514外包裝
AKG K514外包裝

純白簡約的內盒
純白簡約的內盒

耳機出現啦!
AKG K514

側面來一張
AKG K514

AKG
AKG K514

SOUNDS BETTER.
SOUNDS BETTER.


第二主角:AudioRiver Mini-uDAC

AudioRiver Mini-uDAC 外包裝Mini-uDAC外包裝

小心翼翼取出
小心翼翼

AudioRiver Mini-uDAC 本體
Mini-uDAC開盒

AudioRiver Mini-uDAC 小巧的本體Mini-uDAC主體

配件大合照
主體、盒子與配件


聆聽心得:

K514耳機2700+Mini-uDAC耳擴1350共4050元,其實買的很超值。

K514在剛開始聽得時候聲音其實就處理的不錯了,只是在耳機尚未Burn-in的狀態下,高音、細節及音場其實都沒跑出來,也就是聲音感覺還是悶悶的。

經過24hr Burn-in後,總算是跟我在現場聆聽的感覺差不多了~

Mini-uDAC這支只要插到usb就會自動安裝了,不需要額外驅動程式唷!

2011年4月28日 星期四

筆記:MAC OSX 使用 WineBottler 免灌 Windows 用 IE

來源:MacUknow [教學] 使用 WineBottler 免灌 Windows 用 IE

下載點:WineBottler
  1. 將Wine及WineBottler拖拉到存放Applications的目錄。
  2. 開啟WineBottler,選擇Install Predefined Prefixes,右方就會出現預先做好的程式。
  3. 選擇Microsoft Internet Explorer 7,點選Install。
  4. 選擇要存放的目錄,就開始安裝啦!
安裝IE8會先安裝IE7再升級,但是我裝了好幾次都不成功~~

2011年4月7日 星期四

20110402~04 高雄楊Sir旅遊團 - Day1 (高雄)

離開鹿港後就直接前往了目的地高雄!

第二站,到達高雄,首先去到義大世界,這裡全是outlet,瞎拼的好地方,我買了Timberland鞋子、Tommy Polo杉,老婆也買了數件衣服。
雖是過季,但相對的便宜阿!

義大世界夜景
P1030982

義大世界摩天輪
P1030988

義大世界美麗的中庭
P1030991

戰利品
P1030992

瞎拼時間結束後,出發到岡山品嚐羊肉爐,高雄口味果然都偏甜,跟在台北吃到的差很多,但還是覺得好吃的呢!


P1030994

最後上去忠烈祠看夜景,高雄港口真的很美,難怪這裡每晚人潮洶湧阿!

這是我的LX3拍的最成功的一張吧!
P1040009

最後大家也都累了,返回飯店休息,明日再戰囉!

我們這次入住的飯店是假期商務飯店(忠孝店),裝潢還蠻新的,房間也沒有怪怪的味道,一晚1500,有無線網路,還有搭配早餐,算是出遊划算的選擇!

20110402~04 高雄楊Sir旅遊團 - Day1 (鹿港)

高雄三天兩夜遊第一天。
辛苦好朋友夫妻開著車帶著我們夫妻倆南下出遊。

第一站,鹿港參拜天后宮,阿振肉包還是很棒,午餐就在這解決,吃了蚵仔煎、蚵仔酥、炸蝦猴、菜頭糕、什錦麵等名產料理。(以上,顧著吃都忘記拍照)

鹿港天后宮:正在迎神
P1030967
P1030966

鹿港天后宮:供奉桌上都是金紙,遊客到此都會近來參拜
P1030969

鹿港天后宮:參拜的都很虔誠
P1030970

虔誠的兩位老婆大人
P1030972

老街中某店幽默的老闆
P1030973

重溫兒時趣:男女授受不親啦!
P1030974
P1030975

2011年1月19日 星期三

感冒真痛苦!

感冒真痛苦,
第一天身體發冷,咳嗽咳得不停,一直流鼻水,戴著口罩在公司撐過,一下班就去買了諾比舒咳咳嗽液,止了咳,但是身體還是很不適,回到家馬上全身包緊緊躲進被窩,身體是暖了,但是頭痛得要命,痛到我幾乎是每小時會醒來一次,就這樣度過了一晚。
隔天早上醒來,還是感到昏昏沉沉,去沖了熱水澡也沒感到比較舒服,但是有工作要做於是出門去,這天戶外溫度有17度上下,我的穿著好像戶外只有12度。
這天的晚上終於有點食慾了,吃了白稀飯,好多了,但感覺身體不斷發熱,好在家裡有冰枕,枕著睡了一覺,頭痛的感覺終於變少了。
今天醒來沖了熱水澡,精神感覺不錯,準備出門上班去(今天是上課),雖然已經遲到了。

最後祝福自己早日康復啊!