Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 08-23-2012, 11:57 AM   #1
Registered: Oct 2004
Location: USA
Distribution: Ubuntu-Server, Mac OS X, Arch Linux
Posts: 356

Rep: Reputation: 48
Disk Space Question

Hello all. Throughout my IT career, I have chosen not to use LVM when setting up the disks. I typically partition them manually and avoid LVM.

I have a server with the following partition schema:

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             9.9G  2.9G  6.5G  31% /
                      204G  560K  204G   1% /mnt
none                  871M     0  871M   0% /dev/shm
/dev/sdj               25G  6.1G   19G  25% /mnt/sites
I need for /dev/sdj to be much larger due to steady growth of websites which store assets on that partition. According to that schema, would this /dev/sdj partition grow automatically to fill up /mnt?
Old 08-23-2012, 12:02 PM   #2
Registered: Aug 2012
Location: /home/byannoni
Distribution: Arch
Posts: 128

Rep: Reputation: 36
No, space on /mnt is not affected by /dev/sdj.

Last edited by byannoni; 08-23-2012 at 12:09 PM.
Old 08-23-2012, 12:04 PM   #3
Registered: Oct 2004
Location: USA
Distribution: Ubuntu-Server, Mac OS X, Arch Linux
Posts: 356

Original Poster
Rep: Reputation: 48
Kind of what I was thinking... Thanks.
Old 08-23-2012, 12:24 PM   #4
Senior Member
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,862
Blog Entries: 36

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
Nothing happens automatically unless you make it happen. Your partition will not auto-grow but if you were using lvm you could make it grow.

In your case I would recommend adding a new disk and turn that disk into an LVM volume within a volume group. Migrate your /dev/sdj data to the new LVM disk. Format and turn /dev/sdj into a volume and add it to the volume group. Extend your LVM volume using the newly created volume (formerly /dev/sdj). You could refer to the blog article I linked a few sentences ago.

There are other ways around this as well such as using a distributed filesystem like Hadoop, Gluster, or something more local such as greyhole. If you can budget it I would go with Gluster because you can add/remove disks all you want dynamically and you can rebalance the share. Those are more network shares but can just as easily be mounted to a local drive on the system.

Again any of those solutions I recommended for you require manual maintenance of expanding the filesystem or storage pool. Stuff doesn't just happen automatically because there are so many possible configurations for storage that it is up to you to decide what you want and not up to the packagers to make decisions which would likely be poor in many setups.

Edit: I misunderstood the original question. As byannoni pointed out mounted drives won't affect the root partition or any partitions it is mounted within.

Last edited by sag47; 08-23-2012 at 12:26 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
interview question, Databases and disk space. praveenhari Linux - Newbie 4 06-22-2011 02:23 PM
A question about showing disk space thomas2004ch Linux - Newbie 3 10-20-2009 03:30 AM
Disk space question! ntrudaglich Linux - Newbie 9 07-03-2007 05:26 AM
Disk Space Usage Question kaplan71 Linux - General 6 04-11-2005 02:22 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration