fdisk-dm multipath

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

fdisk-dm multipath

satish
Dear Erman,

We are using redhat linux 7 with dm multipath.we are trying to get all the physical disks on this server.
what ever fdisk -l shows..are those all physical disks?

Thank you for the support

Thanks,
satish
Sri
Reply | Threaded
Open this post in threaded view
|

Re: fdisk-dm multipath

Sri
I had this doubt to understand whether the below sdo,sdec,sdbv,sdgj are physical disks or just paths?

PRD-ARCH01 (360002ac0000000000000006b0001c9fc) dm-19 3PARdata,VV
size=100G features='1 queue_if_no_path' hwhandler='1 alua' wp=rw
`-+- policy='round-robin 0' prio=50 status=active
  |- 2:0:0:24 sdo  8:224   active ready running
  |- 1:0:1:24 sdec 128:64  active ready running
  |- 2:0:1:24 sdbv 68:144  active ready running
  `- 1:0:0:24 sdgj 131:240 active ready running

Thank you
Reply | Threaded
Open this post in threaded view
|

Re: fdisk-dm multipath

ErmanArslansOracleBlog
Administrator
These are multipath devices.
Actually, they all are the same device.
Different devices files for the same multipath pseudo device...
They are there to support the multipathing.

As for checking the disk type to see whether it is a virtual or not, you can take a look at the /proc/scsi/scsi.

cat /proc/scsi/scsi

Check the output of the above command..
There will be Vendor and Model there..
For example;

in case the disk is a virtual one given by Vmware, you will see something like -> " Vendor: VMware,  Model: VMware Virtual"

Ofcourse in order to understand the disks in questions by looking at the /proc/scsi/scs, you need to have "the device <-> Host, Channel, Id, Lun " mapping.

Luckily, it is already there in your multipath output..

You can take one of the disks..(as they are all the same in the backend)
for instance you can take sdo (/dev/sdo) , its Host, Channel, Id, Lun mapping is -  2 0 0 24 ..
So with this info , check the vendor and model in /proc/scsi/scsi now.