systemctl equivalent of /sys/block/sda/device/state

Chaitanya Gotkhindikar cg011235 at gmail.com
Sun Nov 23 19:13:23 EST 2014


Hi folks,

I am trying to port my old script to centos7, in which earlier device
state was set using
echo "offline" >  /sys/block/sda/device/state.

I am looking for systemctl equivalent for it. Can anyone please help?

Thank you.

-Chaitanya



More information about the Kernelnewbies mailing list