How to forcefully shutdown a guest VM using virsh command on Linux KVM

Posted on in Categories , , , , , , last updated February 26, 2017

I used the command ‘virsh shutdown vm1’ to shut down a guest named vm1 using the virsh command. However, it is still running, and my vm1 is not responding to an ssh session. Is there is a way to forcefully stop or kill a guest VM using the virsh command from host server?

How to find all hard links in a directory on Linux

Posted on in Categories , , , , , , , , , last updated February 25, 2017

I have a file named /etc/passwd i and I would like to find all hard links to this file in a directory. How do I find out all other hard links to the /etc/passwd in /backups/ directory? How can find all hard links to a given file using Linux or Unix command line option?

How to set rsync speed limit from eating all bandwidth with –bwlimit option

Posted on in Categories , , , , , , , , last updated February 25, 2017

The rsync command is eating all my bandwidth from a backup script and generating tons of I/O. How do I set a limit for file transfer speed of rsync command on Linux or Unix-like system? How can I keep my rsync script from using all of my bandwidth?

How to add an extra second hard drive on Linux LVM and increase the size of storage

Posted on in Categories , , , , , , last updated February 22, 2017

I have 250GB disk installed on my home Linux server. I just bought a brand new 250GB SATA disk and I want to add a new disk to my existing LVM volume to increase its size total size to 500GB. How do I add a disk to LVM and extend an LVM volume on Linux operating system?