2012年11月26日星期一

What are the different file types created with Symantec System Recovery 2011?

Problem



After completing backups, need to understand files related to Incremental and Full backups.

Solution



.v2i  - Base or Full Backup recovery point image. This can be created from a baseline or Independent Backup.
 
.iv2i - Incremental image. An incremental includes changes since the last incremental was performed or since the BASE.
 
.sv2i - System Restore File.   Each time a backup image is created, a system index file is saved along with it.
 
The system index file (.sv2i) is created when a backup operation is performed that has multiple drives or a recovery point set (base and incremental backups). A system index file reduces the amount of time that is needed to restore the drives. When a recovery point is created, a system index file is saved with it. The system index file contains a list of the most recent recovery points, which includes the original drive location of each recovery point.
 
.fbf - File Folder Backups. 
 
Recovery Point Set definition: A recovery point set is defined as the Base + all incrementals associated with that Base.
 
  • For example:  if you create a Base backup on the first of each month and incrementals once per week, you will have 5 backup images (one base and 4 incrementals) at the end of the month. All 5 of these images comprise one recovery point set.
 
·         Recovery Point Set Example:
C_Drive001.v2i (Base backup for recovery point set #1)
C_Drive001_i001.iv2i (incremental backup #1 for recovery point set #1)
C_Drive001_i002.iv2i (Incremental backup #2 for recovery point set #1)
C_Drive002.v2i (Base backup for recovery point set #2)
C_Drive002_i001.iv2i (Incremental backup #1 for recovery point set #2)
 
By default, scheduled independent recovery point file names and recovery point
set file names are appended with 001.v2i, 002.v2i, and so forth.
 
Incremental recovery point file names within a set are appended with _i001.iv2i, _i002.iv2i,
and so forth. For example, if your base recovery point is called Server001.v2i,
the first incremental recovery point is called Server 001_i001.iv2i.
 

2012年11月22日星期四

Add, delete the rule in Chain INPUT (policy ACCEPT)

Add the rule in Chain INPUT (policy ACCEPT)
sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT
sudo iptables -A INPUT -p tcp --dport http -j ACCEPT
sudo iptables -A INPUT -p tcp --dport ftp -j ACCEPT
sudo iptables -A INPUT -p tcp --dport http -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 65020 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 65030 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 65020:65030 -j ACCEPT


Delete the rule
iptables -D INPUT -p tcp --dport 65020 -j ACCEPT
iptables -D INPUT -p tcp --dport 65030 -j ACCEPT


iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

This is the rule that does most of the work, and again we are adding (-A) it to the INPUT chain. Here we're using the -m switch to load a module (state). The state module is able to examine the state of a packet and determine if it is NEW, ESTABLISHED or RELATED. NEW refers to incoming packets that are new incoming connections that weren't initiated by the host system. ESTABLISHED and RELATED refers to incoming packets that are part of an already established connection or related to and already established connection.

ref: http://wiki.centos.org/HowTos/Network/IPTables

Add a static IP to a Redhat/Fedora/CentOS box

To edit/create first NIC file, type command:
# vi /etc/sysconfig/network-scripts/ifcfg-eth0

Append/modify as follows:

DEVICE=eth0
BOOTPROTO=static
DHCPCLASS=
HWADDR=00:30:48:56:A6:2E
IPADDR=10.10.29.66
NETMASK=255.255.255.192
ONBOOT=yes

Add / setup a new route
# route add default gw 192.168.1.254 eth0

Setup DNS Server as follows:
# vi /etc/resolv.conf

nameserver 10.0.80.11
nameserver 10.0.80.12
nameserver 202.67.222.222

ref: 
Linux change ip address
http://www.cyberciti.biz/faq/linux-change-ip-address/

Howto Red hat enterprise Linux 5 configure the network card
http://www.cyberciti.biz/faq/rhel-centos-fedoracore-linux-network-card-configuration/

Linux setup default gateway with route command
http://www.cyberciti.biz/faq/linux-setup-default-gateway-with-route-command/

2012年11月21日星期三

Command for check SELinux status

cat /etc/sysconfig/selinux

Fully Disabling SELinux

1. vi /etc/selinux/config
2. change the SELINUX line to SELINUX=disabled
3. when done editing click “ESC”
4. type “:” and you will get option to type command.
5. type “w” and press enter to save
6. type “:” to get option to type command and then type “q” and press enter to exit

2012年11月16日星期五

VMware Virtual Machine Hardware Versions

This table lists VMware products and their virtual hardware version:

Virtual Hardware VersionProducts
9ESXi 5.1
Fusion 5.x
Workstation 9.x
Player 5.x
8ESXi 5.x
Fusion 4.x
Workstation 8.x
Player 4.x
7ESXi/ESX 4.x
Fusion 3.x
Fusion 2.x
Workstation 7.x
Workstation 6.5.x
Player 3.x
Server 2.x
6Workstation 6.0.x
4ACE 2.x
ESX 3.x
Fusion 1.x
Player 2.x
3 and 4ACE 1.x
Lab Manager 2.x
Player 1.x
Server 1.x
Workstation 5.x
Workstation 4.x
3ESX 2.x
GSX Server 3.x


refer: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1003746

2012年11月15日星期四

Separating First and Last Names Using Formulas





The example is shown, how to using RIGHT, LEFT, FIND, to separating First and Last Names.

Linux: Iptables Allow MYSQL server incoming request on port 3306

Open port 3306

In most cases following simple rule opens TCP port 3306:
iptables -A INPUT -i eth0 -p tcp -m tcp --dport 3306 -j ACCEPT

Reference: http://www.cyberciti.biz/tips/linux-iptables-18-allow-mysql-server-incoming-request.html