How to reload all SCSI hosts and devices on Linux

After inserted a new SCSI disk, you may need to scan disks on the SCSI host. On the other side; you grow the current disk, you may need to re-scan disk to show new size. Most of cloud providers do this using cloud agents. But there may be some cases where it doesn’t work!

GRUB2 config make

GRUB2 config make If you change grub parameters (example /etc/default/grub), you need to make GRUB2 configurations in /boot.

Advisory File locking with Go

File Locking is generally useful in an environment where multiple applications or processes may want to access(read/write) the same file. In such cases, it becomes important to protect integrity of file data and provide consistent view of data to all the processes.