LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-18-2010, 03:06 PM   #1
rrachkov
LQ Newbie
 
Registered: Oct 2010
Posts: 1

Rep: Reputation: 0
Change LVM disk sata port?


I have Linux system with 6x500 GB sata drives on LVM. I want to change 1 of the disks with larger - 1 TB. I don't have available free sata ports, so I'll add pcie sata controller. I'll add the 1 TB disk to the pcie controller and will use "pvmove" to transfer the PEs from one of the 500 GB drives to the new 1 TB. Then I want to remove the 500 GB disk from the LVM. I want to remove the physical disk from the box and to place the 1 TB disk on its place. But I don't know if the LVM will recognize the disk? I want to remove the pcie controller from the box because the motherboards sata controller is better.
 
Old 10-19-2010, 07:34 PM   #2
tommylovell
Member
 
Registered: Nov 2005
Distribution: Raspbian, Debian, Ubuntu
Posts: 380

Rep: Reputation: 103Reputation: 103
Assuming that there is LVM metadata written on every disk (which is the default), it doesn't matter where a disk is connected. The metadata is read from the disk by LVM each time the system boots.

How it's connected is another matter. You need to have a driver that supports it. And that driver (if it's not compiled into your kernel) needs to be available from somewhere and loaded prior to accessing the disk... That somewhere is, I think, always the initial ramdsk (initrd). (I could be wrong - others can correct me if I am.)

I would suggest a different sequence to moving the data.

You can do a simple experiment by installing your new PCIE SATA controller card, moving an existing drive there, and rebooting to see if your LVM is still intact.

If it's not you can hopefully just move the disk back to its original position and correct the problem. (There may be the possibility that a VG missing a PV can be marked as inactive and need to be vgchange'd to active from disk recovery...)

If it boots, you can install the new drive on the empty motherboard controller and 'pvmove' the data from the disk on the pcie sata controller.

(Don't forget to 'vgreduce' and 'pvremove' the newly emptied disk before you remove it!)

good luck.
 
  


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
Adding an LVM hard disk to a system already running/using LVM firewiz87 Linux - Hardware 5 08-15-2010 12:59 AM
Mounting LVM Disk to non-LVM disk gak_92 Linux - Hardware 1 08-07-2009 03:34 AM
Internal SATA Drive and external SATA Disk Array. bruceharbin Linux - Hardware 1 05-25-2009 12:33 AM
LVM - what if disk partition change causes the PV device file to change? catkin Linux - General 9 12-19-2008 06:43 PM
Change IDE disk to SATA fhansson Linux - Hardware 3 01-13-2006 03:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:37 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