2008年12月22日 星期一
linux multipath
load driver:
1. chkconfig boot.multipath on
2.chkconfig multipathd on
3. /etc/init.d/boot.multipath start
4. /etc/init.d/multipathd start
query multipath status:
multipath -l
stop multipath service:
1. /etc/init.d/boot.multipath stop
2. /etc/init.d/multipathd stop
/etc/scsi_id.config:
the info related to multipath
how to decide multipath:
the sds with the same uuid are combined into a dm
scsi_id -g -s /block/sda can get uuid
for red hat:
default multipath is not triggered
modify /etc/multipath.conf :
comment blacklist
remove dm:
multipath -F
multipath stop
2008年12月17日 星期三
2008年12月15日 星期一
change log level & enable sysrq
echo 9 > /proc/sysrq-trigger
echo 1 > /proc/sys/kernel/sysrq
alt + sysrq + p : show cpu info
alt + sysrq + t : show current task list
alt + sysrq + m : show memory info
redirect output from serial port
1. modify bios:
(1)Change BIOS settings /Server/Serial Console Features/BIOS Redirection Port to
[Serial port 1 or 2]
(2)change direct to modem
2. modify /boot/grub/menu.lst for suse
modify /boot/grub/grub.conf for red hat
console=ttyS0, 115200,vt100
3. modify /ect/inittab
c0:2345:respawn:/sbin/agetty ttyS0 19200 vt100
4. modify /etc/securetty
ttyS0
2008年12月10日 星期三
2008年12月9日 星期二
GFP_KERNEL
allocate memory:
1. GFP_KERNEL:
kmalloc() is allowed to go to sleep and wait for pages to get freed up.
2.GFP_ATOMIC:
Used by interrupt context code to get hold of memory. In this mode, kmalloc() is not allowed to sleep-wait for free pages, so the probability of successful allocation with GFP_ATOMIC is lower than with GFP_KERNEL.
訂閱:
文章 (Atom)