LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 07-12-2006, 01:16 PM   #1
bret
Member
 
Registered: Apr 2005
Location: SLC, Utah
Distribution: RHEL 4, RHEL 5
Posts: 59

Rep: Reputation: 16
pvscan has unexpected output when displaying SAN storage


I have tied my SLES 9.0 server to an HDS 9570 SAN. The Server is a Dell Poweredge 1850 with 2 QLogic 2460 Fibre HBAs. My ESM person has assigned me 8 25GB Luns. When I issue a 'pvscan' to see the available volumes I am expecting to see /dev/sdb through /dev/sdi. Instead I get the following output:

lone:/techsupp/downloads/QLogic/qlafc-linux-8.01.00-4-install # pvscan
Found duplicate PV f1CT4ZI5euBnB928yGMz6argJa42akDO: using /dev/sdi not /dev/sdq
Found duplicate PV qeu7xqemJHE3sFFIw3BTtpYfz6hDmAp0: using /dev/sdj not /dev/sdb
Found duplicate PV Yme2GSVJjhyL6aXgv4bBwBh5bq5EHh88: using /dev/sdk not /dev/sdc
Found duplicate PV DidaW5fqO13H8ajEImLf85CN6YJnlriQ: using /dev/sdl not /dev/sdd
Found duplicate PV uo8L7Hgz6RM6qzKZlduPtqnb0T10ujcp: using /dev/sdm not /dev/sde
Found duplicate PV 3MdkFYo9HmJwR30iRI8ihfl4ovM6GxGE: using /dev/sdn not /dev/sdf
Found duplicate PV Zey6Q1WUHCodFG0hjdbLk5RpioFRMyf1: using /dev/sdo not /dev/sdg
Found duplicate PV xS2dWWQ2n2Jj3gXoY51XGYfWf5BiykQ4: using /dev/sdp not /dev/sdh
PV /dev/sda5 VG Dell01 lvm2 [52.18 GB / 22.68 GB free]
PV /dev/sdq lvm2 [25.00 GB]
PV /dev/sdb lvm2 [25.00 GB]
PV /dev/sdc lvm2 [25.00 GB]
PV /dev/sdd lvm2 [25.00 GB]
PV /dev/sde lvm2 [25.00 GB]
PV /dev/sdf lvm2 [25.00 GB]
PV /dev/sdg lvm2 [25.00 GB]
PV /dev/sdh lvm2 [25.00 GB]
Total: 9 [252.20 GB] / in use: 1 [52.18 GB] / in no VG: 8 [200.02 GB]
lone:/techsupp/downloads/QLogic/qlafc-linux-8.01.00-4-install #


Notice that the 8 luns displayed are sdb through sdh, and also sdq. Why is this? I was expecting sdb through sdi. These devices are also set up with dual paths, as you can see from the following fdisk command:

lone:/techsupp/downloads/QLogic/qlafc-linux-8.01.00-4-install # fdisk -l

Disk /dev/sda: 73.2 GB, 73274490880 bytes
255 heads, 63 sectors/track, 8908 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 4 32098+ de Dell Utility
/dev/sda2 * 5 1832 14683410 83 Linux
/dev/sda3 1833 2094 2104515 82 Linux swap
/dev/sda4 2095 8907 54725422+ f W95 Ext'd (LBA)
/dev/sda5 2095 8907 54725391 8e Linux LVM

Disk /dev/sdb: 26.8 GB, 26845642752 bytes
64 heads, 32 sectors/track, 25602 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/sdc: 26.8 GB, 26845642752 bytes
64 heads, 32 sectors/track, 25602 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sdc doesn't contain a valid partition table

Disk /dev/sdd: 26.8 GB, 26845642752 bytes
64 heads, 32 sectors/track, 25602 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sdd doesn't contain a valid partition table

Disk /dev/sde: 26.8 GB, 26845642752 bytes
64 heads, 32 sectors/track, 25602 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sde doesn't contain a valid partition table

Disk /dev/sdf: 26.8 GB, 26845642752 bytes
64 heads, 32 sectors/track, 25602 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sdf doesn't contain a valid partition table

Disk /dev/sdg: 26.8 GB, 26845642752 bytes
64 heads, 32 sectors/track, 25602 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sdg doesn't contain a valid partition table

Disk /dev/sdh: 26.8 GB, 26845642752 bytes
64 heads, 32 sectors/track, 25602 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sdh doesn't contain a valid partition table

Disk /dev/sdi: 26.8 GB, 26845642752 bytes
64 heads, 32 sectors/track, 25602 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sdi doesn't contain a valid partition table

Disk /dev/sdj: 26.8 GB, 26845642752 bytes
64 heads, 32 sectors/track, 25602 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sdj doesn't contain a valid partition table

Disk /dev/sdk: 26.8 GB, 26845642752 bytes
64 heads, 32 sectors/track, 25602 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sdk doesn't contain a valid partition table

Disk /dev/sdl: 26.8 GB, 26845642752 bytes
64 heads, 32 sectors/track, 25602 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sdl doesn't contain a valid partition table

Disk /dev/sdm: 26.8 GB, 26845642752 bytes
64 heads, 32 sectors/track, 25602 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sdm doesn't contain a valid partition table

