LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-06-2012, 04:00 AM   #1
wizztoka
LQ Newbie
 
Registered: Dec 2012
Posts: 3

Rep: Reputation: Disabled
Sata disk seen as sgn, but no sdn device


Hi,
recently one of our disk from our storage (CyberStore 316S, is supermicro based with Openfiler NSA 2.3 running) crashed. We have an RAID 10 with two spares, the array is already recovered and I want to add a new disk as spare, so I remove the old one and hot swapped it with a new one, using the typical orders:
remove disk from array
echo 1 > /sys/block/device-name/device/delete
swap disks
echo "- - -" > /sys/class/scsi_host/hosth/scan

After that:
- The system can see the new scsi disk but only as a generic sgn device /dev/sg5

- The lights in the bay of this disk are totally off.

- The disks that we had previously are model ST3750528AS and the new one is model ST3750640AS (same expect except from the cache size)

some output / log
lsscsi

[0:0:0:0] disk ATA ST9160412AS 0002 -
[1:0:0:0] disk ATA ST9160412AS 0002 -
[2:0:0:0] cd/dvd TSSTcorp CDDVDW SN-S083C SB01 -
[6:1:8:0] disk ST3750528AS CC38 -
[6:1:9:0] disk ST3750528AS CC38 -
[6:1:10:0] disk ST3750640AS 3.AA - <--- This is the disk
[6:1:11:0] disk ST3750528AS CC38 -
[6:1:12:0] disk ST3750528AS CC38 -
[6:1:13:0] disk ST3750528AS CC38 -
[6:1:14:0] disk ST3750528AS CC38 -
[6:1:15:0] disk ST3750528AS CC38 -
[6:1:16:0] disk ST3750528AS CC38 -
[6:1:17:0] disk ST3750528AS CC38 -
[6:1:18:0] disk ST3750528AS CC38 -
[6:1:19:0] disk ST3750528AS CC38 -
[6:1:20:0] disk ST3750528AS CC38 -
[6:1:21:0] disk ST3750528AS CC38 -
[6:1:22:0] disk ST3750528AS CC38 -
[6:1:23:0] disk ST31000528AS CC38 -
[6:3:0:0] enclosu LSILOGIC SASX28 A.0 9 -

- There is no map between sg5 and a sdN disk

/dev/sg0 /dev/sda
/dev/sg1 /dev/sdb
/dev/sg2 /dev/scd0
/dev/sg3 /dev/sdc
/dev/sg4 /dev/sdd
/dev/sg5
/dev/sg6 /dev/sdf
/dev/sg7 /dev/sdg
/dev/sg8 /dev/sdh
/dev/sg9 /dev/sdi
/dev/sg10 /dev/sdj
/dev/sg11 /dev/sdk
/dev/sg12 /dev/sdl
/dev/sg13 /dev/sdm
/dev/sg14 /dev/sdn
/dev/sg15 /dev/sdo
/dev/sg16 /dev/sdp
/dev/sg17 /dev/sdq
/dev/sg18 /dev/sdr
/dev/sg19

- This is the log of the scsi bus when I add the disk:

[9171308.109443] scsi 6:1:10:0: Direct-Access ST3750640AS 3.AA PQ: 1 ANSI: 5
[9171308.110365] scsi 6:1:10:0: Attached scsi generic sg5 type 0

compared to when the system started with the old disk:

[ 11.207104] scsi 6:1:10:0: Direct-Access ST3750528AS CC38 PQ: 0 ANSI: 5
[ 11.983204] sd 6:1:10:0: [sde] 1463791616 512-byte hardware sectors: (749 GB/697 GiB)
[ 11.984295] sd 6:1:10:0: [sde] Write Protect is off
[ 11.984298] sd 6:1:10:0: [sde] Mode Sense: 5b 00 10 08
[ 11.986456] sd 6:1:10:0: [sde] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 12.001350] sd 6:1:10:0: [sde] 1463791616 512-byte hardware sectors: (749 GB/697 GiB)
[ 12.002451] sd 6:1:10:0: [sde] Write Protect is off
[ 12.002455] sd 6:1:10:0: [sde] Mode Sense: 5b 00 10 08
[ 12.004614] sd 6:1:10:0: [sde] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 12.005012] sd 6:1:10:0: [sde] Attached SCSI removable disk
[ 12.005066] sd 6:1:10:0: Attached scsi generic sg5 type 0

I'm not sure of the issue, maybe this disk model has any problem, the issue that there is no light in the bay annoys me but maybe I'm missing something, the system can see the disk but dont create the sdn device associated, anyway cant see any more log of errors with the drive.
Thanks in Advance
 
Old 12-06-2012, 11:13 AM   #2
wizztoka
LQ Newbie
 
