Linux VPS Host mount unused data disk and specify WDCP panel installation data Disk directory

Source: Internet
Author: User
Tags disk usage vps
As we buy Xen VPS will be directly logged on to the root and then install the Panel or a key to build the station, the site may be small data or the beginning of the stage can not find the problem, as time goes by our site data will gradually increase, and then there will be a variety of problems original data disk occupied, The inspection found that we only used about 10G to fill up the disk, but we purchased the VPS may have 50GB or 30GB, that is, there are 20GB or 40GB not loaded into the data disk.

In the "Full Linux VPS Mount unused hard Disk Tutorial method" article in the paper is a method of volume mount, to tell the truth slightly more complex, for the old left such users also feel particularly cumbersome, in this article old left share a commonly used fast mount unused data disk method, And if we can use it to the WDCP panel, mount it directly into the panel directory so that all the spare data trays are fully used for the site requirements.

First, check the Linux VPS data disk usage

Different machines may be slightly different, but the general meaning is consistent, such as my machine, the solution is to have a 30GB data disk, through the detection view is currently only used to 10GB, that is, if I now go to install the WDCP Panel Building station, will only use 10GB, and 20GB is not used. We need to launch the 20GB and mount it to the WWW directory installed after WDCP.

See the above is also relatively simple, there are 20GB mount in the home directory, if we install LNMP and other home directory installation package, you do not need to mount a direct installation can be, if the installation WDCP such in the WWW directory, you need to change the home in the WWW mount directory.
Second, the new WWW directory
The code is as follows Copy Code
Mkdir/www
Mount/dev/mapper/xvdbgroup-xvdb1/www
Create a new www directory, because the WDCP panel is a www directory, and above we can see the default 20GB in the home directory, we need to mount the/DEV/MAPPER/XVDBGROUP-XVDB1 to the WWW directory
Third, write settings
The code is as follows Copy Code
Echo '/dev/mapper/xvdbgroup-xvdb1/www ext3 defaults 0 0 ' >>/etc/fstab

This reboot system is also the default mount complete.

We can see that it has been mounted to the WWW directory, the old left again to reinstall the WDCP panel to look at the panel's occupied resource directory.

We can see that in the VPs 30G HDD, 10GB is the system occupancy, 20GB is used by the WDCP panel and build station use. In this way, this article has been for Linux VPS launch unused disk mount to WDCP use.
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.