Solaris and Linux
Friday, September 19, 2025
Types of Dynamic Auto Scaling Policies
Types of Dynamic Auto Scaling Policies
Target Tracking Scaling Policy (most common, easiest)
Works like a thermostat.
You set a target metric (e.g., keep average CPU at 50%).
Auto Scaling adds/removes instances to maintain that target.
Example: If CPU goes above 50%, new instances launch.
Step Scaling Policy
Responds in steps based on thresholds.
Example:
If CPU > 70% for 5 min → add 1 instance.
If CPU > 90% for 5 min → add 2 instances.
If CPU < 30% → remove 1 instance.
Simple Scaling Policy (legacy, rarely used now)
Adds or removes a fixed number of instances when a CloudWatch alarm is triggered.
Example: If CPU > 75%, add 2 instances.
Difference from Other Scaling Types
Dynamic Auto Scaling → Responds to real-time demand using metrics & policies.
Predictive Auto Scaling → Uses machine learning to forecast future demand (e.g., traffic spikes at 9AM every weekday).
Scheduled Scaling → You define fixed times for scaling (e.g., add 2 instances at 8AM, remove at 6PM).
Types of IAM Policies
Types of IAM Policies
1. Identity-based policies
Attached directly to IAM identities (users, groups, or roles).
Define what actions the identity can perform on which resources.
Examples:
AWS managed policies → Prebuilt by AWS (e.g., AmazonS3ReadOnlyAccess).
Customer managed policies → Created and managed by you in your account.
Inline policies → Embedded directly in a user/group/role (not reusable).
2. Resource-based policies
Attached directly to resources (not to identities).
Define who can access the resource and what they can do.
Common examples:
S3 bucket policies
SNS topic policies
SQS queue policies
KMS key policies
3. Permissions boundaries
A special type of policy that limits the maximum permissions an identity (user or role) can have.
Example: An IAM role has an attached policy allowing s3:*, but a permission boundary only allows s3:GetObject. The role can only perform GetObject.
4. Service control policies (SCPs) (AWS Organizations only)
Apply at the organization or OU (organizational unit) level.
Define what actions accounts within the org can or cannot do.
Do not grant permissions — only restrict.
5. Session policies
Policies that are passed when you assume a role or federate a user.
Only apply to the temporary session.
Example: Using sts:AssumeRole and passing a restrictive session policy.
✅ In short:
Identity-based (Managed: AWS or customer, Inline)
Resource-based
Permissions boundaries
Service Control Policies (SCPs)
Session policies
How to Create a multiple S3 buckets using terraform
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}
provider "aws" {
region = "us-east-1"
}
# List of bucket names
variable "bucket_names" {
type = list(string)
default = ["my-tf-bucket-1", "my-tf-bucket-2", "my-tf-bucket-3"]
}
resource "aws_s3_bucket" "buckets" {
for_each = toset(var.bucket_names)
bucket = each.value
tags = {
Name = each.value
Environment = "Dev"
}
}
Tuesday, September 9, 2025
Xen VM status
Domain-0 = Xen control domain (always running).
Other names = your VMs.
State field shows VM state:
r = running
b = blocked (waiting on I/O, usually normal for idle VMs)
p = paused
s = shutdown
c = crashed
d = dying
ORACLE Installation and Patching
https://dbastack.com/oracle-rac-database-upgrade-from-12c-to-19c-manually/
https://dbastack.com/oracle-rac-database-upgrade-12c-to-19c-autoupgrade/
https://dbastack.com/oracle-rac-database-upgrade-from-12c-to-19c-dbua/
https://dbastack.com/how-to-install-oracle-19c-binaries-on-linux/
Wednesday, August 6, 2025
How to update the ilom firmware from the local system.txt
date; time /usr/bin/ipmiflash -v write /tmp/ILOM-5_1_5_90_r161910-ORACLE_SERVER_E4-2C-oci-rom.pkg force script config delaybios warning=0; date | tee kcs.log
date; time /usr/bin/ipmiflash -v write /tmp/ILOM-5_1_5_20_r162439-ORACLE_SERVER_X9-2L-rom.pkg force script config warning=0; date | tee kcs.log
Tuesday, July 1, 2025
Storecli commands ( use with care)
.System Level Info Commands
Rich (BB code):
storcli show Show system summary
storcli show all Show detailed system info
storcli show ctrlcount Controller count
Misc System Level Commands
Rich (BB code):
storcli get rttdump (unlisted, win) Gets rttdump information
Controller > Informational Commands
Rich (BB code):
storcli /cx show Show controller summary
storcli /cx show all [logfile[=filename]] Show controller information
storcli /cx show AliLog [logfile[=filename]] (MR) Show every information of the controller
storcli /cx show pci (MR) Displays the pci information for the controller.
storcli /cx/px show all (MR) Show detailed PHY information.
storcli /cx/lnx show (MR) Show pcie lane information (usage: /c0/ln0,1,2...)
storcli /cx show bootdrive Show Boot Drive for the controller
storcli /cx show freespace (MR) Displays the free space information from all disk groups
storcli /cx show preservedcache (MR) Show Preserved Cache
storcli /cx show safeid (MR) Show the Safeid of controller
storcli /cx show rehostinfo (MR) Show the Host Information on controller
storcli /cx show wbsupport (MR) Displays write back support on the controller.
storcli /cx show powermonitoringinfo (MR) Displays the power drawn by controller.
storcli /cx show badblocks (MR) Shows the controllers BadBlocks
storcli /cx show boardname (IT) Displays boardname on the controller
storcli /cx show vpd (IT) Displays the contents of the VPD for the specified controller
Controller > Logging Commands
Rich (BB code):
storcli /cx show eventloginfo (MR) Displays overall event information
storcli /cx show events [[type= ] filter=<[info],[warning],[critical],[fatal]>
file= [logfile[=filename]]
storcli /cx delete events (MR) Delete event log.
storcli /cx show termlog [type=config|contents] [logfile[=filename]] (MR) Displays the firmware logs
storcli /cx set termlog[=on|off|offthisboot] (MR) Set termlog on or off
storcli /cx delete termlog (MR) Delete termlog
storcli /cx show pdfailevents [lastoneday] [lastseqnum=] [file=] (MR) Displays overall PD predictive failures event information
storcli /cx set pdfaileventoptions [detectionType=] [correctiveaction=] (MR) Set PD failure event options on controller
[errorThreshold=]
storcli /cx show pdfaileventoptions (MR) Show PD failure event options
Controller > Property Show/Set Commands
Rich (BB code):
storcli /cx show sesmonitoring (MR) Displays the sesmonitoring status
storcli /cx set sesmonitoring[=on|off]
storcli /cx show failpdonsmarterror (MR) Displays the failpdonsmarterror status
storcli /cx set failpdonsmarterror[=on|off]
storcli /cx show ocr (MR) Get Online Controller Reset Rate
storcli /cx set ocr=
storcli /cx show cc|consistencycheck (MR) Get Scheduled ConsistencyCheck(CC) Information
storcli /cx set consistencycheck|cc=[off|seq|conc] [delay=value]
starttime=yyyy/mm/dd hh] [excludevd=x-y,z|none]
storcli /cx show sesmultipathcfg (MR) Displays the association type for SES in Multipath config
storcli /cx set sesmultipathcfg=
storcli /cx show bootwithpinnedcache (MR) Displays whether booting of controller with pinned cache is enabled or disabled
storcli /cx set bootwithpinnedcache=
storcli /cx show activityforlocate (MR) Displays whether use disk activity for locate is enabled or disabled
storcli /cx set activityforlocate=
storcli /cx show copyback (MR) Displays whether copy back for drive types is enabled or disabled
storcli /cx set copyback= type=smartssd|smarthdd|all
storcli /cx show jbod (MR) Displays whether JBOD mode is enabled or disabled
storcli /cx set jbod= [force]
storcli /cx show autorebuild (MR) Displays whether automatic rebuild mode is enabled or disabled
storcli /cx set autorebuild=
storcli /cx show autoconfig (MR) Displays the type of autoconfig enabled
storcli /cx set autoconfig [= < none | R0 [immediate] | JBOD > ]
[[sesmgmt=on/off] [securesed=on/off]
[multipath=on/off] [multiinit=on/off]]
storcli /cx show cachebypass (MR) Displays whether cache-bypass-performance-improvement feature is enabled or disabled
storcli /cx set cachebypass=
storcli /cx show usefdeonlyencrypt (MR) Displays whether FDE drive-based encryption is enabled or disabled
storcli /cx set usefdeonlyencrypt=
storcli /cx show batterywarning (MR) Displays whether battery warnings are enabled or disabled
storcli /cx set batterywarning=
storcli /cx show abortcconerror (MR) Displays whether aborting of consistency check when it detects an inconsistency is enabled or disabled
storcli /cx set abortcconerror=
storcli /cx show ncq (MR) Displays whether native command queuing in SATA drives is enabled or disabled
storcli /cx set ncq=
storcli /cx show configautobalance (MR) Displays Whether Configuration AutoBalance enabled or disabled on the controller
storcli /cx set configautobalance=
storcli /cx show maintainpdfailhistory (MR) Displays whether maintaining of physical drive fail history is enabled or disabled
storcli /cx set maintainpdfailhistory=
storcli /cx show restorehotspare (MR) Displays whether restoring of hotspare on insertion of a failed drive is enabled or disabled
storcli /cx set restorehotspare=
storcli /cx show bios (MR) Displays the value of controller bios
storcli /cx set bios [state=] [Mode=] [abs=]
[DeviceExposure=]
storcli /cx show alarm (MR) Displays whether controller alarm is enabled or disabled
storcli /cx set alarm=
storcli /cx show foreignautoimport (MR) Show foreignautoimport
storcli /cx set foreignautoimport=
storcli /cx show directpdmapping (MR) Displays whether direct physical drive mapping is enabled or disabled
storcli /cx set directpdmapping=
storcli /cx show rebuildrate (MR) Displays rebuild rate of the drive in percentage
storcli /cx set rebuildrate=
storcli /cx show loadbalancemode (MR) Displays whether automatic load balancing is enabled or disabled
storcli /cx set loadbalancemode=
storcli /cx show eghs (MR) Displays whether use of hotspare drives for emergency feature is enabled or disabled
storcli /cx set eghs [state=] [eug=] [smarter=]
storcli /cx show cacheflushint (MR) Displays cache flush interval in seconds
storcli /cx set cacheflushint=
storcli /cx show prrate (MR) Dislays patrol read rate of the virtual drives in percentage
storcli /cx set prrate=
storcli /cx show prcorrectunconfiguredareas (MR) Displays whether correction of media errors during PR by writing 0s is enabled or disabled.
storcli /cx set prcorrectunconfiguredareas=
storcli /cx show ccrate (MR) Displays consistency check rate in percentage
storcli /cx set ccrate=
storcli /cx show bgirate (MR) Displays background initialization rate in percentage
storcli /cx set bgirate =
storcli /cx show dpm (MR) Displays Drive Performance Monitoring on controller
storcli /cx set dpm =
storcli /cx show sgpioforce (MR) Show force sgpio on controller
storcli /cx set sgpioforce =
storcli /cx show migraterate (MR) Displays data migration rate in percentage
storcli /cx set migraterate=
storcli /cx show spinupdrivecount (MR) Displays number of drives that are spun up
storcli /cx set spinupdrivecount=
storcli /cx show spinupdelay (MR) Displays spin up delay in seconds
storcli /cx set spinupdelay=
storcli /cx show coercion (MR) Displays the value of coercion mode
storcli /cx set coercion=
storcli /cx show limitMaxRateSATA (MR) Displays the value of limitMaxRateSATAto3G
storcli /cx set limitMaxRateSATA=on|off
storcli /cx show HDDThermalPollInterval (MR) Displays the value of HDD Thermal poll interval in seconds
storcli /cx set HDDThermalPollInterval=
storcli /cx show SSDThermalPollInterval (MR) Displays the value of SSH Thermal poll interval in seconds
storcli /cx set SSDThermalPollInterval=
storcli /cx show smartpollinterval (MR) Displays the value of polling of SMART errors in seconds
storcli /cx set smartpollinterval=
storcli /cx show eccbucketsize (MR) Displays the size of ECC single-bit-error bucket
storcli /cx set eccbucketsize=
storcli /cx show eccbucketleakrate (MR) Displays the value of leak rate of the single-bit bucket in minutes
storcli /cx set eccbucketleakrate=
storcli /cx show backplane (MR) Displays whether device drivers to expose enclosure devices is enabled or disabled
storcli /cx set backplane mode= expose=
storcli /cx show perfmode (MR) Displays the value of Performance tuning for the controller.
storcli /cx show perfmodevalues (MR) Displays the value of Performance tuning parameter for the controller.
storcli /cx set perfmode= [maxflushlines= numiostoorder=]
storcli /cx show pi (MR) Displays the state of Import Data Protection on controller
storcli /cx set pi [state=] [import=]
storcli /cx show time (MR) Displays the controller time
storcli /cx set time=
storcli /cx show ds (MR) Show Dimmer Switch option on controller
storcli /cx set ds=OFF type=1|2|3|4
storcli /cx set ds=ON type=1|2 [properties]
storcli /cx set ds=ON type=3|4 DefaultLdType= [properties]
storcli /cx set ds [properties]
storcli /cx show ASO (MR) Shows the Advanced Software Options (ASO) that are enabled on the controller
storcli /cx set aso key= preview
storcli /cx set aso key=
storcli /cx set aso transfertovault
storcli /cx set aso rehostcomplete
storcli /cx set aso deactivatetrialkey
storcli /cx show securitykey keyid Shows the security keyID on the controller.
storcli /cx compare securitykey=xxxxxxxxxx Compares and verifies the security key of the controller.
storcli /cx set securitykey keyid=xxx Sets the key ID for the controller
storcli /cx set securitykey=xxxxxxxx {passphrase=xxxx} {keyid=xxx} Sets the security key for the controller.
storcli /cx set securitykey=xxxxxxxx oldsecuritykey=xxxxxxxx {passphrase=xxxx} Changes the security key for the controller
{keyid=xxx}
storcli /cx delete securitykey
storcli /cx show linkconfig (MR) Show PCIe link information
storcli /cx set linkconfig [connname=cx,cy] linkconfig=
storcli /cx show ldlimit (MR) Show LD restriction Info
storcli /cx set ldlimit=
storcli /cx show maintenance (MR) Displays the maintenance mode of the controller
storcli /cx set maintenance mode=normal|nodevices
storcli /cx show personality (MR) Show personality
storcli /cx set personality=RAID|HBA|JBOD
storcli /cx set personality=RAID|HBA|eHBA (unlisted) Set the personality of the controller to either RAID, HBA or eHBA mode
storcli /cx show profile (MR) Displays the profile list supported on the controller
storcli /cx set profile profileid=
storcli /cx show jbodwritecache (MR) Displays the Write cache setting for JBODs
storcli /cx set jbodwritecache=on|off|default
storcli /cx show immediateio (MR) Displays whether Immediate IO is enabled or disabled
storcli /cx set immediateio=
storcli /cx show driveactivityled (MR) Displays whether drive activity LED is enabled or disabled
storcli /cx set driveactivityled=
storcli /cx show largeiosupport (MR) Displays whether largeiosupport is enabled or disabled on the controller
storcli /cx set largeiosupport=
storcli /cx show unmap (MR) Displays whether SCSI unmap is enabled or disabled on the controller
storcli /cx set unmap=
storcli /cx show assemblynumber (IT) Displays assemblynumber on the controller
storcli /cx set assemblynumber=xxxx (IT) Set Assemblynumber On Controller
storcli /cx show tracernumber (IT) Displays tracernumber on the controller
storcli /cx set tracernumber=xxxx (IT) Set tracernumber on controller
storcli /cx show sasadd (IT) Displays SAS address on the controller
storcli /cx set sasadd = xxxx [devicename] [methodport]
storcli /cx set sasaddhi = xxxx sasaddlow = xxxxx [devicename] [methodport] Set sasaddhi and sasaddlow on controller
storcli /cx show flushwriteverify (MR) Displays whether flushwriteverify is enabled or disabled.
storcli /cx set flushwriteverify=
storcli /cx show largeQD (MR) Displays whether largeQueueDepth is enabled or disabled on the controller
storcli /cx set largeQD=
storclio /cx show oob (storclio) Shows Out Of Band management communication mode
storclio /cx set oob mode=i2c|pcie maxpayloadsize= (storclio) Set out of band management communication mode
maxpacketsize=
storclio /cx show SubOEMId (MR, storclio) Displays the SubOEMId of the controller
storclio /cx set SubOEMId= (MR, storclio) Set SubOEMId of the controller
Controller > Patrol Read Commands
Rich (BB code):
storcli /cx show patrolRead Displays patrol read status if any in progress and patrol read parameters
storcli /cx start patrolread
storcli /cx stop patrolread
storcli /cx pause patrolread
storcli /cx resume patrolread
storcli /cx set patrolread = {{on mode= }|{off}} Turns the patrol read scheduling on and sets the mode
storcli /cx set patrolread [starttime=< yyyy/mm/dd hh>] Schedules a patrol read operation
[maxconcurrentpd =] [includessds=]
[uncfgareas=on|off] [excludevd=x-y,z|none]
storcli /cx set patrolread delay = Delays the scheduled patrol read in hours
storcli /cx set supportssdpatrolread = Enables or Disables Patrol read for SSD drives
storcli /cx show prrate Dislays patrol read rate of the virtual drives in percentage
storcli /cx set prrate=
storcli /cx show prcorrectunconfiguredareas Displays whether correction of media errors during PR by writing 0s is enabled or disabled.
storcli /cx set prcorrectunconfiguredareas=
storcli /cx[/ex]/sx show patrolread Show Patrol read
Controller > Debug Commands
Rich (BB code):
storcli /cx set debug type= option= [level=] Enable Firmware Debug Variables
storcli /cx set debug reset all Resetting the Firmware Debug Variables
storcli /cx show dequeuelog file= Displays the debug queue (DeQueue) logs
Controller > Snapdump Commands
Rich (BB code):
storcli /cx show snapdump Shows the controller Snapdump information
storcli /cx set snapdump state=on|off Enables or disables the snapdump on controller
storcli /cx set snapdump [ savecount= | delayocr= ]
storcli /cx get snapdump [ id=[ all | file=] [norttdump] ]
storcli /cx delete snapdump [force]
Controller > Maintenance Commands
Rich (BB code):
storcli /cx shutdown Shutdown the adapter.
storcli /cx restart Restarts the adapter without system reboot.
storcli /cx start diag duration= [type=] Start Diagnostic on Adapter
storcli /cx show flush|flushcache cachecade (MR) Show the number of Dirty Windows and flush count.
storcli /cx flush|flushcache Flushes the adapter cache and/or disk caches.
storcli /cx [start] flush|flushcache [cachecade | ALL] Flushes the adapter cache and/or disk caches.
storcli /cx stop flush|flushcache cachecade Stops flushing the adapter cache on cachecade drives.
storcli /cx/mx show (MR) Show the connector mode.
storcli /cx/mx set mode= (MR) Command sets connector mode on selected controllers
storclio /cx show fwbootregion (MR, unlisted, storclio) Displays whether FW is running from primary flash location
storclio /cx set fwbootregion = [Primary|Secondary] (MR, unlisted, storclio) Sets the controller to boot from either primary or secondary flash location
Controller > Backup (Upload) Commands
Rich (BB code):
storcli /cx get bios file= (IT) Uploads BIOS image from the controller to the specified file.
storcli /cx get firmware file= (IT) Uploads Firmware image from the controller to the specified file.
storcli /cx get mpb file= (IT) Uploads MPB image from the controller to the specified file.
storcli /cx get fwbackup file= (IT) Uploads FWbackup image from the controller to the specified file.
storcli /cx get nvdata file= (IT) Uploads NVDATA image from the controller to the specified file.
storcli /cx get flash file= (IT) Uploads Flash image from the controller to the specified file.
storcli /cx get vpd file= (MR) Get the VPD data.Give the file name as input, data will populate in file.
storcli /cx get config file= (MR) Saves the configuration of the selected controller to the given filename.
storclio /cx get HWDevice deviceType= [bus= slaveAddress=] (storclio) Gets the hardware device information and fills the user specified file
[[offset=] size=] file=
[fileone= filetwo=]
storclio /cx get factorysettings file= (MR, storclio) Get/write all Factory settings to a given file
storcli /cx get flash fileone= filetwo= (unlisted) Uploads complete flash of the controller to user specified file
Controller > Restore/Reset/Set Commands
Rich (BB code):
storcli /cx show vpd (IT) Displays the contents of the VPD for the specified controller
storcli /cx get vpd file= (MR) Get the VPD data.Give the file name as input, data will populate in file.
storcli /cx set updatevpd file= Lets the caller program a vital product data file to the specified controller.
storclio /cx set vpd file= (storclio) Set the VPD data. Give the vpd file as input.
storcli /cx get config file= (MR) Saves the configuration of the selected controller to the given filename.
storcli /cx set config file= (MR) Reads the configuration from the file and loads it on the controller
storcli /cx delete config [force] (MR) This command clears complete configuration on the controller
storcli /cx show sasadd (IT) Displays SAS address on the controller
storcli /cx set sasadd = xxxx [devicename] [methodport]
storcli /cx set sasaddhi = xxxx sasaddlow = xxxxx [devicename] [methodport] Set sasaddhi and sasaddlow on controller
storclio /cx set sasaddress=xxxxxxxx (storclio) Sets 64B length SAS Address to the controller
storcli /cx set factory defaults Sets the factory defaults on the selected adapter(s).
storcli cx set sbr Sets SBR
storclio /cx set HWDevice deviceType= [bus= slaveAddress=] (storclio) Sends the user specified file to firmware to modify the hardware device information
[offset=] file= [fileone= filetwo=]
storclio /cx set factorysettings file= (storclio) Set/read all Factory settings from a given ini file
storclio /cx set MFG file= (storclio) Sets MFG data from the given file
storcli /cx set factory [mfcdata|mfgdata|pcidata|sasaddress] file= (unlisted) Sets the factory data on the selected adapter(s)
storcli /cx set persistentpage file= (unlisted) Set the Persistent Page Data.Give the file name as input.
Controller > Erase Commands
Rich (BB code):
storcli /cx erase all [excludemfg] [file=filename] Clear or erase the complete flash region.
storcli /cx erase all [file=filename] Clear or erase the complete flash region
storcli /cx flasherase Erases the flash memory on the adapter
storcli /cx erase nvsram Clear or erase the NVSRAM region
storcli /cx erase fwbackup Clear or erase the firmware backup region
storcli /cx erase bootservices Clear or erase the boot services region.
storcli /cx erase perconfpage Clear or erase the persistent configuration page
storcli /cx erase mpb Clear or erase the manufacturing region
storclio /cx delete NVRAM (storclio) Clears the NVRAM on Adapter
Controller > Flashing (Download) Commands
Rich (BB code):
storcli show file= Show version information of image
storcli /cx download file= [noverchk] [noreset] [forcehcb] Download or Flash the IT controller firmware
storcli /cx download file= [fwtype=] [ResetNow] [nosigchk] Download or Flash controller firmware.
[noverchk] [force]
storcli /cx download completeflash [fileone=] Download or Flash complete flash image on the controller
[filetwo=] [file=]
storcli /cx download efibios file= Downloads the EFI BIOS image
storcli /cx download cpld file= Downloads the CPLD image
storcli /cx download bios file= Downloads the BIOS image
storcli /cx download fcode file= Downloads the FCODE image
storcli /cx transform iMR Downgrades the Firmware on Adapter.
storclio /cx set HWDevice deviceType= [bus= slaveAddress=] (storclio) Sends the user specified file to firmware to modify the hardware device information
[offset=] file= [fileone= filetwo=]
storclio /cx show fwbootregion (unlisted, storclio) Displays whether FW is running from primary flash location
storclio /cx set fwbootregion = [Primary|Secondary] (unlisted, storclio) Sets the controller to boot from either primary or secondary flash location
storcli /cx download component fileone= (unlisted) Performs component based download of the individual flash images on to the controller
filetwo=
storcli /cx download file= Package (unlisted) Download or Flash controller firmware
storcli /cx download file= [locale= Dual | Active| Backup ] (unlisted) ?
[fwtype=] [ResetNow] [nosigchk] [noverchk] [force]
Controller > Misc Commands
Rich (BB code):
storcli /cx compare bios ver= Compare BIOS version of the controller with the user provided version
storcli /cx compare fwprodid ver= Compare FW product ID of the controller with the user provided version
storcli /cx compare ssid ver= Compare SubSystemID of the controller with the user provided version
storcli /cx compare firmware ver= Compare firmware version of the controller with the user provided version
storcli /cx Compare factorysettings file= (unlisted) Compare all Factory settings from a given ini file
storcli /cx Compare factorysettings raw file= (unlisted) Compare raw Factory settings from a given ini file
storcli /cx Compare factory file= (unlisted) Compares the factory data on the selected controller(s)
storcli /cx show colinfo (unlisted) Shows the Cache Offload information.
storcli /cx delete colinfo (unlisted) Deletes the Cache Offload information.
storclio /cx verify challengeval (unlisted, storclio) Verify challenge value on the controller.
storclio /cx set challengeval (unlisted, storclio) Set the 16 byte challenge value and 1 byte keyindex on the controller.
storcli /cx show memscrubpatterns (unlisted) Shows all the available Controller Memory Scrub patterns
storcli /cx set memscrubpattern = [force] (unlisted) Scrubs the controller memory with the user specified pattern
storcli /cx show energypack (unlisted) Displays Energy pack status
Controller > PCIe/Phy Commands
Rich (BB code):
storcli /cx show pci (MR) Displays the pci information for the controller.
storclio /cx set pcilinkspeed = (storclio) Sets PCIe link speed
storcli /cx show linkconfig (MR) Show PCIe link information
storcli /cx set linkconfig [connname=cx,cy] linkconfig=
storcli /cx/lnx show (MR) Show pcie lane information (usage: /c0/ln0,1,2...)
storcli /cx/lnx set lanespeed=0|2.5|5|8|16 Set PCIe lane speed on controller
storcli /cx/px show Show PHY information.
storcli /cx/px show all (MR) Show detailed PHY information.
storcli /cx/px show phyerrorcounters (IT) Show the phy error counter details
storcli /cx/px set state=on|off Enable phy or Disable Phy
storcli /cx/px set linkspeed=0|1.5|3|6|12 Set PHY Link speed on controller
storcli /cx/px compare linkspeed=0|1|2|3 Compare PHY Linkspeed on controller
storcli /cx/px reset [hard] Reset Phy
BBU Specific Commands
Rich (BB code):
storcli /cx/bbu show Show Available BBU Modes
storcli /cx/bbu show all Shows all the information of a BBU.
storcli /cx/bbu show status Show Battery Backup Unit status
storcli /cx/bbu show properties Show BBU properties on controller
storcli /cx/bbu show modes Show Available BBU Modes
storcli /cx/bbu show gasgauge Offset=xxxx Numbytes=n Returns the data of EEPROM
storcli /cx/bbu show learn Show BBU Learn
storcli /cx/bbu start learn Start a learning cycle on the BBU
storcli /cx/bbu set [ learnDelayInterval= | bbuMode= Set BBU properties on controller
|learnStartTime=[DDD HH | off] | autolearnmode= |
powermode=sleep | writeaccess=sealed ]
storcli /cx/bbu start retentiontest (unlisted) Starts the Retention Test on BBU ,Restart required
storcli /cx/bbu set mfg file= (unlisted) Resets the Manufacturing Date and Manufacture Name of the BBU
Cachevault Specific Commands
Rich (BB code):
storcli /cx/cv show Show cache vault status
storcli /cx/cv show all Show all the information of a cache vault.
storcli /cx/cv show status Show cache vault status
storcli /cx/cv show learn Show cache vault learn
storcli /cx/cv start learn Start a Learning cycle on the cache vault
storcli /cx/cv start retentiontest (unlisted) Starts the Retention Test on cache vault, Restart required.
Slot/PD Specific Commands
Rich (BB code):
storcli /cx[/ex]/sx show Show Drive Information
storcli /cx[/ex]/sx show all Show Detailed Drive Information
storcli /cx[/ex]/sx show poh [ignoreselftest] Show Drive's accumulated power on hours
storcli /cx[/ex]/sx show smart Show Drive Smart information
storcli /cx[/ex]/sx show patrolread Show Patrol read
storcli /cx[/ex]/sx show securitykey keyid Show Drive KeyID
storcli /cx[/ex]/sx start locate Start Drive Locate
storcli /cx[/ex]/sx stop locate
storcli /cx[/ex]/sx show initialization Show Drive initialization Status
storcli /cx[/ex]/sx start initialization
storcli /cx[/ex]/sx stop initialization
storcli /cx[/ex]/sx show phyerrorcounters Show Drive PhyErrorCounters
storcli /cx[/ex]/sx reset phyerrorcounters
storcli /cx[/ex]/sx show errorcounters Show the Drive/Slot error counters
storcli /cx[/ex]/sx reset errorcounters type = 1|2
storcli /cx[/ex]/sx show rebuild Show Drive Rebuild Status
storcli /cx[/ex]/sx start rebuild
storcli /cx[/ex]/sx stop rebuild
storcli /cx[/ex]/sx pause rebuild
storcli /cx[/ex]/sx resume rebuild
storcli /cx[/ex]/sx show copyback Show Drive Copyback Status
storcli /cx[/ex]/sx start copyback target=e:s
storcli /cx[/ex]/sx stop copyback
storcli /cx[/ex]/sx pause copyback
storcli /cx[/ex]/sx resume copyback
storcli /cx[/ex]/sx show erase Show drive secure erase status.
storcli /cx[/ex]/sx start erase [simple| normal| thorough | standard| threepass |
crypto] [patternA=] [patternB=]
storcli /cx[/ex]/sx stop erase
storcli /cx[/ex]/sx secureerase [force] Securely Erase Drive
storcli /cx[/ex]/sx show jbod Show JBOD Drive Information
storcli /cx[/ex]/sx show jbod all
storcli /cx[/ex]/sx del jbod [force]
storcli /cx[/ex]/sx set jbod
storcli /cx[/ex]/sx spinup Spin Up Drive
storcli /cx[/ex]/sx spindown
storcli /cx[/ex]/sx add hotsparedrive [DGs=] [enclaffinity] Add Hot Spare Drive
[nonrevertible]
storcli /cx[/ex]/sx delete hotsparedrive
storcli /cx[/ex]/sx insert dg=A array=B row=C Insert Drive to replace missing drive
storcli /cx[/ex]/sx set online Set Drive Online
storcli /cx[/ex]/sx set offline Set Drive Offline
storcli /cx[/ex]/sx set missing Set Drive Missing
storcli /cx[/ex]/sx set security=on Set Security on JBOD
storcli /cx[/ex]/sx set good [force] Set Drive Good
storcli /cx[/ex]/sx set bootdrive= Set/Unset physical drive as Boot Drive
storcli /cx[/ex]/sx download status Download Drive Firmware Status
storcli /cx[/ex]/sx download src= [satabridge] [mode= 5|7] Download Drive Firmware
[parallel] [force]
storcli /cx[/ex]/sx download src= mode= E offline [activatenow] Download Drive Firmware without activation
[delay=]
storcli /cx[/ex]/sx download mode= F offline [delay=] Activate downloaded file
storcli /cx show pdfailevents [lastoneday] [lastseqnum=] [file=] Displays overall PD predictive failures event information
storcli /cx set pdfaileventoptions [detectionType=] [correctiveaction=] Set PD failure event options on controller
[errorThreshold=]
storcli /cx show pdfaileventoptions Show PD failure event options
storcli /cx[/ex]/sx show scnvram (unlisted) Show Nvram Smart Carrier Information of the smart drive
storcli /cx[/ex]/sx clear scnvram (unlisted) Clear Nvram Smart Carrier Information of the smart drive
storcli /cx[/ex]/sx show sanitize (unlisted) Displays the status as percentage of sanitize completed
storcli /cx[/ex]/sx start sanitize [cryptoerase| overwrite| blockErase ] [ause] (unlisted) Sanitize drives with specified pattern(s)
Disk Group Specific Commands
Rich (BB code):
storcli /cx/dx show Show Diskgroup
storcli /cx/dx show all Show Detailed Diskgroup Info
storcli /cx show freespace Displays the free space information from all disk groups
storcli /cx/dx set hidden=on|off Make the drive group hidden on or off
storcli /cx/dx set security=on Make the drive group Secure
storcli /cx/dx set transport=on/off [EDHSP=on/off] [SDHSP=on/off] Make the drive group Transport Ready/Clear
storcli /cx/dall show mirror Displays the information about the mirror associated with the DG.
storcli /cx/dall split mirror Splits the mirror VDs apart.
storcli /cx/dall add mirror src= [force] Joins the VD with its mirror.
Virtual Drive Specific Commands
Rich (BB code):
storcli /cx/vx show Show Virtual drive Information
storcli /cx/vx show all [logfile[=filename]] Show Detailed Virtual drive Information
storcli /cx add vd r[0|1|5|6|00|10|50|60] ADD Virtual Drive
[Size=,,..|all] [name=,..]
drives=e:s|e:s-x|e:s-x,y,e:s-x,y,z [PDperArray=x][SED]
[pdcache=on|off|default][pi][DimmerSwitch(ds)=default|automatic(auto)|
none|maximum(max)|MaximumWithoutCaching(maxnocache)][WT|WB|AWB][nora|ra]
[direct|cached] [cachevd] [unmap][Strip=<8|16|32|64|128|256|512|1024>]
[AfterVd=X] [EmulationType=0|1|2] [Spares = [e:]s|[e:]s-x|[e:]s-x,y]
[force][ExclusiveAccess] [Cbsize=0|1|2 Cbmode=0|1|2|3|4|7]
storcli /cx add vd each r0 [name=,..] [drives=e:s|e:s-x|e:s-x,y] ADD RAID0 for Each Physical Drive
[SED] [pdcache=on|off|default][pi] [DimmerSwitch(ds)=default|
automatic(auto)|none|maximum(max)|MaximumWithoutCaching(maxnocache)]
[WT|WB|AWB] [nora|ra] [direct|cached] [EmulationType=0|1|2]
[Strip=<8|16|32|64|128|256|512|1024>] [ExclusiveAccess]
[Cbsize=0|1|2 Cbmode=0|1|2|3|4|7]
storcli /cx/vx del [cachecade] [discardcache] [force] Delete virtual Drive
storcli /cx/vx delete preservedcache[force] Delete Preserved Cache
storcli /cx/vx show init Show Initialization progress
storcli /cx/vx start init[Full][Force]
storcli /cx/vx stop init
storcli /cx/vx show vfmap Show VD VF mapping
storcli /cx/vx set vfmap [VF= | PF] access=RW|RO|Blocked|Hidden Sets the VF accesspolicy on a Virtual drive
storcli /cx/vx show autobgi Show Auto BGI setting
storcli /cx/vx set autobgi=On|Off
storcli /cx/vx show bgi Show Background Initialization progress
storcli /cx/vx stop bgi
storcli /cx/vx pause bgi
storcli /cx/vx resume bgi
storcli /cx/vx show expansion Show virtual Drive Expansion
storcli /cx/vx expand Size= [expandarray] Expand virtual Drive
storcli /cx/vx show migrate Show Migrate operation progress
storcli /cx/vx start migrate type=raidx [option=add|remove
drives=[e:]s|[e:]s-x|[e:]s-x,y] [Force]
storcli /cx/vx show Unmap Show SCSI UNMAP setting
storcli /cx/vx set Unmap=
storcli /cx/vx show cc Show Check Consistency progress
storcli /cx/vx start cc[Force]
storcli /cx/vx stop cc
storcli /cx/vx pause cc
storcli /cx/vx resume cc
storcli /cx/vx show erase Show erase progress
storcli /cx/vx start erase [simple|normal|thorough|standard][patternA=]
[patternB=]
storcli /cx/vx stop erase
storcli /cx/vx show BBMT Shows information about the Bad Block Table.
storcli /cx/vx delete BBMT
storcli /cx/vx set name= Change the VD name
storcli /cx/vx set ssdcaching=on|off Enable/Disable SSD caching on Virtual drive
storcli /cx/vx set hidden=on|off Make the Virtual drive hidden on or off
storcli /cx/vx set emulationType=0|1|2 Change Emulation Type setting
storcli /cx/vx set cbsize=0|1|2 cbmode=0|1|2|3|4|7 Sets the Cache bypass size and cache bypass mode setting
storcli /cx/vx set wrcache=WT|WB|AWB Change Write cache setting
storcli /cx/vx set rdcache=RA|NoRA Change Read cache setting
storcli /cx/vx set iopolicy=Cached|Direct Change IO Policy
storcli /cx/vx set accesspolicy=RW|RO|Blocked|RmvBlkd Change Access Policy
storcli /cx/vx set pdcache=On|Off|Default Change PD Cache Setting
storcli /cx/vx set HostAccess=ExclusiveAccess|SharedAccess Change the VD Host Access Property
storcli /cx/vx set ds=Default|Auto|None|Max|MaxNoCache Change Dimmer Switch Setting
storcli /cx/vx set pi=Off Make Data Protection Disable
storcli /cx/vx set bootdrive= Set/Unset Virtual Drive as Boot Drive
CacheCade Specific Commands
Rich (BB code):
storcli /cx/dall show cachecade Displays all CacheCade virtual drive information.
storcli /cx add VD cachecade r[aid][0,1,10] ADD CacheCade virtual Drive
drives = [e:]s|[e:]s-x|[e:]s-x,y [WT|WB] [assignvds = 0,1,2]
storcli /cx show flush|flushcache cachecade Show the number of Dirty Windows and flush count.
storcli /cx flush|flushcache Flushes the adapter cache and/or disk caches.
storcli /cx [start] flush|flushcache [cachecade | ALL] Flushes the adapter cache and/or disk caches.
storcli /cx stop flush|flushcache cachecade Stops flushing the adapter cache on cachecade drives.
Enclosure Specific Commands
Rich (BB code):
storcli /cx/ex show Display enclosure information.
storcli /cx/ex show all Display detailed enclosure information.
storcli /cx/ex show status [extended] Show the enclosure status
storcli /cx/ex show phyerrorcounters Show the enclosure/expander phy error counters
storcli /cx/ex download src= [forceActivate] Download Enclosure Firmware
JBOD Specific Commands
Rich (BB code):
storcli /cx/jbodx show Unmap (MR) Shows the SCSI UNMAP setting of a JBOD drive
storcli /cx/jbodx set unmap= (MR) Sets or unsets a Unmap on a JBOD
Foreign Configuration Specific Commands
Rich (BB code):
storcli /cx/fall show [all] [securityKey = xxx] Show Foreign Configuration
storcli /cx/fall del|delete [securityKey = xxx] Delete Foreign Configuration
storcli /cx/fall import [preview] [securityKey = xxx] Import or Preview Foreign Configuration
storcli /cx show foreignautoimport Show foreignautoimport
storcli /cx set foreignautoimport=
Saturday, April 12, 2025
How to set the MTU to 1200 in The DB node
grep -q '^MTU=' /etc/sysconfig/network-scripts/ifcfg-eth0 && \
sudo sed -i 's/^MTU=.*/MTU=1200/' /etc/sysconfig/network-scripts/ifcfg-eth0 || \
echo 'MTU=1200' | sudo tee -a /etc/sysconfig/network-scripts/ifcfg-eth0
Thursday, April 10, 2025
How to perform the file system repair
cat /etc/fstab
xfs_repair /dev/
xfs_repair -v /dev/dm-x
How to install the XFS RPM
rpm -qa |grep xfs
dnf install xfsprogs
Thursday, March 13, 2025
Command to show the PCI Devices with description
Command to show the PCI Devices with description
show -l all -t /system/PCI_Devices/ description
Subscribe to:
Posts (Atom)