Full hintsoftlinuxiscsi Virtual Disk tutorial and Optimization Strategy
Source: Internet
Author: User
Hintsoftlinuxiscsi full tutorial and optimization strategy-Linux Enterprise Application-Linux server application information. The following is a detailed description. Original: xiaofeng8515
The hintsoft linux iscsi Virtual Disk draws on the advantages of many iscsi Virtual Disks, such as Internet. And further optimization. Flash linux virtual disks provide the best performance among similar products.
First, we recommend that you have one ide hard disk and two satat servers (someone uses an 80g and G hard disk as RAID 0. Isn't that a waste? In addition, try to select hard disks of the same size and model) or isci hard disks (only RAID 0 is recommended). Download hintsoft linux iscsi iso from the official website. This iso does not support network installation. You need to burn it to an installation disc or install it on a hard disk. (For details about hard disk installation, refer to linux iso)
Now let's install the iscsi Server
1) Only connect the IDE interface hard drive and the optical drive and RAID card on the server (Note: The other hard drives cannot be connected) and set the boot system of the optical drive.
2) install the system from the boot of the optical drive on the iscsi system disc that has just been recorded.
3) the installation process requires installation in Gui mode. By default, you can press enter to install the system.
4) set the Linux logon password, namely, the root password, during installation. The installation is automatically completed later.
5) after the installation is complete, log on to the system for the first time and automatically execute the iscsisetup program. At this time, the system will shut down and connect the other two hard disks and set raid0.
6) Start the system and enter the root account and password to log on to the system.
7) If you do hardware RAID 0, execute iscsisetup {jump to "9)" Step }. Some machines may not be able to use raid on the motherboard. In this case, soft raid 0 is configured.
8) set soft RAID 0
View all partitions: Enter "fdisk? L "command, generally displayed:
Disk/dev/hda :......
Disk/dev/sda :......
Disk/dev/sdb :......
Create a partition for/dev/sdb:
A) enter the "Fdisk/dev/sda" command.
B) Enter "n" as prompted to create a partition.
C) Enter "p" as prompted to create the primary partition.
D) Enter "1" as prompted for the first primary partition.
E) Enter "t" as prompted to set the File System
F) Enter "fd" as prompted to set the partition as a Linux Raid partition.
G) Enter "w" as prompted to save the previous operation and release it.
Create a partition for/dev/sdb (same as above)
Create two hard disks as Raid 0:
Enter "mdadm -- create/dev/md0 -- level = 0 -- raid-devices = 2/dev/sda1/dev/sdb1" to create raid 0.
Input echo "DEVICE/dev/sd [AB] 1">/etc/md0.conf to write the configuration file
Enter mdadm -- detail -- scan>/etc/md0 and conf to scan the raid0 hardware information and save it to the configuration file.
9) When iscsisetup is executed, the system prompts please select harddisk to select the configured RAID 0 slave from the bottom.
Set Please input socketIP (enter the IP address of the Service Manager), that is, the ip address of the Virtual Disk server.
Set Please input superIP (enter the IP address of the Super Management Terminal, usually set as the IP address of the Service Manager), that is, the ip address of the xs2008 Server
Set Please input ip address for eth0 (set Nic IP) to the ip address of the Virtual Disk Server
Set Please input netmask for eht0 (input subnet mask)
Set Please input default gateway (input gateway)
Set Please input nameserver (DNS) (input DNS)
If two NICs exist, set "for eth1" in sequence"
10) adminip0
Adminip xs2008 Server ip address (a d m I n I p has no space in the middle because the forum does keyword filtering)
11) complete the above settings and install the Linux system.
Run fdisk/dev/md0 to perform partitioning after the system is restarted.
A) enter the "Fdisk/dev/md0" command.
B) Enter "n" as prompted to create a partition.
C) Enter "p" as prompted to create the primary partition.
D) Enter "1" as prompted for the first primary partition.
E) Enter "w" as prompted to save the operation and exit.
Input mkfs. ext3/dev/md0
In this way, the soft array in Linux is configured.
12) restart the system
13) set the xs2008 Virtual Disk and iscsi
A) Virtual Disk Management Terminal settings
The Administrator IP address is the IP address of the flash Service Manager.
There are two ways to map server drive letters:
1) manually specify the ing to the server drive letter: first set "Microsoft iSCSI Initiaor", and then view the mapped drive letter in "My Computer, enter the drive letter in "ing to server drive letter ".
2) Automatic ing: click "automatic ing", then view the ing drive letter in "My Computer", and fill in this drive letter in "ing to server drive letter ".
Tip: In a Linux cluster, Server Load balancer is automatically performed based on the number of connections.
B) installation settings of Microsoft iSCSI Initiaor
14) format the disk partition after the xs2008 server is restarted
15) complete the test
I have tested several Internet cafes with a scale of more than 150 and achieved good results in two months.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.