LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is it possible to extend / file system? (https://www.linuxquestions.org/questions/linux-newbie-8/is-it-possible-to-extend-file-system-4175503854/)

h.deepesh 05-03-2014 10:09 PM

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

Ztcoracat 05-03-2014 10:34 PM

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?

ondoho 05-04-2014 04:34 AM

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.

syg00 05-04-2014 05:17 AM

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.

h.deepesh 05-04-2014 03:03 PM

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

Ztcoracat 05-05-2014 12:15 AM

Your Welcome:-

Let us know how it goes.

jefro 05-05-2014 04:04 PM

http://www.tldp.org/HOWTO/LVM-HOWTO/extendlv.html

rknichols 05-05-2014 05:19 PM

Quote:

Originally Posted by jefro (Post 5165245)

That page was last updated in 2006. Some of those warnings do not apply today.

jefro 05-05-2014 09:13 PM

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.


All times are GMT -5. The time now is 02:37 AM.