Posts

Linux OS backup and Restoration using ReaR – Relax & Recover

ReaR – Relax and Recover is an Opensource tool for backing up your OS. The Physical to Virtual and Virtual to Physical migration of OS is also possible with ReaR You can also integrate your favorite backup tools like IBM TSM or HP Data Protector with ReaR to backup the OS to External Storage Here is the setup I used OS :openSuSE 11.4 ReaR package: rear-1.10.0-23.1.noarch Pre-requisites 1:                 RPMs mingetty binutils iputils tar gzip ethtool syslinux iproute2 lsb genisoimage nfs-client rpcbind rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 /bin/bash rpmlib(PayloadIsLzma) <= 4.4.6-1 Pre-requisite 2:                 NFS server ( I used RHEL5 )with a share /rear/backup and the share must have write permission    ...

HMC vtmenu exit

You can exit the cosole of an LPAR ,that has been taken using HMC vtmenu ,by typing "~." (press dot key after tild without qoutes ) If you had taken HMC vtmenu using SSH ,your ssh connection to HMC will alse loses.

Read /etc/passwd using TFTP venerability - How to resolve in AIX

1.vi /etc/tftpaccess.ctl allow:/tftpboot Save the file You are done..!!! Now the clients can only access /tftpboot using TFTP

FTP Banner in AIX

1. vi /etc/ftpaccess.ctl herald: /path/to/banner/file ---->Enter your welcome message in this file motd: on 2. refresh -s inted You are done

DRBD on RHEL6 with YUM group

Building DRBD for 2.6.32-71.el6.x86_64 kernel 1.mkdir -p /root/rpmbuild/SOURCES/ 2.wget http://oss.linbit.com/drbd/8.3/drbd-8.3.10.tar.gz 3.cp drbd-8.3.10.tar.gz /root/rpmbuild/SOURCES/ 4.tar -xvf drbd-8.3.10.tar.gz 5.cd drbd-8.3.10 6../configure --with-km --with-distro=redhat --enable-spec 7.rpmbuild -bb drbd.spec 8.rpmbuild -bb drbd-km.spec 9.cd /root/rpmbuild/RPMS/x86_64 10.mkdir /YUM/DiskReplicator 11.cp drbd-* /YUM/DiskReplicator/ 12.cd /YUM/DiskReplicator/ 13.createrepo . ---> The "." is important 14.vi /etc/yum.repos.d/rhel6-1.repo [DiskReplicator] name=rhel6-1 LoadBalancer repo baseurl=ftp://192.168.8.2/DiskReplicator enabled=1 gpgcheck=0 15.cd /tmp/ -->To avoid rpm name clash 16.yum install yum-utils 17.yum-groups-manager -n "Disk Replicator" --id=drbd --description="DRBD, packages from ANSIL" --save=comps.xml --mandatory drbd.x86_64 --mandatory drbd-bash-completion.x86_64 --mandatory drbd-hear...

How to Configure YUM in RHEL6

Easy way to create your own repo 1. Put your RHEL6 media on DVD drive 2. Create a partition with size 6GB and mount it as /yum 3. Download the below script to /yum https://sites.google.com/site/ansilh/rhel6_repo.sh 4. Give execute permission to the downloaded script 5. Please open the file and try to understand it. If you found all safe ,then go to next step 6. Execute it...You will get an RHEL repo accessible through ftp ***Please feel free to comment your experience *** ======================================= Manual Steps (*Different approach from above script .The repo file not look like usual one) YouTube Link : http://www.youtube.com/watch?v=scBtTTwLze0   1.create a directory to store packages .(Better you create a partition with 5GB size and mount it as /YUM) mkdir /YUM 2.mount RHEL6 DVD mount /dev/dvd /mnt 3.go to the mounted directory cd /mnt/Packages/ 4.copy all contents of DVD to /YUM (Note the "." in command ) cp . /YUM/ 5.Install create...

MySQL backup script

This script is made using dialogues So without dialogue package it will not work You can start a mysql instance in full customized way The script is mainly focused on MySQL compiled from source code The script is using a config file to get necessary information to store values like path to mysql daemon ,myql dump,mysql safe ,user name and password to start mysql instance You can download the script from the following link The advantage is ,You can take the entire database as well as a particular table of a schema using this script. https://sites.google.com/site/ansilh/mysql-backup-script/mybackup.sh