LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-24-2011, 07:27 AM   #1
chamba
LQ Newbie
 
Registered: Jan 2011
Posts: 6

Rep: Reputation: 0
Smile creating LVM on a production server


Hi Folks,

i have a production server running RHEL 4.0 with 2x146 GB on a RAID 1 with OS and another storage with 2x300 GB on a RAID 1 with the application, it's the database and application.

No LVM was installing and configured before, and now the second array with mirror of 300 GB is running out of disk.

1. i have 2 new hdd to build another mirror 2 x 300GB.

The question is, how can i create a LVM to star using the vgextend anytime i need it?

regards.

NC/
 
Old 01-24-2011, 10:44 AM   #2
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
You cannot change a live disk to LVM because you have to install(format) the file system on top of LVM.

Add additional (new) raid set, make a LVM partition, format filesystem.
Migrate data from old raid set to new filesystem.
Verify that it works on new file system
Change partition on old raid set to LVM (will destroy all data!) and add to volume group, then extend LV.
 
Old 01-24-2011, 07:53 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Above advice sounds about right. For more detail see http://tldp.org/HOWTO/LVM-HOWTO/; you'll probably want LVM v2, but check the RH site/docs.
 
Old 01-25-2011, 10:12 AM   #4
chamba
LQ Newbie
 
Registered: Jan 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Hi Chrism01, tank you for your reply, was really helpful and now I'm completely clear.

The only problem now is to migrate data and make the system run without problem because as i said it's a production server. can you advise me any HowTo on data migration using LVM that i can read and try to solve my issue, because i need to have 100% sure migrations is going to work good.

If you need any details please feel free to ask me ok?

regards.
 
Old 01-25-2011, 04:51 PM   #5
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
What do you have on the old 330G volume? (mount point, database)
 
  


Reply



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
Creating a LVM that uses XFS don_wombat_73 Linux - Newbie 1 12-01-2008 05:52 PM
Problem in creating LVM in RHEL 5 Server cj_cheema Linux - Server 5 06-10-2008 01:02 AM
LVM -creating physical volume satimis Linux - General 2 08-10-2006 01:44 AM
Production server? RusRob Debian 2 09-02-2005 01:53 AM
I want to install without creating an lvm system eklhad Fedora 1 06-28-2005 09:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:11 PM.

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