How to resize /usr in lvm2?
Hi all,
I want to enlagarge my /usr partition, since I don't get by with the 4.6G I have right now. I have an lvm2 system. First problem (maybe easier): I looked at this tutorial from skolelinux: http://www.skolelinux.no/~klaus/newnotater/x1738.html But got stuck soon, because debian uses different paths in /dev for the volume groups, and I need to be 100% sure of what I'm doing. second problem: I'd need to reduce one other lv in the lvm, all man-pages tell me that I have to shrink the lv first to avoid data loss - how do I do this? muchos thanks! |
First you need to determine whether there are any free extents in the volume group:
Code:
vgdisplay I always get emails about enlarging my partition too but but I'm happy with what I have ;) |
Quote:
You didn't say so I'll assume that your filesystem is ext2/3/4. If that's the case, the filesystem needs to be umounted before it is resized downwards, too, so you may need to do this from a rescue environment. Quote:
So, if you show us the output from the above commands in addition to kbp's request for a 'vgdisplay', it'll help those trying to walk you though this. I'm LVM literate, but not debian literate, so I hope others will pitch in with debian-specific advice. |
All times are GMT -5. The time now is 09:01 PM. |