Solved

what happens after removing a lun from lvm under linux

Posted on 2010-08-29
3
491 Views
Last Modified: 2012-06-21
Hi:

     We have been undergoing some disk problems on a type 6 raid.
     We have 4 luns and want to move the data to another lun. Then remove
     the problematic lun.
     This is run under Centos 5.3 and the 4 luns are grouped together by lvm.
     We added lun5 and put it under the lvm so linux now sees
     5 devices /dev/dm-0 through /dev/dm-4. I added /dev/dm-4 to the volume group.
    And am currently running pvmove. to move the extents from the problematic pv. (dm-1).

   The question is after I remove dm-1 from the volume group and then remove the lun
   will I have problems recognizing my data.

   The reason I ask is that normally linux may see the following disks:
  /dev/sda, /dev/sdb. /dev/sdc. When /dev/sdb is removed /dev/sdc will become
  /dev/sdb on a rescan. So I was wondering if I will see the same problems here.

  I have
    1 - luns, 2 - multipath mapping, and 3 - lvm.

  Thank you for your help.
   
           
0
Comment
Question by:kot_linuxoid
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
jmslagle earned 500 total points
ID: 33558520
If you are using LVM, then LVM will figure out the disk identities by metadata stored on disk, not the device name.  Additionally, it's usually wise to tell your FSTAB to mount by uuid or label for the same reason.
0
 

Author Comment

by:kot_linuxoid
ID: 33564617
thank  you very much.
0
 

Author Closing Comment

by:kot_linuxoid
ID: 33564639
He answered my concerns, and I knew that the
multipath drivers depend on a wwid to map.
So I didn't need info on the multipath. But to have been complete referring to the multipath(s) should
have been discussed as well.

In either case thanks to imslagle for his answer.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

AWS Glacier is Amazons cheapest storage option and is their answer to a ‘Cold’ storage service.  Customers primarily use this service for archival purposes and storage of infrastructure backups.  Its unlimited storage potential and low storage cost …
When we purchase storage, we typically are advertised storage of 500GB, 1TB, 2TB and so on. However, when you actually install it into your computer, your 500GB HDD will actually show up as 465GB. Why? It has to do with the way people and computers…
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question