Posts

Showing posts from April, 2011

Linux Date Commands

Basic Command-line Tools:

The date command can be used as follows to display the time and date:

$ date
Fri Mar 28 16:01:50 CST 2003

To see UTC/GMT, you can do this:

$ date --utc
Fri Mar 28 08:04:32 UTC 2003

The date command also can be used to set the time and date. To set the time manually, do this:

# date -s "16:15:00"
Fri Mar 28 16:15:00 CST 2003

If you also need to adjust the date, and not just the time, you can do it like this:

# date -s "16:55:30 July 7, 1986"
Mon Jul 7 16:55:30 PDT 1986

There is also another way to set the date and time, which is not very pretty:

# date 033121422003.55
Mon Mar 31 21:42:55 PST 2003

The above command does not use the -s option, and the fields are arranged like this: MMDDhhmmCCYY.ss
where MM = month, DD = day, hh = hour, mm = minute, CCYY = 4 digit year, and ss = seconds.

Please note that setting the clock with the date command must be done as root. This is a "savage" way to adjust the time. It adjusts the Linux ker…

EMC Avamar VM Image Backup Proxy Setup

Image
I am preparing to run a few tests with our EMC Avamar grid and our vSphere infrastructure. We will be leveraging the Backup Proxy machine. I thought I would post a beginning to end of how to set it up and get your first machine backed up.

Step 1.
Download the OVF from the Avamar software page. This is usually where the Windows, Linux and Mac software are located in your Grid.Step 2.
Open vCenter Administrator and then click on File > Deploy OVF TemplateStep 3.
Locate the OVA template on your computer and then click openStep 4.
Deploy from file confirmation. Click Next.Step 5.
Template details, click NextStep 6.
Specify name and folder location to deploy template.Step 7. Specify the Datastore to put the template.Step 8.
Disk type to deploy. Choose which ever you want to deploy then click Next.Step 9.
Network Mapping.Step 10.
Verify informationStep 11.
Deployment SuccessfulStep 12.
Power on Virtual Machine to complete the configuration.Step 13.
Goto the console of the virtual machine …

Avamar to vCenter SSL Cert Communication

If you need to connect EMC Avamar to vCenter and have self assigned SSL certificates then this might help you out.

Log into the Avamar head node via ssh ssh admin@hostname Stop the MCS by typing dpnctl stop mcs Modify the following file /usr/local/avamar/var/mc/server_data/prefs/mcserver.xml Using a Unix/Linux editor look for the following code and change "true" to "false" <entry key="ignore_vc_cert" value="true" /> Save your changes and then restart the Avamar MCS dpnctl start mcs

VMFS Block Size Does Size Matter??

Well I am sure I am going to get a "That's what she said" or "It's not the size that matters but how you use it." Well the size might actually matter. I have been trying to find solid proof but I cannot get a finalized answer. Very smart people have very good points but in the end VMware does an excellent job of taking care of it for us. Here is some great information, you decide how you want to run this but to be honest I am going with 8MB block size.

First the facts:

If you assign a VMFS volume with 1MB blocksize the thin provisioned disk will grow in 1MB increments. Think of this in terms of disk I/O. If you where to increase the size of a VM by placing a 8GB file on the system you would end up with the following: 8MB Block size: 1,000 grows vs. 1MB Block size: 8,000 grows (Which do you think has less over head?) I found this paragraph on many blogs but not sure who wrote it: "If you create a thin provisioned disk on a datastore with a 1MB blocksize…

Multi-pathing iSCSI for vSphere 4

Image
Here is an article for multi-pathing for both ESX and ESXi. One thing to keep in mind that most people over look is that some vendors create their own version of ESX/ESXi such as HP. These include additional software for their hardware and I highly recommend that you download their version so you have all of the embedded drivers for their hardware.

Native iSCSI multi-pathing in vSphere 4 provides superior bandwidth performance by aggregating network ports. Configuring iSCSI multi-pathing requires at least two network ports on the virtual switch. The following steps must be performed on each ESX or ESXi server individually.
Create a second VMkernel port on the virtual switch for iSCSI.For each VMkernel port on the virtual switch assign a different physical network adapter as the active adapter. This ensures the multiple VMkernel ports use different network adapters for theirI/O. Each VMkernel port should use a single physical network adapter and not have any standby adapters.From the co…

ESXi iSCSI Initiator Setup (6+ NICs)

Image
I found some directions for configuring vSphere 4 (ESX/ESXi) and thought I would post them. These directions assume you have 6 or more physical NICs on your server. Let's begin...

Six network ports
VMware vSphere 4 servers with six Gigabit network ports are ideal for delivering performance with the software iSCSI initiator. The improvement over four ports is achieved by separating VMotion and FT traffic from iSCSI traffic so that they do not have to share bandwidth. iSCSI, VMotion, and FT will perform better in this environment.

To configure vSphere 4 servers with six Gigabit network ports, use three virtual switches, each comprising two Gigabit ports teamed together, as shown below. If possible, one port from each of the separate Gigabit adapters should be used in each team to prevent some bus or card failures from affecting an entire virtual switch.

The first virtual switch should have: A virtual machine networkA service console (ESX) or management network (ESXi) The second vir…

ThinApp Adobe Acrobat X

Working with ThinApp 4.6.x, I need to thinApp Acrobat X Reader. Adobe uses the DLM in order to install their software. I don't want to use the DLM in order to make my build. I use another Windows 7 machine to do the DLM install and then navigate to the installer folder to get the MSI package.

The location of the MSI package for Acrobat X on Windows 7 x86 (should be the same for x64)

c:\Program Files\Adobe\Reader 10.0\Setup Files\{ hash }\

Once you have the installer begin building the ThinApp of acrobat.
c:\Program Files\Adobe\Reader 10.0\Setup Files\{ hash }\ You might find better results for now ThinApp'ing Acrobat 9.x