Ferdinando Santacroce jesus_was_rasta@yahoo.it wrote:
I regularly extended my volume group and the logical volume where /var stay. Now I need to umount /var to run a resize2fs to extend the
Alternatively, you can use `ext2online` to resize the filesystem while it is mounted.
robert
Greetings, Robert.
30 ноября 2006 г., 15:25:12 you have wrote:
Ferdinando Santacroce jesus_was_rasta@yahoo.it wrote:
I regularly extended my volume group and the logical volume where /var stay. Now I need to umount /var to run a resize2fs to extend the
Alternatively, you can use `ext2online` to resize the filesystem while it is mounted.
If I remember correctly, it can only do online enlargement of ext2/ext3 FS. Shrinking should be done while volume is unmounted.
Can you give an example of the resize2fs command with an ext3 file system? Several months ago I was able to extend the logical volume but killed my file system while trying to extend the it...
Thanks,
James
----- Original Message ----- From: Alexey Loukianov aloukianov@lavtech.ru To: CentOS mailing list centos@centos.org Sent: Thursday, November 30, 2006 10:25:35 AM GMT-0500 US/Eastern Subject: Re[2]: [CentOS] Need resize a partition LVM2
Greetings, Robert.
30 ноября 2006 г., 15:25:12 you have wrote:
Ferdinando Santacroce jesus_was_rasta@yahoo.it wrote:
I regularly extended my volume group and the logical volume where /var stay. Now I need to umount /var to run a resize2fs to extend the
Alternatively, you can use `ext2online` to resize the filesystem while it is mounted.
If I remember correctly, it can only do online enlargement of ext2/ext3 FS. Shrinking should be done while volume is unmounted.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
James Marcinek wrote:
Can you give an example of the resize2fs command with an ext3 file system? Several months ago I was able to extend the logical volume but killed my file system while trying to extend the it...
Thanks,
Extend the logical partition "logical_name" by 100Mb:
lvextend -L+100M /dev/vg0/logical_name
ext2online /dev/vg0/logical_name
That's all there is to it. You of course have to use your own volume group and logical partition names.
Barry
Thanks for the reply but I'm still a bit confused... My filesystem was ext3 not ext2. I realize that many of the ext2 filesystem commands can be used with ext3 filesystems but they need to specify that the file system is ext3... I believe I had tried several of these commands but couldn't figure out how to specify that I wanted to do it to ext3. Can this be done while the file system is mounted (I have an AIX background which uses LVM and jfs which has been possible for years)?
Thanks,
james ----- Original Message ----- From: Barry L. Kline blkline@attglobal.net To: CentOS mailing list centos@centos.org Sent: Thursday, November 30, 2006 11:55:24 AM GMT-0500 US/Eastern Subject: Re: [CentOS] Need resize a partition LVM2
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
James Marcinek wrote:
Can you give an example of the resize2fs command with an ext3 file system? Several months ago I was able to extend the logical volume but killed my file system while trying to extend the it...
Thanks,
Extend the logical partition "logical_name" by 100Mb:
lvextend -L+100M /dev/vg0/logical_name
ext2online /dev/vg0/logical_name
That's all there is to it. You of course have to use your own volume group and logical partition names.
Barry
_______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
James Marcinek wrote:
Thanks for the reply but I'm still a bit confused... My filesystem was ext3 not ext2. I realize that many of the ext2 filesystem commands can be used with ext3 filesystems but they need to specify that the file system is ext3... I believe I had tried several of these commands but couldn't figure out how to specify that I wanted to do it to ext3. Can this be done while the file system is mounted (I have an AIX background which uses LVM and jfs which has been possible for years)?
Ignore the fact that the command is called "ext-2-online" and just use it with your ext3 filesystem. It will work fine. Also, you can easily do this while the system is mounted. I did just that when composing my reply to ensure that I wasn't leading you astray.
Barry
Thanks Barry,
----- Original Message ----- From: Barry L. Kline blkline@attglobal.net To: CentOS mailing list centos@centos.org Sent: Thursday, November 30, 2006 1:10:01 PM GMT-0500 US/Eastern Subject: Re: [CentOS] Need resize a partition LVM2
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
James Marcinek wrote:
Thanks for the reply but I'm still a bit confused... My filesystem was ext3 not ext2. I realize that many of the ext2 filesystem commands can be used with ext3 filesystems but they need to specify that the file system is ext3... I believe I had tried several of these commands but couldn't figure out how to specify that I wanted to do it to ext3. Can this be done while the file system is mounted (I have an AIX background which uses LVM and jfs which has been possible for years)?
Ignore the fact that the command is called "ext-2-online" and just use it with your ext3 filesystem. It will work fine. Also, you can easily do this while the system is mounted. I did just that when composing my reply to ensure that I wasn't leading you astray.
Barry
_______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Thursday 30 November 2006 19:10, Barry L. Kline wrote: ...
Ignore the fact that the command is called "ext-2-online" and just use it with your ext3 filesystem. It will work fine. Also, you can easily do this while the system is mounted.
You even _have_ to. ext2online doesn't work with unmounted filesystems.
/Peter
I did just that when composing my reply to ensure that I wasn't leading you astray.
Barry
Barry L. Kline wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
James Marcinek wrote:
Thanks for the reply but I'm still a bit confused... My filesystem was ext3 not ext2. I realize that many of the ext2 filesystem commands can be used with ext3 filesystems but they need to specify that the file system is ext3... I believe I had tried several of these commands but couldn't figure out how to specify that I wanted to do it to ext3. Can this be done while the file system is mounted (I have an AIX background which uses LVM and jfs which has been possible for years)?
Ignore the fact that the command is called "ext-2-online" and just use it with your ext3 filesystem. It will work fine. Also, you can easily do this while the system is mounted. I did just that when composing my reply to ensure that I wasn't leading you astray.
For extra confusion, be aware that under CentOS-4, ext2online only works with ext3. It will not work with ext2.
The tool requires kernel patches which are only present in the ext3 filesystem, not ext2.
John.
Barry
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFFbx55CFu3bIiwtTARAmvAAKCnGpXq8M7LpiIn93hK0pUhhHCapwCfT0zQ 394nidYi2GLsmQ0gNhBWAj0= =KQ+c -----END PGP SIGNATURE----- _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Mon, 2006-12-04 at 16:29 +1100, John Newbigin wrote:
Barry L. Kline wrote:
James Marcinek wrote:
Thanks for the reply but I'm still a bit confused... My filesystem was ext3 not ext2. I realize that many of the ext2 filesystem commands can be used with ext3 filesystems but they need to specify that the file system is ext3... I believe I had tried several of these commands but couldn't figure out how to specify that I wanted to do it to ext3. Can this be done while the file system is mounted (I have an AIX background which uses LVM and jfs which has been possible for years)?
Ignore the fact that the command is called "ext-2-online" and just use it with your ext3 filesystem. It will work fine. Also, you can easily do this while the system is mounted. I did just that when composing my reply to ensure that I wasn't leading you astray.
For extra confusion, be aware that under CentOS-4, ext2online only works with ext3. It will not work with ext2.
The tool requires kernel patches which are only present in the ext3 filesystem, not ext2.
Right .. the name being quite deceptive on that one :P