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

Notices


Reply
  Search this Thread
Old 08-23-2012, 11:57 AM   #1
kasl33
Member
 
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:

Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             9.9G  2.9G  6.5G  31% /
/dev/mapper/vg--data-lv--data
                      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
byannoni
Member
 
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
kasl33
Member
 
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
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:31 PM.

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