Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   CentOS (http://www.linux-archive.org/centos/)
-   -   LVM lvresize/lvextend requires some space in /etc to grow a logical volume? (http://www.linux-archive.org/centos/577749-lvm-lvresize-lvextend-requires-some-space-etc-grow-logical-volume.html)

Johnny Tan 09-19-2011 11:15 PM

LVM lvresize/lvextend requires some space in /etc to grow a logical volume?
 
Side note:

In CentOS-6, I noticed a new option in lvresize / lvextend:

-r, --resizefs
Resize underlying filesystem together with the logical
volume using
fsadm(8).

Nice. Two steps (lvresize and resize2fs) can now be combined into one!
Works great.

But that has nothing to do with my question, just thought I'd share
the discovery.

==

Anyway, here's the real issue with LVM, at least in CentOS-6:

[root@jttest ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_main-lv_root
1548144 1548144 0 100% /

[root@jttest ~]# lvextend -L 2G /dev/vg_main/lv_root
/etc/lvm/archive/.lvm_jttest.pp.local_5523_51321310: write error
failed: No space left on device
Volume group "vg_main" metadata archive failed.
/etc/lvm/cache/.cache.tmp: write error failed: No space left on device

So I can't extend a logical volume if there's no space in /etc?

Granted, I only need to delete like 2k worth of files in the same
logical volume as /etc to make the above work, but I don't recall
lvresize or lvextend requiring space in /etc to do a resize. Has this
always been the case? I don't have any 5.x servers handy to test this
with. Can anyone verify?

If this is new, this seems less-than-ideal. /etc itself rarely fills
up, so, in theory, I could make it its own LV, but that's even less
ideal. For now, I'll stick to deleting just enough to do the
extend/resize.

johnny
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


All times are GMT. The time now is 05:41 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.