2012年7月21日土曜日

fstab

fstab

は当該マシンのファイルシステムのことが記述されているー

/etc/fstabらしいので仮想マシン数台をちらみ。


CENTOSの1号機
CENTOSの2号機

RHEL 4UPDATE6
RHEL 6





はてはてどのようにみえるのかなー

CENTOSの1号機

[maint01@cent-test01 ~]$ less /etc/fstab
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
/etc/fstab (END)


CENTOSの2号機


[maint01@localhost ~]$ less /etc/fstab
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
/etc/fstab (END)



RHEL 4UPDATE6


[maint01@RHEL-4-6-test01 ~]$ less /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
/etc/fstab (END)



RHEL 6
[maint01@RHEL-6-1-test01 ~]$ less /etc/fstab

#
# /etc/fstab
# Created by anaconda on Tue Apr 17 10:58:08 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_rhel61test01-lv_root /                       ext4    defaults        1 1
UUID=b6d48fb7-2ef6-4db2-b485-6b25679f1779 /boot                   ext4    defaults        1 2
/dev/mapper/vg_rhel61test01-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/etc/fstab (END)




ext2は時代遅れ?ext3が普通?ext4は進化?

あれ、LINUXのましんで当該マシンが64か32かOSの

BIT数を見るのはどうやんだっけ?

WINDOWSとかだとマイコンピュータ右クリックしてー

とかあるが。。


2012年7月15日日曜日

PERL


PERLとかTESTするとき便利らしい?

さっそく調べてみる。
RUBYとやらやPHYTONとかもいいけどPERLがいいよとか

意味フな本の言うことに盲目的にしたがってみる。

できっこないのに間違って仮想環境にLINUXあんで

LINUX PERLとか入れてどつぼってみる。


http://www.google.co.jp/webhp?sourceid=chrome-instant&ie=UTF-8#hl=ja&output=search&sclient=psy-ab&q=PERL%20LINUX&oq=&gs_l=&pbx=1&fp=d530e58be1a8f8c4&bav=on.2,or.r_gc.r_pw.r_qf.,cf.osb&biw=811&bih=699


http://d.hatena.ne.jp/chaichanPaPa/20090429/1240962147


@cent-test01 bin]$ ls pe*
perl  perl5.8.8  perlbug  perlcc  perldoc  perlivp
[maint01@cent-test01 bin]$ ls -ltr pe*
-rwxr-xr-x 1 root root 11937  9月 28  2010 perlivp
-rwxr-xr-x 1 root root   224  9月 28  2010 perldoc
-rwxr-xr-x 1 root root 17953  9月 28  2010 perlcc
-rwxr-xr-x 1 root root 36840  9月 28  2010 perlbug
-rwxr-xr-x 2 root root 14984  9月 28  2010 perl5.8.8
-rwxr-xr-x 2 root root 14984  9月 28  2010 perl

なんか仮想のCENT にはUSERBINにわらわらなんかいる、、


@cent-test01 bin]$ which perl
/usr/bin/perl


□バージョンの確認
cent-test01 bin]$ perl -v
5.8.8が入っているとのこと

-------------------------------イカ結果
This is perl, v5.8.8 built for i386-linux-thread-multi

Copyright 1987-2006, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.



□パスはどこに通っているのか

WHICHコマンドで確認してみる。

1@cent-test01 bin]$ which perl

/usr/bin/perl
ここらしい



□PERLの拡張子は[.pl]らしい




http://adgjm.net/saas/linux_perl.htm

□CPANというのがあり、モジュールが沢山あるらしい
CPAN GOOGLE検索結果
https://www.google.co.jp/search?um=1&hl=ja&safe=off&q=Perl%E3%80%80cpan&bav=on.2,or.r_cp.r_qf.&bvm=bv.44011176,d.dGI&biw=1745&bih=825&ie=UTF-8&sa=N&tab=iw&ei=FX9JUd24A47ylAW58oG4CA




