[SOLVED] restore LVM VG after PV device names changed
Linux - SoftwareThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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...
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.