2011年11月21日 星期一

ubuntu 由 DHCP 取得 ip 以及 hostname

Step 1.
===/etc/networks/interface
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp



Step 2.
=== /etc/dhcp3/dhclient-exit-hooks.d/sethostname ======================
# This script sets the machine hostname to the hostname sent from the DHCP server.
# Beware, if this happens while X is running, there will be problems, so the script checks
# for a running gdm and does not change the hostname if it detects one.
# If you want to enable this script, change SETHOSTNAME to "yes"

SETHOSTNAME="yes"

if [ "$SETHOSTNAME" = "yes" ]; then
        if test -r /var/run/gdm.pid && ps -ef | grep $(cat /var/run/gdm.pid) | grep -q /usr/sbin/gdm ; then
                echo "$(date): GDM running, not changing host name"
        else
                hostname $new_host_name;
        fi
fi

2011年9月5日 星期一

Ununtu Disabled ipv6



root@server:~# netstat -atnup | grep 177
udp6       0      0 :::177                  :::*                                4146/gdm-binary

I disabled IPv6 via the Kernel Boot Parameters:

I added "ipv6.disable=1" to the Config Line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" in /etc/defaults/grub.


$ grep -i ipv6 /etc/default/grub 
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"

Then updated grub via the command "sudo update-grub" and rebooted.

Now gdm listens on the UDP in IPv4.

$ sudo netstat -tuanp |grep gdm
udp        0      0 0.0.0.0:177             0.0.0.0:*    607/gdm-binary

2011年4月20日 星期三

VNC & GDM

so, you have no graphics card, but you still want GUI management / X Windows......

Perhaps you do have a graphics card but want the convenience of using VNC to reach your Fedora machine?

There are some great turotials on getting the basics of VNC set up, but it always logs you right into the machine as a specific user...I want to choose my user....VNC + GDM is the answer

Torque 中,限制哪些Queue 只能在哪些 node 跑

12.1.3 Queues
Some resource managers allow queues (or classes) to be defined and then associated with a subset of available compute resources. With such systems, such as Loadleveler or PBSPro, these queue to node mappings are automatically detected. On resource managers which do not provide this service, Moab provides alternative mechanisms for enabling this feature.
12.1.3.1 TORQUE/OpenPBS Queue to Node Mapping
Under TORQUE, queue to node mapping can be accomplished by using the qmgr command to set the queue acl_hosts parameter to the mapping hostlist desired. Further, the acl_host_enable parameter should be set to False.

Using native IB support for GPFS

資料來源: http://mytravelingfamily.com/2009/03/04/using-native-ib-support-for-gpfs/

March 4, 2009 in Computers | Tags: gpfs, Infiniband, verbsPorts, verbsRdma

Just a quick follow on to the last post. If you try to use native IB support with GPFS instead of the IP over IB you need to set the verbsRdma to enabled. You also need to set the rdma device to use with the verbsPort setting. If you get the following error in /var/mfms/gen/mmfslog then you didn’t properly set the verbsPort

Lustre 安裝與設定

安裝
rpm -ivh lustre-modules-1.8.5-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh lustre-1.8.5-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh kernel-2.6.18-194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh lustre-1.8.5-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh lustre-ldiskfs-3.1.4-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -Uvh --nodeps --force e2fsprogs-1.41.10.sun2-0redhat.rhel5.x86_64.rpm
shutdown -r now

CentOS 5.5 自己 build kernel

參考網址
http://curse666.blogspot.com/2011/03/centos-55-build-kernel.html

KVM 指令參考

查看 virt-install 各項的參數,執行:
virt-install --help

查看 virt-install 完整的使用說明,執行:
man virt-install

Linux KVM: Disable virbr0 NAT Interface

The virtual network (virbr0) used for Network address translation (NAT) which allows guests to access to network services. However, NAT slows down things and only recommended for desktop installations. To disable Network address translation (NAT) forwarding type the following commands: