9 月 272014
 

设备 IBM V3700
Brocade 300
Qlogic 2560
Dell R720

存储
已划分LUN
centos-fcsan-hba-config-01主机
已新增主机,主机和LUN映射已作
centos-fcsan-hba-config-02 centos-fcsan-hba-config-03

存储多路径设备需要的软件支持 默认情况下CenOS6.5最小化安装镜像已包含
[root@localhost ~]# rpm -qa |grep device-mapper
device-mapper-libs-1.02.79-8.el6.x86_64
device-mapper-event-libs-1.02.79-8.el6.x86_64
device-mapper-event-1.02.79-8.el6.x86_64
device-mapper-persistent-data-0.2.8-2.el6.x86_64
device-mapper-1.02.79-8.el6.x86_64
device-mapper-multipath-libs-0.4.9-72.el6.x86_64
device-mapper-multipath-0.4.9-72.el6.x86_64
[root@localhost ~]#

系统环境 CenOS 6.5 x86_64 minimal ISO
未安装FC HBA的情况下 multipathd 服务为停止状态 且不含配置文件
[root@localhost ~]# service multipathd status
multipathd is stopped
[root@localhost ~]# chkconfig –list multipathd
multipathd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@localhost ~]#
[root@localhost ~]# lsmod |grep multipath
[root@localhost ~]#
增加最小化配置文件
blacklist {
devnode “^sda”
}

defaults {
user_friendly_names yes
path_grouping_policy multibus
failback immediate
no_path_retry fail
}

加载内核模块和启动服务
# modprobe dm-multipath
# modprobe dm-round-robin
# service multipathd start
# multipath -v2

查看设备状态和路径识别
centos-fcsan-hba-config-04
已安装HBA卡的主机安装系统后,每台主机安装两块HBA卡 QLogic 2560单端口8Gbps
服务自动启动,且包含配置文件

查看默认服务状态和已加载内核模块

[root@node1 ~]# chkconfig –list multipathd
multipathd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@node1 ~]#
[root@node1 ~]# lsmod |grep multipath
dm_multipath 17724 2 dm_round_robin
dm_mod 84209 18 dm_multipath,dm_mirror,dm_log
[root@node1 ~]#
查看默认配置文件

centos-fcsan-hba-config-05

查看多路径设备识别

centos-fcsan-hba-config-06

centos-fcsan-hba-config-07

单机使用FC SAN存储 逻辑卷管理 1物理卷2卷组3逻辑卷4文件系统挂载

9 月 202014
 

manager-gui – allows access to the HTML GUI and the status pages
manager-script – allows access to the text interface and the status pages
manager-jmx – allows access to the JMX proxy and the status pages
manager-status – allows access to the status pages only

 <role rolename="manager-gui"/>
 <user username="tomcat" password="s3cret" roles="manager-gui"/>

admin-gui – allows access to the HTML GUI
admin-script – allows access to the text interface

 <role rolename="admin-gui"/>
 <user username="tomcat" password="s3cret" roles="admin-gui"/>

同时具备所有权限

 <role rolename="tomcat"/>
 <user username="tomcat" password="tom123" roles="manager-gui,admin-gui"/>

 

9 月 172014
 

关闭防火墙和SELinux
[root@localhost ~]# chkconfig –list iptables
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@localhost ~]# chkconfig –level 35 iptables off
[root@localhost ~]# getenforce
Enforcing
[root@localhost ~]# vi /etc/sysconfig/selinux

安装NFS及依赖软件包
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
nfs-utils x86_64 1:1.2.3-39.el6_5.3 updates 321 k
Installing for dependencies:
keyutils x86_64 1.4-4.el6 base 39 k
libevent x86_64 1.4.13-4.el6 base 66 k
libgssglue x86_64 0.1-11.el6 base 23 k
libtirpc x86_64 0.2.1-6.el6_5.2 updates 79 k
nfs-utils-lib x86_64 1.1.5-6.el6_5 updates 67 k
rpcbind x86_64 0.2.0-11.el6 base 51 k

Transaction Summary
================================================================================
Install 7 Package(s)

修改NFS服务运行级别设置为随系统刚启动

[root@localhost ~]# chkconfig –list nfs
nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@localhost ~]# chkconfig –level 35 nfs on
[root@localhost ~]# init 6

mount文件系统类型参数
-t, –types vfstype
The argument following the -t is used to indicate the filesystem
type. The filesystem types which are currently supported
include: adfs, affs, autofs, cifs, coda, coherent, cramfs,
debugfs, devpts, efs, ext, ext2, ext3, ext4, hfs, hfsplus, hpfs,
iso9660, jfs, minix, msdos, ncpfs, nfs, nfs4, ntfs, proc, qnx4,
ramfs, reiserfs, romfs, squashfs, smbfs, sysv, tmpfs, ubifs,
udf, ufs, umsdos, usbfs, vfat, xenix, xfs, xiafs. Note that
coherent, sysv and xenix are equivalent and that xenix and
coherent will be removed at some point in the future — use sysv
instead. Since kernel version 2.1.21 the types ext and xiafs do
not exist anymore. Earlier, usbfs was known as usbdevfs. Note,
the real list of all supported filesystems depends on your ker-
nel.

