LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-03-2014, 10:09 PM   #1
h.deepesh
LQ Newbie
 
Registered: May 2014
Posts: 2

Rep: Reputation: Disabled
Is it possible to extend / file system?


Hi All,
I would like to know one thing that is it possible to extend the "/" file system in linux, in a running system. For eg I've created a logical volume "/" partition of 1GB in a volgrp_00 and now I need to extend it to 20GB.
Also if I extend the same whether it'll create a problem in the system or not?
If yes please tell me what are the files affected by it.
Response awaited.


Thanks & Regards,
Deepesh
 
Old 05-03-2014, 10:34 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,464
Blog Entries: 10

Rep: Reputation: Disabled
Hi & Welcome to Linux Questions.

Yes you can extend that partition but I don't have experience with that, sorry.

You can resize the 1GB partition that you already made.
Use g-parted live to resize it. If you don't have a copy of g-parted you can download it online.

Try using a search engine (Google) and look for "how to extend a partition in Linux"

What distribution are you running?
 
Old 05-04-2014, 04:34 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 5,802

Rep: Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380
to my best knowledge, you can extend a partition (e.g. with gparted), but it must not be mounted.
so if the running system is on that partition, no.
then you'd have to boot from somewhere else (other OS on same machine, live cd/dvd/usb...) and perform the resize from there.

Last edited by ondoho; 05-04-2014 at 04:36 AM.
 
Old 05-04-2014, 05:17 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,542

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Depends on filesystem - ext3/4 have allowed online resizing for years. Including the root.
Increasing the size is less risky than reducing the size - presuming the partition/lv is handled appropriately first.
 
Old 05-04-2014, 03:03 PM   #5
h.deepesh
LQ Newbie
 
Registered: May 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi All,
Thank you for your replies. I'll think how to move on according to your replies. Incase, if I face a problem with it, I'll get back to you all. Thanks again.


Regards,
Deepesh
 
Old 05-05-2014, 12:15 AM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,464
Blog Entries: 10

Rep: Reputation: Disabled
Your Welcome:-

Let us know how it goes.
 
Old 05-05-2014, 04:04 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,373

Rep: Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382
http://www.tldp.org/HOWTO/LVM-HOWTO/extendlv.html
 
Old 05-05-2014, 05:19 PM   #8
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,401

Rep: Reputation: 1489Reputation: 1489Reputation: 1489Reputation: 1489Reputation: 1489Reputation: 1489Reputation: 1489Reputation: 1489Reputation: 1489Reputation: 1489
Quote:
Originally Posted by jefro View Post
That page was last updated in 2006. Some of those warnings do not apply today.
 
Old 05-05-2014, 09:13 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,373

Rep: Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382
I meant more that he was trying to extend a lvm volume. Red Hat doc's have some of the latest. The general rules still apply to extending an lvm.
 
  


Reply


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
lvm extend on running file system drManhattan Linux - Newbie 6 11-15-2011 04:02 AM
[SOLVED] How to extend NFS file system jghvzln Linux - Server 1 06-07-2011 06:43 PM
Extend File system shaife720 Linux - General 1 05-02-2011 09:34 AM
Extend file system mcouthino Linux - Enterprise 1 12-11-2005 09:21 AM


All times are GMT -5. The time now is 10:58 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration