Showing posts with label check disk. Show all posts
Showing posts with label check disk. Show all posts

Thursday, February 21, 2019

check hard disk status Raid 10

Install the new storcli to manage (LSI/AVAGO/Broadcom) MegaRAID controller under CentOS 7

Check Raid on CentOs 7
lspci | grep Mega
lspci | grep -i raid
download and install

1. Download Software

2. Install

unzip 007.0709.0000.0000_Unified_StorCLI.zip
unzip Unified_storcli_all_os.zip
yum install ./Unified_storcli_all_os/Linux/storcli-007.0709.0000.0000-1.noarch.rpm

3. command for check disk on Raid

/opt/MegaRAID/storcli/storcli64 /c0 show all              - Long detail
/opt/MegaRAID/storcli/storcli64 /c0 /eall /sall show    - Short detail

4. check serail number
/opt/MegaRAID/storcli/storcli64 /c0/eAll/sAll show all | egrep 'Device attributes|SN|Manufacturer|Model Number|Raw size|Speed'

* mdadm --query --detail /dev/md126

Monday, November 28, 2016

check hard disk RAID on linux

1. cat /proc/mdstat
2. check mainboad: dmidecode -t 2
3. mdadm --query --detail /dev/md126

Wednesday, March 23, 2016

check disk lvm on centos

การตรวจสอบ disk LVM บน CentOS
Ref. datadisk.co.uk
#pvs -v


#pvscan -v


#vgdisplay -v  ดูแบบละเอียด


#lvscan ตรวจสอบ disk active



ตรวจสอบ health disk LVM ต้องติดตั้ง package smartctl ดังนี้
Ref.
 install-smart-on-centos-6-4
enterprisenetworkingplanet.com
#yum search smart


#yum install smartmontools.x86_64

ตรวจสอบ health disk ใช้คำสั่งด้านบน pvs -v เพื่อดู /dev/sd? แล้วใช้คำสั่งต่อไปนี้ ดูภาพด้านล่าง
#smartctl -H /dev/sd?




Wednesday, April 1, 2015

check disk Wmware

Check on VMWare

1. Command #esxcli storage core device list ตรวจสอบ Hard disk ในเครื่อง

t10.ATA_____ST31500341AS________________________________________9VS2TVTN
Display Name: Local ATA Disk (t10.ATA_____ST31500341AS________________________________________9VS2TVTN)
Has Settable Display Name: true
Size: 1430799
Device Type: Direct-Access
Multipath Plugin: NMP
Devfs Path: /vmfs/devices/disks/t10.ATA_____ST31500341AS________________________________________9VS2TVTN
Vendor: ATA
Model: ST31500341AS
Revision: CC1H
SCSI Level: 5
Is Pseudo: false
Status: on
Is RDM Capable: false
Is Local: true
Is Removable: false
Is SSD: false
Is Offline: false
Is Perennially Reserved: false
Queue Full Sample Size: 0
Queue Full Threshold: 0
Thin Provisioning Status: unknown
Attached Filters:
VAAI Status: unknown
Other UIDs: vml.0100000000202020202020202020202020395653325456544e535433313530
Is Local SAS Device: false
Is Boot USB Device: false

2. Command #esxcli storage core device smart get -d t10.ATA_____ST31500341AS________________________________________9VS2TVTN

Parameter Value Threshold Worst
---------------------------- ----- --------- -----
Health Status OK N/A N/A
Media Wearout Indicator N/A N/A N/A
Write Error Count N/A N/A N/A
Read Error Count 104 6 99
Power-on Hours 59 0 59
Power Cycle Count 100 20 100
Reallocated Sector Count 100 36 100
Raw Read Error Rate 104 6 99
Drive Temperature 39 0 59
Driver Rated Max Temperature 61 45 41
Write Sectors TOT Count 200 0 200
Read Sectors TOT Count N/A N/A N/A
Initial Bad Block Count 100 99 100

3. Check all disk with command: /usr/lib/vmware/vm-support/bin/smartinfo.sh

#/usr/lib/vmware/vm-support/bin/smartinfo.sh 
SMART Information for disks.

Device:  t10.ATA_____KINGSTON_SV300S37A60G___________________50026B774507282B____
Errors: 
Error getting Smart Parameters: CANNOT open device


Device:  t10.ATA_____ST31500341AS________________________________________9VS3YGKG
Errors: 
Error getting Smart Parameters: CANNOT open device


Device:  t10.ATA_____WDC_WD20EARX2D00PASB0_________________________WD2DWCAZAD763430
Parameter                     Value  Threshold  Worst
-----------------------------------------------------
Health Status                 OK     N/A        N/A
Media Wearout Indicator       N/A    N/A        N/A
Write Error Count             N/A    N/A        N/A
Read Error Count              200    51         200
Power-on Hours                64     0          64
Power Cycle Count             100    0          100
Reallocated Sector Count      200    140        200
Raw Read Error Rate           200    51         200
Drive Temperature             110    0          90
Driver Rated Max Temperature  N/A    N/A        N/A
Write Sectors TOT Count       200    0          200
Read Sectors TOT Count        200    0          200

Initial Bad Block Count       N/A    N/A        N/A