Sunday, January 31, 2016

Clear Cache in Linux

Clear Cache in Linux


Step :1 

Clear PageCache Try This command.

mohan# sync; echo 1 > /proc/sys/vm/drop_caches

Step :2

Clear dentries and inodes Try This command.

mohan# sync; echo 2 > /proc/sys/vm/drop_caches

Step :3

Clear PageCache, dentries and inodes Try This command.

mohan# sync; echo 3 > /proc/sys/vm/drop_caches 


Step :4

Check Free Memory status Command

mohan# free -m


Linux Split and Join Manage Large Files

 Linux Split and Join Manage Large Files



Linux split and join commands are very helpful when you are manipulating large files (zip,gzip,tar..etc)


Step 1: Linux split file Commands

mohanlinux#split -b 4000m mohansundaram.tar.gz "mohansundaram-part"

Note:-
-b 4000m - 4GB Split Size
mohansundaram.tar.gz - Large file name
mohansundaram-part - split file name start with this name

Step 2:

mohanlinux#ls -ltr
-rw-rw-r-- 1 mohan sundaram 40000 Jan 31 21:35 mohansundaram-partxaa
-rw-rw-r-- 1 mohan sundaram 40000 Jan 31 21:35 mohansundaram-partxab
-rw-rw-r-- 1 mohan sundaram 40000 Jan 31 21:35 mohansundaram-partxac


Step 3:Linux  Join / Merge file Commands

mohanlinux#cat mohansundaram-partxa* > mohansundaram.tar.gz



Friday, December 25, 2015

How to Disable a Service or Device That Prevents NT from Booting on Widows all Operating system

How to Disable a Service or Device That Prevents NT from Booting on Widows all Operating system


SYMPTOMS

If a service or device driver is started automatically and is incompatible with the current version of Windows NT or Windows 2000...etc, the service or device driver may not allow Windows to remain booted long enough for you to shut the service off or disable the outdated device driver/software..etc.

CAUSE

System consume more CPU and Memory and system slow performance due to unwanted service running. 

This may occur when Windows is upgraded to a new version prior to removing or stopping third-party devices or services.


RESOLUTION

***Reboot system in safe mode ***  Try below steps

Perform the following steps to disable a device driver or any software:

Go to the following registry key:

HKEY_LOCAL_MACHINE\TEST\ControlSet00x\Services\<Name of suspect Driver>
Where x is the value of Current:REG_DWORD

Change the value of Start:REG_DWORD: to 0x4.

NOTE: Other Valid Services start options are:

Boot        0x0
System      0x1
Automatic   0X2
Manual      0x3
Disabled    0x4


Reboot system with normal mode.



Saturday, October 31, 2015

Re size file system Error on Linux System


Re size file system Error on Linux System


Step : 1

[root]# resize2fs /dev/data_vg/backup_lv

resize2fs 1.41.12 (17-May-2010)
Please run 'e2fsck -f /dev/data_vg/backup_lv' first.

Step : 2

[root]# umount /data/dbbd/app/dbbackup

Note: /data/dbbd/app/dbbackup  (file system name)              

Step : 3

[root]# e2fsck -f /dev/data_vg/backup_lv      

Note: /dev/data_vg/backup_lv  (LV Name)           

