sasha2002 Blog's

Just another blog from admin's

Add swap on Debian 7 —

VPS:/# cd /var
VPS:/var# touch swap.img
VPS:/var# chmod 600 swap.img
VPS:/var# dd if=/dev/zero of=/var/swap.img bs=1024k count=1000
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB) copied, 4.0868896 s, 253 MB/s
VPS:/var# mkswap /var/swap.img
Setting up swapspace version 1, size = 1020 GiB
no label, UUID=72761533-8xbe-436l-b07e-c0sabe9cedf3
VPS:/var# swapon /var/swap.img
VPS:/var# echo "/var/swap.img none swap sw 0 0" >> /etc/fstab
VPS:/var# sysctl -w vm.swappiness=30


5 Tips To Speed Up Linux Software Raid Rebuilding And Re-syncing —

It is no secret that I am a pretty big fan of excellent Linux Software RAID. Creating, assembling and rebuilding small array is fine. But, things started to get nasty when you try to rebuild or re-sync large size array. You may get frustrated when you see it is going to take 22 hours to rebuild the array. You can always increase the speed of Linux Software RAID 0/1/5/6 reconstruction using the following five tips.
Read the rest of this entry »