Subscribe
Accepted Solution

LUN Visibility

Hello,

can anyone  provide me the steps to find the diffrence B/w LUN and Local disk in host like windows2003,windows 2008,solaris,linux with the help of HUK and also without it?

Cheers,

Saran

LUN Visibility

Are you looking to identify which are local disk and whichare LUINS presented on that host ?

LUN Visibility

If you look in Device Manager at the Disk Drives - the manufacteur of the disk is usually listed - so Netapp disks would be a NetApp LUN, for example.

LUN Visibility

Yeah,  i am looking for that info

LUN Visibility

Thanks for the info!

That things will be used in windows,for unix host like LINUX,Solaris what would be the method/cmd to find out?

Re: LUN Visibility

HI,

For Linux, install sansurfer package and say “sanlun lun show”. Hope this is useful.

Thanks,

Arun

LUN Visibility

.

I am bit curious to know how could we differentiate LUN and Local disk ,without a HUK / Sansurfer packages installed ?.We came across such a difficulty in an incompatible machine that doesnt have any package to install.

Cheers,

Saran

Re: LUN Visibility

Hi,

So you want to find the LUN’s connected without any external packages like sansurfer being installed.

Try out: ls -l /sys/block/*/device

Thanks,

Arun

LUN Visibility

To give you an analogy:

[root@warspite ~]# ls -l /sys/block/*/device

lrwxrwxrwx 1 root root 0 Aug 20 00:20 /sys/block/hda/device -> ../../devices/ide0/0.0

lrwxrwxrwx 1 root root 0 Aug 20 00:20 /sys/block/sda/device -> ../../devices/pci0000:00/0000:00:04.0/0000:03:00.0/0000:04:01.0/host0/target0:0:0/0:0:0:0

lrwxrwxrwx 1 root root 0 Aug 20 00:20 /sys/block/sdb/device -> ../../devices/pci0000:00/0000:00:04.0/0000:03:00.0/0000:04:01.0/host0/target0:0:1/0:0:1:0

lrwxrwxrwx 1 root root 0 Aug 20 00:20 /sys/block/sdc/device -> ../../devices/pci0000:00/0000:00:04.0/0000:03:00.2/0000:05:01.0/host3/rport-3:0-2/target3:0:0/3:0:0:0

lrwxrwxrwx 1 root root 0 Aug 20 00:20 /sys/block/sdd/device -> ../../devices/pci0000:00/0000:00:04.0/0000:03:00.2/0000:05:01.0/host3/rport-3:0-2/target3:0:0/3:0:0:1

lrwxrwxrwx 1 root root 0 Aug 20 00:20 /sys/block/sde/device -> ../../devices/pci0000:00/0000:00:04.0/0000:03:00.2/0000:05:01.0/host3/rport-3:0-2/target3:0:0/3:0:0:3


[root@warspite ~]# sanlun lun show

controller:           lun-pathname           device filename  adapter  protocol          lun size         lun state

       cos:  /vol/NikhilSetupVMware/vcslun1  /dev/sdc         host3    FCP           30g (32212254720)    GOOD

        cos:  /vol/NikhilSetupVMware/vcslun2  /dev/sdd         host3    FCP           10g (10737418240)    GOOD

        cos:  /vol/NikhilSetupVMware/OC50VCS  /dev/sde         host3    FCP           10g (10737418240)    GOOD

The ones that are bolded from the command " ls -l /sys/block/*/device" are the LUNs connected - which are also shown in sanlun lun show.

Thanks,

  Arun


LUN Visibility

Thanks arun!

What is the way to find the LUN exactly,when the host contains multiple LUN's with same size.?