Guidelines

This site is for tech Q&A. Please keep your posts focused on the subject at hand.

Ask one question at a time. Don't conflate multiple problems into a single question.

Make sure to include all relevant information in your posts. Try to avoid linking to external sites.

Links to documentation are fine, but in addition you should also quote the relevant parts in your posts.

1 vote
97 views
97 views

When increasing the size of a virtual disk, I need the (guest) Linux to recognize the change before I can grow partitions/volumes in the guest system. A reboot does this, but is it possible to have the system re-detect disk sizes without a reboot (to avoid unnecessary downtime)?

in Sysadmin
by (125)
3 19 33
edit history

Please log in or register to answer this question.

1 Answer

0 votes
 

For SCSI disks (/dev/sdX) this can be accomplished by rescanning the bus:

echo 1 > /sys/class/block/sdX/device/rescan

Replace sdX with the name of your actual disk.

by (125)
3 19 33
edit history
...