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!
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. This post studies only advisory file locks with Go on Unix based systems such as Linux, FreeBSD.