Linux Partitions and How

Posted on 2004-11-05
Last Modified: 2013-12-15
First off, I have an intel server running Redhat Linux. It's designated to be used for hosting, so it's running Plesk 7. At this time, it has little activity / usage.

I noticed something alarming about the way the server is set up.

The server has a 70 gig (or close) hard drive, but the files from the hosting "stuff" are going to the wrong partition. Instead of going to the partition with the 68 gigs of free space, they are filling up the section with only 2 gigs space. Obviously, it won't be long before this drives things to a halt.

Here is the DF info...
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda3              2522076    401676   1992284  17% /
/dev/hda1               101089      9321     86549  10% /boot
none                    514940         0    514940   0% /dev/shm
/dev/hda7               396623      8246    367896   3% /tmp
/dev/hda2             70557084    694392  66278592   2% /usr
/dev/hda5              1510032    121060   1312264   9% /var

Here is what plesk reports:
Filesystem Total Used Available Capacity
/dev/hda2 68 903.40 MB 678.14 MB 64 725.16 MB 0.98%    
Directories /usr/local/psa
/dev/hda5 1 474.64 MB 118.22 MB 1 281.51 MB 8.02%    
Directories /var/lib/mysql

/dev/hda3 2 462.96 MB 392.26 MB 1 945.59 MB 15.93%    
Directories /home/httpd/vhosts

So it looks like all the client files are being stored on hda3, instead of hda2. Is there any way to fix this or work around it? I am not only new to plesk, but new to linux in general. This server is being stored in a rented rack - which is in a new york data center. So - I'm out of luck if the solution requires physical access to the server.

Thanks in advance for any help,

Desperate and Confused
Question by:epaschal
    LVL 38

    Expert Comment


       The workaround is simple (as root):
    1. Create a directory /usr/home/httpd
    # mkdir -p /usr/home/httpd
    2. Turn off Plesk 7
    3. Copy the /home/httpd/vhosts to /usr/home/httpd
    # cd /home/httpd ; tar cvf - vhosts | ( cd /usr/home/httpd; tar xvf - )
    (tar will preserve all the symbolic link , charactor device, blcok device...)
    4. Renme /home/httpd/vhosts
    # mv /home/httpd/vhosts  /home/httpd/vhosts.bak
    5. Make a symbolic link from /home/httpd/vhosts to /usr/home/httpd/vhosts
    # ln -s /usr/home/httpd/vhosts /home/httpd/vhosts

    Then restart Plesk 7.

    LVL 38

    Accepted Solution

    First, make sure the client files are under /home/httpd/vhosts.
    Then you can make a shell script from what I mentioned:
    --- --
    mkdir -p /usr/home/httpd
    cd /home/httpd ; tar cvf - vhosts | ( cd /usr/home/httpd; tar xvf - )
    mv /home/httpd/vhosts  /home/httpd/vhosts.bak
    ln -s /usr/home/httpd/vhosts /home/httpd/vhosts
    And make the script executable:
    # chmod +x
    Then turn off Plesk 7 and run the script (



    Author Comment

    Thank you Wesly - this worked perfectly!

    Would it be safe to repeat the process for the mysql and qmail directories - currently stored on a small hda5 as opposed to the large hda2?

    Again, thank you for saving me! I thought that I would have no choice but to have the server pulled and shipped back.

    LVL 38

    Expert Comment

    > Would it be safe to repeat the process for the mysql and qmail directories
    Yes, make sure turn off qmail and mysql before the copy over.


    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now