Disk /dev/sdn: 26.8 GB, 26845642752 bytes
64 heads, 32 sectors/track, 25602 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sdn doesn't contain a valid partition table

Disk /dev/sdo: 26.8 GB, 26845642752 bytes
64 heads, 32 sectors/track, 25602 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sdo doesn't contain a valid partition table

Disk /dev/sdp: 26.8 GB, 26845642752 bytes
64 heads, 32 sectors/track, 25602 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sdp doesn't contain a valid partition table

Disk /dev/sdq: 26.8 GB, 26845642752 bytes
64 heads, 32 sectors/track, 25602 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sdq doesn't contain a valid partition table


Thanks in advance,

Bret
SLC, UT
 
Old 07-25-2006, 02:56 PM   #2
mjgsantos
LQ Newbie
 
Registered: Jun 2006
Location: São Paulo - Brazil
Posts: 8

Rep: Reputation: 0
Hi, Bret.

I may be wrong, but don't you need some kind of software to control the load balance between the fiber connections from the storage? I have the same type of Dell server and HBA connected to an IBM F20 storage (Shark), and I had to install the SDD software from IBM on the Linux. It creates a virtual disk (/dev/vpathx) that control the load balance between the FC. Im my machine, I have also the duplicated paths to the same disk, and it happens because the HBA recognize the disks through each FC connected from the storage to the FC switch, so it's a total mess, look:

# fdisk -l

Disk /dev/vpatha: 20.0 GB, 20000014336 bytes
255 heads, 63 sectors/track, 2431 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/vpatha1 1 3 24066 83 Linux
/dev/vpatha2 4 6 24097+ 83 Linux
/dev/vpatha3 7 1223 9775552+ 83 Linux
/dev/vpatha4 1224 2431 9703260 83 Linux

Disk /dev/vpathb: 20.0 GB, 20000014336 bytes
255 heads, 63 sectors/track, 2431 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/vpathb1 1 2431 19526976 83 Linux

Disk /dev/vpathc: 20.0 GB, 20000014336 bytes
255 heads, 63 sectors/track, 2431 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/vpathc1 1 2431 19526976 83 Linux

Disk /dev/vpathd: 20.0 GB, 20000014336 bytes
255 heads, 63 sectors/track, 2431 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/vpathd1 1 2431 19526976 83 Linux

Disk /dev/sda: 73.2 GB, 73274490880 bytes
255 heads, 63 sectors/track, 8908 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 523 4096575 82 Linux swap
/dev/sda3 524 8908 67352512+ 83 Linux

Disk /dev/sdb: 20.0 GB, 20000014336 bytes
255 heads, 63 sectors/track, 2431 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 3 24066 83 Linux
/dev/sdb2 4 6 24097+ 83 Linux
/dev/sdb3 7 1223 9775552+ 83 Linux
/dev/sdb4 1224 2431 9703260 83 Linux

Disk /dev/sdc: 20.0 GB, 20000014336 bytes
255 heads, 63 sectors/track, 2431 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 1 2431 19526976 83 Linux

Disk /dev/sdd: 20.0 GB, 20000014336 bytes
255 heads, 63 sectors/track, 2431 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdd1 1 2431 19526976 83 Linux

Disk /dev/sde: 20.0 GB, 20000014336 bytes
255 heads, 63 sectors/track, 2431 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sde1 1 2431 19526976 83 Linux

Disk /dev/sdf: 20.0 GB, 20000014336 bytes
255 heads, 63 sectors/track, 2431 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdf1 1 3 24066 83 Linux
/dev/sdf2 4 6 24097+ 83 Linux
/dev/sdf3 7 1223 9775552+ 83 Linux
/dev/sdf4 1224 2431 9703260 83 Linux

Disk /dev/sdg: 20.0 GB, 20000014336 bytes
255 heads, 63 sectors/track, 2431 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdg1 1 2431 19526976 83 Linux

Disk /dev/sdh: 20.0 GB, 20000014336 bytes
255 heads, 63 sectors/track, 2431 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdh1 1 2431 19526976 83 Linux

Disk /dev/sdi: 20.0 GB, 20000014336 bytes
255 heads, 63 sectors/track, 2431 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdi1 1 2431 19526976 83 Linux

The /dev/sda1 through /dev/sda3 are my local disks, an the others are from the external storage. I only use the /dev/vpathx devices, and don't care about the other devices, because they are all the same disks, only with different FC paths.
But, if you don't have this kind of software, you will have to take care to choose what will be the devices you'll want to create and mount your FS. But, if your HBA fails, you'll have to manually mount the FS on the other devices.
Hope it helped
 
  


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
How to share SAN storage? mlewis Linux - Networking 6 09-01-2006 02:34 PM
C: malloc arrays- unexpected output kpachopoulos Programming 3 03-24-2006 10:30 PM
SAN storage krusty_lab General 9 03-02-2006 06:10 AM
VIOS and SAN storage looseCannon AIX 3 03-30-2005 03:51 PM
SAN Storage Not allowing SLES 9 to boot. MontanaD Linux - Networking 1 10-07-2004 04:19 PM


All times are GMT -5. The time now is 10:44 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration