LinuxQuestions.org
Register a domain and help support LQ
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 11-02-2009, 05:55 AM   #1
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
restore LVM VG after PV device names changed


I have 2 LVM PV partitions, on 2 disks(1 PV each), which make up a single LV and single VG.

I recently added a PCI disk controller so I could add another SATA disk.

The problem is that when I add the PCI controller card, it takes precedence over the on-board controller and my usual sda and sdb drives become sdb and sdc when there is a drive attached to the PCI card. This results in my PVs not being found on boot and my VG not being setup or mounted.

I gather that it should be quite a simple task to get LVM to re-find my PVs and restore the LV/VG to working order, but try as I might, I can't find the exact info I'm looking for. It's all about restoring failing drives or multipath or another of the myriad configuration options available through LVM and I'm totally uncertain if I have my answer or not.

I really don't want to proceed without being sure, so can someone confirm for me that this...
vgscan
vgchange -a y

...is all I need to do to get my VG working again after a device name mix-up?


edit: after changing my fstab to point to UUIDs for the non-lvm partitions on my sda and sdb drives, LVM seems to find my VG properly now without any interaction from me.

Last edited by lurko; 11-02-2009 at 08:34 AM.
 
Old 11-13-2009, 09:11 AM   #2
madmadmod
Member
 
Registered: Sep 2009
Distribution: Fedora, Red Hat
Posts: 52

Rep: Reputation: 18
hmm... even if the pv names change, lvm should still see your volume groups (after vgscan or reboot).
 
  


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
Restore MySQL Dump File But I want it to restore with different names? helptonewbie Linux - Newbie 5 07-08-2009 06:09 AM
etc/fstab Device label changed cant restore the default device name shady_Dev Linux - Software 4 11-11-2007 12:00 PM
LXer: Back Up (And Restore) LVM Partitions With LVM Snapshots LXer Syndicated Linux News 0 04-17-2007 12:16 PM
Device changed names after Kernel Update itz2000 Linux - Newbie 1 12-29-2006 03:12 PM
Logical device names and instant names Gins Linux - General 8 11-30-2004 09:17 PM


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