□CPANモジュールで厳選されたものを次バージョンに反映する
 流れらしい。

2012年7月14日土曜日

JAVAとC

JAVAとC組まれている環境で

隅っこでお仕事させていただいている。。

でもなんも理解していない。


http://www.88to.net/index.php?blg=37

http://www.88to.net/img/java/20080505132722.gif

Cはライブラリ、JavaはJVM上の各OSのAPIに依存する

部分がある。

という理解だと語弊もちあんのかのぅ。

2012年7月13日金曜日

なんでもいいがテストツール

なんでもいいがテストツール

とりあえず、出来かけ出来損ないでもOUTPUTしていく方針

http://japan.zdnet.com/

http://www.pcmag.com/

http://japan.cnet.com/

http://www.qadownloads.com/

http://www.softpanorama.org/index.shtml

http://wayback.archive.org/web/*/http://bughunting.com/

http://web.archive.org/web/20040606045410/http://bughunting.com/bugtools.html


TOOLは便利だが、使い方次第だし。

テストはやってるけど、出来ていると思ったことないし。

http://technet.microsoft.com/ja-jp/sysinternals/hh239788


ここは基本なんかもだなー

http://technet.microsoft.com/ja-jp/sysinternals/bb963902

http://technet.microsoft.com/ja-jp/sysinternals/bb897437


http://www.vector.co.jp/



kernerl panic




kernerl panic

リナックスマシンが熱で逝ったので、HDDだけ別マシンに乗せ変えた

(いずれも別の筐体、メーカPC)そしたら、起動風味な画面が出てから

kernerl panic not syncing Attenmpted to kill init

とか出ている、普通にまあ起動しないだろと実験的にやったら案の定この通り、

マウントとやらに失敗している模様。

umount /inited/dev failed:2

switchroot : mount failed :22

mount:error 6 mounting ext3

mount:error 2 mounting none

ERROR: /bin/lvm exited abnormally! (pid433)

このHDDのOS読み込む部分て超苦手。。

起動パラメータ
LILO
GRUB=>/boot/grubの下
http://webcache.googleusercontent.com/search?q=cache:oE5WH7BMrmQJ:www1.plala.or.jp/fukafuka/trouble/xen.html+&cd=4&hl=ja&ct=clnk&gl=jp

INITRDの使い方?






呼び出し先 RC: REGDB_E_CLASSNOTREG (0x80040154)


新規セッションの作成に失敗しました。

呼び出し先 RC: REGDB_E_CLASSNOTREG (0x80040154)

VIRTUALBOXを起動すると泣き言を言い出した。。


https://forums.virtualbox.org/viewtopic.php?p=29162

.netframeworkの3.5を入れるといいとか。。

最近
Microsoft Visual C++ 2010 Expressをインスコして遊んだのが原因か?

https://www.google.co.jp/search?sugexp=chrome,mod=6&sourceid=chrome&ie=UTF-8&q=t+.NET+framework#hl=ja&safe=off&q=net+framework%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3&revid=673394837&sa=X&ei=zBP5T_vKJ4mOmQXQx9CgBQ&ved=0CF8Q4QIoAg&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.,cf.osb&fp=88cdafd03c6e7baf&biw=1024&bih=716

そもそも今どれ入っていんの?

http://d.hatena.ne.jp/kanonji/20090603/1244046673


C:\WINDOWS\Microsoft.NET\Framework
1-4まである。。

http://www.atmarkit.co.jp/fwin2k/win2ktips/246checkvdnfw/checkvdnfw.html

バッチで確認

3.5はあるが、、

最新入れなおすか。。
http://www.microsoft.com/ja-jp/download/details.aspx?id=21


入れなおして数日は使えたが、なんの拍子かまたこの現象が再現。。

VBOX最新版へUPDATE


今は4.1.12

-4.1.18-78361-Win.exeとなるが。。


IEでないとDLでいんねー重い。。



