How to simulate read-only disk failures?

Solution Verified - Updated -

Issue

  • Unable to simulate read-only disk failures
  • We have a customer that regularly reports issues with their hard disks. Every now and then, the hard disk on a server goes read-only (apparently as a result of disk failure), but application continues to accept requests (which usually then fail), leading to poor service.

We would like to implement a monitor to take the server out of service when file system gets remounted as RO (and raise an alarm through our SNMP infrastructure), but we are unable to test this monitor as we are unable to simulate the customer's read-only experience - i.e. make the test server's hard disk read-only while the disk is being used.

Is there any facility in RHEL 5.8 to allow me to do this?

Environment

  • Red Hat Enterprise Linux (RHEL) 5 U8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.