三.虚拟盘服务器回写设置:
1.给系统添加一块专门做回写的硬盘,fdisk -l 看下那块硬盘是那个块设备,比如是/dev/sdc。
2.给这个盘分区格式化,用fdisk 把 /dev/sdc里面的所有的分区全部删除,然后建一个ext3分区并格式化它。
Linux 下面的命令行:
fdisk /dev/sdc
d
.....
w
mkfs.ext3 /dev/sdc1
如果提示/dev/sdc1没有找到,请重启下系统
3.编辑fstab文件挂载分区。
Linux下命令操作:
vi /etc/fstab
/dev/VolGroup00/LogVol00 / ext3defaults 1 1
LABEL=/boot /bootext3defaults1 2
tmpfs /dev/shm tmpfs defaults0 0
devpts/dev/pts dmpevpts gid=5,mode=620 0 0
sysfs /syssysfs defaults0 0
proc/proc proc defaults0 0
/dev/VolGroup00/LogVol01 swapswapdefaults 0 0
/dev/sdc1 /tmp/iscsi ext3defaults0 0注:添加该行
mount -a
4.重启服务器生效
四.Linux 虚拟盘服务器的群集.
不需要同步群集服务器 的那个小程序.
第一步.如果你用两台Linux服务器服务器做群集的话,把这两台机器的超级IP能设成迅闪服务端的IP.
第二步.在迅闪服务端,用iscsi客户端分别连两台Linux 服务器,出盘X,Y,必须同时能出盘.
第三步.在迅闪服务端的系统设置->虚拟磁盘->Linux 虚拟磁盘,添加这两台服务器.指定盘符X(主虚拟盘),Y.
三层下载游戏目录指定X就可以了,Y盘会自动同步过去的.
迅闪服务端的更新日志:
\log\ UpdateS.log 同步游戏文件日志
\log\\ HtUpdaterLog.ini 已经完成游戏日志.
五.Linux 虚拟盘相关的配置文件,和状态文件.
查看方法:
cat 文件名|more 注:加|more可以分屏显示.
vi 文件名 注:可以编辑查看
或用winscp 登录到Linux 服务器上查看编辑.
1.Linux虚拟盘服务配置文件.
基本配置:/etc/ietd.conf下面是该文件的内容
# Example iscsi target configuration
#
# Everything until the first target definition belongs
# to the global configuration.
# Right now this is only the user configuration used
# during discovery sessions. "IncomingUser" specifies credentials the
# initiator has to provide - several of these are supported. If mutual
# CHAP shall be employed, "OutgoingUser" specifies the user/pass
# combination the target will provide - only one is supported.
# Leave them alone (keep them commented out) if you don't want to use
# authentication for discovery sessions.
#iSNSServer 192.168.1.16
#iSNSAccessControl No
#IncomingUser joe secret
#OutgoingUser jack 12charsecret
# Targets definitions start with "Target" and the target name.
# The target name must be a globally unique name, the iSCSI
# standard defines the "iSCSI Qualified Name" as follows:
#
# iqn.yyyy-mm.<reversed domain name>[:identifier]
#
# "yyyy-mm" is the date at which the domain is valid and the identifier
# is freely selectable. For further details please check the iSCSI spec.
MaxVolume 2000注:客户机缓存大小
Target :172.17.11.56注::172.17.11.56是Target 名称
# Users, who can access this target. The same rules as for discovery
# users apply here.
# Leave them alone if you don't want to use authentication.
#IncomingUser joe secret
#OutgoingUser jim 12charpasswd
# Logical Unit definition
# You must define one logical unit at least.
# Block devices, regular files, LVM, and RAID can be offered
# to the initiators as a block device.
Lun 0 Path=/dev/hdd,Type=fileio注: /dev/hdd 做虚拟盘用的硬盘,也可以是分区,如/dev/hdd1
# Alias name for this target
# Alias Test
# various iSCSI parameters
# (not all are used right now, see also iSCSI spec for details)
MaxConnections 1
InitialR2T Yes
ImmediateData No
MaxRecvDataSegmentLength 8192
MaxXmitDataSegmentLength 8192
MaxBurstLength 262144
FirstBurstLength 65536
DefaultTime2Wait 2
DefaultTime2Retain 20
MaxOutstandingR2T 8
DataPDUInOrder Yes
DataSequenceInOrder Yes
ErrorRecoveryLevel 0
HeaderDigest CRC32C,None
DataDigest CRC32C,None
# various target parameters
Wthreads 8
2.通信IP和超级IP的配置文件
/etc/socketip
这个文件很简单,格式:
通信ip,超级ip
3.Linux虚拟盘服务的状态文件
tid:1
write:disk
name::172.17.11.56注:Target 名称
SessionCounts:1
MaxSessions:0
MaxVolume:2000M 注:缓存大小2000M
HasSuperIP:YES
SuperIP:172.17.11.58 注:超级IP
sid:281475899523136 initiator:iqn.1991-05.com.microsoft:server-50
cid:1 ip:172.17.11.50 state:active hd:crc32c dd:crc32c注:iscsi客户端的连接信息,iqn.1991-05.com.microsoft:server-50该客户端的节点名.
六.关于阵列卡驱动问题.
WEB后台的驱动列表是针对RedHat Enterprise Linux 5中没有驱动而添加的.因为它已经自带很多驱动.
Intel ICH6 Raid controller可针对 intel ich5 ich6 ich7 系统主板可以,关于intel s3000的主板要
在主板的bios设置中把raid类型改成lsi,就可以用这个来驱动.
Intel ICH9(R) Raid controllerintel ICH9(R) 的驱动,主要是用于intel S5000 的主板.
七.关于Linux 服务器死机问题
1.首先要检查硬件是否有问题,硬件的温度过高等原因.
2.建议做虚拟服务器的内存用相同颗粒、相同品牌的单面内存.
3.官方正在找Linux 内核出错的原因.
4.把客户机的回写到其它硬盘上.(前面有说明)