Ubuntu This forum is for the discussion of Ubuntu Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-19-2008, 12:24 PM
|
#1
|
Member
Registered: Aug 2004
Posts: 296
Rep:
|
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.
|
|
|
12-19-2008, 01:57 PM
|
#2
|
Member
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412
Rep:
|
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!
|
|
|
12-19-2008, 03:33 PM
|
#3
|
Member
Registered: Aug 2004
Posts: 296
Original Poster
Rep:
|
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!
|
|
|
12-20-2008, 05:27 AM
|
#4
|
Member
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412
Rep:
|
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.
|
|
|
12-20-2008, 06:47 AM
|
#5
|
Member
Registered: Aug 2004
Posts: 296
Original Poster
Rep:
|
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.
|
|
|
12-21-2008, 11:43 AM
|
#6
|
Member
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 11:39 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|