Article 576XZ /sys/block/sdx/device/rescan What is it for ?

/sys/block/sdx/device/rescan What is it for ?

by
dezix
from LinuxQuestions.org on (#576XZ)
Hi

First as I am not an expert, please try to answer for regular user.

In a context dealing with cloud VM and virtual storage upgrade,
after increasing volume size from provider's part

I've eared about :
Code:# echo 1 > /sys/block/sdx/device/rescanIn order the system to detect the new parameters of changed disk.

Then to intent to understand what's about, I've tried :
Code:$ su -
# cat /sys/block/sda/device/rescan
cat: /sys/block/sda/device/rescan: Permission non accordee

# ls -l /sys/block/sda/device/rescan
--w------- 1 root root 4096 aout 22 11:01 /sys/block/sda/device/rescanroot is only allowed to write it, that seems a bit strange to me.

I didn't found man/info section about "rescan"

So should be kind if someone mights tell me a few about that file.
Is there some risks using that ?

Thanks.latest?d=yIl2AUoC8zA latest?i=eRpMlYHygd4:goDmPRE66u0:F7zBnMy latest?i=eRpMlYHygd4:goDmPRE66u0:V_sGLiP latest?d=qj6IDK7rITs latest?i=eRpMlYHygd4:goDmPRE66u0:gIN9vFweRpMlYHygd4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments