LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-02-2013, 10:12 PM   #1
kankan55
Member
 
Registered: Nov 2012
Posts: 32

Rep: Reputation: Disabled
Got SAN lun 0 without mapping any disk to the server


I just zoning the hba to the storage but didn't map any disk to the server yet. But I got lun0 appear on the /dev/disk/by-path/ . see below output.

/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root 9 Jan 3 04:04 pci-0000:00:1f.2-scsi-0:0:0:0 -> ../../sr0
lrwxrwxrwx 1 root root 9 Jan 3 04:04 pci-0000:04:00.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 Jan 3 04:04 pci-0000:04:00.0-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan 3 04:04 pci-0000:04:00.0-scsi-0:0:0:0-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jan 3 04:04 pci-0000:04:00.0-scsi-0:0:0:0-part3 -> ../../sda3
lrwxrwxrwx 1 root root 9 Jan 3 04:04 pci-0000:0a:00.0-fc-0x5006016141e09ae7-lun-0 -> ../../sdc
lrwxrwxrwx 1 root root 9 Jan 3 04:04 pci-0000:0a:00.0-fc-0x5006016841e09ae7-lun-0 -> ../../sdb


How does the SAN lun 0 come from ? The OS is RHEL 6.3
 
Old 01-02-2013, 10:16 PM   #2
kankan55
Member
 
Registered: Nov 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
nothing happened for fdisk and parted command

# parted /dev/sdb
# parted /dev/sdc
# fdisk -l /dev/sdb
# fdisk -l /dev/sdc
 
Old 01-03-2013, 01:16 AM   #3
trijit
Member
 
Registered: Sep 2010
Location: Kolkata
Distribution: Ubuntu
Posts: 35

Rep: Reputation: 3
Quote:
Originally Posted by kankan55 View Post
I just zoning the hba to the storage but didn't map any disk to the server yet. But I got lun0 appear on the /dev/disk/by-path/ . see below output.

/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root 9 Jan 3 04:04 pci-0000:00:1f.2-scsi-0:0:0:0 -> ../../sr0
lrwxrwxrwx 1 root root 9 Jan 3 04:04 pci-0000:04:00.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 Jan 3 04:04 pci-0000:04:00.0-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan 3 04:04 pci-0000:04:00.0-scsi-0:0:0:0-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jan 3 04:04 pci-0000:04:00.0-scsi-0:0:0:0-part3 -> ../../sda3
lrwxrwxrwx 1 root root 9 Jan 3 04:04 pci-0000:0a:00.0-fc-0x5006016141e09ae7-lun-0 -> ../../sdc
lrwxrwxrwx 1 root root 9 Jan 3 04:04 pci-0000:0a:00.0-fc-0x5006016841e09ae7-lun-0 -> ../../sdb


How does the SAN lun 0 come from ? The OS is RHEL 6.3
Do you have multipath installed? If so, run "multipath -ll"

Also, paste the output of "fdisk -l"

For Netapp(if netapp santoolkit is installed), run "sanlun lun show"
For EMC, run "powermt display dev=all"

Please share the outpur.
 
Old 01-03-2013, 01:46 AM   #4
kankan55
Member
 
Registered: Nov 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
Hi trijit

The storage model is EMC cx3-20f. The powerpath is not installed on the server.
I have read this link and it said that it's LUNZ (required by EMC).


Quote:
[root@RHEL6 ~]# multipath -ll
Jan 03 07:40:13 | DM multipath kernel driver not loaded
Jan 03 07:40:13 | /etc/multipath.conf does not exist, blacklisting all devices.
Jan 03 07:40:13 | A sample multipath.conf file is located at
Jan 03 07:40:13 | /usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf
Jan 03 07:40:13 | You can run /sbin/mpathconf to create or modify /etc/multipath.conf
Jan 03 07:40:13 | DM multipath kernel driver not loaded
Quote:
[root@RHEL6 ~]# fdisk -l

Disk /dev/sda: 73.4 GB, 73372631040 bytes
255 heads, 63 sectors/track, 8920 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x09795236

Device Boot Start End Blocks Id System
/dev/sda1 * 1 66 524288 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 66 1959 15204352 8e Linux LVM
/dev/sda3 1959 8921 55922688 8e Linux LVM

Disk /dev/mapper/rootvg-rootlv: 6450 MB, 6450839552 bytes
255 heads, 63 sectors/track, 784 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/rootvg-swaplv: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/datavg-datalv: 57.3 GB, 57260638208 bytes
255 heads, 63 sectors/track, 6961 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/rootvg-varlv: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/rootvg-homelv: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/rootvg-perflv: 524 MB, 524288000 bytes
255 heads, 63 sectors/track, 63 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/rootvg-tmplv: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

[root@RHEL6 ~]#
 
Old 01-03-2013, 02:51 AM   #5
trijit
Member
 
Registered: Sep 2010
Location: Kolkata
Distribution: Ubuntu
Posts: 35

Rep: Reputation: 3
Quote:
Originally Posted by kankan55 View Post
Hi trijit

The storage model is EMC cx3-20f. The powerpath is not installed on the server.
I have read this link and it said that it's LUNZ (required by EMC).
Thanks for the outputs.

You can get rid of this LUNZ by setting arraycommpath to 0. But I'd say this is not a good solution at all. Because setting this value may cause powerpath not to recognize devices. Instead, you can just assign a new LUN to the host group on the ex3 side and simply change the LUN id to 0. This should overlap the LUNZ currently you are seeing.

Let me know if that works.

Thanks.
 
1 members found this post helpful.
Old 01-03-2013, 03:40 AM   #6
trijit
Member
 
Registered: Sep 2010
Location: Kolkata
Distribution: Ubuntu
Posts: 35

Rep: Reputation: 3
Quote:
Originally Posted by trijit View Post
Thanks for the outputs.

You can get rid of this LUNZ by setting arraycommpath to 0. But I'd say this is not a good solution at all. Because setting this value may cause powerpath not to recognize devices. Instead, you can just assign a new LUN to the host group on the ex3 side and simply change the LUN id to 0. This should overlap the LUNZ currently you are seeing.

Let me know if that works.

Thanks.
Also, user multipath after assigning a LUN. Set friendly names in multipath.conf as true. Seems, it's already installed on your system but not started. The startup script should be in /etc/init.d/multipathd.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] How to see /scan new EMC SAN lun / disk in RHEL 5 mail4vijay Linux - General 1 04-07-2011 08:27 AM
SAN LUN in redhat linux server ramkumar.santhu Linux - Server 1 01-18-2011 12:27 PM
SAN LUN disk space and /dev/dm-5 noir911 Linux - Server 1 03-17-2010 11:59 AM
LUN Device Mapping: 2 devices map to same lun DantePasquale Linux - Distributions 0 09-24-2007 02:59 PM
SAN LUN disk device order jhumeston Linux - Software 1 07-28-2004 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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