LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-20-2008, 02:05 PM   #1
jmdjr
LQ Newbie
 
Registered: Sep 2008
Distribution: SuSE Linux 10.1
Posts: 7

Rep: Reputation: 0
Create LVM after a new linux install.


I have a new Linux, Suse 10.2, with no LVMs yet. There are three drives, each used completely. One is mounted as /, the second as /usr and the third as /usr/lib. /usr is near being full. I plan to add another drive to my system. Can I create an LVM with /usr as one of the physical drives and the new drive as the second? Will I have to backup /usr and then restore after creating the LVM?

Thanks any help will be appreciated.
Joe
 
Old 11-20-2008, 04:05 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,043

Rep: Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970
Drives or partitions ???. How could /usr fill a drive ...
Short answer, no. Creating the pv/vg/lv will require formatting the drive/partition. Seems messy - want to post the output of "df -hT" ?.
 
Old 11-20-2008, 04:21 PM   #3
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I agree with syg, but if it is drive (set up with one partition I assume), and easier and perhaps better solution would be to install a larger drive and simply move /usr to it.
 
Old 11-21-2008, 06:52 AM   #4
jmdjr
LQ Newbie
 
Registered: Sep 2008
Distribution: SuSE Linux 10.1
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks, I did fail to mention that my SuSE zLinux 10.2 is running on an IBM Mainframe under zVM with 3390 Mod 3 DASD, disk drives. Each drive is a whopping 2.3G. So that is why /usr is near full. LVM is the only way to add additional space to the file system. I have three drives currently configured as I mentioned earlier.

Could I add another drive as a one volume LVM, copy /usr to it, then format the original drive then add it to the newly created LVM?

I am fairly new to zLinux. If I can do it that way, will I need to make changes to /etc/fstab?

Again, thanks
Joe
 
Old 11-21-2008, 06:57 AM   #5
jmdjr
LQ Newbie
 
Registered: Sep 2008
Distribution: SuSE Linux 10.1
Posts: 7

Original Poster
Rep: Reputation: 0
Sorry I didn't answer syg's question.

here's my df -hT

Filesystem Type Size Used Avail Use% Mounted on
/dev/dasdb1 ext3 2.3G 1.5G 752M 66% /
udev tmpfs 247M 80K 247M 1% /dev
/dev/dasdc1 ext3 2.3G 1.9G 279M 88% /usr
/dev/dasdd1 ext3 2.3G 481M 1.7G 22% /usr/lib

My drives are each formatted as one partition.

Thanks
 
Old 11-21-2008, 07:36 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,043

Rep: Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970
I'm surprised it wasn't LVM to start with - was this installed using the "Cookbook" redbook ??. Doesn't look like it. Even so, a mod-3 should be plenty for /usr normally I would think.
But yes, if you only have mod-3's, you're going to have to do something like you suggested. See if you can steal a mod-9 or two. Yes the fstab will need to be modified to agree.
 
  


Reply


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
Create a partition on existing lvm cghcgh Linux - Enterprise 12 04-14-2008 01:34 AM
how do you create software raid on rh8 using lvm xender69 Red Hat 6 12-03-2007 04:19 PM
create a Raid1 Mirrored LVM? Suse 10.2 carl0ski Linux - Hardware 0 12-26-2006 03:23 AM
LVM: How to create logical (physical) volume with extent sie 32 Mb consistgd Linux - Software 4 11-14-2006 05:03 PM
How do I install linux twice on the same server using LVM? abefroman Linux - Software 1 10-29-2005 05:43 PM


All times are GMT -5. The time now is 04:54 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration