gushiren

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

http://www.cnblogs.com/zhangxinglong/p/5585139.html

[root@192e168e100e27 ~]# fdisk -l
 
Disk /dev/nvme0n1: 1601.2 GB, 1601183940608 bytes, 3127312384 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
 
 
Disk /dev/nvme1n1: 1601.2 GB, 1601183940608 bytes, 3127312384 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
 
 
Disk /dev/sdm: 480.1 GB, 480070426624 bytes, 937637552 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 262144 bytes / 262144 bytes
Disk label type: dos
Disk identifier: 0x00017fe7
 
   Device Boot      Start         End      Blocks   Id  System
/dev/sdm1   *        2048   937506479   468752216   83  Linux
/dev/sdm2       937506480   937637551       65536    c  W95 FAT32 (LBA)
Partition 2 does not start on physical sector boundary.
 
Disk /dev/sda: 4000.8 GB, 4000787030016 bytes, 7814037168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
 
 
Disk /dev/sdb: 4000.8 GB, 4000787030016 bytes, 7814037168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
 
 
Disk /dev/sdf: 4000.8 GB, 4000787030016 bytes, 7814037168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
 
 
Disk /dev/sdc: 4000.8 GB, 4000787030016 bytes, 7814037168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
 
 
Disk /dev/sdg: 4000.8 GB, 4000787030016 bytes, 7814037168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
 
 
Disk /dev/sdd: 4000.8 GB, 4000787030016 bytes, 7814037168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
 
 
Disk /dev/sde: 4000.8 GB, 4000787030016 bytes, 7814037168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
 
 
Disk /dev/sdj: 4000.8 GB, 4000787030016 bytes, 7814037168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
 
 
Disk /dev/sdl: 4000.8 GB, 4000787030016 bytes, 7814037168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
 
 
Disk /dev/sdk: 4000.8 GB, 4000787030016 bytes, 7814037168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
 
 
Disk /dev/sdh: 4000.8 GB, 4000787030016 bytes, 7814037168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
 
 
Disk /dev/sdi: 4000.8 GB, 4000787030016 bytes, 7814037168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
查看raid卡信息
[root@192e168e100e27 yum.repos.d]# hpssacli ctrl all show status
 
Smart HBA H240 in Slot 3 (RAID Mode)
   Controller Status: OK
  
查看raid状态
[root@192e168e100e27 yum.repos.d]# hpssacli ctrl slot=3 ld all show
 
Smart HBA H240 in Slot 3
 
   array A
 
      logicaldrive 1 (447.1 GB, RAID 1, OK)
  
查看物理硬盘状态
[root@192e168e100e27 yum.repos.d]#   hpssacli ctrl slot=3 pd all show status 
 
   physicaldrive 1I:4:1 (port 1I:box 4:bay 1, 480.1 GB): OK
   physicaldrive 1I:4:2 (port 1I:box 4:bay 2, 480.1 GB): OK
 
 
  
查看物理硬盘
[root@192e168e100e27 yum.repos.d]#  hpssacli ctrl slot=3 pd all show
 
Smart HBA H240 in Slot 3
 
   array A
 
      physicaldrive 1I:4:1 (port 1I:box 4:bay 1, Solid State SATA, 480.1 GB, OK)
      physicaldrive 1I:4:2 (port 1I:box 4:bay 2, Solid State SATA, 480.1 GB, OK)
  
查看裸机磁盘信息
[root@192e168e100e27 ~]# hpssacli ctrl slot=3 logicaldrive 1 show
 
Smart HBA H240 in Slot 3
 
   array A
 
      Logical Drive: 1
         Size: 447.1 GB
         Fault Tolerance: 1
         Heads: 255
         Sectors Per Track: 32
         Cylinders: 65535
         Strip Size: 256 KB
         Full Stripe Size: 256 KB
         Status: OK
         MultiDomain Status: OK
         Caching:  Disabled
         Unique Identifier: 600508B1001C4E74DC449B2B39F2C592
         Disk Name: /dev/sdm          Mount Points: / 447.0 GB Partition Number 2
         OS Status: LOCKED
         Logical Drive Label: 00307D90PDNNK0BRH970WR8DA0
         Mirror Group 0:
            physicaldrive 1I:4:1 (port 1I:box 4:bay 1, Solid State SATA, 480.1 GB, OK)
         Mirror Group 1:
            physicaldrive 1I:4:2 (port 1I:box 4:bay 2, Solid State SATA, 480.1 GB, OK)
         Drive Type: Data
         LD Acceleration Method: HP SSD Smart Pat
  
