HP B- Accelerators Linux manual Understanding Discard Trim support, Discard Trim on Linux

Page 26

/dev/fioc /dev/fiof \ /dev/fioe /dev/fioh \ /dev/fiog /dev/fiob

# 8 Duos RAID10

$ mdadm --create --assume-clean --level=raid10 --layout=n2 -n 16 /dev/md0 \ /dev/fioa /dev/fiod \

/dev/fioc /dev/fiof \ /dev/fioe /dev/fioh \ /dev/fiog /dev/fioj \ /dev/fioi /dev/fiol \ /dev/fiok /dev/fion \ /dev/fiom /dev/fiop \ /dev/fioo /dev/fiob

Understanding Discard (TRIM) support

Discard (also known as TRIM) is enabled by default in this version of the IO Accelerator driver.

Discard addresses a unique issue to solid-state storage. When a user deletes a file, the device does not recognize that it can reclaim the space. Instead, the device assumes the data is valid.

Discard is a feature on newer filesystem releases. It informs the device of logical sectors that no longer contain valid user data. This enables the wear-leveling software to reclaim that space (as reserve) to handle future write operations.

Discard TRIM on Linux

Discard is enabled by default. For Discard to be implemented, the Linux distribution must support this feature, and Discard must be enabled.

Under Linux, discards are not limited to being created by the filesystem; discard requests can also be generated directly from userspace applications using the kernel discard ioctl.

CAUTION: A known issue is that ext4 in Kernel.org 2.6.33 or earlier might silently corrupt data when Discard is enabled.

The issue has been fixed in many kernels provided by distribution vendors. Check with your kernel provider to ensure that your kernel properly supports Discard. For more information, see the release notes for this version of the driver.

IMPORTANT: Currently, MD and LVM do not pass discards to underlying devices in Linux. Therefore, any ioDrive device that is part of an MD or LVM array will not receive discards sent by the filesystem.

The LVM release included in Red Hat 6.1 supports passing discards for several targets, but not all (RHEL 6.1documentation (http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/newmds-ssdtuning.html)). For more information, see your distribution documents.

Software installation 26

Image 26
Contents HP IO Accelerator Version 3.2.3 Linux User Guide Page Contents Maintenance Resources Contents summary About this guideProduct naming IntroductionOverview Performance attributes IO Accelerator capacity 320GB 640GB Models AJ878B BK836ASupported hardware Required operating environmentSupported firmware revisions Introduction Introduction Installing RPM packages on SUSE, RHEL, and OEL Software installationInstallation overview $ uname -rRpm -Uvh iomemory-vsl-kernel-version-VSL-version.x8664.rpm Rpm -Uvh fio*.rpm$ rpmbuild --rebuild iomemory-vsl-VSL-version.src.rpm Building an RPM installation packageBuilding the IO Accelerator driver from source Upgrading device firmware from VSL 1.x.x or 2.x.x to $ rpm -qa grep -i iomemory Upgrading procedureFio-bugreport $ modprobe iomemory-vsl Fio-update-iodrive iodriveversion.fff$ rpm -e iomemory-vsl-2.6.18-194.el5-2.2.0.82-1.0 Controlling IO Accelerator driver loading # Provides iomemory-vsl # Required-Start boot.udevLoading the IO Accelerator driver Fio-attach /dev/fct$ chkconfig --add iomemory-vsl Using the init script$ chkconfig --del iomemory-vsl # blacklist iomemory-vslMounting filesystems Setting the IO Accelerator driver optionsUsing module parameters Handling IO Accelerator driver unloadsUpgrading the firmware One-time configurationPersistent configuration $ modprobe iomemory-vsl auto-attach=0Using the Logical Volume Manager Enabling PCIe powerUsing the device as swap Options iomemoryvsl preallocatememory=1072,4997,6710,10345Device /dev/fio Configuring RAIDDevice partitions Etc/mdadm.conf$ mdadm --assemble --scan Chkconfig boot.md on Chkconfig mdadmd on$ mdadm --detail --scan Building a RAID 10 across multiple devices Fio-statusUnderstanding Discard Trim support Discard Trim on LinuxFiles and directories Setting up Snmp for LinuxSnmp details for Linux Snmp master agentYum install net-snmp rsync Configuring the Snmp master agentInstalling the Snmp subagent Snmp agentX subagentSubagent log file Running and configuring the Snmp subagentManually running the Snmp subagent Using the Snmp sample config files Enabling Snmp test modePCI0100.0 Setting up Snmp for Linux Troubleshooting Snmp Supported Snmp MIB fieldsSnmp MIB Device LED indicators MaintenanceMaintenance tools Command-line utilitiesEnabling PCIe power override Fio-update-iodriveEnabling the override parameter Common maintenance tasksOptions iomemory-vsl externalpoweroverride=value Disabling auto attach Uninstalling the IO Accelerator driver RPM packageUnloading the IO Accelerator driver Etc/modprobe.d/iomemory-vsl.conf Unmanaged shutdown issuesDisabling the driver Options iomemoryvsl autoattach=0Fio-attach UtilitiesUtilities reference Fio-attach device optionsFio-beacon device options Fio-beaconFio-bugreport Tmp/fio-bugreport-20100121.173256-sdv9ko.tar.bz2Fio-detach Fio-format options device Fio-formatFio-detach device options Fio-pci-check Fio-pci-check optionsFio-snmp-agentx options Fio-snmp-agentxFio-status Fio-status device optionsUtilities Fio-sure-erase Fio-sure-erase options device Fio-update-iodrive Fio-update-iodrive options iodriveversion.fff Domainbusslot.func Health metrics Monitoring IO Accelerator healthNand flash and component failure Health monitoring techniques About flashback protection technology Software RAID and health monitoringDisabling Dvfs Performance and tuningIntroduction to performance and tuning Limiting Apci C-statesSetting Numa affinity Setting the interrupt handler affinityIntroduction to Numa architecture Numa configurationAdvanced configuration example Numa node override parameter13,14,18,19 For more information Subscription serviceResources Regulatory information Safety and regulatory complianceWarranty information HP contact information Support and other resourcesBefore you contact HP Customer Self RepairRéparation par le client CSR Riparazione da parte del cliente Reparaciones del propio cliente Reparo feito pelo cliente Support and other resources Support and other resources Support and other resources Acronyms and abbreviations SMH Documentation feedback Index Uninstalling utilities