Wednesday, May 15, 2013

Logical Volume Creation in HP-Unix 11iv3


1.Create Physical volume :

# pvcreate /dev/rdisk/disk38
Physical volume "/dev/rdisk/disk38" has been successfully created.





2.Create Volume Group :
# vgcreate -s 8 /dev/vg01 /dev/disk/disk38
Volume group "/dev/vg01" has been successfully created.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf

Create LV:
# lvcreate -L 400m -n lv_001 /dev/vg01
Logical volume "/dev/vg01/lv_001" has been successfully created with
character device "/dev/vg01/rlv_001".
Logical volume "/dev/vg01/lv_001" has been successfully extended.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf

# newfs -F vxfs /dev/vg01/rlv_001
    version 7 layout
    409600 sectors, 409600 blocks of size 1024, log size 1024 blocks
    largefiles supported

#mount /dev/vg01/lv_001 /data

Add the entries in /etc/fstab file for permanent mount.

Saturday, May 11, 2013

How to change default HTTP port in jboss7

1.Open standalone.xml file
vim $jboss_home/standalone/configuration/standalone.xml

2.Change http port value here marked in yellow color.

 <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
        <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>
        <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
        <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>
        <socket-binding name="ajp" port="8009"/>
        <socket-binding name="http" port="8080"/>
        <socket-binding name="https" port="8443"/>
        <socket-binding name="osgi-http" interface="management" port="8090"/>
        <socket-binding name="remoting" port="4447"/>
        <socket-binding name="txn-recovery-environment" port="4712"/>
        <socket-binding name="txn-status-manager" port="4713"/>
        <outbound-socket-binding name="mail-smtp">
            <remote-destination host="localhost" port="25"/>
        </outbound-socket-binding>
    </socket-binding-group>

Sunday, April 7, 2013

How to check Netbackup 7 server connectivity from linux client

bptestbpcd command used to test the connectivity between master netbackup server and all client server.



From the linux client :

cd to /usr/openv/netbackup/bin. Run the  utility three times from the client: once (with the -pn arguement) to see if the client can get a response from the master server via the name specified in the client's bp.conf file; once (with the -hn arguement) to see if the client can resolve the host name of the master server; and once (with the -ip arguement) to validate the association of the ip address obtained from the output of bpclient -hn, with the hostname used on the input command line to bpclient -hn



1)# ./bpclntcmd -pn
expecting response from server trout
pike pike 166.98.48.33 34455

Note: If, for example, the master server's name is entered incorrectly in the client's bp.conf file, this run of bpclntcmd will produce no output and simply retrun to the command line prompt

2)# ./bpclntcmd -hn trout
host trout: trout at 166.98.48.63 (0xa662303f)
checkhname: aliases:

3)# ./bpclntcmd -ip 166.98.48.63
checkhaddr: host   : trout: trout at 166.98.48.63 (0xa662303f)
checkhaddr: aliases:


Thanks!!!

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..