Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Thursday, 11 February 2010

A shit hole in xen-sources-2.6.29

It's a record for myself to memo.

In 2.6.29-r4, there is a different in net device 'Intel Corporation 82573V Gigabit Ethernet', which is used to stand by driver 'e1000', but right now it has changed to 'e1000e'. Moreover, it works and treats net device up, although crush down by "RTNETLINK answers: Cannot allocate memory".

After that, I've tried all day for finger out this issue, nevertheless, it doesn't meliorate. Well, I'm done and through buy it. In quick step is choose next version of kernel which is beta version, and then everything seems fine and no strange error msg.

There is one more tricky problem while compiling domU in beta kernel, which is specific option for CPU, which must enable "CONFIG_HOTPLUG_CPU" to keep proceeding.

Ref: claudineimatos.com


Thursday, 18 June 2009

Xorg-server1.5.3 locks Input Device


今早重開桌機,讓昨天更新的app都能被正常使用。

沒想到~~這卻是一場噩夢的開始。

首先,Graphics driver無法被正常load in,其次是,xorg-1.5.3有著重大的問題。

xorge.cnf設定從Xwindow裝好之後,就沒有再特別去更動過,所以設定也如以往正常使用。

這次的xorg-server似乎做了不少變更,導致VGA chipset是intel 82G33/G31,

原本可使用i810來驅動,結果這次死都不吃,我還以為有了特殊變革,

所以重新編譯新的kernel來因應,但始終無效。

後來做了點research,原來intel driver設定統一改成 driver "intel",

Section "Device"
Identifier "Card0"
Boardname "intel"
Driver "intel"
Busid "PCI:0:2:0"
EndSection

改好後想說可以開始好好工作了,卻發現滑鼠鍵盤都無效,冏冏冏......

Log出現了一個特殊的紀錄,

(II) evaluating device (Keyboard0)
(II) XINPUT: Adding extended input device "Keyboard0" (type: KEYBOARD)
(II) evaluating device (Mouse0)
(II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE)
(II) Mouse0: Setting mouse protocol to "ExplorerPS/2"
(II) Mouse0: ps2EnableDataReporting: succeeded
(EE) config/hal: couldn't initialise context: (null) ((null))

實在不知道這是為何,只好再google一下,

原來是對空輸入裝置的判斷產生錯誤,導致全部input都無法使用。

真是恐怖~~所以採取最傳統的設定,把這輸入設死,這樣才能讓xWindow正常使用。

Section "ServerFlags"
Option "AllowEmptyInput" "false"
EndSection


現在先紀錄一下,說不定下次改版,又有一堆新的設定要玩了~~冏rz....

Monday, 6 April 2009

XEN wtihin x86_64

I Got the shit about sumversion.c 'PATH_MAX' undeclared

And then, there is a article shown how to fix it out.

Just simply add a content , #include <"limits.h">, to define it.

After that shit, I could keep go through compile the xen.


PS. In coding to unknow rules of Blogger,

it couldn't insert the word "
limits.h" whithout double quotes.

Thus, please remove the
double quotes while using it into code.


Ref: 编译内核 scripts/mod/sumversion.c PATH_MAX undeclared

Wednesday, 14 May 2008

XEN + LVM2




Recently, my company was set up a sys with xen and bound on LVM2.
However, I got the problem while I resizing the domU by resize2fs.
I could not see the extending size in domU by "df -h", and I even have resized the device of block on dom0.
I figure it out after trying plenty of times to reboot and fix the filesystem.
Okeydoke, The method to resolve resize is as below.

step1:
lvextend logical volume
step2:
resize -f /dev/volume_group/device_point
step3:
reboot domU
step4:
@domU doing " resize /dev/sda1"

Monday, 1 October 2007

APT-GET UPDATE ERROR (Old-Posted)

本來放在mypaper的這篇文章,一直也忘了要轉過來,在Mason跟我提醒之後,想想也該做個整理,免得文章散落各地。廢話不多說,舊文如下:




root: # apt-get update

Get:1 http://security.debian.org sarge/updates Release.gpg [197B]
Get:2 http://security.debian.org testing/updates Release.gpg [197B]
Ign http://www.calno.com unstable Release.gpg
.
.
.
.
.
.
Hit http://non-us.debian.org sarge/non-US/contrib Packages
Hit http://non-us.debian.org sarge/non-US/non-free Packages
Fetched 194B in 14s (14B/s)
Reading package lists... Done
W: GPG error: http://www.os-works.com testing Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CF455A0A8AC2C0A6
W: You may want to run apt-get update to correct these problems





WELL ~~ LET'S GOOGLE







THE ANSWER AS FOLLOWING:

root: # gpg --keyserver wwwkeys.eu.pgp.net --recv-keys CF455A0A8AC2C0A6
root: # gpg --armor --export CF455A0A8AC2C0A6 | apt-key add -
root: # apt-get update

It's done!! ^^


.

Wednesday, 19 September 2007

Mencoder with wrong parameter of aac

Recently, I collected and converted some films for mid-autumn festival, that should not be hard for me but I got a bother and wasted time to solve this problem. Thus I feel like recording it to prevent second mistakes.

Initially, tracing and analysing video within 2 pass could convert precisely for preventing miss out and miscarriage. Moreover, it's the way to embed subtitles and add other functions while second converting.

     mencoder input_file -oac copy -ovc xvid -xvidencopts pass=1:\
nopacked:noqpel:notrellis:quant_type=mpeg:vhq=4:bitrate=\

