Operating System - Linux
1830204 Members
13130 Online
109999 Solutions
New Discussion

fdisk /dev/mapper/mpath1 or fdisk /dev/sda ?

 
Yaboto
Super Advisor

fdisk /dev/mapper/mpath1 or fdisk /dev/sda ?

Hi,

I have installed DM-Multipath on my RHEL5 to take care of the redundant SAN multipathing.
It is recommended to create and mark a partition as Linux LVM before "pvcreating" and "vgcreating" it.
Here is my question:

When "fdisking" the partition, which is the recommended device file to use ? the Multipath one /dev/mapper/mpath1 or the ordinary one /dev/sda ?

Regards,
3 REPLIES 3
skt_skt
Honored Contributor

Re: fdisk /dev/mapper/mpath1 or fdisk /dev/sda ?

all LVM operations need to be on mpathx. You can fdisk(just to list since LVM is there for disk management) on sda devices, but only primary path will respond( assumign u have an active/passive array)
dirk dierickx
Honored Contributor

Re: fdisk /dev/mapper/mpath1 or fdisk /dev/sda ?

forget about the sd[a-z] entries, your multipathed now, your disks are now accessable using the mpath name.
Yaboto
Super Advisor

Re: fdisk /dev/mapper/mpath1 or fdisk /dev/sda ?


Thank you !