LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-12-2013, 06:24 PM   #1
canopus69
Member
 
Registered: Sep 2013
Posts: 72

Rep: Reputation: Disabled
dm-n name and wwid


Following 'multipath -ll' output clearly shows /dev/sdX name, dm-n name, wwid and mpathN name.

mpath56 (360060e800571e800000071e800001029) dm-49 HITACHI,OPEN-V
[size=50G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=2][active]
\_ 0:0:1:41 sdcd 69:16 [active][ready]
\_ 1:0:1:41 sdcu 70:32 [active][ready]


However 'vgdisplay -v vg01' comes with following output (partially listed) in "physical volumes" section.

How do I find the wwid of the below disk "dm-76" ?

--- Physical volumes ---
PV Name /dev/dm-76
PV UUID Ssghrs-Zxlq-KqXG-FhTS-Nkfa-C92J-ShxOl8
PV Status allocatable
Total PE / Free PE 12799 / 0

Note : UUID listed above doesn't appear in 'blkid'.

Last edited by canopus69; 12-12-2013 at 08:05 PM. Reason: typo
 
Old 12-14-2013, 02:51 PM   #2
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Rep: Reputation: 73
I guess, run

Code:
multipath -ll |grep dm-76
 
Old 12-14-2013, 05:06 PM   #3
canopus69
Member
 
Registered: Sep 2013
Posts: 72

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by robertjinx View Post
I guess, run

Code:
multipath -ll |grep dm-76
It doesn't show it.

However later I got some tips from my team mate. Will write on Monday.
 
Old 12-15-2013, 06:40 PM   #4
canopus69
Member
 
Registered: Sep 2013
Posts: 72

Original Poster
Rep: Reputation: Disabled
Following worked :

[root@xyz ~]# ls -l /dev /dev/mapper/ | grep dm-76
brw-rw---- 1 root root 253, 76 Jun 8 2012 dm-76

Now grep for major/minor numbers that appeared above.

[root@xyz ~]# ls -l /dev /dev/mapper/ | grep 253 | grep 76
brw-rw---- 1 root root 253, 76 Jun 8 2012 dm-76
brw-rw---- 1 root disk 253, 76 Jun 8 2012 mpath19p1

So the multipath device is mpath19, wwid of it can be found in 'multipath -ll'

Last edited by canopus69; 12-15-2013 at 06:40 PM. Reason: typo
 
  


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
Does the WWID of a LUN change if a hard drive needs to be replaced? jeriryan Linux - Hardware 4 01-10-2011 07:21 PM
[SOLVED] Detecting WWID number of HBA on SLES11 shashij Linux - General 7 07-06-2010 08:48 AM
Where in Device Mapper is the unique long WWID or UID of the LUN virtual disk stored? DougStorage Linux - Hardware 1 03-08-2010 08:40 AM
Relating SAN Disk WWID to PVUID jackpal Linux - Server 0 12-21-2009 10:50 AM
Fiber card "WWID" numbers balajipriya Linux - Hardware 2 12-15-2004 03:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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