You are not logged in.

#1 2012-08-03 16:00:19

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 797

Attempting to resize my root partition on LVM

My root partition is currently full, so I want to resize it.  I'm using LVM and the filesystem is ext4, so I assumed it should be easy enough. My plan was to reduce my /home to make space.  However, when following the instructions in the wiki get the following error:

# resize2fs /dev/vg/syshome 450G
resize2fs 1.42.4 (12-June-2012)
Filesystem at /dev/vg/syshome is mounted on /home; on-line resizing required
resize2fs: On-line shrinking not supported

According to https://ext4.wiki.kernel.org/index.php/ … esystem.3F however, online resizing should be possible.

What am I missing?

Last edited by phunni (2012-08-03 20:37:26)

Offline

#2 2012-08-03 17:05:16

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Attempting to resize my root partition on LVM

First, install and use ncdu to check what's eating up all the space.

$ ncdu / --exclude /home --exclude /media

Maybe it's easily fixed, like a log file or something. Speaking of which, learn2logrotate. Here's my /etc/logrotate.conf.


Then if you still want to grow the root partition, try this: https://wiki.archlinux.org/index.php/LV … cal_volume

Next time please specify in the title that it's about LVM.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#3 2012-08-03 20:34:10

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 797

Re: Attempting to resize my root partition on LVM

Apologies - you're right, I should have pointed out it was LVM in the title.  I also should have pointed out that it was the LVM pages in the wiki that I was following and which were not working for me.

Offline

#4 2012-08-03 20:54:05

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Attempting to resize my root partition on LVM

Online resizing is possible, but as stated in the error, online shrinking is not.

Skeptical? Google "ext4 online resize shrink"  Edit: Better yet, see this.  It's quite fresh.

Last edited by alphaniner (2012-08-03 20:56:03)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

Board footer

Powered by FluxBB