StorNext FS安装指南1.docx
- 文档编号:25874605
- 上传时间:2023-06-16
- 格式:DOCX
- 页数:15
- 大小:71.38KB
StorNext FS安装指南1.docx
《StorNext FS安装指南1.docx》由会员分享,可在线阅读,更多相关《StorNext FS安装指南1.docx(15页珍藏版)》请在冰豆网上搜索。
StorNextFS安装指南1
StorNextFS配置
(RedHatEnterpriseLinux/x86AS4+win2K)
一、环境描述:
硬件描述:
1.Brocade3950
2.S2A8000(本例中3个LUN,分别为MetaData(30GB)、Journal(100MB)、数据)
3.DELL2650(内存2G,建议4G)
软件描述:
1.RedHatEnterpriseLinux/x86AS4update1(2.6.9-11)
2.StorNextFSServer/Client软件
二、StorNextFS系统配置
1.准备工作
1.1配置网络
#vi/etc/hosts
127.0.0.1localhost.localdomainlocalhost
10.0.5.25mds1//这里为两台MDS
10.0.5.26mds2
1.2安装EmulexLP8000/982驱动和应用程序
安装驱动程序tarxzflpfc-
如:
#tarzxvflpfc_2.6_driver_kit-8.0.16.17-2.tar.gz
#cdlpfc_2.6_driver_kit-8.0.16.17-2
#./lpfc-install//执行安装脚本
#reboot//重起服务器
注意:
RedHatEnterpriseLinux/x864updata1内核中已经加载EmulexLP8000/982驱动,可以不做这一步。
如果在安装驱动程序中,报IO和IRQ参数错,检查Firmware版本,升级为最新的版本。
安装emulexhbanyware应用程序
#tarxvfelxlinuxapps-2.1a25-8.0.16.17-1-1.tar
#./install//安装emulexhnanyware
#/usr/sbin/hbanyware/hbanyware//运行emulexhnanyware,查看WWN,硬件信息。
注意:
需要使用emulexhnanyware时需要安装lpfc_2.6_driver_kit-8.0.16.17-2.tar.gz程序,而linux系统自带的LPFC的驱动不能被emulexhnanyware所以识别。
1.3效验HBA卡加载。
通过cat/proc/scsi/scsi命令查看HBA卡检测到的磁盘信息
如:
#cat/proc/scsi/scsi
Host:
scsi0Channel:
00Id:
06Lun:
00
Vendor:
PE/PVModel:
1×5SCSIBPRev:
1.1
Type:
ProcessorANSISCSIrevision:
02
Host:
scsi2Channel:
00Id:
00Lun:
03
Vendor:
DDNModel:
S2A8000Rev:
5.02
Type:
Direct-AccessANSISCSIrevision:
03
Host:
scsi2Channel:
00Id:
00Lun:
08
Vendor:
DDNModel:
S2A8000Rev:
5.02
Type:
Direct-AccessANSISCSIrevision:
03
1.4效验SCSI、RAID、HBA卡加载顺序——–此步骤在redhatAS4以后的版本中,不需要做。
下面的例子是redhatas3update4
如果SCSI、RAID卡的加载在HBA卡后面。
不然在本地SCSI系统盘的SWAP分区,不可用。
如下
#cat/etc/module.conf
aliasscsi_hostadapterlpfc//EmulexHBA
aliasscsi_hostadapter1aic7xxx//scsi卡
aliasusb-controllerusb-ohci
optionsscsi_modmax_scsi_luns=256scsi_allow_ghost_devices=1
需要将加载顺序改变,如
aliasscsi_hostadapter1aic7xxx//scsi卡
aliasscsi_hostadapter2lpfc//EmulexHBA
aliasusb-controllerusb-ohci
optionsscsi_modmax_scsi_luns=256scsi_allow_ghost_devices=1
重建内核
#cd/boot
#mvinitrd-2.4.21-27.ELsmp.imginitrd-2.4.21-27.ELsmp.img.ori
#mkinitrdinitrd-2.4.21-27.ELsmp.img2.4.21-27.ELsmp
#sync
#reboot
2.安装StorNextFS
2.1以root用户登录Linux,插入StorNextFSCD
#cd/mnt/cdrom
如果CDROM没有被mounted,那么执行#mount/dev/cdrom/mnt
#cd/mnt/cdrom/StorNextFS/linux//此路径根据实际情况而定
#uname-a查看当前系统内核的版本。
如:
uname-a
Linuxmds012.6.9-11.ELsmp#1SMPFriMay2018:
26:
27EDT2005i686i686i386GNU/Linux
#rpm-ivhsnfs-server_RH_AS_4_269-2.6.3-32.i386.rpm
#rpm–ivhsnfs-client_RH_AS_4_269-2.6.3-32.i386.rpm
注意,在linux上服务器上必须安装Server和client两个软件。
2.2修改环境变量
#vi/etc/profile
#Pathmanipulation
if[`id-u`=0];then
pathmunge/usr/cvfs/bin
fi
ulimit-S-c0>/dev/null2>&1
ulimit-cunlimited>/dev/null2>&1
注销root用户,重新以root用户登陆系统,才能使环境变量起作用
2.3磁盘Label
2.3.1查看盘阵信息,执行fdisk-l
如:
#fdisk–l
Disk/dev/sdc(Sundisklabel):
0heads,0sectors,52221cylinders
Units=cylindersof1*512bytes
DeviceFlagStartEndBlocksIdSystem
/dev/sdc3u0-872571904-4362859525Wholedisk
Note:
sectorsizeis2048(not512)
Disk/dev/sdg(Sundisklabel):
0heads,0sectors,959cylinders
Units=cylindersof1*512bytes
DeviceFlagStartEndBlocksIdSystem
/dev/sdg3u062902272314511365Wholedisk
Disk/dev/sdl(Sundisklabel):
0heads,0sectors,2cylinders
Units=cylindersof1*512bytes
DeviceFlagStartEndBlocksIdSystem
/dev/sdl3u0192512962565Wholedisk
2.1查看diskLabel
#/usr/cvfs/bin/cvlabel–l
/dev/sdc[DDNS2A80005.02]CVFS”unknown”Sectors:
3422394368.
SectorSize:
1024.Maximumsectors:
3422394368.
/dev/sdg[DDNS2A80005.02]CVFS”unknown”Sectors:
62900224.
SectorSize:
512.Maximumsectors:
62900224.
/dev/sdl[DDNS2A80005.02]CVFS”unknown”Sectors:
190464.S
ectorSize:
512.Maximumsectors:
190464.
2.2编辑diskLabel配置文件
#/usr/cvfs/bin/cvlabel-c>/usr/cvfs/config/cvlabels
//将cvlabel输出到cvlabels配置文件中
#vi/usr/cvfs/config/cvlabels
将unkown更改为H_Upload,MD_H_Upload,JR_H_Upload。
。
。
等,如本例中:
H_Upload/dev/sdc#host0lun0sectors3422394368sector_size1024inquiry[DDNS2A80005.02]serial60001FF020021101030197FECD180000
F020*********
F020*********
2.3diskLabel
#/usr/cvfs/bin/cvlabel/usr/cvfs/config/cvlabels
*WARNING*Thisprogramwillover-writevolumelabelsonthe
devicesspecifiedinthefile“/usr/cvfs/config/cvlabels”.
Afterexecution,thedeviceswillonlybeusablebythe
CentraVisionFileSystem.Youwillhavetore-partitionthe
devicestousethemonadifferentfilesystem.
Doyouwanttoproceed?
(Y/N)->y
/dev/sdc[DNS2A80005.02]CVFS”unknown”Sectors:
3422394368.
DoyouwanttolabelitSNFS-Name:
H_UploadSectors:
3422394368?
(Y/N)->y
NewVolumeLabel-Device:
/dev/sdaSNFSLabel:
H_UploadSectors:
3422394368.
/dev/sdg[DNS2A80005.02]CVFS”unknown”Sectors:
62900224.
DoyouwanttolabelitSNFS-Name:
MD_H_UploadSectors:
62900224?
(Y/N)->y
NewVolumeLabel-Device:
/dev/sdbSNFSLabel:
MD_H_UploadSectors:
62900224.
/dev/sdl[DNS2A80005.02]CVFS”unknown”Sectors:
190464.
DoyouwanttolabelitSNFS-Name:
JR_H_UploadSectors:
190464?
(Y/N)->y
NewVolumeLabel-Device:
/dev/sdbSNFSLabel:
JR_H_UploadSectors:
190464.
Done.3sourcelines.3labels.
3.配置StorNextFS
3.1创建StorNextFS文件系统的配置文件,
若查看参数信息,键入#man-M/usr/cvfs/mancvfs_config
#cd/usr/cvfs/config
#cp../examples/example.cfg./H_Upload.cfg//例程中拷贝出文件系统的配置文件
#vi/usr/cvfs/config/H_Upload.cfg
GlobalSuperUserYes##MustbesettoYesforSNMSManagedFileSystems##
WindowsSecurityNo
QuotasNo
FileLocksNo
DataMigrationNo##SNMSManagedFileSystemsOnly##
InodeExpandMin32K
InodeExpandInc128K
InodeExpandMax8M
FsBlockSize4K
JournalSize4M
AllocationStrategyRound
MaxConnections78//该数为一般设为客户数加+10
ForceStripeAlignmentYes
Debug0×0
MaxLogSize4M
MaxLogs4
##GlobalsDefaulted
ThreadPoolSize32#default16,512KBmemoryperthread
InodeCacheSize32K#800-1000byteseach,default8K
#BufferCacheSize64M#default32MB
#StripeAlignSize2M#autoalignment,defaultMAX(StripeBreadth)
#MaxMBPerClientReserve50#inMBs,default100MBreservedperclient
#OpHangLimitSecs300#default180secs
#DataMigrationThreadPoolSize128#Managedonly,default8
#************************************************************
#Adisktypesectionfordefiningdiskhardwareparameters.
#************************************************************
[DiskTypeMD_H_Upload]##1+1Raid1MirroredPair##
Sectors62900224##SectorsPerDiskFromCommand“cvlabel-l”
SectorSize512
[DiskTypeJR_H_Upload]##1+1Raid1MirroredPair##
Sectors190464
SectorSize512
[DiskTypeH_Upload]##4+1Raid5LunforRegularData##
Sectors3422394368
SectorSize1024//这里的1024与盘塔上该LUN的BlockSize相一致。
#************************************************************
#Adisksectionfordefiningdisksinthehardwareconfiguration.
#************************************************************
[DiskMD_H_Upload]
StatusUP
TypeMD_H_Upload
[DiskJR_H_Upload]
StatusUP
TypeJR_H_Upload
[DiskH_Upload]
StatusUP
TypeH_Upload
#************************************************************
#Astripesectionfordefiningstripegroups.
*************************************************************
[StripeGroupMetaFiles]
StatusUP
MetaDataYes
JournalNo
ExclusiveYes
ReadEnabled
WriteEnabled
StripeBreadth256K
MultiPathMethodRotate
NodeMD_H_Upload0
[StripeGroupJournFiles]
StatusUP
JournalYes
MetaDataNo
ExclusiveYes
ReadEnabled
WriteEnabled
StripeBreadth256K
MultiPathMethodRotate
NodeJR_H_Upload0
[StripeGroupH_Upload_Files]
StatusUP
ExclusiveNo##Non-ExclusiveStripeGroupforallFiles##
ReadEnabled
WriteEnabled
StripeBreadth1M//该参数根据应用可以调整
MultiPathMethodRotate
NodeH_Upload0
若有多个文件系统依次创建文件系统配置文件
#vi/usr/cvfs/config/file_system_name.cfg
#/etc/init.d/cvfsrestart//重起cvfs服务。
UnmountingSNFSfilesystems
StoppingSNFSDaemons
StoppingSNFSPortMapper
WaitingforFSMstofinish
SNFSStop[确定]
InitializingStorNextFilesystem(SNFS)
NodisksubsystemconfigforSNFS,disksnotstarted
LoadingSNFSmodules
Starting/usr/cvfs/bin/fsmpm..
Starting/usr/cvfs/bin/cvfsd…
MountingSNFSfilesystems
SNFSInitialized[确定]
#/usr/cvfs/bin/cvmkfsH_Upload//初始化文件系统
StorNextFileSystemFileSystemInitializer.
**WARNING**Thiswilldestroyallcontentsanddataofthe
—[H_Upload]—
filesystem.Re-initializationcannotbeun-done!
Doyouwanttoproceed?
(Y/[N])->y
Re-initializingfilesystem‘H_Upload‘.
SharedMetaDataFileSystem.
MetaDataRootison“MetaFiles“.
ResettingArbitrationBlock.
WritingConfigurationInformationBlock.
WritingRootDirectoryBlock.
WritingDiskInformationBlock.
WritingStripeGroupIndex“JournFiles“.
ResettingFileSystemJournal.
CreatingFreeList.
WritingInitial1024Inodes.
WritingInitializationControlBlock.
ResettingSuperBlock.
WritingReservedAllocations.
Filesystem‘H_Upload‘successfullycreated.
同样方法依次初始化文件系统#/usr/cvfs/bin/cvmkfsfile_system_name
3.2创建文件系统配置文件列表的文件
#cd/usr/cvfs/config
#cp../examples/fsmlist.example./fsmlist
//例程中拷贝出文件系统配置文件列表的配置文件
#vi/usr/cvfs/config/fsmlist
//将当前的StorNextFS文件系统的配置文件H_Upload.cfg的文件名写入fsmlist
file_system_name.0
如:
H_Upload.0
//其中的.表示当前机器的ip地址,0是优先,可为一个0~7.但当前默认的为0是activate
3.3创建文件系统配置服务器列表的文件
#cd/usr/cvfs/config#cp../examples/fsnameservers.example./fsnameservers
//将当前的StorNextFS文件系统的服务器的ip写入fsnameservers
如:
10.5.0.25
10.5.0.26
在做群集时,可以将每台服务器ip加入进来.并保持每一台的fsnameservers文件一致
3.2手动启动文件系统配置
#/usr/cvfs/bin/cvadmin
StorNextFileSystemAdministrator
Entercommand(s)
Forcommandhelp,enter“help”or“?
”.
ListFSS
FileSystemServices(*indicatesserviceisincontrolofFS):
1>*H_Upload[0]locatedonmds1:
32790
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- StorNext FS安装指南1 FS 安装 指南