当前位置:首页 > 完美服务端教程及翻译
配置服务器以后,接下来就是安装系统拉。重启后使用root账号登陆系统 作如下操作 Create partitions and Format Directories. 创建分区并格式化路径
a. Before creating the partitions, check if there are any existing partitions. To do this type this command cat /proc/partitions. This will display the virtual directories and the partitions for each directory. The mapping of the virtual directories are as follows:
开始创建分区以前,如果有存在的分区,就输入命令cat /proc/partitions 来查看并检查一下信息。这个命令会显示虚拟和每个路径的分区,虚拟路径的映射关系应该是如下所示
sda – root sdb – swap sdc – export
If there are no partitions, proceed to the next step. 如果没有分区 继续下面的步骤操作
b. Run fdisk /dev/sda to create partition on the first virtual directory. 在第一个虚拟路径上通过运行fdisk /dev/sda来创建分区
i. Press p to check the original partition of the directory. 按p来检查路径的源分区
ii. Press n to create a new partition. 按n 创建新分区
iii. Press p to create a primary partition. Press 1 to use the default partition value. 按p 创建主分区 按1 使用默认的分区值
iv. Press p again to view created partition. This should display the device boot /dev/sda1. v. 再次按p 来查看已经床架你的分区。 这个时候应该显示驱动器:boot /dev/sda1.
vi. Press w to save the changes in the partition table.
按w来保存在分区表上面的更改操作,也就是更新操作并执行拉
c. Format swap by executing this command – mkswap /dev/sdb. 格式化swap分区通过执行如下命令– mkswap /dev/sdb.
d. Format sda and sdc by executing these commands: 格式化sda 和 sdc分区通过执行如下命令
mkfs.xfs /dev/sda1 –f mkfs.xfs /dev/sdc -f
Mount the Partitions 挂载分区
e. Go to cd /tmp to create a new directory for sda and sdc. Issue the following commands: 输入cd /tmp 然后给sda 和sdc创建新的路径 输入如下命令完成此过程 cd /tmp
mkdir sda1 sdc
f. Mount the directories created by executing the following commands: 通过执行下面的命令来挂载已创建的路径
mount /dev/sda1 /tmp/sda1 mount /dev/sdc /tmp/sdc
Extract Image to the Manager’s Disk 扩展镜像文件到管理器的磁盘上
Go to the directory where the image is located. Run this command – cd /dump. 转到镜像文件所在路径 运行如下命令– cd /dump.
Dump folder contains the archived files for billing and the games. The billing-related archives are the files with this filename – OpenBeta_AU_ *. The game-related archives are the ones with filename – hw_game_*. Notice that for each archive groups, there are files with export and root on their filenames. The archive with root on the filename consists of files used for system management. The one with export on the filename consists of files that are used for the system that manages all the other non-disk servers.
Dump文件夹包含列表文件和游戏文件。billing-related 文件文件名是OpenBeta_AU_ *的形式. game-related文件的文件名是hw_game_*的形式. 注意:在每个文档集合中,文件名都带有export和root。带有root文件名的文件是被系统所使用的,这个系统管理所有的复盘无盘服务器
Copying of files may create inconsistencies between the files to check this issue the following commands:
拷贝的文件可能会有不一致的时候 使用如下命令验证
cat hw_game_root_dump.gz.md5 md5sum hw_game_root_dump.gz
This step is optional and is used only to check the files. 镇魂歌步骤仅仅用来验证文件的完整性
Extract the archives to the corresponding directories by issuing the following commands: 把文档扩展到相应的目录,通过如下命令来完成次操作
zcat hw_game_root_dump.gz | xfsrestpre - /tmp/sda1 zcat hw_game_export_dump.gz | xfsrestore - /tmp/sdc
This operation should return this message: RESTORE STATUS: SUCCESS. If this is not the return message, redo the process from the creation of the partitions.
这个操作应该返回这个信息RESTORE STATUS: SUCCESS. 如果没有返回信息从分区的创建开始重复来过
Configuration of the Boot Loader (GRUB)配置引导
After the extraction of the image file, configure the boot loader. To do this, follow the commands below:
扩展镜像文件后开始配置引导系统,按如下步骤操作
Type grub to go to the interface of grub.输入grub 跳转到grub图形界面 Type setup (hd0) (hd0,0).输入setup (hd0) (hd0,0). Type quit.输入quit. Type reboot.输入reboot.
To check if the kernel installed is the one that?s needed, do the following commands before rebooting the system:
检查安装的内核是不是我们需要的版本,重启系统前输入以下命令
cd /tmp/sda1/boot/grub cat menu.lst
To avoid kernel panic after the aumanager is rebooted, edit the grub file default value to 0. From /root directory, type the command:
为了避免AU管理服务器重启后内核不稳定,需要编辑把grub文件的默认值设置成0 从、/root路径下输入以下命令
vi /tmp/sda1/boot/grub/menu.lst default=0
On this file, the version of the kernel should be equal to 2.6.17.11.management.1950. Again, this step is optional so this can be skipped.
在这个文件中,内核的版本应该是2.6.17.11.management.1950,另外这个步骤是附加可以跳过
Reconfigure BIOS
After the reboot do the following:
Go to the BIOS Configuration and choose Boot Sequence. Uncheck Embedded NIC 1 MBA Version… option and check Hard drive C:.
Then go to Integrated Devices, choose the Embeded GB NIC1. Change the value from Enabled with PXE to Enabled without PXE.
Save Changes and Exit. The server will reboot. The default password of root in this server is
1234.
Note: By default, after reboot the server will display an error on the screen saying kernel panic. This is normal because grub is still pointing at the wrong kernel. To fix it, manually choose the correct kernel upon reboot. Then edit /etc/grub.conf and change “default=0” and save. Configure AUTH
To configure AUTH, do the following procedures: 配置AUTH 作如下事情 Configure BIOS配置BIOS Configure BMC配置BMC
Install the package via network. 安装软件包和VIA网络
Configure BIOS
After reboot, press F2 to go to the BIOS Configuration Screen and do the following: 重启后按F2进入BIOS设置屏幕 作如下操作
Go to ?Memory Information? and choose ?System Memory Testing?. Set the value of this to Disabled.
转到‘Memory Information’ 并选择 ‘System Memory Testing’. 把值设置成Disabled. Go to ?Boot Sequence?. Uncheck everything except Embedded with NIC… 转到‘Boot Sequence’. 不检查任何东西 ,只检查Embedded with NIC?
Go to Integrated Devices and do the following: 转到Integrated Devices并执行如下步骤
a. Set the value of the ?Embedded NIC1 enabled with PXE? to true. 把‘Embedded NIC1 enabled with PXE’的值设置成true.
b. Take note of the MAC Addresses of Gb NIC1 and Gb NIC2. These MAC Addresses will be used to update the XML file. Edit the ?IDE CD-ROM Controller? set to Off.
纪录下Gb NIC1 和Gb NIC2.的MAC地址。浙西地址将被用于更新XML文件 设置‘IDE CD-ROM Controller’为Off.
Go to ?Serial Communication? set the value to On without Console Redirection. 转到‘Serial Communication’ 设置能On without Console Redirection.
Go to ?External Serial Connector? set to Remote Access Device. 转到‘External Serial Connector’ 设置Remote Access Device.
Go to ?System Security? set to AC Power Recovery On.
转到‘System Security’ 设置成AC Power Recovery On
Go to ?Report Keyboard Errors? set to Do not Report.
转到‘Report Keyboard Errors’ 设置成 Do not Report.
共分享92篇相关文档