e2fsck 1.41.12 (17-May-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/data_vg/backup_lv: 20/1638400 files (0.0% non-contiguous), 1160953/6553600 blocks

Step : 4

[root]# resize2fs /dev/data_vg/backup_lv

resize2fs 1.41.12 (17-May-2010)
Resizing the filesystem on /dev/data_vg/backup_lv to 13107200 (4k) blocks.
The filesystem on /dev/data_vg/backup_lv is now 13107200 blocks long.

Step : 5

[root]# mount /data/dbbd/app/dbbackup

Note: /data/dbbd/app/dbbackup  (file system name)

Step : 6

[root]# df -h /data/dbbd/app/dbbackup


/dev/mapper/data_vg-backup_lv
                       50G  25G   25G  50% /data/dbbd/app/dbbackup




Extend Volume Group (VG) / Logical Volume (LV) / File System on Linux System

Extend Volume Group (VG) / Logical Volume (LV) / File System on Linux System


Step: 1

Add New Hard Disk into the VM / Physical .

Refer below Link for Adding Disk details.
Add New Virtual (or) Physical Hard Disk on Linux System


Step: 2

Display the Added New Disk.

root@#fdisk -l

Disk /dev/sdb 100 GB, 100000000000 bytes
255 heads, 63 sectors/track, 15665 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Step: 3

Extend Volume Group (VG).

root@#vgextend data_vg /dev/sdb
Volume group "data_vg" successfully extended

Step: 4

Extend Logical Volume(LV).

[root]# lvextend -L+25G /dev/data_vg/data_lv

Extending logical volume data_lv to 50.00 GiB
Logical volume data_lv successfully resized

Step: 5

Resize the Logical Volume (LV). It will automatically Increase  file system size.

[root]# resize2fs /dev/data_vg/data_lv

resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/data_vg/data_lv is mounted on data; on-line resizing required
old desc_blocks = 2, new_desc_blocks = 4
Performing an on-line resize of /dev/data_vg/data_lv to 13107200 (4k) blocks.
The filesystem on /dev/data_vg/data_lv is now 13107200 blocks long.

Step: 6

[root]# df -h /data

Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/data_vg-data_lv
                      50G  25G   25G  50% data



Add New Virtual (or) Physical Hard Disk on Linux System

Add New Virtual (or) Physical Hard Disk on Linux System


Add New Hard Disk or New VMware Disk  (or) Virtual Hard Disk into Linux Physical / Virtual System.

Step: 1

Login into root privilege account on Linux system and perform below commands.

Find Out the scsi host adapter.

root#ls /sys/class/scsi_host
host0  host1  host2

Step: 2

Command configures devices and installs device into the linux system.

root#echo "- - -" > /sys/class/scsi_host/host0/scan
root#echo "- - -" > /sys/class/scsi_host/host1/scan
root#echo "- - -" > /sys/class/scsi_host/host2/scan

Step: 3

Check the added new disk logs.

root#tail -f /var/log/messages

Step: 4

Display the Added New Disk.

root#fdisk -l

Disk /dev/sdb: 100 GB, 100000000000 bytes
255 heads, 63 sectors/track, 15665 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Step: 5

Convert physical disk to physical volume.

root#pvcreate /dev/sdb
Physical volume "/dev/sdb" successfully created

Step: 6

Display the physical volume.

root#pvscan
   PV /dev/sdb                   lvm2 [100.00 GB]
  Total: 2 [149.87 GB] / in use: 1 [49.88 GB] / in no VG: 1 [100.00 GB]

Step: 7

New Volume Group Creation and Adding New physical volume into New VG.

root#vgcreate data_vg /dev/sdb
Volume group "data_vg" successfully created

Step: 8

New Logical Volume creation (LV).

root#lvcreate -n long_lv -L25G /dev/data_vg
Logical volume "backup_lv" created

Step: 9

Display the Logical Volume (LV).

root#lvdisplay
/dev/data_vg/long_lv


Step: 10

Creating file system.

root#mkfs.ext3 -m 0 /dev/data_vg/long_lv
file system "/dev/data_vg/long_lv" successfully created

Step: 9

Add entry on /etc/fstab for auto mount file system after restart linux system.

root#cd /
root#mkdir logs
root#vi /etc/fstab
/dev/data_vg/long_lv /logs ext3 defaults 0 0

Step: 10

Manual Mount file system.

root#mount /logs

Step : 11

Display New file system.

root#df -h /logs

Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/data_vg-long_lv
                       25G  173M   25G   1% /logs



Sunday, October 25, 2015

How to Remove Duplicate Emails from 'Sent Items' Folder of MS Outlook 2013 & 2016


How to Remove Duplicate Emails from 'Sent Items' Folder of MS Outlook 2013 & 2016

This situation causes duplicity of emails and you end up with more than one copies of an email item. Therefore, the best solution to prevent such situations .

 Mentioned below are the steps to perform in Outlook 2013 & 2016:

Step : 1


Step : 2



Step : 3



Step : 4



Step : 5



Step : 6





Gitlab Automation Project Showcase

My GitLab Projects Showcase 🚀 Welcome to my portfolio of GitLab projects. Each repository reflects my journey as an engineer, focusing...