首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    fio基础26

    The write state is relatively small, on the order of hundreds of bytes to single kilobytes. It contains information on the number of completions done, the last X completions, etc. A trigger is invoked either through creation ('touch') of a specified file in the system, or through a timeout setting. If fio is run with --trigger-file=/tmp/trigger-file, then it will continually check for the existence of /tmp/trigger-file. When it sees this file, it will fire off the trigger (thus saving state, and executing the trigger command). For client/server runs, there'sbothalocalandremotetrigger.Iffioisrunningasaserverbackend,itwillsendthejobstatesbacktotheclientforsafestorage,thenexecutetheremotetrigger,ifspecified.Ifalocaltriggerisspecified,theserverwillstillsendbackthewritestate,buttheclientwillthenexecutethetrigger.10.1Verificationtriggerexample---------------------------------Letssaywewanttorunapowercuttestontheremotemachine'server'.Ourwriteworkloadisinwrite-test.fio.Wewanttocutpowerto'server'atsomepointduringtherun,andwe'll run this test from the safety or our local machine, 'localbox'. On the server, we'llstartthefiobackendnormally:server#fio--serverandontheclient,we'll fire off the workload: localbox$ fio --client=server --trigger-file=/tmp/my-trigger --trigger-remote="bash -c \"echo b > /proc/sysrq-triger\"" We set /tmp/my-trigger as the trigger file, and we tell fio to execute echo b > /proc/sysrq-trigger on the server once it has received the trigger and sent us the write state. This will work, but it'snot_really_cuttingpowertotheserver,it's merely abruptly rebooting it. If we have a remote way of cutting power to the server through IPMI or similar, we could do that through a local trigger command instead. Lets assume we have a script that does IPMI reboot of a given hostname, ipmi-reboot. On localbox, we could then have run fio with a local trigger instead: localbox$ fio --client=server --trigger-file=/tmp/my-trigger --trigger="ipmi-reboot server" For this case, fio would wait for the server to send us th

    04
    领券