Bacula daily (or weekly) email report for postgres DB

This now moved to: https://github.com/logan-han/sysadmin_stuffs/blob/master/bacula_report.sh

Dell Chat Support

Sick of telling phonetic code over the phone? Try dell chat support here: http://www.dell.com/support/incidents/us/en/555/chat/tagchange

Disable msi with minimal interruption

1 2 3 4 5 ifconfig eth0 down rmmod bnx2 modprobe bnx2 disable_msi=1 ifconfig eth0 up route add -net default netmask 0.0.0.0 gw [default gw here] eth0 For bonding interface:

3TB partition support in Linux

Make a GPT partition: 1 2 3 4 5 parted /dev/sda mklabel gpt unit TB mkpart primary 0 -0 quit Format with 1% root reservation:

How to increase VM disk size without re-deploy the machine

Ref: http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=1006371 [root@demo ~]# fdisk /dev/sda -Create a primary partition- 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 [root@demo ~]# fdisk -l Device Boot Start End Blocks Id System /dev/sda1 * 1 64 512000 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 64 1306 9972736 8e Linux LVM /dev/sda3 1306 6527 41942367+ 83 Linux [root@demo ~]# pvcreate /dev/sda3 [root@demo ~]# vgextend vg_demo /dev/sda3 [root@demo ~]# vgdisplay vg_demo | grep Free Free PE / Size 10239 / 40.00 GiB [root@demo ~]# lvextend -L+40.00G /dev/vg_demo/lv_root [root@demo ~]# resize2fs /dev/vg_demo/lv_root Note: I wouldn’t do this for any production system as it looks pretty inefficient way to extend volume size.