태그 보관물: ssd

ssd

디스크가 SSD인지 HDD인지 확인하는 방법

디스크가 솔리드 스테이트 드라이브인지 하드 디스크인지 알고 싶습니다.

lshw설치되지 않았습니다. 나는 yum install lshwlshw라는 패키지가 없다고 말합니다. CentOS에 적합한 http://pkgs.repoforge.org/lshw/의 버전을 모르겠습니다 .

나는 그물을 검색하고 드라이브가 SSD인지 HDD인지 알 수있는 방법이 없습니다. 먼저 형식을 지정해야합니까?

결과 fdisk -l:

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00074f7d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          14      103424   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              14         536     4194304   82  Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3             536       14594   112921600   83  Linux

Disk /dev/sdc: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/sdb: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/sdd: 480.1 GB, 480103981056 bytes
255 heads, 63 sectors/track, 58369 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000



답변

리눅스는 자동으로 SSD를 감지하고 있기 때문에 커널 버전 2.6.29, 당신은 확인할 수 sda로 :

cat /sys/block/sda/queue/rotational

당신은 가야 1하드 디스크과 0SSD를 위해.

디스크가 RAID 컨트롤러와 같은 하드웨어에 의해 에뮬레이트 된 논리 장치 인 경우에는 작동하지 않을 수 있습니다.

자세한 내용은 이 답변 을 참조하십시오 …


답변

포함 lsblk( util-linux패키지의 일부 ) :

lsblk -d -o 이름, 로타
NAME ROTA
sda     0
sdb     0
sdc     1

where ROTA의미 rotational device( 10이면 거짓)


답변

공급 업체 정보를 검색 하려면 smartctl(설치하여 설치 smartmontools)를 사용 하십시오.

sudo smartctl -a /dev/sdb

이런 줄이 보이면

Rotation Rate: Solid State Device

그것은 SSD 드라이브 일 것입니다.


답변

VPS에서이 작업을 수행해야했지만 제공된 솔루션 중 어느 것도 효과가 없었습니다.

이 답변은 트릭을했다

https://serverfault.com/questions/551453/how-do-i-verify-that-my-hosting-provider-gave-me-ssds/551495#551495

드라이브에서 랜덤 데이터를 읽고 시간을 평가하는 것입니다.

time for i in `seq 1 1000`; do
    dd bs=4k if=/dev/sda count=1 skip=$(( $RANDOM * 128 )) >/dev/null 2>&1;
done

다음은 SSD에 대한 내 결과입니다

real    0m1.375s
user    0m0.285s
sys     0m0.944s

HDD

real    0m14.249s
user    0m0.752s
sys     0m6.284s


답변

다른 답변은 이미이 정보를 여러 가지 방법으로 얻는 방법을 알려줍니다 /proc. 그러나 여러 계층이있는 하이브리드 SAN 어레이와 같은 가상화가 있거나 Linux 시스템이 가상 시스템 인 경우 (Linux에서 디스크를 기본 SCSI 회전 디스크로보고 할 수있는 경우) 이러한 모든 메커니즘이 있어야합니다. 하드웨어가 무엇인지에 관계없이)


답변

확인하십시오 cat /proc/scsi/scsi. 거기에서 정확한 디스크 모델을 볼 수 있습니다. 그런 다음 모델을 Google에 연결하여 정보를 찾을 수 있습니다.


답변

이것은 오래된 게시물이지만 우연히 발견 한 다른 방법을 공유하고 싶었습니다.

sg_vpd --page=bdc /dev/sda

이 명령은 블록 장치 특성에 대한 주요 제품 데이터를 가져옵니다. 회전식 헤드 디스크의 경우 출력에 다음이 포함됩니다. 공칭 회전 속도 : 7200 rpm SSD의 경우 다음이 포함됩니다. 비 회전 매체 (예 : 솔리드 스테이트)