Find the answer to your Linux question:
Results 1 to 7 of 7
Hallo, who can help me resolving a disk space issue After installing everything I neded to get on to the web with my server, I discovered that my www dir ...
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Posts
    12

    disk space

    Hallo, who can help me resolving a disk space issue
    After installing everything I neded to get on to the web with my server, I discovered that my www dir only has 20 gb. How can I increase the the size of my directory??.


    Filesystem Size Used Avail Use% Mounted on
    /dev/sda1 20G 6.0G 13G 33% /
    /dev/sda2 443G 199M 443G 1% /home
    tmpfs 997M 0 997M 0% /dev/shm
    Greets

    stardreamer

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,099
    For a webserver, your partitioning schema is rather bad.

    You should consider having separate partitions for
    /
    /usr
    /var/log
    /tmp
    /home

    and probably a partition for actual webcontent

    Reason:
    You have dynamic data in /tmp, /var/log/, probably /var/lib/mysql and /home.

    On one partiton, each of them has the ability to fill up the system, probably to a point, where it cannot operate.
    Also, from a performance point of view it is good to have logs, read-oriented files and database files on different spindles.
    You must always face the curtain with a bow.

  3. #3
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,099
    for a quick and dirty solution you could point the documentroot in your apache conf to somewhere under /home, as there you have lots of space

    But that is just.. ugly

    I recommend to review your partition schema and re-setup that machine
    You must always face the curtain with a bow.

  4. #4
    Just Joined!
    Join Date
    Jan 2010
    Posts
    12
    thanks for your help, I chose the dirtyway, I hope that it works, otherwise I'll do a complete reinstall

  5. #5
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,099
    Now I somehow regret mentioning the ugly way.
    You must always face the curtain with a bow.

  6. #6
    Just Joined!
    Join Date
    Jan 2010
    Posts
    12
    If it works, even ugly can be beutifull

  7. #7
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,099
    No.
    You should consider becoming a projectmanager.
    "Make it work, I dont care how. Just fast."

    The downside:
    If it breaks or scales bad:
    "Why did *YOU* choose such a bad architecture?!"
    Last edited by Irithori; 03-16-2010 at 12:39 PM.
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...