[root@192e168e100e27 ~]# hpssacli ctrl slot=3  physicaldrive  1I:4:2 show
 
Smart HBA H240 in Slot 3
 
   array A
 
      physicaldrive 1I:4:2
         Port: 1I
         Box: 4
         Bay: 2
         Status: OK
         Drive Type: Data Drive
         Interface Type: Solid State SATA
         Size: 480.1 GB
         Native Block Size: 4096
         Firmware Revision: 4IYVHPG1
         Serial Number: PHYS738102JD480BGN 
         Model: ATA     VK000480GWJPE  
         SATA NCQ Capable: True
         SATA NCQ Enabled: True
         Current Temperature (C): 31
         Maximum Temperature (C): 38
         Usage remaining: 99.98%
         Power On Hours: 3391
         Estimated Life Remaining based on workload to date: 706317 days
         SSD Smart Trip Wearout: False
         PHY Count: 1
         PHY Transfer Rate: 6.0Gbps
         Drive Authentication Status: OK
         Carrier Application Version: 11
         Carrier Bootloader Version: 6
列出RAID卡控制器的信息
[root@192e168e100e62 ~]# hpssacli
HP Smart Storage Administrator CLI 2.0.22.0
Detecting Controllers...Done.
Type "help" for a list of supported commands.
Type "exit" to close the console.
 
=>  ctrl all show detail config
 
Smart HBA H240 in Slot 3 (RAID Mode)
   Bus Interface: PCI
   Slot: 3
   Serial Number: PDNNK0BRH970NI
   Cache Serial Number: PDNNK0BRH970NI
   RAID 6 (ADG) Status: Disabled
   Controller Status: OK
   Hardware Revision: B
   Firmware Version: 5.52
   Rebuild Priority: High
   Surface Scan Delay: 3 secs
   Surface Scan Mode: Idle
   Queue Depth: Automatic
   Monitor and Performance Delay: 60  min
   Elevator Sort: Enabled
   Degraded Performance Optimization: Disabled
   Inconsistency Repair Policy: Disabled
   Wait for Cache Room: Disabled
   Surface Analysis Inconsistency Notification: Disabled
   Post Prompt Timeout: 15 secs
   Cache Board Present: False
   Drive Write Cache: Disabled
   Total Cache Size: 256 MB
   SATA NCQ Supported: True
   Spare Activation Mode: Activate on physical drive failure (default)
   Controller Temperature (C): 57
   Number of Ports: 2 Internal only
   Encryption: Disabled
   Encryption Login Status: Not Logged In
   Encryption Allow Plaintext Volumes: Disallow
   Encryption Key Management Mode: Not Set
   Encryption Supported: True
   Encryption RTC SRAM Status: Passed
   Encryption Master Key reset in Progress: False
   Encryption Local Key Cache Enabled: False
   Encryption Crypto Officer Password: Not Set
   Encryption User Password: Not Set
   Encryption License Installed: True
   Encryption FW Locked for Update: Unlocked
   Encryption Controller Password: Not Set
   Encryption Local Key Cache Supported: True
   Encryption Controller Locked: Unlocked
   Encryption Has Suspended Controller Password: False
   Encryption Controller Password Unlock Attempts Remaining: 0
   Encryption Logical Drive(s) Locked For Missing Controller Password: False
   Encryption Password Recovery Parameters Set: False
   Encryption Master Key: Not Set
   Encryption Remote Mode Master Key Mismatch: False
   Encryption/HP SSD Smart Path Mixing Supported: True
   Encryption/HP SmartCache Mixing Supported: False
   Driver Name: hpsa
   Driver Version: 3.4.10
   Driver Supports HP SSD Smart Path: True
   Negotiated PCIe Data Rate: PCIe 3.0 x8 (7880 MB/s)
   Controller Mode: RAID Mode
   Controller Mode Reboot: Not Required
   Latency Scheduler Setting: Disabled
   Current Power Mode: MaxPerformance
 
 
   Internal Drive Cage at Port 1I, Box 4, OK
      Power Supply Status: Not Redundant
      Serial Number:
      Drive Bays: 2
      Port: 1I
      Box: 4
      Location: Internal
 
   Physical Drives
