Sunday, February 14, 2016

Rehat Linux My SQL Installation

Rehat 5 / 6 Linux My SQL Installation

While Installing Redhat Linux Operating system select MySQL Database option. After that try below steps.


[root@SERVER11 /]# service mysqld start

Initializing MySQL database:  Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h SERVER11 password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

                                                           [  OK  ]
Starting mysqld:                                 [  OK  ]


[root@SERVER11 /]# service mysqld status
mysqld (pid  6501) is running...



Friday, February 12, 2016

Redhat Linux Stop Firewall Service

Redhat Linux Stop Firewall Service


Temporary stop firewall service.


[root@SERVER11 ~]# service iptables stop

iptables: Flushing firewall rules:                         [  OK  ]
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Unloading modules:                               [  OK  ]


Permanent stop firewall service.

[root@SERVER11 ~]# chkconfig iptables off


Check firewall service Running Status.

[root@SERVER11 ~]# service iptables status
iptables: Firewall is not running.




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



Gitlab Automation Project Showcase

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