View Poll Results: Was this guide usefull to you?

Voters
82. You may not vote on this poll
  • Yes

    73 89.02%
  • No

    9 10.98%
Page 1 of 3 123 LastLast
Results 1 to 10 of 79

Thread: HOWTO : LVM gui (Not EVMS)

Hybrid View

  1. #1
    Join Date
    Jul 2006
    Location
    Montréal, Québec, Canada
    Beans
    58
    Distro
    Ubuntu 11.04 Natty Narwhal

    Question HOWTO : LVM gui (Not EVMS)

    This guide will show you how to install the Logical Volume Management gui from Fedora Core 8 rpm on your Ubuntu desktop. I prefer this gui over evmsgui because its alot more user friendly and gives you good information about your drives/volumes.

    Before you begin here are some general note on LVM:
    -For your system to work entirely on LVM you have to make a install using the alternate installation CD which will give you the option to install using LVM.

    -If you have installed Ubuntu using LVM and you want to resize you root partition (or any system partition) you will have to boot using the Desktop live-cd and run the gui from there. You can grab both files attached to this post that contains everything needed to install and run system-config-lvm in a livecd session. Just extract the content, put it in the same folder as the .deb and run lvmgui-livecd-install.sh to get everything up and running.


    ****WARNING****
    The GUI applies all settings instantly. Always be sure of what you do and double check before doing it. Its really easy to intialise the wrong drive and lose hours of work.

    First of all we want to get the alien package to convert the rpm package to a .deb :

    Code:
    sudo apt-get install alien
    Then we need the system-config-lvm rpm package from Fedora :

    Code:
     wget download.fedora.redhat.com/pub/fedora/linux/releases/8/Everything/i386/os/Packages/system-config-lvm-1.1.1-2.0.fc8.noarch.rpm
    Next we will convert the .rpm package to .deb package (you will see alot of warning, you can ignore them) :

    Code:
    sudo alien system-config-lvm-1.1.1-2.0.fc8.noarch.rpm

    Now we want to install our new deb package :
    *For some reason alien changes the version number from 1.1.1-2 to 1.1.1-3 when creating the package
    Code:
    sudo dpkg -i system-config-lvm_1.1.1-3_all.deb

    system-config-lvm needs the python interpreter and looks for it under the name /usr/bin/python2 but on Ubuntu 8.04 python is named /usr/bin/python2.5 so you need to create a link to python2.5 and name it python2

    Code:
    sudo ln -s /usr/bin/python2.5 /usr/bin/python2

    Now if everything is alright you can start system-config-lvm (with sudo) and start managing your volumes.
    Code:
    sudo system-config-lvm &
    On a final note here are the instruction to make the shortcut "Logical Volume Management" under System -> Administration work and lauch system-config-lvm properly.

    1- Go to System -> Preference -> Main Menu
    2- Find the "Logical Volume Management" and right click on it and open properties.
    3- Change the command field to this: gksu system-config-lvm
    4- Close everything and use your brand new shortcut!


    ****WARNING****
    The GUI applies all settings instantly. Always be sure of what you do and double check before doing it. Its really easy to intialise the wrong drive and lose hours of work.

    I hope this guide will help you.

    EDIT: Changed system-config-lvm version from 1.0.18-1.2.FC5 to 1.1.1-2.0.FC8 and updated the whole guide to reflect this change, I also removed/updated the parts for Dapper to Hardy. I also added instruction to make the menu shortcut work and general notes on LVM.
    Attached Files Attached Files
    Last edited by crazymonkey; May 1st, 2008 at 11:27 PM. Reason: Updated rpm package and instruction for Hardy

  2. #2
    Join Date
    Jun 2006
    Beans
    Hidden!

    Re: HOWTO : LVM gui (Not EVMS)

    I like this a lot more than the LVM GUI on freshmeat. Thanks for the useful howto!

  3. #3
    Join Date
    Jul 2006
    Beans
    2

    Re: HOWTO : LVM gui (Not EVMS)

    Just a suggestion because I'm a noob, but couldn't you use a symbolic link instead of copying the python files over. I used the following command, which worked wonderfully:
    Code:
    ln -s /usr/bin/python2.4 /usr/bin/python2
    Last edited by mvanzante; July 24th, 2006 at 12:58 AM.

  4. #4
    Join Date
    Aug 2006
    Beans
    16

    Re: HOWTO : LVM gui (Not EVMS)

    I want reudce the size of my root partition. Will I need to reduce the size of my file system first, or will the gui take care of that?

  5. #5
    Join Date
    Aug 2006
    Beans
    27

    Re: HOWTO : LVM gui (Not EVMS)

    I want to know this too. I Performed a default install with Ubuntu with LVM and I want to put mythtv on(which is better setup over mulitple partitions), but use LVM and different filesystems.

    Can I just use this tool to change set the disk up, and sort the filesystems out?

  6. #6
    Join Date
    Jul 2006
    Location
    Montréal, Québec, Canada
    Beans
    58
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO : LVM gui (Not EVMS)

    Quote Originally Posted by zetman View Post
    I want reudce the size of my root partition. Will I need to reduce the size of my file system first, or will the gui take care of that?
    First of all sorry for the late reply, i had problem with my internet the night i posted this HOWTO and tought it didnt make it to the forums...

    If you installed ubuntu using the alternate install CD and chose to use LVM partition you can easily resize your root partition with this tool. Just select your Ubuntu volume group and select your root partition under the logical view and press the Edit Properties button.

    This will open a new window (see screenshot) with your root partition properties. There you can change the size of your partition and free some space to assign to a new partition. On the screenshot it shows the size in extents but you can change it to KB,MB or GB too.


  7. #7
    Join Date
    Nov 2005
    Beans
    12

    Re: HOWTO : LVM gui (Not EVMS)

    This was so much easier than EVMS which I just couldn't get to work! I now have a great partition spread over 3 hard drives.

    Great 'Howto'.

    One ? though. Where's the launch icon in the menu?

  8. #8
    Join Date
    Oct 2006
    Beans
    11

    Re: HOWTO : LVM gui (Not EVMS)

    Thanks for the awesome info -
    I've had system-config-lvm working fine with Gnome Ubuntu, however when I try the same steps with kde based kubuntu, I'm getting the following response. I did some searching and the best I can come up with is it has something to do with python (duh) but other than that, am at a loss... Any ideas?

    @groucho:~$ sudo system-config-lvm
    Traceback (most recent call last):
    File "/usr/sbin/system-config-lvm", line 50, in ?
    from Volume_Tab_View import Volume_Tab_View
    File "/usr/share/system-config-lvm/Volume_Tab_View.py", line 13, in ?
    from Properties_Renderer import Properties_Renderer
    File "/usr/share/system-config-lvm/Properties_Renderer.py", line 33, in ?
    import gnome
    ImportError: No module named gnome

  9. #9
    Join Date
    Oct 2006
    Location
    Portland, Oregon, USA
    Beans
    35
    Distro
    Ubuntu 6.06 Dapper

    Re: HOWTO : LVM gui (Not EVMS)

    I'm having some trouble getting this to work. I'm a noob at this and hopefully someone is still paying attention to this post.

    I followed the instructions from my default terminal promopt and all seemed to go OK. The problem starts when I try to launch the LVM manager. I have a menu item in Application > Other > Logical Volume Management. When I click on it, I get this error message:



    As the message indicates, apparently I don't have the right file in the right directory. How do I make sure it gets installed in the right directory? Where did I go wrong?

    Thanks in advance.

  10. #10
    Join Date
    Jul 2006
    Location
    Montréal, Québec, Canada
    Beans
    58
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO : LVM gui (Not EVMS)

    The shortcut in the Others menu wont work because it does not use the gksu prefix to execute as root. You can change this in the menu editor (just add gksu before the command). gksu is the gnome equivalent of sudo. You can also try to run it from the terminal with the following command : sudo system-config-lvm

    Let me know if it wont work from the terminal either.
    Registered Ubuntu user #8233

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •