[LU-515] gpdd-survey.sh/sgpdd-survey doesn't play nice with devices specified by alias Created: 19/Jul/11  Updated: 27/Mar/12  Resolved: 18/Oct/11

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.2.0

Type: Bug Priority: Major
Reporter: Wally Wang (Inactive) Assignee: Niu Yawei (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Severity: 2
Rank (Obsolete): 4885

 Description   

For our acceptance-small configuration we specify devices by-id instead of device name since the
device name occasionally changes. This causes a problem with sgpdd-survey.sh since sgpdd-survey
doesn't translate the alias to the device name.

== test 1: sgpdd-survey, mds, scsidevs == 15:30:35 (1301603435)
Loading modules from
/opt/cray/lustre-cray_gem_s/1.8.4_2.6.32.27_0.2.2_1.0000.5785.16.1-1.0000.25970.22.205/lib64/lustre
lnet.debug=-1
lnet.subsystem_debug=0xffb7e3ff
lnet options: ' accept=all'
=== mds === nid00035 === /dev/disk/by-id/scsi-3600a0b80005121d800001f7a4cd16b41-part1 ===
nid00035: + rslt=/tmp/sgpdd_survey size=1024 crghi=2 thrhi=2
scsidevs="/dev/disk/by-id/scsi-3600a0b80005121d800001f7a4cd16b41-part1"
/opt/cray/lustre-cray_gem_s/1.8.4_2.6.32.27_0.2.2_1.0000.5785.16.1-1.0000.25970.22.205/bin/sgpdd-survey
nid00035: Can't find SG device for /dev/disk/by-id/scsi-3600a0b80005121d800001f7a4cd16b41-part1,
testing for partition
nid00035: Can't find SG device /dev/disk/by-id/scsi-3600a0b80005121d800001f7a4cd16b41-part.

It would be nice if either sgpdd-survey or sgpdd-survey.sh would translate aliases to device names.
The attached patch modifies sgpdd-survey to do a 'readlink -f' on the device name if the device
path is something like "/dev/disk/by-*" and the device path is a symbolic link (maybe this is
redundant?).

This is from Oracle bug 24487.



 Comments   
Comment by Wally Wang (Inactive) [ 19/Jul/11 ]

The fix is in:

http://review.whamcloud.com/#change,1120

Comment by Niu Yawei (Inactive) [ 21/Aug/11 ]

Hi, Wally

If you want the patch being landed on master, you should add the gate keeper Oleg as the reviewer.

I opened a ticket LU-608 to port this patch to b1_8 and master, looks it's duplicated with this one. Could you port this patch to b1_8 too? Thank you.

Comment by Wally Wang (Inactive) [ 24/Aug/11 ]

For b1_8, please see:

http://review.whamcloud.com/#change,1284

Comment by Peter Jones [ 21/Sep/11 ]

Niu

You are already handling LU610 which this is a duplicate of

Peter

Comment by Build Master (Inactive) [ 18/Oct/11 ]

Integrated in lustre-master » x86_64,server,el5,ofa #300
LU-515 canonicalize the devices names

Oleg Drokin : f14d2b5feae5213ed243fb63702aa1eed7e0a8b1
Files :

  • lustre-iokit/sgpdd-survey/sgpdd-survey
Comment by Build Master (Inactive) [ 18/Oct/11 ]

Integrated in lustre-master » i686,client,el6,inkernel #300
LU-515 canonicalize the devices names

Oleg Drokin : f14d2b5feae5213ed243fb63702aa1eed7e0a8b1
Files :

  • lustre-iokit/sgpdd-survey/sgpdd-survey
Comment by Build Master (Inactive) [ 18/Oct/11 ]

Integrated in lustre-master » x86_64,server,el6,inkernel #300
LU-515 canonicalize the devices names

Oleg Drokin : f14d2b5feae5213ed243fb63702aa1eed7e0a8b1
Files :

  • lustre-iokit/sgpdd-survey/sgpdd-survey
Comment by Build Master (Inactive) [ 18/Oct/11 ]

Integrated in lustre-master » x86_64,client,el5,inkernel #300
LU-515 canonicalize the devices names

Oleg Drokin : f14d2b5feae5213ed243fb63702aa1eed7e0a8b1
Files :

  • lustre-iokit/sgpdd-survey/sgpdd-survey
Comment by Build Master (Inactive) [ 18/Oct/11 ]

Integrated in lustre-master » x86_64,client,el6,inkernel #300
LU-515 canonicalize the devices names

Oleg Drokin : f14d2b5feae5213ed243fb63702aa1eed7e0a8b1
Files :

  • lustre-iokit/sgpdd-survey/sgpdd-survey
Comment by Build Master (Inactive) [ 18/Oct/11 ]

Integrated in lustre-master » x86_64,client,ubuntu1004,inkernel #300
LU-515 canonicalize the devices names

Oleg Drokin : f14d2b5feae5213ed243fb63702aa1eed7e0a8b1
Files :

  • lustre-iokit/sgpdd-survey/sgpdd-survey
Comment by Build Master (Inactive) [ 18/Oct/11 ]

Integrated in lustre-master » x86_64,client,sles11,inkernel #300
LU-515 canonicalize the devices names

Oleg Drokin : f14d2b5feae5213ed243fb63702aa1eed7e0a8b1
Files :

  • lustre-iokit/sgpdd-survey/sgpdd-survey
Comment by Build Master (Inactive) [ 18/Oct/11 ]

Integrated in lustre-master » x86_64,client,el5,ofa #300
LU-515 canonicalize the devices names

Oleg Drokin : f14d2b5feae5213ed243fb63702aa1eed7e0a8b1
Files :

  • lustre-iokit/sgpdd-survey/sgpdd-survey
Comment by Build Master (Inactive) [ 18/Oct/11 ]

Integrated in lustre-master » i686,server,el5,inkernel #300
LU-515 canonicalize the devices names

Oleg Drokin : f14d2b5feae5213ed243fb63702aa1eed7e0a8b1
Files :

  • lustre-iokit/sgpdd-survey/sgpdd-survey
Comment by Build Master (Inactive) [ 18/Oct/11 ]

Integrated in lustre-master » i686,server,el6,inkernel #300
LU-515 canonicalize the devices names

Oleg Drokin : f14d2b5feae5213ed243fb63702aa1eed7e0a8b1
Files :

  • lustre-iokit/sgpdd-survey/sgpdd-survey
Comment by Build Master (Inactive) [ 18/Oct/11 ]

Integrated in lustre-master » i686,client,el5,ofa #300
LU-515 canonicalize the devices names

Oleg Drokin : f14d2b5feae5213ed243fb63702aa1eed7e0a8b1
Files :

  • lustre-iokit/sgpdd-survey/sgpdd-survey
Comment by Build Master (Inactive) [ 18/Oct/11 ]

Integrated in lustre-master » x86_64,server,el5,inkernel #300
LU-515 canonicalize the devices names

Oleg Drokin : f14d2b5feae5213ed243fb63702aa1eed7e0a8b1
Files :

  • lustre-iokit/sgpdd-survey/sgpdd-survey
Comment by Build Master (Inactive) [ 18/Oct/11 ]

Integrated in lustre-master » i686,server,el5,ofa #300
LU-515 canonicalize the devices names

Oleg Drokin : f14d2b5feae5213ed243fb63702aa1eed7e0a8b1
Files :

  • lustre-iokit/sgpdd-survey/sgpdd-survey
Comment by Build Master (Inactive) [ 18/Oct/11 ]

Integrated in lustre-master » i686,client,el5,inkernel #300
LU-515 canonicalize the devices names

Oleg Drokin : f14d2b5feae5213ed243fb63702aa1eed7e0a8b1
Files :

  • lustre-iokit/sgpdd-survey/sgpdd-survey
Comment by Niu Yawei (Inactive) [ 18/Oct/11 ]

landed to b1_8 and master.

Generated at Sat Feb 10 01:07:48 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.