LinuxQuestions.org
Visit Jeremy's Blog.
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 08-04-2011, 03:10 AM   #1
martdj
Member
 
Registered: Feb 2005
Distribution: Fedora 20
Posts: 33

Rep: Reputation: 1
How to swap one hard drive with another when using LVM?


As my harddisks are completely full I want to swap a 1,5TB drive with a 2TB drive to give me some breathing space. The 1,5TB is part of a LVM spanned volume. My simple question, how do I move all data from the one drive to the other drive without ruining my spanned volume?
 
Old 08-04-2011, 05:49 AM   #2
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 538

Rep: Reputation: 71
Quote:
Originally Posted by martdj View Post
My simple question, how do I move all data from the one drive to the other drive without ruining my spanned volume?
Add the new drive to the LVM. Make enough space available in the LVM so the old drive's data can be moved. There's a command to move the data off the old drive. Moving the data off might be slow. Then remove the old drive from the LVM.

I don't remember the commands, but that's how you do it.
 
Old 08-04-2011, 06:08 AM   #3
martdj
Member
 
Registered: Feb 2005
Distribution: Fedora 20
Posts: 33

Original Poster
Rep: Reputation: 1
Thanks. That could be the way to do it. One thing which makes this method less handy is that I don't have any free Sata ports which means I would have to connect the drive using USB so that slows down the stuff considerably. I was hoping for a method where I could just put the 2 drives in a standalone computer and run some cloning program that copies the data from drive 1 to drive 2, but I'm afraid I break my LVM that way.
 
Old 08-04-2011, 06:17 AM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I would think that you should be able to clone the drive
& resize it after testing.
 
  


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
Adding a new hard drive to my LVM simplified Linux - Newbie 8 07-25-2009 12:03 PM
[SOLVED] How do I swap windows on hard 2 to hard drive 1 and linux from 1 to 2 uncle guido Linux - Newbie 5 10-25-2006 12:14 PM
using LVM for single hard drive csfalcon Linux - Hardware 2 02-17-2005 12:17 PM
Hard drive recovery, LVM Fonce Linux - Hardware 3 12-30-2004 10:47 PM
Can I do this? Hard drive swap. bulliver Linux - Hardware 7 12-26-2002 02:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration