LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 02-10-2015, 03:01 AM   #1
AhmedAmer12
LQ Newbie
 
Registered: Mar 2013
Posts: 17

Rep: Reputation: Disabled
Question Linux mpath question


Hi ,

I am having the following output :

# multipath -ll

mpath0 (3600508b400070aac0000900000080000) dm-1 HP,HSV200
[size=10G][features=1 queue_if_no_path][hwhandler=0]
\_ round-robin 0 [prio=4][active]
\_ 0:0:0:1 sda 8:0 [active][ready]
\_ 0:0:1:1 sdb 8:16 [active][ready]
\_ 1:0:0:1 sdc 8:32 [active][ready]
\_ 1:0:1:1 sdd 8:48 [active][ready]

# fdisk /dev/sda

# kpartx -a /dev/mapper/mpath0

Questions :
-----------------------
1- Does that mean we have 1 LUN with multiple paths to the storage ?
2- Is it mandatory to format the LUN before using it with VG/FS?
 
Old 02-10-2015, 05:45 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
part of the answer

Two paths each for two channels for four devices that connect you to a single LUN. If one fails, the storage does not fail. IF one channel drops, the storage does not. Normal pattern for critical SAN storage.

I do not believe it is mandatory, but would have to check my documentation for the right way to make use of it. I think I remember that if you pre-format it then dynamic resizing becomes difficult.

You use it by the mpath device or mapper paths, not by the individual device paths. I have only used those when maintaining the LUN: resizing storage.

Last edited by wpeckham; 02-10-2015 at 06:13 AM.
 
Old 02-18-2015, 06:04 PM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Only refer to your DM-multipath device via its /dev/mapper/mpath* name (or whatever you've aliased it to in multipath.conf or the bindings file). Do not use the /dev/sd* devices, as those would only give you one path to the LUN, as mentioned. Also, do not use the /dev/dm-* devices, as those can change across reboots.

What do you mean by "format the LUN"? You can partition the LUN prior to adding it to a volume group (vgcreate will automatically mark it as a physical volume if it's not already). You format LVs, not PVs.
 
  


Reply



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
Volumes switch from sda's to mpath's after reboot anon091 Linux - Server 8 01-16-2013 12:58 PM
kickstart with mpath support thespaceman Red Hat 0 07-30-2010 03:31 PM
linux distro question & mysql install question natalie.aloi Linux - Newbie 5 07-19-2009 08:28 PM
Cluster: mpath wrong partitionname andygfunk Linux - Server 4 03-04-2009 10:13 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

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