snfs文件系统配置AS3_WIN
- 格式:pdf
- 大小:343.69 KB
- 文档页数:21
StorNext FS 配置
(Red Hat Enterprise Linux/x86 AS 3 +win2K)
一、环境描述:
硬件描述:
1. Brocade 3950
2. S2A 8000(本例中3个LUN,分别为MetaData(30GB)、Journal(100MB)、数据)
3. DEL 2650 (内存 2G,建议4G)
软件描述:
1. Red Hat Enterprise Linux/x86 AS 3 (
2.4.21-27)
2. StorNext FS Server/Client 软件
二、StorNext FS系统配置
1.准备工作
1.1配置网络
# vi /etc/hosts
127.0.0.1 localhost.localdomain localhost
10.0.5.25 mds1 //这里为两台MDS
10.0.5.26 mds2
1.2 安装Emulex LP8000/982驱动
tar xzf lpfc-
如:#tar xzf lpfc_2.4_driver_kit-7.3.2-1.tar
#cd lpfc_2.4_driver_kit-7.3.2-1
#./lpfc-install //执行安装脚本
#reboot //重起服务器
注意:Red Hat Enterprise Linux/x86 AS 3 updata 4 内核中已经加载Emulex LP8000/982驱动,可以不做这一步。
如果在安装驱动程序中,报IO和IRQ参数错,检查Firmware版本,升级为最新的版本。
1.3 效验HBA卡加载。
通过cat /proc/scsi/scsi 命令查看HBA卡检测到的磁盘信息
如:# cat /proc/scsi/scsi
Host: scsi0 Channel: 00 Id: 06 Lun: 00
Vendor: PE/PV Model: 1x5 SCSI BP Rev: 1.1
Type: Processor ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 00 Lun: 03
Vendor: DDN Model: S2A 8000 Rev: 5.02
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi2 Channel: 00 Id: 00 Lun: 08
Vendor: DDN Model: S2A 8000 Rev: 5.02
Type: Direct-Access ANSI SCSI revision: 03
1.4 效验SCSI、RAID、HBA卡加载顺序
如果SCSI、RAID卡的加载在HBA卡后面。不然在本地SCSI系统盘的SWAP分区,不可用。如下 #cat /etc/module.conf
alias scsi_hostadapter lpfc // Emulex HBA
alias scsi_hostadapter1 aic7xxx //scsi卡
alias usb-controller usb-ohci
options scsi_mod max_scsi_luns=256 scsi_allow_ghost_devices=1
需要将加载顺序改变,如
alias scsi_hostadapter1 aic7xxx //scsi卡
alias scsi_hostadapter2 lpfc // Emulex HBA
alias usb-controller usb-ohci
options scsi_mod max_scsi_luns=256 scsi_allow_ghost_devices=1
重建内核
# cd /boot
# mv initrd-2.4.21-27.ELsmp.img initrd-2.4.21-27.ELsmp.img.ori
# mkinitrd initrd-2.4.21-27.ELsmp.img 2.4.21-27.ELsmp
# sync
# reboot
2.安装StorNext FS
2.1 以root用户登录Linux,插入StorNext FS CD
#cd /mnt/cdrom
如果CDROM没有被mounted,那么执行#mount /mnt/cdrom
# cd /mnt/cdrom/StorNextFS/linux
根据系统是否有多个CPU决定不同的安装包
#uname -a 查看当前系统内核的版本和CPU个数。
如:uname -a
Linux mds1 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST 2004 i686 i686 i386 GNU /Linux
# rpm -ivh snfs-server_RH_AS_3_2421-2.5.3-58.i386.rpm
# rpm –ivh snfs-client_RH_AS_3_2421-2.5.3-58.i386.rpm
本例中的系统内核为多CPU,故安装多cpu的版本。注意,在linux上服务器上必须安装
Server和client两个软件。
2.2 修改环境变量
#vi /etc/profile
# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /usr/cvfs/bin
fi
ulimit -S -c 0 > /dev/null 2 > &1
ulimit -c unlimited > /dev/null 2 >&1
注销root用户,重新以root用户登陆系统,才能使环境变量起作用
2.3 磁盘Label
2.3.1 查看盘阵信息,执行fdisk -l
如: # fdisk –l
Disk /dev/sdc (Sun disk label): 0 heads, 0 sectors, 52221 cylinders
Units = cylinders of 1 * 512 bytes
Device Flag Start End Blocks Id System
/dev/sdc3 u 0 -872571904 -436285952 5 Whole disk
Note: sector size is 2048 (not 512)
Disk /dev/sdg (Sun disk label): 0 heads, 0 sectors, 959 cylinders
Units = cylinders of 1 * 512 bytes
Device Flag Start End Blocks Id System
/dev/sdg3 u 0 62902272 31451136 5 Whole disk
Disk /dev/sdl (Sun disk label): 0 heads, 0 sectors, 2 cylinders
Units = cylinders of 1 * 512 bytes
Device Flag Start End Blocks Id System
/dev/sdl3 u 0 192512 96256 5 Whole disk
2.1设置RAW设备(该步骤在StorNext FS 2.5版本不需要做。可以略过)
编辑/etc/sysconfig/rawdevices文件。其中/dev/raw/raw1,第一个RAW设备,对应的/dev/sdb设备名,如下内容。
# vi /etc/sysconfig/rawdevices
本例中:/dev/raw/raw1 /dev/sdc
/dev/raw/raw2 /dev/sdg
/dev/raw/raw2 /dev/sdl
# /etc/init.d/rawdevices restart //重起rawdevices服务
2.2查看disk Label
#/usr/cvfs/bin/cvlabel –l