[clug] Who has better dd foo than I?
Paul Wayper
paulway at mabula.net
Tue Aug 7 04:16:41 MDT 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 07/08/12 18:16, Michael Still wrote:
> On 07/08/12 17:33, Paul Wayper wrote:
>> On 07/08/12 12:26, Ben Coughlan wrote:
>>> Not sure about your actual question, but an alternative solution
>>> would be to use LVM. You can create a small volume and gradually
>>> increase it when you need to. Modern kernels can do the
>>> filesystem resize online. You could even do it without LVM by
>>> just resizing the partition on the disk, but that doesn't feel as
>>> safe.
>>
>> I totally support this way of doing things.
>>
>> lvextend -L +10G /dev/volumegroup/logicalvolume # gives it an extra
>> 10GB resize2fs /dev/volumegroup/logicalvolume # extends ext3 to
>> fit.
>
> Doesn't resize2fs require a fsck to have been run though? And that
> can't be done online.
You do have to on some older kernels when shrinking the file system - from
memory, I've had to offline the LV to shrink it on RHEL 4 but not RHEL 5. But
expanding it is, AFAIK, simply a matter of updating the super block and adding
some metadata in ext3 - in extent-based ext4 and xfs it's much faster (and
still online).
Hope this helps,
Paul
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAlAg6wkACgkQu7W0U8VsXYIKywCglaUWUgd04oizq0fTRnZhJvGG
emIAn374JPoAWhZwu6buWuhCnF9MHReJ
=4UOO
-----END PGP SIGNATURE-----
More information about the linux
mailing list