Smart HBA H240 in Slot 3
      physicaldrive 1I:4:1 (port 1I:box 4:bay 1, Solid State SATA, 480.1 GB, OK)
Smart HBA H240 in Slot 3
      physicaldrive 1I:4:2 (port 1I:box 4:bay 2, Solid State SATA, 480.1 GB, OK)
 
   Array: A
      Interface Type: Solid State SATA
      Unused Space: 0  MB
      Status: OK
      MultiDomain Status: OK
      Array Type: Data
      HP SSD Smart Path: enable
 
 
 
      Logical Drive: 1
         Size: 447.1 GB
         Fault Tolerance: 1
         Heads: 255
         Sectors Per Track: 32
         Cylinders: 65535
         Strip Size: 256 KB
         Full Stripe Size: 256 KB
         Status: OK
         MultiDomain Status: OK
         Caching:  Disabled
         Unique Identifier: 600508B1001C2D64A75B6E41A3467347
         Disk Name: /dev/sdm          Mount Points: / 447.0 GB Partition Number 2
         OS Status: LOCKED
         Logical Drive Label: 003083A1PDNNK0BRH970NI35AF
         Mirror Group 0:
      Smart HBA H240 in Slot 3
      physicaldrive 1I:4:1 (port 1I:box 4:bay 1, Solid State SATA, 480.1 GB, OK)
         Mirror Group 1:
      Smart HBA H240 in Slot 3
      physicaldrive 1I:4:2 (port 1I:box 4:bay 2, Solid State SATA, 480.1 GB, OK)
         Drive Type: Data
         LD Acceleration Method: HP SSD Smart Path
 
      physicaldrive 1I:4:1
         Port: 1I
         Box: 4
         Bay: 1
         Status: OK
         Drive Type: Data Drive
         Interface Type: Solid State SATA
         Size: 480.1 GB
         Native Block Size: 4096
         Firmware Revision: 4IYVHPG1
         Serial Number: PHYS738102HC480BGN 
         Model: ATA     VK000480GWJPE  
         SATA NCQ Capable: True
         SATA NCQ Enabled: True
         Current Temperature (C): 27
         Maximum Temperature (C): 36
         Usage remaining: 99.98%
         Power On Hours: 3400
         Estimated Life Remaining based on workload to date: 708191 days
         SSD Smart Trip Wearout: False
         PHY Count: 1
         PHY Transfer Rate: 6.0Gbps
         Drive Authentication Status: OK
         Carrier Application Version: 11
         Carrier Bootloader Version: 6
 
      physicaldrive 1I:4:2
         Port: 1I
         Box: 4
         Bay: 2
         Status: OK
         Drive Type: Data Drive
         Interface Type: Solid State SATA
         Size: 480.1 GB
         Native Block Size: 4096
         Firmware Revision: 4IYVHPG1
         Serial Number: PHYS738200FN480BGN 
         Model: ATA     VK000480GWJPE  
         SATA NCQ Capable: True
         SATA NCQ Enabled: True
         Current Temperature (C): 29
         Maximum Temperature (C): 37
         Usage remaining: 99.98%
         Power On Hours: 3400
         Estimated Life Remaining based on workload to date: 708191 days
         SSD Smart Trip Wearout: False
         PHY Count: 1
         PHY Transfer Rate: 6.0Gbps
         Drive Authentication Status: OK
         Carrier Application Version: 11
         Carrier Bootloader Version: 6

 

posted on 2018-08-21 14:27  gushiren  阅读(1067)  评论(0编辑  收藏  举报