LinuxQuestions.org
Register a domain and help support LQ
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 11-17-2012, 09:38 AM   #1
shreyaswaghmare
LQ Newbie
 
Registered: Jun 2007
Posts: 3

Rep: Reputation: 0
Question How to find SAS Port Attributes from userspace


How to find SAS Port attributes from linux userspace.
e.g. SAS Port Type, SAS Port State, SAS Port Protocol, Number of discovered ports etc.

I tried to find this in /sysfs but could not find these attributes.

Alternately for FC, /sysfs has much more information compare to SAS.

Can someone help me on how can i find these values from linux userspace?

-Shreyas

Last edited by shreyaswaghmare; 11-17-2012 at 09:39 AM.
 
Old 11-19-2012, 09:01 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 1,773

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Under sysfs, FC has a generic transport layer fc_host and a SCSI protocol driver scsi_host. SAS has the same SCSI protocol but there is no generic transport so you only have what all SCSI ports provide. For example, the state of the port:
Code:
cat /sys/class/scsi_host/host2/state 
running
Disks connected to host port 2:
Code:
ls /sys/class/scsi_disk/2:*
 
Old 11-20-2012, 05:51 AM   #3
shreyaswaghmare
LQ Newbie
 
Registered: Jun 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks smallpond,

If we cannot find this through sysfs then is there any other way i can find them out?
like probing driver or something similar? any idea on how can it be done?
 
Old 11-20-2012, 07:07 AM   #4
PierreB.
Member
 
Registered: Apr 2012
Location: Grenoble
Distribution: Rhel[456],CentOS[56],fedora18
Posts: 33

Rep: Reputation: Disabled
Just in case, if you are using dell servers, you can use omreport and omconfig (both needs to be installed) to get this kind of informations.

Please check out this page and this other one for omreport and omconfig useful information (it is something i wrote), hope this helps.
 
  


Reply

Tags
port, sas, sysfs


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
24 port SAS host adapter recommendations. misterpat Linux - Hardware 1 12-24-2011 12:26 PM
Recommended / Supported 8 port SAS/SATA PCI-E Card droyden Linux - Hardware 3 07-01-2011 08:33 AM
What is the command to find listings/attributes of SAN disk drive from the server? Linuxunleash Linux - General 2 08-15-2008 10:35 AM
RHEL 5 LSI megasr SAS RAID does not find VolGroup after install thetawave84 Linux - Newbie 1 01-17-2008 04:12 AM
Using serial port card(PCMCIA) with IPAQ running Linux, can't find ttyS0 port d2army Linux - Laptop and Netbook 0 11-12-2005 09:07 PM


All times are GMT -5. The time now is 05:31 AM.

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