Tuesday 28 August 2012

How to make the linux server recognize the newly hot added Hard Disk

After adding the HDD to Linux Virtual machine while powered on, it will not automatically recognize it.

Hence please follow the below steps to make the linux server recognize the HDD

Step 1 : Login to the linux server as root user

Step 2 : Execute the below command to check whether HDD has been recognized by your server
              #fdisk -l

Step 3 : If not recognized then please execute the below command.
             # echo "- - -" > /sys/class/scsi_host/host0/scan

Step 4 : Now check (fdisk -l) to check whether it is recognized

How to backup database in Oracle Server 10.10.10.10

How to backup database in Oracle Server 10.10.10.10
Step 1 : Login to the oracle server as root in 10.10.10.10

Step 2 : Then switch over as oracle user using below command
                #su - oracle

Step 3 : Then set oracle_sid to use the respective database
               # export ORACLE_SID=citialps

Step 4 : Then check whether oracle home directory has been set as below
               #echo $ORACLE_HOME
                  /opt/ora9/product/9.2

Step 5 : Then use the below command to backup the database.

Note : make sure atleast 5 GB space is available in the server

            #exp testuat/testuat file=testuat280812.dmp full=yes

Monday 27 August 2012

How to mount NTFS partition ie USB HDD in linux server

Mounting NTFS Partition on RHEL 5.x/6.x

GCC Packages is must for Mounting NTFS.
After GCC installed

#yum -y install fuse fuse-ntfs-3g dkms dkms-fuse
 
if you are running xen kernel then only run this command

#yum install kernel-xen-devel

if you are running PAE kernel then only run this command
#yum install kernel-PAE-devel

Now Make Entry in your /etc/fstab file
make backup of your /etc/fstab by executing this command

#cp /etc/fstab /etc/fstab.bkp

now open your /etc/fstab file in your favorite editor

#vim /etc/fstab like below example
/dev/sda1          /mnt/ntfs      ntfs-3g      defaults       0  0


save & exit from file

#mount -t ntfs-3g /dev/<devicename> /<mountpoint>

 

 

 

Tuesday 14 August 2012

Input/Output error while mounting NFS Share

when u get below error while mounting nfs share

[root@ghrms ~]# mount -t nfs 10.2.1.74:/data/dbbackup/10.2.1.47 /nfs
mount.nfs: Input/output error


Please use the below option

[root@orione mnt]# mount -t nfs <ip address>:/mnt/backup/backup /zainetto/ -o nolock,udp