LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-10-2007, 08:44 AM   #1
kromberg
Member
 
Registered: Feb 2007
Location: Colorado
Distribution: FC6, FC7 x86_64
Posts: 218

Rep: Reputation: 30
Correct Way To Remove a Drive from LVM


I have a disk that is going bad in my LVM and I would like to swap it out with a replacement. From my research I believe these are the steps, but please correct me if I am wrong.

The LVM currently has 2 36G SCSI disks and I will replace one of them with another 36G disk. The filesystem is ext3.

1) boot rescue disk, not having it mount anything.
2) lvm vgchange -a y
3) e2fsck -f /dev/VolGroup00/LogVol00
4) pvcreate /dev/sdc <-- new disk
5) vgextend /dev/VolGroup00/LogVol00 /dev/sdc
6) pvmove /dev/sda /dev/sdc
7) vgreduce dev /dev/sda

From what I have read I believe I do not need to resize/change the filesystem, is that correct?

TIA,
Keith
 
Old 12-10-2007, 09:27 PM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
Using a Live CD, make a bit for bit image of the drive you want to exchange with dd or ddrescue. Then write that image to the new drive, plug it in and boot up while keeping the original configuration and data.
Or, maybe consult the LVM Aministrator's guide, section 4.
 
  


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
formatting drive to correct size help!! gorilly Linux - General 6 09-12-2007 10:10 AM
LVM - can't remove vg zdenisl Linux - Software 1 08-16-2007 08:36 AM
How to resize the / LVM under Fedora 6, or remove the /home mount & make new one? gerhardbartsch Fedora 7 03-06-2007 07:14 AM
LVM: Wanting to remove a partition from a Volume Grou Jongi Linux - General 13 11-01-2006 01:43 PM
Correct way to remove older, unneeded kernels? wytiger Fedora 7 01-16-2004 09:36 PM


All times are GMT -5. The time now is 10:49 AM.

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