Storcli tool 简单用法

./storcli64 /c0 show all

./storcli64 /cx/eall/sall show  显示物理磁盘信息

./storcli64 /cx/ex/sx set good/offline/online/missing  设置某块磁盘的状态

./storcli64 /c0 add vd r0 drives=65:8 wt nora 创建raid0

./storcli64 /c0 add vd r1 drives=65:0,65:1 wt nora 创建raid1

./storcli64 /c0 add vd r5 drives=65:8,65:9,65:10,65:11,65:12 wt nora 创建raid5

./storcli64 /c0 add vd r10 drives=65:8,65:9,65:10,65:11 pdperarray=2 wt nora 创建raid10

./storcli64 /c0/e8/s0 set jbod

./storcli64 /c0 set jbod=on 全局设置为JBOD 模式.

./storcli64 /cx/ex/sx secureerase

./storcli64 /cx/vx del 删除raid

ESXCLI Plugin format:

esxcli [options] {namespace}+ {cmd} [cmd options]

Example : esxcli storcli system show ctrlcount

ESXCLI plugin sample command output:

esxcli storcli system show ctrlcount
CLI Version = 007.2400.0000.0023 Aug 24, 2022
Operating system = VMkernel8.0.0
Status Code = 0
Status = Success
Description = None

Controller Count = 1

StorCLI command to ESXCLI plugin mapping:

===========================================================================================================================================================================================
Version commmand ESXCLI Plugin

storcli v esxcli storcli version

===========================================================================================================================================================================================
Controller commands ESXCLI Plugin

storcli /cx show eventloginfo esxcli storcli controller show eventloginfo
storcli /cx show sesmonitoring esxcli storcli controller show sesmonitoring
storcli /cx show failpdonsmarterror esxcli storcli controller show failpdonsmarterror
storcli /cx show freespace esxcli storcli controller show freespace
storcli /cx show cc|consistencycheck esxcli storcli controller show cc / esxcli storcli controller show consistencycheck
storcli /cx show ocr esxcli storcli controller show ocr
storcli /cx show sesmultipathcfg esxcli storcli controller show sesmultipathcfg
storcli /cx show esxcli storcli controller show basic
storcli /cx show all [logfile[=filename]] esxcli storcli controller show all
storcli /cx show preservedcache esxcli storcli controller show preservedcache
storcli /cx show bootdrive esxcli storcli controller show bootdrive
storcli /cx show bootwithpinnedcache esxcli storcli controller show bootwithpinnedcache
storcli /cx show activityforlocate esxcli storcli controller show activityforlocate
storcli /cx show copyback esxcli storcli controller show copyback
storcli /cx show jbod esxcli storcli controller show jbod
storcli /cx show autorebuild esxcli storcli controller show autorebuild
storcli /cx show autoconfig esxcli storcli controller show autoconfig
storcli /cx show cachebypass esxcli storcli controller show cachebypass
storcli /cx show usefdeonlyencrypt esxcli storcli controller show usefdeonlyencrypt
storcli /cx show prcorrectunconfiguredareas esxcli storcli controller show prcorrectunconfigureda
storcli /cx show batterywarning esxcli storcli controller show batterywarning
storcli /cx show abortcconerror esxcli storcli controller show abortcconerror
storcli /cx show ncq esxcli storcli controller show ncq
storcli /cx show configautobalance esxcli storcli controller show configautobalance
storcli /cx show maintainpdfailhistory esxcli storcli controller show maintainpdfailhistory
storcli /cx show restorehotspare esxcli storcli controller show restorehotspare
storcli /cx show bios esxcli storcli controller show bios
storcli /cx show alarm esxcli storcli controller show alarm
storcli /cx show deviceorderbyfirmware esxcli storcli controller show deviceorderbyfirmware
storcli /cx show foreignautoimport esxcli storcli controller show foreignautoimport
storcli /cx show directpdmapping esxcli storcli controller show directpdmapping
storcli /cx show rebuildrate esxcli storcli controller show rebuildrate
storcli /cx show loadbalancemode esxcli storcli controller show loadbalancemode
storcli /cx show eghs esxcli storcli controller show eghs
storcli /cx show cacheflushint esxcli storcli controller show cacheflushint
storcli /cx show prrate esxcli storcli controller show prrate
storcli /cx show ccrate esxcli storcli controller show ccrate
storcli /cx show bgirate esxcli storcli controller show bgirate
storcli /cx show dpm esxcli storcli controller show dpm
storcli /cx show sgpioforce esxcli storcli controller show sgpioforce
storcli /cx show reconrate esxcli storcli controller show reconrate
storcli /cx show spinupdrivecount esxcli storcli controller show spinupdrivecount
storcli /cx show wbsupport esxcli storcli controller show wbsupport
storcli /cx show spinupdelay esxcli storcli controller show spinupdelay
storcli /cx show coercion esxcli storcli controller show coercion
storcli /cx show limitMaxRateSATA esxcli storcli controller show limitmaxratesata
storcli /cx show HDDThermalPollInterval esxcli storcli controller show hddthermalpollinterval
storcli /cx show SSDThermalPollInterval esxcli storcli controller show ssdthermalpollinterval
storcli /cx show smartpollinterval esxcli storcli controller show smartpollinterval
storcli /cx show eccbucketsize esxcli storcli controller show eccbucketsize
storcli /cx show eccbucketleakrate esxcli storcli controller show eccbucketleakrate
storcli /cx show backplane esxcli storcli controller show backplane
storcli /cx show perfmode esxcli storcli controller show perfmode
storcli /cx show perfmodevalues esxcli storcli controller show perfmodevalues
storcli /cx show pi esxcli storcli controller show pi
storcli /cx show time esxcli storcli controller show time
storcli /cx show ds esxcli storcli controller show ds
storcli /cx show safeid esxcli storcli controller show safeid
storcli /cx show rehostinfo esxcli storcli controller show rehostinfo
storcli /cx show pci esxcli storcli controller show pci
storcli /cx show ASO esxcli storcli controller show aso
storcli /cx show linkconfig esxcli storcli controller show linkconfig
storcli /cx show securitykey keyid esxcli storcli controller show securitykeyid
storcli /cx show patrolRead esxcli storcli controller show patrolread / esxcli storcli controller show pr
storcli /cx show powermonitoringinfo esxcli storcli controller show powermonitoringinfo
storcli /cx show ldlimit esxcli storcli controller show ldlimit
storcli /cx show badblocks esxcli storcli controller show badblocks
storcli /cx show maintenance esxcli storcli controller show maintenance
storcli /cx show personality esxcli storcli controller show personality
storcli /cx show profile esxcli storcli controller show profile
storcli /cx show jbodwritecache esxcli storcli controller show jbodwritecache
storcli /cx show immediateio esxcli storcli controller show immediateio
storcli /cx show driveactivityled esxcli storcli controller show driveactivityled
storcli /cx show largeiosupport esxcli storcli controller show largeiosupport
storcli /cx show unmap esxcli storcli controller show unmap
storcli /cx show pdfaileventoptions esxcli storcli controller show pdfaileventoptions
storcli /cx show flushwriteverify esxcli storcli con

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值