Gentoo Archives: gentoo-user

From: Jarry <mr.jarry@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] extending /usr partition...
Date: Sun, 22 Mar 2009 10:58:21
Message-Id: 49C61A03.6050800@gmail.com
In Reply to: Re: [gentoo-user] extending /usr partition... by Dirk Heinrichs
1 Dirk Heinrichs wrote:
2
3 >> I remember having lvm2 a few years ago, and despite of that I could not
4 >> extend any partition, which was being used. What is then lvm2 good for,
5 >> if I can not extend partitions on-the-fly? I can not unmount /usr before
6 >> extending...
7 >
8 > The filesystem has to support resizing. A few years ago ext3 only supported
9 > offline resize. That has changed meanwhile.
10
11 Are you sure? man resize2fs says:
12
13 "...The resize2fs program will resize ext2 or ext3 file systems.
14 It can be used to enlarge or shrink an unmounted file system
15 located on device. If the filesystem is mounted, it can be used
16 to expand the size of the mounted filesystem, assuming the kernel
17 supports on-line resizing..."
18
19 If I understand correctly, you can only extend ext3-partition
20 with it. But shrinking must be done off-line, on unmounted fs...
21
22 Concerning resizing, I was wrong with blaming lvm2 for not being
23 able to resize fs online. It is really problem of filesystem which
24 might (or not) support it. I'm using ext3 because it is one of two
25 linux-supported fs I have some experience with (the other is
26 reiserfs, and I have some serious doubts about its future)...
27
28 Jarry
29
30 --
31 _______________________________________________________________
32 This mailbox accepts e-mails only from selected mailing-lists!
33 Everything else is considered to be spam and therefore deleted.

Replies

Subject Author
Re: [gentoo-user] extending /usr partition... Alan McKinnon <alan.mckinnon@×××××.com>