Gibbserv.net

Icon

A slow updating blog I write for no particular reason.

Discovering New Disks Without Rebooting

This is going to be a quick post. If you just added a disk to an online Linux node and you don’t have the luxury of rebooting so the system and discover the new disk you can simply run the following:

echo "- - -" > /sys/class/scsi_host/host#/scan

Replace host# with what appears in /sys/class/scsi_host/. Kicking off an fdisk -l will show your new unformatted disk.

I tend to use this when I need to grow an partition created under a logical volume on a Linux VM.

Category: CentOS, Linux, Servers

Tagged:

Leave a Reply

You must be logged in to post a comment.