当前位置: 首页 > linux
  • ATA bus error SError: { PHYRdyChg DevExch }

    ATA bus error in /var/log/messages: SCSI device sdb: 490350672 512-byte hdwr sectors (251060 MB) sdb: Write Protect is off sdb: Mode Sense: 00 3a 00 00 SCSI device sdb: drive cache: write back ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x4010000 action 0xe frozen ata1.00: irq_stat 0x00400040, ...

    阅读全文
    作者:u2 | 分类:linux | 标签:
    ATA bus error SError: { PHYRdyChg DevExch }已关闭评论
  • linux 环境变量中配置参数 use function but not use alias

    例子:使用两个参数匹配域名,其他部分自动补齐,减少键盘输入,然后ssh登陆到目的主机。 cat .bashrc  # .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # update the PATH export PATH=${PATH}:/usr/sbin:/sbin sss() {   ssh $1.$2.2hei.net } use: $sss t ...

    阅读全文
    作者:u2 | 分类:linux | 标签:
    linux 环境变量中配置参数 use function but not use alias已关闭评论
  • bonding in linux

    ####### bond0 #######dond0 use dhcp$cat ifcfg-bond0DEVICE=bond0BOOTPROTO=dhcpONBOOT=yes $cat ifcfg-eth0DEVICE=eth0ONBOOT=yesBOOTPROTO=noneUSERCTL=noMASTER=bond0SLAVE=yes DEVICE=eth1ONBOOT=yesBOOTPROTO=noneUSERCTL=noMASTER=bond0SLAVE=yes ####### bond1 #######$cat ifcfg-bond1DEVICE=bond1BOOTPROTO= ...

    阅读全文
    作者:u2 | 分类:linux | 标签:
    bonding in linux已关闭评论
  • finding netcard driver type in linux

    we have two ways: 1. finding netcard driver by sysloggrep -i ‘driver’ /var/log/messagesordmesg | grep -i driver 2.lsmod  #try to find netcard type. [root@2hei.net]# modinfo e1000filename:       /lib/modules/2.6.9-34.ELsmp/kernel/drivers/net/e1000/e1 ...

    阅读全文
    作者:u2 | 分类:linux | 标签:
  • replacing_hard_disks_in_a_raid1_array

    cat /proc/mdstat Personalities :  [raid1] read_ahead 1024 sectors  md1 : active raid1 sda3[0] sdb3[1] 522048 blocks [2/2] [U_]  md0 : active raid1 sda2[0] sdb2[1] 4192896 blocks [2/2] [U_]  md2 : active raid1 sda1[0] sdb1[1] 128384 blocks [2/2] [U_]  unused devices: < ...

    阅读全文
    作者:u2 | 分类:linux | 标签:,
    replacing_hard_disks_in_a_raid1_array已关闭评论
  • ssh登陆到终端的时候去掉Your default context is root提示

    使用ssh或者telnet登陆到终端的时候,发现有的机器会有如下的提示:[local@2hei.net ~]$ su – Password: Your default context is root:system_r:unconfined_t. Do you want to choose a different one? [n] [root@2hei.net ~]# getenforcePermissive 解决办法一:[root@2hei.net ~]#  vi /etc/pam.d/su &n ...

    阅读全文
    作者:u2 | 分类:OpenSource | 标签:
    ssh登陆到终端的时候去掉Your default context is root提示已关闭评论
  • linux限制用户密码尝试次数

    设置方式:vi /etc/pam.d/system-auth auth        required      /lib/security/$ISA/pam_tally.so onerr=fail no_magic_rootaccount     required      /lib/security/$ISA/pam_tally.so deny=5 no_magic ...

    阅读全文
    作者:u2 | 分类:others | 标签:,
    linux限制用户密码尝试次数已关闭评论
  • kernel: mptscsih: ioc0: task abort: SUCCESS

    收到服务器报警,查看/var/log/messages 中很多类似下面的日志:Dec  9 00:03:22 kernel: mptscsih: ioc0: attempting task abort! (sc=ffff81007ec8bb00)Dec  9 00:03:22 kernel: sd 0:0:0:0:Dec  9 00:03:22 kernel:         command: Read(10): 28 00 05 4c ...

    阅读全文
    作者:u2 | 分类:OpenSource | 标签:
    kernel: mptscsih: ioc0: task abort: SUCCESS已关闭评论