Tuesday, April 15, 2014

Script to scan for new disks added to a Linux server


for channel in `ls /sys/class/scsi_host`
    echo "rescanning $channel"
    echo "- - -" > /sys/class/scsi_host/$channel/rescan

No comments:

Post a Comment

Popular Posts

About Me

My photo
I have started this blog to share my work experience and spread some smart solutions on Linux to Internet community. I'm hoping more people will get benefited from this blog. Brief about me: I have 14+ years experience working as System Admin and currently work with VMware.