http://www.google.co.jp/webhp?sourceid=chrome-instant&ie=UTF-8#hl=ja&output=search&sclient=psy-ab&q=PERL%20LINUX&oq=&gs_l=&pbx=1&fp=d530e58be1a8f8c4&bav=on.2,or.r_gc.r_pw.r_qf.,cf.osb&biw=811&bih=699



UPDATEで解決

後日ま他発生

http://www.google.co.jp/webhp?sourceid=chrome-instant&ie=UTF-8#hl=ja&output=search&sclient=psy-ab&q=%20RC%3AREGDB_E_CLASSNOTREG%20(0x80040154)&oq=&gs_l=&pbx=1&fp=d530e58be1a8f8c4&bav=on.2,or.r_gc.r_pw.r_qf.,cf.osb&biw=811&bih=699

http://blogs.dion.ne.jp/kazuu/index-4.html

cd C:\Program Files\Oracle\VirtualBox



だめ、ログを確認、というか基本部分でした。。


起動アイコンが古いXPのHDDのパスFディスクをむいていたのが原因

Cのパスへ向いているアイコンで無事起動、なにゆえ入れ替わったかは

不明。。

sendmail linux 止める

sendmail linux 止めるベクベク。。


[maint01@cent-test01 rc.d]$ pwd
/etc/rc.d
[maint01@cent-test01 rc.d]$ /etc/rc.d/init.d/sendmail status
/etc/rc.d/init.d/functions: line 141: /var/run/sendmail.pid: 許可がありません
sendmail が停止していますが PID ファイルが残っています
[maint01@cent-test01 rc.d]$ su
パスワード:
[root@cent-test01 rc.d]# /etc/rc.d/init.d/sendmail status
sendmail (pid  2144) を実行中...
[root@cent-test01 rc.d]# ps -ef| grep send
root      2144     1  0 21:13 ?        00:00:00 sendmail: accepting connections
smmsp     2156     1  0 21:14 ?        00:00:00 sendmail: Queue runner@01:00:00                                             for /var/spool/clientmqueue
root      2741  2722  0 21:17 pts/1    00:00:00 grep send
[root@cent-test01 rc.d]# ps -ef| grep 2144
root      2144     1  0 21:13 ?        00:00:00 sendmail: accepting connections
root      2743  2722  0 21:17 pts/1    00:00:00 grep 2144
[root@cent-test01 rc.d]#
[root@cent-test01 rc.d]# checkconfig sendmail off
bash: checkconfig: command not found
[root@cent-test01 rc.d]# /sbin/checkconfig sendmail off
bash: /sbin/checkconfig: そのようなファイルやディレクトリはありません
[root@cent-test01 rc.d]# /sbin/chkconfig sendmail off
[root@cent-test01 rc.d]# ps -ef| grep 2144
root      2144     1  0 21:13 ?        00:00:00 sendmail: accepting connections
root      2750  2722  0 21:18 pts/1    00:00:00 grep 2144
[root@cent-test01 rc.d]# /etc/rc.d/init.d/sendmail status
sendmail (pid  2144) を実行中...
[root@cent-test01 rc.d]# /sbin/checkconfig --list sendmail
bash: /sbin/checkconfig: そのようなファイルやディレクトリはありません
[root@cent-test01 rc.d]# /sbin/chkconfig --list sendmail
sendmail        0:off   1:off   2:off   3:off   4:off   5:off   6:off
[root@cent-test01 rc.d]# /sbin/chkconfig sendmail on
[root@cent-test01 rc.d]# /sbin/chkconfig --list sendmail
sendmail        0:off   1:off   2:on    3:on    4:on    5:on    6:off
[root@cent-test01 rc.d]# /sbin/chkconfig sendmail off
[root@cent-test01 rc.d]# /sbin/chkconfig --list sendmail
sendmail        0:off   1:off   2:off   3:off   4:off   5:off   6:off
[root@cent-test01 rc.d]#



http://pucyan.blog77.fc2.com/blog-entry-39.html

ここもかも