Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

What is the correct scsi pass thru to get the >2 TB disk capacity?

Masthan
Advisor

What is the correct scsi pass thru to get the >2 TB disk capacity?


Hi All,

I connected a 2097151 MB LUN to my RHEL4 x86 machine. To get a disk capacity my application uses scsi pass thrus. I want to know the right scsi pass thru command to get the >2 TB LUN capacity. Actually I tried with scsi passthru "Read Capacity (16)" command but no luck. I am getting the following error with "Read Capacity (16)" command.

Read Capacity (16) failed on /dev/sdq!
Sense Key = 5 = ILLEGAL REQUEST, Sense Code/Qualifier = (0x24, 0)
Request Sense Data:
Error code ...................... : 0x70 = Current Error
Information fields valid ........ : No
Segment number .................. : 0x0
Sense Key ....................... : 0x5 = ILLEGAL REQUEST
Information byte 3 .............. : 0x0
Information byte 2 .............. : 0x0
Information byte 1 .............. : 0x0
Information byte 0 .............. : 0x0
Additional sense length ......... : 0x58
Command information byte 3 ...... : 0x0
Command information byte 2 ...... : 0x0
Command information byte 1 ...... : 0x0
Command information byte 0 ...... : 0x0
Additional sense code/qualifier . : (0x24, 0)
Field replaceable unit code ..... : 0x0
Additional sense bytes .......... : 0x0 0x0 0x0 0x9e 0x80 0xd4 0x28 0xd4

Your help is appreciated.

Regards
Masthan D