Quote:
Anyone know of a graphical LVM manager that allows resizing and moving of mounted LVM volumes?
|
I don't know of one I like, but since no one has responded yet, I can give some command line guidance. LVM is actually pretty simple and much more flexible than partitions.
Quote:
I understood it was a good idea to create an LVM Volume Group with a seperate Volume for each Linux part; /boot, /root, /tmp etc.
|
In general that is true, but there is also something to be said for simplicity...
Quote:
I would like to expand it, but first need to contract the size of the adjacent partitions.
|
Are you talking about the real partitions adjacent to the partition that is your LVM Physical Volume? That's not LVM resizing.
But if you are talking about the other LVM Logical Volumes in the Volume Group, that is LVM and actually the Logical Volumes are not partitions and don't necessarily need to be contracted.
Do you have any free space in the Volume group? Open a command window and issue a 'vgs' command.
How is your /usr filesystem formatted? (A "mount | grep '/usr '" will tell you if you don't remember.)
(Note: all of these commands need root authority, so you either need to 'su -l root' first, or preceed each command with 'sudo'.)
Quote:
I have found system-config-lvm but as far as I can see that only allows adding and removing partitions not resizing them.
|
You'd be better off using the command line.
You don't say in your profile or your post what distro you are on, but if you have Red Hat/Centos/Fedora it's relatively straightforward.
Assuming one of those distros; assuming that you want to expand /usr by 512MB; assuming there is that much free space in the VG; and assuming for this example that the VG is named VolGroup00, and the Logical Volume is named usrLV. Just do this from the command line.
Code:
lvresize -L+512M /dev/mapper/VolGroup00-usrLV
resize2fs /dev/mapper/VolGroup00-usrLV
If you don't have the space in the VG, it's a little more complicated, but not impossible. You need to bring the system up in rescue mode; 'resize2fs' one or more other filesystems down in size; 'lvresize' it or them down in size; then do the above procedure. Sounds complicated but much easier than doing real partitions.