You are not logged in.

#1 2012-04-06 12:29:51

work
Member
Registered: 2012-03-25
Posts: 40

[SOLVED] Online resizing with ext4 and kernel 3.3.1

Some time ago I read this http://www.phoronix.com/scan.php?page=n … px=MTA0MDg
How can I shrink my partition? I would like to do it online.
Thank you

Last edited by work (2012-04-06 18:03:52)

Offline

#2 2012-04-06 14:48:29

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] Online resizing with ext4 and kernel 3.3.1

I would only perform online resizing if absolutely necessary, I'd say the preferred line of action is to backup all data in the partitions to be affected, do whatever changes are desired and copy everything back. As a bonus you get defragmented partitions and no legacy from older fs version since everything is newly created. It might also be faster than moving data from/to the same disk (depends on the disks/interfaces used).


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2012-04-06 16:46:02

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: [SOLVED] Online resizing with ext4 and kernel 3.3.1

Agreed... Rsync is your friend.

Offline

#4 2012-04-06 17:40:14

mr.MikyMaus
Member
From: disabled
Registered: 2006-03-31
Posts: 285

Re: [SOLVED] Online resizing with ext4 and kernel 3.3.1

First you have to shrink the filesystem, only after that you may shrink the partition/volume. Be sure not to shrink it more than you have shrank your filesystem. When I do this stuff, I always shrink the filesystem more than I really want to (say -100MB), then I resize the partition and after that I let the filesystem to grow over the newly resized partition.

But as guys up here said, it's always risky and you're not suppose to do it unless absolutely necessary.


What happened to Arch's KISS? systemd sure is stupid but I must have missed the simple part ...

... and who is general Failure and why is he reading my harddisk?

Offline

#5 2012-04-06 18:03:38

work
Member
Registered: 2012-03-25
Posts: 40

Re: [SOLVED] Online resizing with ext4 and kernel 3.3.1

Thank you for your hints, I will follow the safe way and I will do as you said

Last edited by work (2012-04-06 18:04:19)

Offline

Board footer

Powered by FluxBB