LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 04-06-2009, 06:44 PM   #1
scndmouse
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Rep: Reputation: 0
LVM2 devfs mappings changed for physical volumes...LV "went away"


I have an LVM2 volume that was created on a RHEL system. The physical volumes are from a storage array. Changes at the storage array level have caused the devfs mappings to change (e.g. /dev/sdb1 --> /dev/sdd1). This caused the LV that was created using the pv /dev/sdb1 to "go away". I'm nervous enough about loosing any data, so my question is; can I simply vgcreate using the new devfs mappings (which are still Linux LVM volumes as returned by fdisk -l) and then lvcreate a new logical volume without loosing data? Or better yet, is there a way for me to go into an LVM config file and change the old mappings to the new ones and reboot?

Thanks for any help in advance.
 
Old 04-06-2009, 07:30 PM   #2
GazL
Senior Member
 
Registered: May 2008
Posts: 3,231

Rep: Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828
Unless you've got some filters set in your /etc/lvm/lvm.conf file to restrict which devices get scanned, LVM shouldn't care which device it finds the PV on. vgscan will scan all the available devices looking for LVM headers to identify the PVs. If you've got a PV missing, then doing a vgcreate is completely the wrong thing to do. You need to determin where your PV has gone and why its not being detected. I hope that whatever the change was you made to your storage array, that it was a non-destructive one.

You need to do a little digging with the lvm display commands to try and figure out exactly what's happened. 'vgs' and 'pvs' are a good place to start.
 
Old 04-07-2009, 11:05 PM   #3
scndmouse
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the reply.

vgscan seemed to be all that was needed to discover the LV. I should have RTFM a bit more before jumping the gun on the post . Man page on vgscan states that it will happen automatically, but you might still need to run it explicitly after a change in hardware.

The only change that was made at the storage array was the creation of new LUNs, assigned down the same controller (thus changing the SCSI channel discovery of the LUNs leading to the different devfs mappings).

Thanks for the help.
 
Old 04-08-2009, 05:10 AM   #4
GazL
Senior Member
 
Registered: May 2008
Posts: 3,231

Rep: Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828
You're welcome. At least it's not like AIX where the old hdisk device entries go into a 'Defined' state when their id's change and you end up with a new entry aswell. One time I had a system with that many that I had to write a for loop to rmdev them all. hehe.

Anyway, glad you got it sorted.
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 logical Volumes in volume group "VolGroup00" now active shivaraj.shetty Linux - Kernel 4 04-15-2008 02:11 AM
strange "No such file or directory" errors on NFS volumes fishsponge Linux - General 2 01-14-2008 09:07 AM
2.4 kernel w/ devfs "/dev/tty1-8: No such file or directory" hedpe Linux - Software 0 05-19-2006 05:37 PM
hdd type changed from "FAT32" to "win95 FAT32 lba" billgnu Linux - General 1 12-11-2005 04:57 PM


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