将安装光盘镜像挂载至文件系统
[root@localhost ~]# mount -t iso9660 -o loop CentOS-6.5-x86_64-minimal.iso /mnt/
[root@localhost ~]# mount
/dev/mapper/VolGroup-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext=”system_u:object_r:tmpfs_t:s0″)
/dev/sda1 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/root/CentOS-6.5-x86_64-minimal.iso on /mnt type iso9660 (rw,loop=/dev/loop0)
[root@localhost ~]#
查看挂载
[root@localhost ~]# ls /mnt/
CentOS_BuildTag isolinux RPM-GPG-KEY-CentOS-Debug-6
EFI Packages RPM-GPG-KEY-CentOS-Security-6
EULA RELEASE-NOTES-en-US.html RPM-GPG-KEY-CentOS-Testing-6
GPL repodata TRANS.TBL
images RPM-GPG-KEY-CentOS-6
[root@localhost ~]#

输出挂载点
[root@localhost ~]# vi /etc/exports
/mnt 192.168.100.0/24(ro,sync)

重启

执行安装过程中查看主机与服务期间网连接状态
[root@localhost ~]# netstat -tun
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 64 192.168.100.144:22 192.168.100.136:52912 ESTABLISHED
tcp 0 0 192.168.100.144:2049 192.168.100.136:1021 ESTABLISHED
[root@localhost ~]#
文本模式的限制
不允许自定义分区,不可选择软件包

centos-nfs-installation-repo-01 centos-nfs-installation-repo-02 centos-nfs-installation-repo-03 centos-nfs-installation-repo-04 centos-nfs-installation-repo-05 centos-nfs-installation-repo-06 centos-nfs-installation-repo-07 centos-nfs-installation-repo-08 centos-nfs-installation-repo-09 centos-nfs-installation-repo-10 centos-nfs-installation-repo-11 centos-nfs-installation-repo-12 centos-nfs-installation-repo-13 centos-nfs-installation-repo-14……

9 月 162014
 

cisco-ap-setup-01 cisco-ap-setup-02 cisco-ap-setup-03 cisco-ap-setup-04 cisco-ap-setup-05 cisco-ap-setup-06 cisco-ap-setup-07 cisco-ap-setup-08 cisco-ap-setup-09……

ap#sh run
Building configuration…

Current configuration : 1911 bytes
!
version 15.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname ap
!
logging rate-limit console 9
enable secret 5 $1$8BJ6$uhR8IIUgGIDprOCItaXuK/
!
no aaa new-model
no ip routing
!
!
dot11 syslog
!
dot11 ssid LINUXCACHE-AP01-2.4G
authentication open
authentication key-management wpa version 2
guest-mode
wpa-psk ascii 7 0914185E4B5447425E
!
dot11 ssid LINUXCACHE-AP01-5G
authentication open
authentication key-management wpa version 2
guest-mode
wpa-psk ascii 7 014B5053095A565F74
!
crypto pki token default removal timeout 0
!
!
username Cisco password 7 05280F1C2243
!
!
bridge irb
!
!
interface Dot11Radio0
no ip address
no ip route-cache
!
encryption mode ciphers aes-ccm tkip
!
ssid LINUXCACHE-AP01-2.4G
!
antenna gain 0
stbc
station-role root
bridge-group 1
bridge-group 1 subscriber-loop-control
bridge-group 1 spanning-disabled
bridge-group 1 block-unknown-source
no bridge-group 1 source-learning
no bridge-group 1 unicast-flooding
!
interface Dot11Radio1
no ip address
no ip route-cache
!
encryption mode ciphers aes-ccm tkip
!
ssid LINUXCACHE-AP01-5G
!
antenna gain 0
stbc
station-role root
bridge-group 1
bridge-group 1 subscriber-loop-control
bridge-group 1 spanning-disabled
bridge-group 1 block-unknown-source
no bridge-group 1 source-learning
no bridge-group 1 unicast-flooding
!
interface GigabitEthernet0
no ip address
no ip route-cache
duplex auto
speed auto
bridge-group 1
bridge-group 1 spanning-disabled
no bridge-group 1 source-learning
!
interface BVI1
ip address 192.168.100.254 255.255.255.0
no ip route-cache
!
ip default-gateway 192.168.100.1
ip http server
no ip http secure-server
ip http help-path http://www.cisco.com/warp/public/779/smbiz/prodconfig/help/eag
bridge 1 route ip
!
!
!
line con 0
line vty 0 4
login local
transport input all
!
end

ap#