Ross Peachey wrote at 2009-09-09 04:05 -0500: > Can anyone tell me how to force a filesystem read-only from Debian > during normal operation? I need to do this for testing of a failure > mode.
> Also, the host is running as a Xen virtual machine, so I can't do > anything on the hardware side. > > Given that the filesystem is set to remount read-only if an error is > detected, one option would be to deliberately generate a filesystem > error, but not sure exactly how to achieve this either. You might want to look into Documentation/fault-injection in the linux-2.6 kernel source. I have never used it, nor have I used Xen, but perhaps that is what you are needing.
signature.asc
Description: Digital signature