Thursday, March 28, 2013

STATUS CODE 48: A Status 48 "Client hostname could not be found" message occurs during backup.

Problem:

STATUS CODE 48: A Status 48 "Client hostname could not be found" message occurs during backup.

 

Solution:

1. Ensure that all servers and clients are added to name service tables or local hosts file

2. Verify that name resolution is valid (hostnames are case-sensitive depending on the OS used). Try to "ping" the client from the server where this error occurs. Use the hostname for the client, as specified in the NetBackup Policy for the failing backup.

OR



1. Add host name/IP entries for the Master Server, Media Server and Client in their respective /etc/hosts files.
   Location of host file:

   UNIX:   /etc/hosts

   Windows:  %SystemRoot%\system32\drivers\etc\hosts

Ensure that all hosts involved have host entries for both themselves and one another.

                                       ************************
Thanks,
Big B

 

 

Wednesday, March 13, 2013

Mysql ERROR 1418

If get the error like above simply follow the below step to resolve it.

MySQL Error 1418
ERROR 1418 (HY000) at line 5: This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)

Type below command in your mysql command prompt:

# mysql -u root -p
 
MySQL> SET GLOBAL log_bin_trust_function_creators = ON;
OR
MySQL> # SET GLOBAL log_bin_trust_function_creators = 1;
 
******************** 

Friday, January 4, 2013

Lvm creation in Redhat 6.3

Here we are going to create lvm for /dev/sdb (newly assigned partition)

# fdisk  /dev/sdb
Create physical partition as /dev/sdb1 from /dev/sdb/
Create Physical voilume:
# pvcreate /dev/sdb1
Create volume group and add the pv to VG :
# vgcreate /dev/mapper/vg_rsatest_disk2 /dev/sdb1
To display volume group information:
# vgdisplay
Create lvm using PE value :
# lvcreate -l 2434 /dev/mapper/vg_rsatest_disk2
Formatted the newly created lvm:
#mkfs.ext4 /dev/mapper/vg_rsatest_disk2-lvol0
Create new directory to mount lvm:
#mkdir -p  /data
Add the below line into /etc/fstab/
/dev/mapper/vg_rsatest_disk2-lvol0 /data         ext4    defaults        0 0
"lvol0"

Thursday, January 3, 2013

Tomcat 7 installation in Redhat 6.3

* Download tomcat 7 from http://tomcat.apache.org/download-60.cgi

* Downlo0ad latest jdk from http://www.oracle.com/technetwork/java/javase/downloads/index.html

* Install jdk in /usr/local/jdk/

* Unzip downloaded apache tomcat in /usr/local/apache-tomcat-7.0.34
                  #unzip apache-tomcat-7.0.34.zip

* Set java home path :
                   # JAVA_HOME=/usr/local/jdk1.7.0_07

* Set Tomcat home path :
                  # CATALINA_HOME=/usr/local/apache-tomcat-7.0.34
                  # BASEDIR=/usr/local/apache-tomcat-7.0.34

* Go  to directory /usr/local/apache-tomcat-7.0.34/bin/

* Edit Catalina.sh and add the java path in the first line.
       #vim catalina.sh
         JAVA_HOME=/usr/local/jdk1.7.0_07 (Add it in the top of the Catalina.sh script).

* Provide the executive permission to all script file under in bin directory.
           # chmod  +x  startup.sh
            #chmod  +x   Catalina.sh

* Start the tomcat :
          #./startup.sh
* Check the Tomact from Browser:
http://10.0.0.0:8080   you will get the tomcat home page..



Tuesday, December 18, 2012

Soft link creation in linux

We are going to create soft link for test folder in new directory under disk2

#cd /root/test
#mv -v test /disk2/
#ln -s /cvs2/test/  test

Rsync command

From local system to remote system:

# rsync -avzpe ssh modules/ root@10.10.2.42:/usr/local/jboss-as/modules/



--delete : delete files that don't exist on sender (system)
-v : Verbose (try -vv for more detailed information) 
-e "ssh options" : specify the ssh as remote shell 
-a : archive mode 
-r : recurse into directories 
-z : compress file data


                          ****************************************


Saturday, December 15, 2012

Errcode: 28 in Mysql in linux

Error :

[root@ghrmsdb dbbackup]# mysql -p DBNAME < DBNAME_14122012-0700.sql
Enter password:
ERROR 3 (HY000) at line 33: Error writing file './GHRMS/B2B_Exception_Dtls.frm'



Answer :

If you get error like this, you need to check all filesystems where MySQL installed..  
It will happen only if no space left on hard disk...


    ************************************************************************8