LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Tags used in this thread
Popular LQ Tags , , , ,

Reply
 
Thread Tools
Old 12-19-2008, 01:24 PM   #1
Linux31
Member
 
Registered: Aug 2004
Posts: 261
Thanked: 0
Ubuntu 8.04 LVM2 install problem


[Log in to get rid of this advertisement]
I'm running Hardy with the initial HDs setup under LVM. I just added another HD which the system sees and can access fine and I wanted to add it in to the logical volume and group.

I installed LVM2 from synaptic but now can't find it under any of the pull down menus. It's not under System Tools, Administration, Preferences, etc.

Can someone point me to it?

Thanks for your help.
Linux31 is offline  
Tag This Post , , , ,
Reply With Quote
Old 12-19-2008, 02:57 PM   #2
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Gentoo/Debian/Kubuntu
Posts: 343
Thanked: 28
I don't know if there is a graphical tool for setting up LVM. You should setup your LVM via a shell.

man pvcreate,
man vgcreate,
man lvcreate,
...

Loads of doc out there but make a backup first!
eco is offline     Reply With Quote
Old 12-19-2008, 04:33 PM   #3
Linux31
Member
 
Registered: Aug 2004
Posts: 261
Thanked: 0

Original Poster
Thanks for the feedback.

I really need a graphical interface like the way it's implemented for CentOS and Fedora.

With my limited skill level, trying something like this from the terminal is asking for trouble!
Linux31 is offline     Reply With Quote
Old 12-20-2008, 06:27 AM   #4
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Gentoo/Debian/Kubuntu
Posts: 343
Thanked: 28
It's really quite easy, this is a basic example

Create a PV:
# pvcreate /dev/sda10

Now create a VG and use the space found in the PV:
# vgcreate vg00 /dev/sda10

Now create the LVs you need, this example create LV lv_foobar of 6 GB.
# lvcreate -L 6G -n /dev/vg00/lv_foobar

You got the basics, you understand them, you are now in control!

Give it a go on a test drive/partition. You'd better understand the technology if you're going to be using it.
eco is offline     Reply With Quote
Old 12-20-2008, 07:47 AM   #5
Linux31
Member
 
Registered: Aug 2004
Posts: 261
Thanked: 0

Original Poster
Ok, I see how it goes so far but then how do I add this new drive onto the existing logical volume group to have one big volume?

The existing volume group is made up of a 500GB (sda), 250GB (sdb), and 200GB (sdc) drives.

The new drive (500GB) is sdd.

Thanks for the help.
Linux31 is offline     Reply With Quote
Old 12-21-2008, 12:43 PM   #6
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Gentoo/Debian/Kubuntu
Posts: 343
Thanked: 28
Hi,
Sorry for the late answer.

Simply add your drives to the PV
# pvcreate /dev/sd{a,b,c}

Then add all PVs to your VG. Simple as that
# vgcreate vg00 /dev/sd{a,b,c}

Note that if you add all devices into one VG and one of the devices fail, you will lose *ALL* your data!

You can add partitions or entire disks to a PV. I tend to use partitions for flexibility.

Hope this helps.
eco is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
root on lvm2 problem :-( echo>/dev/null Linux - Software 1 10-23-2006 11:21 PM
Problems setting up lvm2 drive on ubuntu tomazN Linux - Hardware 0 10-13-2006 10:06 AM
RHAS 4.0 2.6 kernel - How to implement LVM2 post-install skondolf Linux - Newbie 1 03-04-2006 05:32 PM
RHAS 4.0 2.6 kernel - How to implement LVM2 post-install skondolf Linux - Software 3 03-04-2006 11:27 AM
LVM2 volume group not seen after FC4 install digithead1011 Fedora - Installation 6 10-09-2005 10:25 PM


All times are GMT -5. The time now is 12:16 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration