Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You can also just mount another partition or disk as a sub directory of /. This will not give you added contiguous space but can open up space. I copied my /home over to a separate drive, deleted the contents of /home on first drive(after verification that everything worked), then mounted the new drive to /home. This opened up a ton of space on /.
Hi, my phsycial hardisk is actually 144 gb, but when they staged the server, they only make use of this little space.
Pls let me know if you need any information.
Can i just go to the lvm to expand? or i need to go to other utility? Pls kindly write down the steps if possible. appreciate your help.
[root@sins476037 ~]# fdisk -l
Disk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes
255 heads, 63 sectors/track, 17844 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 13 104391 83 Linux
/dev/cciss/c0d0p2 14 274 2096482+ 82 Linux swap
/dev/cciss/c0d0p3 275 535 2096482+ 83 Linux
/dev/cciss/c0d0p4 536 17844 139034542+ 5 Extended
/dev/cciss/c0d0p5 536 17844 139034511 8e Linux LVM
You got lucky in one sense, p3 is right next to p4(and p5), if you wanted to expand p1 it would have been much more difficult (shuffle things around).
You should be able to boot to a separate gparted disk(you cannot work on a mounted FS). You should be able to shrink p4 (and therby p5) and then expand p3 using gparted(using the space you gained from shrinking p4). Make sure you shrink p4 by moving it up, otherwise you will have made space for a p6.
I was just adding things up again and you have two separate issues.
1. You are running out of space on p3 (/). I would suggest you change it from 2gb to 10gb(as described above).
2. This is screwy. Your p4(and therefore p5) size shows as 139gb, but if you add up your LVM sizes listed, they total 14gb. This is one of the many reasons I HATE LVM. Pretty much I will not be able to help with the LVM issue (I would like to keep what little hair I have left).
Let me know if you run into any problems with using the gparted boot disk. The other route to take would be using a standard linux boot disk extending the / partition appropriately using something like pvextend along with resizefs. I may be able to help you with lvm but as lazlow stated earlier, this will require you to boot into something other than your ordinary /boot partition since it mounts the / directory by default. This simplest route to take is just boot using gparted.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.