Linux

Linux stuff

This script will make an export of all running machines in a XEN Source host and will be saved as .xva file. This script mount a NFS shared resource (you can comment that part and use a local folder only). This is the script I use for backing up my running Virtual machines each week. #!/bin/bash # # Re-written by: Carlos V # # DATE=`date +%d%B%y` XSNAME=`echo $HOSTNAME` #This is the host where the script will run BKPFOLDER=/mnt/exporta #folder to mount the NFS external exported Read more...
This procedure describes how to migrate the OS disk from internal storage to a SAN disk in a DEL R720. While the procedure has been developped for a DEL machine, it can be applied to any other machine model, the only difference will be the RAID controller or the way to disable the internal disk. *Note!!!: We must check with Storage the SAN disk that will be used for SAN boot is assigned with ID 0, it means the first of the SAN disks attached, whether there were some previous disks attached, they Read more...
LLT marks a high-pri link of a peer node as "troubled", if it does not receive any packet on that link for this timer interval. Once a link is marked as "troubled", LLT will not send any data on that link till the link is up. In some circumstances, when the private networks links are very slow or nodes in the cluster are very busy, increase the value. Increase the value for planned replacement of faulty network cable /faulty switch. To increase the value of peertrouble run: # lltconfig Read more...
To make a VM automatically start on XenServer boot here you can find how to configure it: First, look up for the uuid of the server we want to make it auto poweron with [root@MacXen ~]# xe vm-list|less Check what is the current configuration [root@MacXen ~]# xe vm-param-get uuid=4560610b-2f8c-7122-8f95-08880d327228 param-name=other-config vgpu_pci: ; auto_poweron: ; base_template_name: Other install media; mac_seed: 8d934b58-0939-1eb5-7e0f-2c28832c2c63; install-methods: cdrom Setup the auto_poweron Read more...

This example will show an ASCII progress bar with information about speed of the I/O. When dd will finish it will keep showing the results.

# dd if=/dev/urandom | pv | dd of=/dev/null

 

below example will use a nice dialog with the message between quotes

# (pv -n /dev/uramdom | dd of=/dev/null bs=128M) 2>&1 | dialog --gauge "Running dd command (cloning), please wait..." 10 70 0