Linux Virtual Disk practice

Source: Internet
Author: User
Linux Virtual Disk practice-Linux general technology-Linux technology and application information, the following is a detailed description. I. Network Environment: the Internet cafe has 160 clients, and the local network is mainly engaged in 1g and G desktops.

Two, server configuration: motherboard gigabyte GA-8N-SLI, CPU P43.0 memory DDR2 667 1G * 4 hard disk Seagate SATA300 80G * 4, graphics card 7300GS (this machine was originally used for windows, therefore, this video card is used. In fact, the real server and the video card can be used as needed.) NIC: the motherboard is integrated with gigabit

Iii. server software: This is the Linux Istorage of OKstor. The website of the software is www.okstor.com. As far as I know, the Virtual Disk software in Linux in China only seems to be public network and OKstor. The price of the Internet is too high. It costs tens of dollars a single point, and the server's dongle needs to calculate money separately. OKstor's Linux Istorage. This software is relatively cheap. Installation, configuration, and management are also convenient.

4. installation:
Download and install the CD iso from the official website, and then burn it into a CD,

Put the boot disc into the optical drive to enable the boot system.

After the system is started, you are prompted to enter the user name and password.

By default, the user name is root and the password is 123. You can use the passwd root command to change the password.

1. Run the par command to check the disk name on the system.

The key is "Name". "sda" indicates the first disk and "sda1" indicates the first disk without a number, sdb indicates the second disk, which has no partition.

2. If the system disk to be installed has a partition, run the clear_disk disk name. If you want to install the sda disk you just saw, run clear_disk sda.

We can see that all the sda partitions on the disk have been deleted. In this case, run the reboot command to restart the server and then install the system.

3. Install the system:

Installation command introduction:

Install Disk name disk cache size (GB)

Select different installation parameters based on your actual situation, such

If no disk cache is required, run the following command to install Disk name (such as hda and sda) 0:

If you cache all the remaining space on the system disk, run the following command: install Disk name (such as hda and sda) all. Note: The server must have at least two hard disks, one as the system disk and write cache, and the other as the data disk. If there is only one hard disk, there will be no shared disk, the client will not leave the disk.

If the disk cache space is specified, the installation command is: install Disk name (such as hda, sda) disk cache size (GB). In this case, a specified partition is used as the disk cache, the remaining space is shared as a data disk. For example, install sda 8. The system is installed on the disk sda and an 8 GB partition is used as the write-back cache. The remaining space can be used for sharing. We recommend that you set the disk write cache to 5-10 Gb.

These are official statements. I copied them directly. Haha. I now have four hard disks. I plan to use one 80 GB disk for system and cache, and the other three game disks.

Disk name specification in Linux:
IDE hard disk. the main channel of the IDE disk is hda, the slave disk is hdb, the master disk of the slave channel is hdc, And the slave disk is hdd, you can see how your disk is connected.

For SATA or SCSI hard disks, the disk name is generally sda.

If you do not know, run the par before installation to check whether the names of hda, hdb, hdc, hdd or sda, sdb, and sdc are available.

Example: IDE hard disk, generally run install hda

Install sda. I want to set the cache for 20 GB. As you can see, execute the command install sda 20. Then the system will automatically install it and divide the 20 GB partition as the cache. After the installation is complete, run the reboot command to restart the server.
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.