Fibre Channel in Linux(CentOS7)

Get the WWN of the controller cd /sys/class/fc_host/host5/ [root@ibm2 host5]# cat node_name 0x200000051e8e53aa   Rescan the FC bus cd /sys/class/fc_host/host5/ echo “1” > issue_lip OR yum install sg3_utils rescan-scsi-bus.sh   List disks [root@hp by-path]# lsscsi [0:0:0:0]    disk    ATA      WDC WD4000FYYZ-0 1K03  /dev/sda [1:0:0:0]    disk    ATA      WDC WD4000FYYZ-0 1K03  /dev/sdb [2:0:0:0]    disk    ATA      WDC WD4000FYYZ-0 1K03  […]

Read More »

Fix horrid blue dir colours in bash

echo “LS_COLORS=\$LS_COLORS:’di=0;35:’ ; export LS_COLORS” >> ~/.bashrc   To fix the dir colour in the bash prompt, not just the LS output set this in .bashrc if [ “$color_prompt” = yes ]; then # PS1=’${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34\[\033[00m\]\$ ‘ PS1=’${debian_chroot:+($debian_chroot)}\[\033[01;35m\]\u\[\033[01;31m\]@\[\033[01;32m\]\h\[\033[00m\]:\[\033[01;35m\]\w\[\033[00m\]\$ ‘ else PS1=’${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ‘ fi unset color_prompt force_color_prompt

Read More »