Thursday, February 19, 2015

df and du showing different Size

df and du shows different Size and recovering the space without killing the process

1. From lsof we can find the big 10 files which is deleted. And the first file is around  ((2407845888 / 1024 ) /1024) = 2296 MB
       
[root@server1  fd]# lsof | grep deleted | sort -nr -k 7 | head
frmweb    21199    mislve   23u      REG      253,0 2407845888     819375 /tmp/filesvuEFz.TMP (deleted)
frmweb    28933    mislve   27u      REG      253,0    4032864     819378 /tmp/fileiTj11l.TMP (deleted)
frmweb    16365    mislve   24u      REG      253,0    2248832     819483 /tmp/file5z0oen.TMP (deleted)
frmweb    28697    mislve   27u      REG      253,0     959488     819238 /tmp/fileemrhVz.TMP (deleted)
frmweb    24794    mislve   27u      REG      253,0     906304     819492 /tmp/file4d68i0.TMP (deleted)
frmweb    25383    mislve   24u      REG      253,0     393216     819572 /tmp/file7powEH.TMP (deleted)
frmweb    25329    mislve   28u      REG      253,0     386784     819355 /tmp/filembs5IG.TMP (deleted)
frmweb    24400    mislve   28u      REG      253,0     307328     819228 /tmp/fileL8p1m7.TMP (deleted)
frmweb     2717    mislve   27u      REG      253,0     277472     819290 /tmp/fileVzblkn.TMP (deleted)
frmweb     2002    mislve   24u      REG      253,0     262784     819516 /tmp/fileUeZpzA.TMP (deleted)


2. One option is to kill the process or nullfy the File Descripter (FD).We can find the FD as shown below.

       
[root@server1 fd]# ls -l /proc/21199/fd/ | grep deleted
lrwx------ 1 mislve dba 64 Feb 19 13:00 23 -> /tmp/filesvuEFz.TMP (deleted)
       

3.Nullify the file descripter

[root@server1 fd]#  echo /dev/null >  /proc/21199/fd/23
 

4. Size of the Fileystem before and after
     

Before
[root@server1 ~]# df -h /
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                       11G  5.8G  4.3G  58% /

After
[root@server1 ~]# df -h /
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                       11G  3.6G  6.5G  36% /

Sunday, January 11, 2015

Enabling Virtualization option in Lenovo G50

Enabling Virtualization option in BIOS 
1. I bought Lenovo G50 AMD A8 / 8GB RAM / 1TB HDD and my plan is to install some Hypervisor virtually using VMWare workstation and run some VM in that, but I was not able to see the option in BIOS to enable Virtualization
3.You can enable  Virtualization option by updating BIOS using this link.
4.After installing this BIOS update you can see option to enable Virtualization option.
Installing VMWare vSphere client in Windows 8.1
Next issue I was facing is installing vSphere Client in Windows 8.1. It keeps crashing.
The installation of file,VMware-viclient.exe, keeps crashing during installation on Windows 8.1.  This was caused by not having the .NET Framework x3.5 installed.
The cause of issue is that the .NET framework v3.5 is not installed in Windows 8 by default, and is a required component for the vSphere client.  I assume that the redistributable is packaged with the vSphere client installer, but it doesn’t work in Windows 8.1.
“The .NET Framework v3.5 is easy to install, just issue the following command from an elevated/administrator command prompt:
Dism /online /enable-feature /featurename:NetFx3 /All /Source:F:\sources\sxs /LimitAccess
(replace F:\ with the DVD drive where your Windows 8.1 is located.  If your DVD drive is as slow as mine, just copy the ISO to your hard drive, mount it with daemon-tools, and use that location instead.)
After that, the vSphere client happily installed and I’m off to play with Windows 8.1 now.”
Issue in Installing VM in ESXi server
After Installing vSphere client I was able to connect to ESXi Server which was installed in VMWare workstation 10, but I was not able to install VM in that.
When I created VM and started it gives the error "VMware ESX unrecoverable error: (vcpu-0) vcpu-0:NOT_IMPLEMENTED vmcore/vmm/cpu/fpu.c:452"
To solve this issue you need to add the following line in /etc/vmware/config in ESXi Server

featMask.mockup.cpuid.NUMLEVELS = Val:0xb
featMask.mockup.cpuid.AVX = Val:0
featMask.mockup.cpuid.XSAVE = Val:0

Note: This option disable AVX (Advanced Vector Extensions)

Reference :
https://communities.vmware.com/thread/476180?start=0&tstart=0
http://www.brianwilliams.pro/installing-vsphere-client-on-windows-8-1/