-
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 …
Read more... -
GRUB2 config make
If you change
grubparameters (example/etc/default/grub), you need to make GRUB2 configurations in/boot.grub2-mkconfig -o /boot/grub2/grub.cfgIf your
grubinstalled with EFI, you may need some configurations. Example for CentOS:Read more...grub2-mkconfig -o /boot/grub2/grub.cfg grub2-mkconfig -o /boot/efi/EFI/centos/grub … -
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 …
Read more... -
How to change root password of cloud image
There are ways to manipulate cloud images. I'm going to prefer
libguestfsto change root password.Install
libguestfsand tools:yum install guestfs-tools yum install libguestfs libguestfs-appliance libguestfs-xfsChange root password,
mymagicpassis clean password,mydisk.imgis primary disk image:Read more...LIBGUESTFS_BACKEND=direct virt-customize --root-password password:mymagicpass -a mydisk.img … -
How to enable serial console
We've been talking about cloud servers too much in recent years. How many of you remember the famous COM1, COM2 ports from old times? In this post, we are streaming console to serial ports again to access console from cloud providers.
On Linux
We just have to add this parameter …
Read more...