June 2015
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

Categories

June 2015
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

Add date to bash history

Need to add date to bash history, knowing when some commands were fired.

Before the change:

root@host# history 1 ifconfig 2 ifup eth0 3 ifconfig 4 shutdown -r now

root@host# history 1 ifconfig 2 ifup eth0 3 ifconfig 4 shutdown -r now

Now, make appripriate changes in your bash profile:

echo ‘export HISTTIMEFORMAT=”%d/%m/%y %T “‘ […]

Changing default IO scheduler linux

Change default Linux IO scheduler to optimize IOs (very important if server is VM)

Check existing (active) io scheduler (elevator):

[root@server ~]# cat /sys/block/sda/queue/scheduler noop anticipatory deadline [cfq] # cfq active

[root@server ~]# cat /sys/block/sda/queue/scheduler noop anticipatory deadline [cfq] # cfq active

Change it on the fly

[root@server ~]# echo noop > /sys/block/sda/queue/scheduler

[root@server ~]# […]

VSPHERE 6 and VSAN

[gview file=”http://rmohan.com/wp-content/uploads/2015/06/vSphere-6.pptx”]

 

[gview file=”http://rmohan.com/wp-content/uploads/2015/06/Deck_VSAN_Hee-Teck.pdf”]