¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 96°Ç
   
[Linux Command] DISK Link ¼ÓµµÈ®ÀÎ
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2015-05-14 (¸ñ) 11:54 Á¶È¸ : 4042
±ÛÁÖ¼Ò :
                          



¸®´ª½º ¸í·É¾î¸¦ ÀÌ¿ëÇؼ­ µð½ºÅ© Á¤º¸¿Í ¸µÅ©¼Óµµ¸¦ È®ÀÎÇÏ´Â ¹æ¹ýÀÔ´Ï´Ù. 
½ÇÁ¦ µð½ºÅ© ¸µÅ©¼Óµµ´Â ¸ÞÀκ¸µå¿Í µð½ºÅ©¿¡¼­ ¸ðµÎ Áö¿øµÇ¾î¾ß ¿øÇÏ´Â ¼Óµµ°¡ ³ª¿À±â¿¡ Àß È®ÀÎÇϼż­ ÀÌ¿ëÇÏ¿©¾ß ÇÕ´Ï´Ù. 
¼Õ½±°Ô È®ÀÎÇÏ´Â ¹æ¹ýÀ¸·Î ¾Æ·¡ 4°³Á¤µµ·Î ¿ä¾àÇØ º¼ ¼ö ÀÖÀ»°Å °°½À´Ï´Ù.

¡Ø SATA DISK Revision
SATA REVISION => SPEED ({Gbit|MB}/s)
SATA revision 1.0 => 1.5 Gbit/s, 150 MB/s
SATA revision 2.0 => 3 Gbit/s, 300 MB/s
SATA revision 3.0 => 6 Gbit/s, 600 MB/s
SATA revision 3.2 => 16 Gbit/s, 1969 MB/s

1. dmesg ·Î±×·Î È®ÀÎ
# dmesg | grep -i sata | grep 'link up'
[    2.569676] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    2.569697] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    2.569718] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    2.569746] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)


2. smartctl ¸í·É¾î
 :: smartctl ÆÐÅ°Áö°¡ ¾øÀ»°æ¿ì ¼³Ä¡
# apt-get install smartctlmontools
# smartctl -a /dev/sdb | grep "^SATA"
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
# smartctl -a /dev/sdc | grep "^SATA"
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
# smartctl -a /dev/sdd | grep "^SATA"
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
# smartctl -a /dev/sde | grep "^SATA"
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)


3. hdparm ¸í·É¾î 
# hdparm -I /dev/sdb | egrep "Model|speed|Transport"
Model Number:       ST3000DM001-1CH166                      
Transport:          Serial, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
  * Gen1 signaling speed (1.5Gb/s)
  * Gen2 signaling speed (3.0Gb/s)
  * Gen3 signaling speed (6.0Gb/s)
  * SMART Command Transport (SCT) feature set
# hdparm -I /dev/sdc | egrep "Model|speed|Transport"
Model Number:       ST3000DM001-1ER166                      
Transport:          Serial, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
  * Gen1 signaling speed (1.5Gb/s)
  * Gen2 signaling speed (3.0Gb/s)
  * Gen3 signaling speed (6.0Gb/s)
  * SMART Command Transport (SCT) feature set
# hdparm -I /dev/sdd | egrep "Model|speed|Transport"
Model Number:       ST3000DM001-1ER166                      
Transport:          Serial, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
  * Gen1 signaling speed (1.5Gb/s)
  * Gen2 signaling speed (3.0Gb/s)
  * Gen3 signaling speed (6.0Gb/s)
  * SMART Command Transport (SCT) feature set
# hdparm -I /dev/sde | egrep "Model|speed|Transport"
Model Number:       ST3000DM001-1CH166                      
Transport:          Serial, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
  * Gen1 signaling speed (1.5Gb/s)
  * Gen2 signaling speed (3.0Gb/s)
  * Gen3 signaling speed (6.0Gb/s)
  * SMART Command Transport (SCT) feature set


4. /sys(½Ã½ºÅÛÁ¤º¸)³» Á¤º¸¸¦ Shell script ÀÌ¿ëÇؼ­ È®ÀÎ
!/bin/bash
for i in `grep -l Gbps /sys/class/ata_link/*/sata_spd`; do
 echo Link "${i%/*}" Speed `cat $i`
 cat "${i%/*}"/device/dev*/ata_device/dev*/id | perl -nE 's/([0-9a-f]{2})/print chr hex $1/gie' | echo "    " Device `strings` | cut -f 1-3
done

>>
Link /sys/class/ata_link/link1 Speed 6.0 Gbps
     Device Z1F55V2X CC29 ST3000DM001-1CH166 4k}iAc4i IAc@ ]P
Link /sys/class/ata_link/link2 Speed 6.0 Gbps
     Device Z5002Q7H CC43 ST3000DM001-1ER166 4k}iAc4i IAc@ ]P
Link /sys/class/ata_link/link3 Speed 3.0 Gbps
     Device Z5002QGC CC43 ST3000DM001-1ER166 4k}iAc4i IAc@ ]P
Link /sys/class/ata_link/link4 Speed 3.0 Gbps
     Device Z1F54ZFX CC29 ST3000DM001-1CH166 4k}iAc4i IAc@ ]P

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.