Alhamdullilah - baru dapat pelayan baharu dengan OS CentOS 6.3 untuk pembelajaran dalam talian. Walaupun cuma pelayan maya tetapi spesifikasinya nampaknya lebih tinggi daripada pelayan yang lama dengan OS RHEL5. Mula-mula kena kenalinya dahulu.
Langkah 1: Dapatkan info tentang pelayan, muat turun getinfo.sh daripada laman https://raw.github.com/elrepo/packages/master/getinfo/el6/getinfo.sh
Langkah 2: Laksanakan getinfo.sh dengan:
[root@oll-new home]# chmod +x getinfo.sh
[root@oll-new home]# ./getinfo.sh
No option provided. Defaulting to all information.
Collecting system information for General questions. May take a few minutes.
uname...rpm...cat...getenforce...free...rpm...ls...cat...yum...egrep...sed...cat...df...fdisk...blkid...cat...pvs...vgs...lvs...rpm...***
*** Warning: lspci is not installed.
***
*** Warning: lsusb is not installed.
rpm...ifconfig...***
*** Warning: brctl is not installed.
route...sysctl...ip...ip...cat...egrep...chkconfig...***
########################
Results are in the file:
* /tmp/basedata.QmgfSL *
########################
To provide this information in support of a question on fora,
mailing list, or IRC channel please post its contents to
http://pastebin.org/
or another similar public site of your choice.
Select a retention time longer than the default of 'a day'
and provide a link to the information in your post.
Alternatively, post in-line, trimming to remove any unnecessary information
for your topic. For forum posts, please leave in the
[code] ... [/code] tags to preserve formatting.
WARNING - Check the contents of the /tmp/basedata.QmgfSL file to ensure it does
not contain any sensitive information such as public IP addresses or hostnames.
If necessary obfuscate such information before posting. For example:
146.xxx.xxx.41 or myhost.mydomain.net
[root@oll-new home]#
Langkah 3: Hasilnya dalam fail /tmp/basedata.QmgfSL:
Information for general problems.
[code]
== BEGIN uname -rmi ==
2.6.32-71.29.1.el6.x86_64 x86_64 x86_64
== END uname -rmi ==
== BEGIN rpm -qa \*-release\* ==
centos-release-6-3.el6.centos.9.x86_64
== END rpm -qa \*-release\* ==
== BEGIN cat /etc/redhat-release ==
CentOS release 6.3 (Final)
== END cat /etc/redhat-release ==
== BEGIN getenforce ==
Disabled
== END getenforce ==
== BEGIN free -m ==
total used free shared buffers cached
Mem: 8002 2843 5158 0 549 1107
-/+ buffers/cache: 1186 6815
Swap: 10063 0 10063
== END free -m ==
== BEGIN rpm -qa yum\* rpm-\* python | sort ==
python-2.6.6-29.el6_2.2.x86_64
rpm-libs-4.8.0-27.el6.x86_64
rpm-python-4.8.0-27.el6.x86_64
yum-3.2.29-30.el6.centos.noarch
yum-metadata-parser-1.1.2-16.el6.x86_64
yum-plugin-fastestmirror-1.1.30-14.el6.noarch
== END rpm -qa yum\* rpm-\* python | sort ==
== BEGIN ls /etc/yum.repos.d ==
CentOS-Base.repo
CentOS-Debuginfo.repo
CentOS-Media.repo
CentOS-Vault.repo
== END ls /etc/yum.repos.d ==
== BEGIN cat /etc/yum.conf ==
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release
# This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
== END cat /etc/yum.conf ==
== BEGIN yum repolist all ==
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.mel.bkb.net.au
* extras: centos.ipserverone.com
* updates: centosg4.centos.org
repo id repo name status
C6.0-base CentOS-6.0 - Base disabled
C6.0-centosplus CentOS-6.0 - CentOSPlus disabled
C6.0-contrib CentOS-6.0 - Contrib disabled
C6.0-extras CentOS-6.0 - Extras disabled
C6.0-updates CentOS-6.0 - Updates disabled
C6.1-base CentOS-6.1 - Base disabled
C6.1-centosplus CentOS-6.1 - CentOSPlus disabled
C6.1-contrib CentOS-6.1 - Contrib disabled
C6.1-extras CentOS-6.1 - Extras disabled
C6.1-updates CentOS-6.1 - Updates disabled
C6.2-base CentOS-6.2 - Base disabled
C6.2-centosplus CentOS-6.2 - CentOSPlus disabled
C6.2-contrib CentOS-6.2 - Contrib disabled
C6.2-extras CentOS-6.2 - Extras disabled
C6.2-updates CentOS-6.2 - Updates disabled
base CentOS-6 - Base enabled: 6,346
c6-media CentOS-6 - Media disabled
centosplus CentOS-6 - Plus disabled
contrib CentOS-6 - Contrib disabled
debug CentOS-6 - Debuginfo disabled
extras CentOS-6 - Extras enabled: 4
updates CentOS-6 - Updates enabled: 109
repolist: 6,459
== END yum repolist all ==
== BEGIN egrep 'include|exclude' /etc/yum.repos.d/*.repo ==
== END egrep 'include|exclude' /etc/yum.repos.d/*.repo ==
== BEGIN sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n ==
== END sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n ==
== BEGIN cat /etc/fstab ==
#
# /etc/fstab
# Created by anaconda on Tue Oct 4 21:07:50 2011
#
# 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_web10-lv_root / ext4 defaults 1 1
UUID=1b0f4a08-1de3-4293-bfc7-fbcdb90f06d6 /boot ext4 defaults 1 2
/dev/mapper/vg_web10-lv_home /home ext4 defaults 1 2
/dev/mapper/vg_web10-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
/dev/sdb1 /var ext4 defaults 1 2
== END cat /etc/fstab ==
== BEGIN df -h ==
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_web10-lv_root
50G 23G 25G 48% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/sda1 485M 67M 393M 15% /boot
/dev/mapper/vg_web10-lv_home
89G 26G 58G 31% /home
/dev/sdb1 197G 57G 131G 31% /var
== END df -h ==
== BEGIN fdisk -lu ==
Disk /dev/sda: 161.1 GB, 161061273600 bytes
255 heads, 63 sectors/track, 19581 cylinders, total 314572800 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b10b9
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 1026048 314572799 156773376 8e Linux LVM
Disk /dev/sdb: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders, total 419430400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x5997c8cb
Device Boot Start End Blocks Id System
/dev/sdb1 63 419425019 209712478+ 83 Linux
Disk /dev/mapper/vg_web10-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders, total 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_web10-lv_swap: 10.6 GB, 10552868864 bytes
255 heads, 63 sectors/track, 1282 cylinders, total 20611072 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_web10-lv_home: 96.3 GB, 96292831232 bytes
255 heads, 63 sectors/track, 11706 cylinders, total 188071936 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
== END fdisk -lu ==
== BEGIN blkid ==
/dev/sda1: UUID="1b0f4a08-1de3-4293-bfc7-fbcdb90f06d6" TYPE="ext4"
/dev/sda2: UUID="4eMycF-7OqN-6HeZ-YNnl-fTWN-T4U0-tn9u43" TYPE="LVM2_member"
/dev/sdb1: UUID="fdc176a8-0040-4121-9db6-8867eca71378" TYPE="ext4"
/dev/mapper/vg_web10-lv_root: UUID="0e297290-743f-47cf-a58b-068fd40eac3d" TYPE="ext4"
/dev/mapper/vg_web10-lv_swap: UUID="fd8bb3fc-ed6a-4ce8-8914-3f02b3aae30e" TYPE="swap"
/dev/mapper/vg_web10-lv_home: UUID="5fe18d98-0cae-440d-a3ac-ecc2baa7548a" TYPE="ext4"
== END blkid ==
== BEGIN cat /proc/mdstat ==
Personalities :
unused devices:
== END cat /proc/mdstat ==
== BEGIN pvs ==
PV VG Fmt Attr PSize PFree
/dev/sda2 vg_web10 lvm2 a-- 149.51g 0
== END pvs ==
== BEGIN vgs ==
VG #PV #LV #SN Attr VSize VFree
vg_web10 1 3 0 wz--n- 149.51g 0
== END vgs ==
== BEGIN lvs ==
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
lv_home vg_web10 -wi-ao-- 89.68g
lv_root vg_web10 -wi-ao-- 50.00g
lv_swap vg_web10 -wi-ao-- 9.83g
== END lvs ==
== BEGIN rpm -qa kernel\* | sort ==
kernel-2.6.32-279.el6.x86_64
kernel-2.6.32-71.29.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
kernel-firmware-2.6.32-279.el6.noarch
kernel-headers-2.6.32-279.el6.x86_64
== END rpm -qa kernel\* | sort ==
== Warning: lspci is not installed ==
== Warning: lsusb is not installed ==
== BEGIN rpm -qa kmod\* kmdl\* ==
== END rpm -qa kmod\* kmdl\* ==
== BEGIN ifconfig -a ==
eth0 Link encap:Ethernet HWaddr 00:50:56:B7:00:11
inet addr:10.251.25.20 Bcast:10.251.25.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:feb7:11/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:371044 errors:0 dropped:0 overruns:0 frame:0
TX packets:195074 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:298278234 (284.4 MiB) TX bytes:14218245 (13.5 MiB)
eth1 Link encap:Ethernet HWaddr 00:50:56:B7:00:10
inet addr:10.251.26.109 Bcast:10.251.26.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:feb7:10/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:89504 errors:0 dropped:0 overruns:0 frame:0
TX packets:47699 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7030957 (6.7 MiB) TX bytes:9233429 (8.8 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:41 errors:0 dropped:0 overruns:0 frame:0
TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2392 (2.3 KiB) TX bytes:2392 (2.3 KiB)
== END ifconfig -a ==
== Warning: brctl is not installed ==
== BEGIN route -n ==
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.251.27.0 10.251.26.1 255.255.255.0 UG 0 0 0 eth1
10.251.26.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
10.251.25.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.251.30.0 10.251.26.1 255.255.255.0 UG 0 0 0 eth1
10.251.28.0 10.251.26.1 255.255.255.0 UG 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 eth0
0.0.0.0 10.251.25.1 0.0.0.0 UG 0 0 0 eth0
== END route -n ==
== BEGIN sysctl -a | grep .rp_filter ==
net.ipv4.conf.all.rp_filter = 0
net.ipv4.conf.all.arp_filter = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.arp_filter = 0
net.ipv4.conf.lo.rp_filter = 1
net.ipv4.conf.lo.arp_filter = 0
net.ipv4.conf.eth0.rp_filter = 1
net.ipv4.conf.eth0.arp_filter = 0
net.ipv4.conf.eth1.rp_filter = 1
net.ipv4.conf.eth1.arp_filter = 0
== END sysctl -a | grep .rp_filter ==
== BEGIN ip rule show ==
0: from all lookup local
32766: from all lookup main
32767: from all lookup default
== END ip rule show ==
== BEGIN ip route show ==
10.251.27.0/24 via 10.251.26.1 dev eth1
10.251.26.0/24 dev eth1 proto kernel scope link src 10.251.26.109
10.251.25.0/24 dev eth0 proto kernel scope link src 10.251.25.20
10.251.30.0/24 via 10.251.26.1 dev eth1
10.251.28.0/24 via 10.251.26.1 dev eth1
169.254.0.0/16 dev eth1 scope link metric 1002
169.254.0.0/16 dev eth0 scope link metric 1003
default via 10.251.25.1 dev eth0
== END ip route show ==
== BEGIN cat /etc/resolv.conf ==
# Generated by NetworkManager
nameserver 8.8.8.8
# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
== END cat /etc/resolv.conf ==
== BEGIN egrep 'net|hosts' /etc/nsswitch.conf ==
#hosts: db files nisplus nis dns
hosts: files dns
#networks: nisplus [NOTFOUND=return] files
#netmasks: nisplus [NOTFOUND=return] files
netmasks: files
networks: files
netgroup: nisplus
== END egrep 'net|hosts' /etc/nsswitch.conf ==
== BEGIN chkconfig --list | grep -Ei 'network|wpa' ==
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
== END chkconfig --list | grep -Ei 'network|wpa' ==
[/code]