Skip to main content

Posts

Showing posts from February, 2015

Flash cache implimentation

Flashcache implementation steps on Openvz  # cd /usr/src/  # git clone https://github.com/facebook/flashcache.git  # cd flashcache if you are facing some issues while installing git, you can use the below command # yum --disableexcludes=main install git -y Make sure the kernel-devel for current openVZ kernel is installed, otherwise you will get error while doing "make" # rpm -qa |grep vzkernel-devel-`uname -r` # make # make install Initializing the module # modprobe flashcache By checking out your kernel messages you can see that it has been initialized. # dmesg | tail ............................. [ 5806.891504] flashcache: flashcache-1.0 initialized # lsmod |grep flashcache flashcache             77223  0 dm_mod                 80860  1 flashcache  stop the VE and unmount the LVM umount -l   /vz/hostname umount the lvm /dev/mapper/VG1-vzhostname make sure there are no associated process, stopping the cdp services is also recommended.

SSH TUNNELING SOCKS5

You can access internet via linux server by below step Make sure your SSH have following settings tcp ip forward and tunneling is granted also rahul-Inspiron-3542 ~ # cat /proc/sys/net/ipv4/ip_forward 1 Once it is done you can access the server from your machine terminal rahul-Inspiron-3542 ~ # ssh -D 1080 root@ip Also make sure 1080 is allowed in firewall Navigate to firefox>preference>network>settings manual proxy sockshost localhost and port 1080 now checks whatsmyip :)

SMART tests with smartctl

SMART tests with smartctl    rahul-Inspiron-3542 ~ # smartctl --info /dev/sda | grep 'SMART support is:' SMART support is: Available - device has SMART capability. SMART support is: Enabled or  rahul-Inspiron-3542 ~ # smartctl -i /dev/sda | grep 'SMART support is:' SMART support is: Available - device has SMART capability. SMART support is: Enabled     rahul-Inspiron-3542 ~ # smartctl -H /dev/sda smartctl 6.2 2013-04-20 r3812 [x86_64-linux-3.11.0-12-generic] (local build) Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED To enable'   smartctl -s on -d ata /dev/sda     Run overall-health self-assessment test, enter:   smartctl -d ata -H /dev/sda     The following will provide even more information about failing hard disk: # smartctl --attributes --log=selftest /dev/sda     You can read more data from hard di