LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-19-2008, 12:24 PM   #1
Linux31
Member
 
Registered: Aug 2004
Posts: 296

Rep: Reputation: 30
Ubuntu 8.04 LVM2 install problem


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.
 
Old 12-19-2008, 01:57 PM   #2
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
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!
 
Old 12-19-2008, 03:33 PM   #3
Linux31
Member
 
Registered: Aug 2004
Posts: 296

Original Poster
Rep: Reputation: 30
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!
 
Old 12-20-2008, 05:27 AM   #4
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
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.
 
Old 12-20-2008, 06:47 AM   #5
Linux31
Member
 
Registered: Aug 2004
Posts: 296

Original Poster
Rep: Reputation: 30
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.
 
Old 12-21-2008, 11:43 AM   #6
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
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.
 
  


Reply

Tags
hardy, heron, lvm2, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:21 PM
Problems setting up lvm2 drive on ubuntu tomazN Linux - Hardware 0 10-13-2006 09:06 AM
RHAS 4.0 2.6 kernel - How to implement LVM2 post-install skondolf Linux - Newbie 1 03-04-2006 04:32 PM
RHAS 4.0 2.6 kernel - How to implement LVM2 post-install skondolf Linux - Software 3 03-04-2006 10:27 AM
LVM2 volume group not seen after FC4 install digithead1011 Fedora - Installation 6 10-09-2005 09:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:39 AM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration