2009年8月31日 星期一

solaris ssh

/etc/ssh/sshd_config
permitRootLogin yes

svcadm restart ssh

2009年7月8日 星期三

multipath at boot

  • For Red Hat Enterprise Linux 4 or later, issue one of the following commands:
    • chkconfig multipathd on
    • chkconfig --level 345 multipathd on
      Note: This command enables multipathd service startup at boot.
  • For SUSE Linux Enterprise Server 9 or later, issue one of the following commands:
    • chkconfig boot.multipath on
    • chkconfig --level 345 boot.multipath on
      Note: This command enables boot.multipath service startup at boot.
    After running one of these commands, issue one of these commands:
    • chkconfig multipathd on
    • chkconfig --level 345 multipathd on
      Note: This command enables multipathd service startup at boot.

2009年7月1日 星期三

mkinitrd

1. mkinitrd -c -k 2.6.27.7-smp -m reiserfs:jbd

create an initrd with module reiserfs & jbd

2. load initrd at boot time
ex: add in lilo.conf

# Linux bootable partition config begins

image = /boot/vmlinuz-generic-2.6.27.7-smp

initrd = /boot/initrd.gz

root = /dev/hda6

label = Lnx26277smp

read-only

# Linux bootable partition config ends



/etc/modprobe.conf  
Specifies SCSI modules to be loaded  and  module options to be used.
install modulename command... This is the most powerful primitive in modprobe.conf: it tells modprobe to run your command instead of inserting the module in the kernel as normal. The command can be any shell command: this allows you to do any kind of complex processing you might wish. For example, if the module "fred" worked better with the module "barney" already installed (but it didn't depend on it, so modprobe won't automatically load it), you could say "install fred /sbin/modprobe barney; /sbin/modprobe --ignore-install fred", which would do what you wanted. Note the --ignore-install, which stops the second modprobe from re-running the same install command. See also remove below. You can also use install to make up modules which don't otherwise exist. For example: "install probe-ethernet /sbin/modprobe e100 || /sbin/modprobe eepro100", which will try first the e100 driver, then the eepro100 driver, when you do "modprobe probe-ethernet". If you use the string "$CMDLINE_OPTS" in the command, it will be replaced by any options specified on the modprobe command line. This can be useful because users expect "modprobe fred opt=1" to pass the "opt=1" arg to the module, even if there's an install command in the configuration file. So our above example becomes "install fred /sbin/modprobe barney; /sbin/modprobe --ignore-install fred $CMDLINE_OPTS"

2009年6月1日 星期一

iometer & dynamo

problem:
Getting host name for "test" failed

solution:
In /ect/hosts
add one line:
hostIp test


run:
./dynamo -i windonsIp -m linuxIp

2009年5月6日 星期三

2009年4月15日 星期三

objdump

objdump -l -D test.o

show assembly code and line number of source code

2009年1月13日 星期二