The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
resize filesystems mhbd UNIX for Advanced & Expert Users 1 01-25-2008 05:16 AM
resize fs lo-lp-kl AIX 1 09-20-2007 12:35 PM
Filesystem resize (AIX 5.3) balaji_prk AIX 5 10-28-2005 06:23 PM
How to resize partitions? dtn UNIX for Dummies Questions & Answers 2 02-14-2005 11:22 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-09-2007
seagonus seagonus is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 1
resize /var/www (debian)

I have several live websites running in the /var/www/XXXX directory. Initially when I did the Debian install I limited the web directory to 6GB. I am now outgrowing that limit. Question is:

Is there a simple way to add space to the web directory???

I'd hate to have to redo the whole server, or install another drive. Any ideas?

PS. Please only comment if you have good working knowledge in this area, I don't want to try something and have to start from scratch.
  #2 (permalink)  
Old 12-10-2007
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,322
Look at the pages for LVM or "parted", but before you start invoking commands, make sure you have backup.
  #3 (permalink)  
Old 12-11-2007
sumitpandya sumitpandya is offline
Registered User
  
 

Join Date: Mar 2006
Location: Ahmedabad
Posts: 125
Add more HDD

Hi,
You can install one more HDD in system and create Partition/FileSystem on that.
fdisk /dev/hdb
press m for help, n for create partition, t for changing FileSystem
Then after you can mount that HDD partition on some temperory location.
mount -t ext3 /dev/hdb1 /mnt/tmp

copy all of your existing /var/www content to /mnt/tmp. Example
cp -dpRf /var/www/* /mnt/tmp
After "successful" copy make sure to "sync" then, you can remove the contents of /var/www
To test you can unmount /mnt/tmp and mount /dev/hdb1 partition to /var/www location.
Finally create this mount point entry in /etc/fstab file
  #4 (permalink)  
Old 12-17-2007
donald1111 donald1111 is offline
Registered User
  
 

Join Date: Jul 2003
Location: Germany
Posts: 12
Or you can link to another partition where is more space, for example:
ln -s /partition/with/more/space /var/www/directory

Note that the option "FollowSymLinks" is active in the directory section of apache Webserver.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:20 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0