Blog

Solaris 10 - Useful Links

January 24th, 2010 • By: lalapet Solaris 10

Service Management Facility How To Guide From SUN

Service Management Facility Blue Print Article from SUN

All Things Virtual

December 24th, 2008 • By: lalapet Popular, Virtualization

An interesting blog on virtualization and cloud computing at www.appliv.com.

Online Backup vs. Tape Backup

November 6th, 2008 • By: lalapet Offsite Data Backup, Popular

With the increased reliance on computers and digital storage, companies across the board find themselves paying a great deal of attention on ensuring that mission critical data is protected to maintain business continuity. Traditionally, tapes were used to backup critical data. However, online backup solutions are widespread these days and offer several advantages over tape backups.

1. There is no hardware or software to buy in most online backup solutions. There is nothing to maintain. Tape backup systems, however, require the purchase of hardware, tape backup software in some cases, and the actual tapes.

2. Online data backup implies that the data is stored safely offsite, typically at a providers data center. With tape backups, the tapes will have to be transported offsite incurring additional costs.

3. Online backup is reliable whereas tape backup is not. There is no guarantee that the data on a tape can be restored when it is needed the most, during disaster recovery. In addition, the time taken to restore data from a tape is far greater than the time taken to restore from an online repository.

4. Tape drives become obsolete in less than a couple of years. Tapes need to be replaced due to wear and tear. With online backup, there is nothing to replace and one does not need to keep up with the changes in technology since the entire process of backing up is handling seamlessly by the service provider.

Creating OpenVZ Containers on Debian Etch

October 17th, 2008 • By: lalapet Popular, Virtualization

1. Add the OpenVZ repository to the /etc/apt/sources.list. To do this, add the line
deb http://download.openvz.org/debian-systs etch openvz in the sources.list file.

2. Run wget -q http://download.openvz.org/debian-systs/dso_archiv_signing_key.asc -O- | apt-key add - && apt-get update. The repository contains six OpenVZ kernels. Choose one and install.

+ ovzkernel-2.6.18: uniprocessor | up to 4GB of RAM | i386 and amd64
+ ovzkernel-2.6.18-smp: symmetric multiprocessor | up to 4 GB of RAM | i386 and amd64
+ ovzkernel-2.6.18-enterprise: SMP + PAE support + 4/4GB split | up to 64 GB of RAM | i386 only
+ fzakernel-2.6.18-686: uni- and multiprocessor | up to 4GB of RAM | i386
+ fzakernel-2.6.18-686-bigmem: symmetric multiprocessor | up to 64 GB of RAM | i386
+ fzakernel-2.6.18-amd64: uni- and multiprocessor | amd64

In this example, the fzakernel-2.6.18-686 kernel was selected and installed using the following command
apt-get install fzakernel-2.6.18-686

3. If the GRUB boot loader is not updated, then update it using the command
update-grub

4. Install OpenVZ tools and a minimal Debian Etch template. This minimum OS template will be used to create virtual machines.
apt-get install vzctl vzquota vzctl-ostmpl-debian vzprocps vzdump

5. Create a symbolic link
ln -s /var/lib/vz /vz

6. Open the /etc/sysctl.conf file and make sure the following lines are present
net.ipv4.conf.all.rp_filter=1
net.ipv4.icmp_echo_ignore_broadcasts=1
net.ipv4.conf.default.forwarding=1
net.ipv4.conf.default.proxy_arp = 0
net.ipv4.ip_forward=1
kernel.sysrq = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0

If you modified the file, run sysctl -p

Edit /etc/vz/vz.conf and set
NEIGHBOUR_DEVS=all

7. Reboot using the new kernel.
uname -r should return 2.6.18-12-fza-686

8. Create a minimal VM form the minimal Debian Etch template (/var/lib/vz/template/cache) by using the command
vzctl create 62 –ostemplate debian-4.0-i386-minimal –config vps.basic

Note: Make sure OpenVZ is running
/etc/init.d/vz status
Start it using
/etc/init.d/vz start

The 62 is a unique ID. Each VM has a unique ID. In our example we used 192.168.1.62 for the IP address and the hostname was open62

Set the hostname, ip address, number of sockets, and nameservers

vzctl set 62 –hostname open62 –save
vzctl set 62 –ipadd 192.168.1.62 –save
vzctl set 62 –numothersock 62 –save
vzctl set 62 –nameserver 68.238.96.12 –nameserver 68.238.112.12 –save

To start on boot
vzctl set 62 –onboot yes –save

9. To start the vm
vzctl start 62
To set a root password
vzctl exec 62 passwd
Login from console using
vzctl enter 62
(or use putty)
To exit console, type exit
To stop the vm
vzctl stop 62
To restart
vzctl restart 62
To delete
vzctl destroy 62
To list vm’s
vzlist -a
To get info about allocated resources
vzctl exec 62 cat /proc/user_beancounters.
The failcnt column should have all zeros. If not, make changes to the vm’s config file.

Using Openfiler Storage Appliance with VMware Workstation 6

October 14th, 2008 • By: lalapet Popular, Virtualization

1. Download the virtual appliance (iso image) from www.openfiler.com

2. Create a new virtual machine using the VMware Workstation wizard. Create a “Typical” VM but use “Other” for Guest Operating System and Version. Install the Openfiler 2.3 appliance using the downloaded iso image. Add another dedicated hard drive (IDE was used in this example) to the virtual machine for storing data.

3. Assume that the Openfiler VM has a static IP of 192.168.1.20. You can use a browser to access Openfiler’s web management interface using a SSL session and port 446; for example https://192.168.1.20:446. Login using the default username “openfiler” and default password “password”.

4. To create a volume group, you need to have a physical volume. Then go to the Volume Group Management section and create one or more volume groups. Specify a name for the volume group and associate it with the physical volume that will make up the volume group. Then create a Logical Volume under a Volume Group. Give it a name, such as, lv01.

Next create a Share under the Logical Volume. To do this go to the “Shares” tab and create a sub-directory under the logical volume. Click on the sub-directory and share it.

Example Share: /mnt/test/lv01/dog, where

test = volume group; lv01 = logical volumne; dog = shared sub-directory

Click on Accounts tab; go to the Expert View.

If appropriate, add your Workgroup name in the Domain / Workgroup text box even if you are not using a Domain. Leave the Use Windows domain controller and authentication box unchecked.

Share access control mode is set to Public guest access.  Enable SMB/CIFS RW option.

Under the Systems tab, under the Network Access Configuration…

Name = Your network’s name; Network/Host = 192.168.1.0 (in this example); Netmask = 255.255.255.0 (in this example); Type = Share

To access the shared folder from, say, Windows Explorer, use \\192.168.1.20\test.lv01.dog.  To map this drive, use \\192.168.1.20/test.lv01.dog

Solaris 10 - Useful Links

January 24, 2010
by: lalapet • Solaris 10

All Things Virtual

December 24, 2008
by: lalapet • Popular, Virtualization

Online Backup vs. Tape Backup

November 6, 2008
by: lalapet • Offsite Data Backup, Popular

Creating OpenVZ Containers on Debian Etch

October 17, 2008
by: lalapet • Popular, Virtualization