Registered: Dec 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Just a update, I run the command sg_scan -i, showing the following:
Code:
/dev/sg0: scsi0 channel=0 id=0 lun=0 [em]
    ATA       ST9160412AS       0002 [rmb=0 cmdq=0 pqual=0 pdev=0x0] 
/dev/sg1: scsi1 channel=0 id=0 lun=0 [em]
    ATA       ST9160412AS       0002 [rmb=0 cmdq=0 pqual=0 pdev=0x0] 
/dev/sg2: scsi2 channel=0 id=0 lun=0 [em]
    TSSTcorp  CDDVDW SN-S083C   SB01 [rmb=1 cmdq=0 pqual=0 pdev=0x5] 
/dev/sg3: scsi6 channel=1 id=8 lun=0 [em]
              ST3750528AS       CC38 [rmb=0 cmdq=1 pqual=0 pdev=0x0] 
/dev/sg4: scsi6 channel=1 id=9 lun=0 [em]
              ST3750528AS       CC38 [rmb=0 cmdq=1 pqual=0 pdev=0x0] 
/dev/sg5: scsi6 channel=1 id=10 lun=0 [em]
              ST3750640AS       3.AA [rmb=0 cmdq=1 pqual=1 pdev=0x0] 
/dev/sg6: scsi6 channel=1 id=11 lun=0 [em]
              ST3750528AS       CC38 [rmb=0 cmdq=1 pqual=0 pdev=0x0] 
/dev/sg7: scsi6 channel=1 id=12 lun=0 [em]
              ST3750528AS       CC38 [rmb=0 cmdq=1 pqual=0 pdev=0x0] 
/dev/sg8: scsi6 channel=1 id=13 lun=0 [em]
              ST3750528AS       CC38 [rmb=0 cmdq=1 pqual=0 pdev=0x0] 
/dev/sg9: scsi6 channel=1 id=14 lun=0 [em]
              ST3750528AS       CC38 [rmb=0 cmdq=1 pqual=0 pdev=0x0] 
/dev/sg10: scsi6 channel=1 id=15 lun=0 [em]
              ST3750528AS       CC38 [rmb=0 cmdq=1 pqual=0 pdev=0x0] 
/dev/sg11: scsi6 channel=1 id=16 lun=0 [em]
              ST3750528AS       CC38 [rmb=0 cmdq=1 pqual=0 pdev=0x0] 
/dev/sg12: scsi6 channel=1 id=17 lun=0 [em]
              ST3750528AS       CC38 [rmb=0 cmdq=1 pqual=0 pdev=0x0] 
/dev/sg13: scsi6 channel=1 id=18 lun=0 [em]
              ST3750528AS       CC38 [rmb=0 cmdq=1 pqual=0 pdev=0x0] 
/dev/sg14: scsi6 channel=1 id=19 lun=0 [em]
              ST3750528AS       CC38 [rmb=0 cmdq=1 pqual=0 pdev=0x0] 
/dev/sg15: scsi6 channel=1 id=20 lun=0 [em]
              ST3750528AS       CC38 [rmb=0 cmdq=1 pqual=0 pdev=0x0] 
/dev/sg16: scsi6 channel=1 id=21 lun=0 [em]
              ST3750528AS       CC38 [rmb=0 cmdq=1 pqual=0 pdev=0x0] 
/dev/sg17: scsi6 channel=1 id=22 lun=0 [em]
              ST3750528AS       CC38 [rmb=0 cmdq=1 pqual=0 pdev=0x0] 
/dev/sg18: scsi6 channel=1 id=23 lun=0 [em]
              ST31000528AS      CC38 [rmb=0 cmdq=1 pqual=0 pdev=0x0] 
/dev/sg19: scsi6 channel=3 id=0 lun=0 [em]
    LSILOGIC  SASX28 A.0           9 [rmb=0 cmdq=1 pqual=0 pdev=0xd]
been the disk /dev/sg5 (the new one) the only one having the parameter pqual=1.
Searching a little, this parameter is "Peripheral Qualifier" but I can't get clear what is about or if can have something to do with the issue.
Btw, I tested the disk in a windows box as a normal SATA disk and I am been able of see the disk and partition without problem.
 
  


Reply



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
Tape Loader Device /dev/sgN is changed after each reboot xunil321 SUSE / openSUSE 1 10-01-2009 10:44 AM
Internal SATA Drive and external SATA Disk Array. bruceharbin Linux - Hardware 1 05-25-2009 12:33 AM
sata hard disk is showing hd device bharatlalgupta Red Hat 5 03-17-2009 01:40 AM
sata hard disk is showing hd device bharatlalgupta Linux - General 1 03-16-2009 11:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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