$bitrate:me_quality=6:max_bframes=0:min_iquant=1:min_pquant=\
1:min_bquant=1:keyframe_boost=10:kfthreshold=1:kfreduction=20:\
frame_drop_ratio=0 -o /dev/null


mencoder -sub input_file.srt -font ~/.mplayer/subfont.ttf -subcp big5 \
-subfont-text-scale 4
input_file -oac copy -ovc xvid -xvidencopts \
pass=2:nopacked:noqpel:notrellis:quant_type=mpeg:vhq=4:bitrate=\
$bitrate:me_quality=6:
max_bframes=0:min_iquant=1:min_pquant=1:\
min_bquant=1:keyframe_boost=10:kfthreshold=
1:kfreduction=20:\
frame_drop_ratio=0 -o outputfile


Secondly, some of films are usually divided into two parts, however, I don't like the break while watching. So I combine them together.

avi: avimerge -i file1 file2 -o final.avi
other on X: Avidemux

Finally, it's not usual in this step for me because "avidemux" is very powerful tool to complete almost format. In the result, this step is not for DVD、VCD and it's just only for ipod video. The following script is fine before but ,today , it shows me up the error "it can't find audio code for supporting aac.". The straight way is re-check the ./configure --parameter and recompile it, and after that it still fails again. Eventually, I google and find an article which mentions the parameter "aac" has changed to "libfaac", so just replace it and then everything is as usual.

mencoder input.avi -oac lavc -ovc lavc -of lavf -lavcopts aglobal=1:\
vglobal=1:vcodec=mpeg4:vbitrate=800:autoaspect:acodec=aac \

-lavfopts format=mp4:i_certify_that_my_video_stream_does_not_use_b_frames\
-ofps 24.0 -af lavcresample=24000
-vf scale=640:362,harddup -o ipod.mp4

☆ parameter: -acodec aac ----> -acodec libfaac

Ref.

[轉檔] Using ffmpeg to convert wmv to 3gp

.

Tuesday, 11 September 2007

Trouble in LVM with devfsd

在祥大離開的第一天,就有Old Server馬上發難。由於本部門不良習慣,都不會去遵照lvm的使用原則,所以dmtab都會留空白。之所以trouble後reboot也能開機,是因為有devfsd的照顧; devfsd是靜態的device link,又加上/etc/lvm/backup/ 所以都可以自己回復到對應位子,也就養成不良的LVM使用習慣。

但今天卻發生了特例,devfsd不理lvm了,所以在起來後全部的device-mapper是空的,不用說全部對應的service也就掛點;所以就只好先查查看到底有哪些東西不存在。

# lvdisplay
(空)


# vgdisplay
(空)

# pvdisplay

(空)

那代表整個partition都被lvm遺忘了,只好先建立回去。

#pvcreate /dev/sda4

馬上就得到反應,因為/etc/lvm/backup下有建立的valume group的資訊,所以馬上就可以被帶入,很幸運的連lv都可以看到。此時以為已經可以掛起使用,但事與願違,在/dev/device-mapper/下依舊是空的,所以試著利用已知資訊UUID來反建立回去。

# dmsetup
create /dev/vgname/mysql -u oaVWN4-xnUV-qL9T-qLYa-hIWY-Zlnp-eLH160
(空)

依舊是空的,所以只能土法煉鋼,用手動的方式建立。

# cat /proc/devices

Block devices:
(略)
253 device-mapper

知道了device-mapper的位子,就可以手動建立。

# cd /dev/device-mapper
# mknod -m 660 vgname-mysql b 253 0
# mknod -m 660 vgname-fucker b 253 1

這樣就有了block device了,但這樣還是不夠可以使用,需要讓lvm去認它,所以要下:

# vgchange -a y

讓整個volume group重新 active一次,然後就可以看到原本消失的在lvdisplay底下的block device又回復了,看到那個就代表已經復原成功了。

當然還是別忘了寫回dmtab。

# dmsetup table >> /etc/dmtab

後記: 不過在udev下若沒有任何記錄在dmtab下的話,那只有打掉重練了,就不可能用這篇的方法建回。

Friday, 8 June 2007

LVEXTEND WITH XFS FILESYSTEM

It's not special skill to extend size online in xfs filesystem, and command as below.



xfs_growfs /dev/valgp/mysql



However, I got the bomb this time. A part of my lvm space is full, so I extended 20G and grow it online.

That should be untrouble for me to resolve this problem, but I were wrong to think so easy.

It replied my an error msg "No more space left". Thus, I have to deduct some file from the device before extending the space.



mysql -e "purge master to 'mysqld-00001.log;'
xfs_growfs /dev/valgp/mysql



That's it! dummy.

Wednesday, 9 May 2007

LVM2 + XFS =! LVM2 + other FileSys on snapshot mountpoint.









LVM2:

It's working fine with all Filesystem, but I got shoot while I snapshotted with xfs.
And then, I'd tried all filesystem within shapshot to make clearly, which might cause accident.
As the result, everything was fine with dm-snap, expecting XFS, and then I got the message as following.

XFS:Filesystem dm-6 has duplicate UUID - can't mount.


I seemed like xfs might do some processing for checking device-map, so it didn't allow the same UUID be appeared.
Finally, I just need to point out the parameter to skip while mounting, and then command as below.

mount -t xfs -o noatime,nosuid,nouuid /devmyvg/fuckersnap /mnt/floppy/



Edited on 9th of May.