Re: How does a LUN map to a disk or a partition

  • From: David Ballester <ballester.david@xxxxxxxxx>
  • To: hrishys@xxxxxxxxxxx
  • Date: Fri, 10 Jul 2009 10:29:03 +0200

2009/7/10 hrishy <hrishys@xxxxxxxxxxx>

> Hi
>
> I would like to know how does a LUN map to a partition from a storage and
> host point of view ?
>
> how do i say /dev/sdb1 maps to LUN0 ?
>
> regards
> Hrishy
>
>
You can't. LUN0 will be seen as /dev/<whole_disk-aka_LUN> not as a partition
of this block device. From storage point of view, several ways exists as
several providers ( HP, IBM, EMC... ) develop the storage environment.

But, at least from GNU/Linux ( kernel 2.6 & utils ) if the storage driver
provider doesn't do it, you can assing the physical partition to a specified
device partition path using udev rules ( In fact, if you don't modify
nothing, udev will apply standard set of rules ).

You can see the actual partition table on the system in /proc/partitions


D.

Other related posts: