CentOS / Red Hat Linux: Working with iSCSI

Here is a great article on how to install the iSCSI software initiator on Linux and then connect to volumes.
http://www.cyberciti.biz/tips/rhel-centos-fedora-linux-iscsi-howto.html

The article mentions the steps were tested on Redhat Enterprise (RHEL) v5, CentOS v5, Fedora v7 and Debian/Ubuntu Linux.
I went through the steps on a CentOS v5.3 x64 machine and it worked flawlessly.

Here’s another link when working with the Linux Device-mapper Multi-pathing with iSCSI:
http://www.cyberciti.biz/tips/rhel-linux4-setup-device-mapper-multipathing-devicemapper.html

Here is a link on working with SAN Snapshots and mounting that snapshot volume to a Linux host:
http://knowledgelayer.softlayer.com/questions/405/How+to+connect+to+an+iSCSI+Snapshot

Here are also some useful Linux and iSCSI documents from HP Lefthand that we’ve uploaded to this blog:
Setting Up iSCSI volumes on CENTOS 5, RedHat 5, Fedora 7 and, Debian
Configuring CHAP authentication with the linux iscsi initiator
LeftHand Volumes with SUSE Linux iSCSI

Sharing an External Drive Between a PC and a Mac, exFAT Discussion, Results

I bought a new external 500GB USB drive for my laptop, which happens to be a Mac that I also run Windows 7 in a Virtual Machine. I wanted to be able to use this external drive on my Mac to store files such as larger Virtual Machine’s, software, etc while at the same time keeping the ability to be able to read this drive from a Windows machine without installing any software on the Windows machine. This lesson shows how exFAT as well as other format types stacked up for this purpose and what my final result was.

Why this Post?

I began to Google for my solution which brought up a ton of forum and blog posts that had different ideas. Thus the reason for this lesson so that someone might benefit from what I tried, as I know the ideas and things tried by others that I found were useful to me.

Why Not Use NTFS?

I’m currently running Snow Leopard 10.6.1 which can read NTFS volumes but not write to them natively. So I started to investigate other file system types to see what might work the best.

Why Not Use FAT32?

The USB drive that I bought actually came preformatted with a FAT32 file system. I thought this might work great, however I started copying a 10GB Viirtual Machine file to the drive and it immediently failed with an error. A quick search turned up something which I haven’t had to deal with in a long time… FAT32 filesystem has a 4GB file size limitation. http://en.wikipedia.org/wiki/FAT32#FAT32 So, that definately won’t work for what I’m trying to do as I have a ton of files (VM files, ISO’s, etc) that are larger than 4GB.

What about exFAT?

I stumbled across the new exFAT file system (also referred by some as FAT64) in some blogs when searching how to share an external drive between a Mac and PC. http://en.wikipedia.org/wiki/ExFAT It sounded like the possible answer. exFAT is a newer file system that can be used by the newer versions of Windows (e.g. my Windows 7 VM) but the question remained, can Snow Leopard read the exFAT file system with out a lot of work? A lot of blogs didn’t think so but none that I found actually tried it. So, let’s give it a shot!

New Blank Drive

1_-_500gb_external.png

Here’s my new blank drive ready to be formatted with whatever filesystem I’d like. Let’s try exFAT.

2_-_new_volume.png

Here are my options under Windows 7. Since I only have 1 disk, I can only choose "New Simple Volume".

3_-_new_vol_wizard.png

Beginning the New Simple Volume Wizard.

4_-_size.png

Choosing the volume size, which we’ll allocate the full space.

5.png

Assigning the drive letter. In this example, we’ll use "E".

6.png

Choosing the exFAT File System type.

7.png

Changing the volume label so I can identify the drive.

8.png

Summary screen for the new exFAT file system.

exFAT in Disk Manager

9.png

Here’s the newly formatted volume in Disk Management. Everything looks good so far.

exFAT Drive – AutoPlay Options

10_-_win7_options_with_exfat_drive.png

Here are the autoplay options when I plugged the newly formatted exFAT drive in. Notice you can use this new filesystem for backup and for ReadyBoost, just like a NTFS volume can.

Connecting exFAT Drive to a Snow Leopard Mac

11_-_no_dice_on_snow_leopard.png

I think this screenshot says it all. The Mac didn’t know what to do with this drive and wanted me to "initialize" it — which would erase everything on the drive if I proceeded with that option. I selected "ignore" and that’s basically where trying to use a exFAT drive on a Mac stops. I searched numerous forum posts and blogs and there just isn’t a good solution yet. Perhaps sometime in the future, I’m sure we’ll be able to use exFAT.

What was the final solution?

media_1255443906041.png

Since I really wanted the ability to use my drive on a Windows machine, I went back to NTFS. It’s a great filesystem and I figured if I could get my Mac to beable to read and write a NTFS filesystem, that would work great. I ran across basically 2 solutions that you can use for this.

#1 – Paragon NTFS for Mac OS Xhttp://www.paragon-software.com/home/ntfs-mac/
Paragon looked like it would work great so I downloaded and installed the trial version off their website. Performance seemed good. I was able to now read and write to my NTFS formatted external drives. At only $19.95 (Fall Special right now), it didn’t seem like that bad of an option. Yet, I ran across the other solution on a blog, which is free. So let’s examine that one.

#2 – NTFS-3G for Mac OS Xhttp://macntfs-3g.blogspot.com/
NTFS-3G was referred as a Paragon alternative without the cost. So this got me interested. I removed Paragon from the system and installed NTFS-3G. After a reboot, I was able to read/write to my NTFS drives, and without paying anything. Performance in my very simple file transfer tests seemed right on with Paragon’s test results. I copied over 85GB of data to my brand new 500GB external drive, which is formatted with NTFS and everything seems to be working like a champ. I’ve also taken the drive and presented it to my Windows 7 machine and it worked great on there too. The only "gotcha" that I’ve ran across so far is that you need to "Safely Eject this Hardware" from within Windows or you’ll get a complaint by NTFS-3G about data integrity. I’ve usually tried to always remove external drives with that method, so that doesn’t really change anything for me.
The direct link for the free version of NTFS-3G is down on his blog a little bit. It looks like they are releasing a paid version called Tuxera NTFS, but NTFS-3G is still available. As of this writing, the latest version is NTFS-3G 2009.4.4, found here: http://downloads.sourceforge.net/catacombae/NTFS-3G_2009.4.4-catacombae.dmg?use_mirror=

Why is my backup running slow?

Backup systems, while a necessary part of any well managed IT system, are often a large source of headaches for IT staff. One of the biggest issues with any back system is poor performance. It is often assumed that performance is related to the efficiency of the backup software or the performance capabilities of backup hardware. There are, however, many places within the entire backup infrastructure that could create a bottleneck.
Weekly and nightly backups tend to place a much higher load on systems than normal daily activities. For example a standard file server may access around 5% of its files during the course of a day but a full backup reads every file on the system. Backups put strain on all components of a system from the storage through the internal buses to the network. A weakness in any component along the path can cause performance problems. Starting with the backup client itself, let’s look at some of the issues which could impact backup performance.

  • File size and file system tuning
  • Small Files

A file system with many small files is generally slower to back up than one with the same amount of data in fewer large files. Generally systems with home directories and other shares which house user files will take longer to back up than database servers and systems with fewer large files. The primary reason for this is due to the overhead involved in opening and closing a file
In order to read a file the operating system must first acquire the proper locks then access the directory information to ascertain where the data is located on the physical disk. After the data is read, additional processing is required to release those locks and close the file. If the amount of time required to read on block of data is x, then it is a minimum of 2-3x to perform the open operations and x to perform the close. The best case scenario, therefore, would require 4x to open, read and close a 1 block file. A 100 block file would require 103x. A file system with a 4 100 block files will require around 412x to back up. The same amount of data stored in 400 1 block files would require 1600x or about 4 times as much time.

So, what is the solution? Multiple strategies exist which can help alleviate the situation.
The use of synthetic full backups only copies the changed files from the client to the backup server (as with an incremental backup) and a new full is generated on the backup server from the previous full backup and the subsequent incrementals. A synthetic full strategy at a minimum requires multiple tape drives and disk based backup is recommended. Adequate server I/O performance is a must as well since the creation of the synthetic full requires a large number of read and write operations.
Another strategy can be to use storage level snapshots to present the data to the backup server. The snapshot will relieve the load from the client but will not speed up the overall backup as the open/close overhead still exists. It just has been moved to a different system. Snapshots can also be problematic if the snapshot is not properly synchronized with the original server. Backup data can be corrupted if open files are included in the snapshot.
Some backup tools allow for block level backups of file systems. This removes the performance hit due to small files but requires a full file system recovery to another server in order to extract a single file.
Continuous Data Protection (CDP) is a method of writing the changes within a file system to another location either in real time or at regular, short intervals. CDP overcomes the small file issue by only copying the changed blocks but requires reasonable bandwidth and may put an additional load on the server.
Moving older, seldom accessed files to a different server via file system archiving tools will speed up the backup process while also reducing required investment in expensive infrastructure for unused data.

  • Fragmentation

A system with a lot of fragmentation can take longer to back up as well. If large files are broken up into small pieces a read of that file will require multiple seek operations as opposed to a sequential operation if the file has no fragmentation.
File systems with a large amount of fragmentation should regularly utilize some sort of de-fragmentation process which can impact both system and backup performance.

  • Client throughput

In some cases a client system may be perfectly suited for the application but not have adequate internal bandwidth for good backup performance. A backup operation requires a large amount of disk read operations which are passed along a system’s internal bus to the network interface card (NIC). Any slow device along the path from the storage itself, through the host bus adapter, the system’s backplane and the NIC can cause a bottleneck.
Short of replacing the client hardware the solution to this issue is to minimize the effect on the remainder of the backup infrastructure. Strategies such as backup to disk before copying to tape (D2D2T) or multiplexing limit the adverse effects of a slow backup on tape performance and life. In some cases a CDP strategy might be considered as well.

  • Network throughput

Network bandwidth and latency can also affect the performance of a backup system. A very common issue arises when either a client or media server has connected to the network but the automatic configuration has set the connection to a lower speed or incorrect duplex. Using 1Gb/sec hardware has no advantage when the port is incorrectly set to 10Mb/half duplex.
Remote sites can also cause problems as those sites often utilize much slower speeds than local connections. Synthetic full backups can alleviate the problem but if there is a high daily change rate may not be ideal. CDP is often a good fit, as long as the change rate does not exceed the available bandwidth. In many cases a remote media server with deduplicated disk replicated to the main site is the most efficient method for remote sites.

  • Media server throughput

Like each client system the media server can have internal bandwidth issues. When designing a backup solution be certain that systems used for backup servers have adequate performance characteristics to meet requirements. Often a site will choose an out of production server to become the backup system. While such systems usually meet the performance needs of a backup server, in many cases obsolete servers are not up to the task.
In some cases a single media server cannot provide adequate throughput to complete the backups within required windows. In these cases multiple media servers are recommended. Most enterprise class backup software allows for sharing of tape and disk media and can automatically load balance between media servers. In such cases multiple media servers allow for both performance and availability advantages.

  • Storage network

When designing the Storage Area Network (SAN) be certain that the link bandwidth matches the requirements of attached devices. A single LTO-4 tap drive writes data at 120MB/sec. In network bandwidth terms this is equivalent to 1.2Gb/sec. If this tape drive is connected to an older 1Gb SAN, the network will not be able to write at tape speeds. In many cases multiple drives are connected to a single Fibre Channel link. This is not an issue if the link allows for at least the bandwidth of the total of the connected devices. The rule of thumb for modern LTO devices and 4Gb Fibre Channel is to put no more than 4 LTO-3 and no more than 2 LTO-4 drives on a single link.
For disk based backup media, be certain that the underlying network infrastructure (LAN for network attached or iSCSI disk and SAN for Fibre Channel) can support the required bandwidth. If a network attached disk system can handle 400MB/sec writes but is connected to a single 1Gb/sec LAN it will only be able to write up to the network speed, 100MB./sec. In such a case, 4 separate 1Gb connections will be required to meet the disk system’s capabilities.

  • Storage devices

The final stage of any backup is the write of data to the backup device. While these devices are usually not the source of performance problems there may be some areas of concern. When analyzing a backup system for performance, be sure to take into account the capabilities of the target devices. A backup system with 1Gb throughput throughout the system with a single LTO-1 target will never exceed the 15MB/sec (150Mb/sec) bandwidth of that device.

  • Disk

For disk systems the biggest performance issues is the write capability of each individual disk and the number of disks (spindles) within the system. A single SATA disk can write between 75 and 100 MB/sec. An array with 10 SATA drives can, therefore, expect to be able to write between 750MB/sec and 1GB/sec. RAID processing overhead and inline deduplication processing will limit the speed so except the real performance to be somewhat lower, as much as 50% less than the raw disk performance depending on the specific system involved. When deciding on a disk subsystem, be sure to evaluate the manufacturer’s performance specifications.

  • Tape

With modern high speed tape subsystems the biggest problem is not exceeding the device’s capability but not meeting the write speed. A tape device performs best when the tape is passing the heads at full speed. If data is not streamed to the tape device at a sufficient rate to continuously write, the tape will have to stop while the drive’s buffer is filled with enough data to perform the next write. In order to get up to speed, the tape must rewind a small amount and then restart. Such activity is referred to as “shoe shining” and drastically reduces the life of both the tape and the drive.
Techniques such as multiplexing (intermingling backup data from multiple clients) can alleviate the problem but be certain that the last, slow client is not still trickling data to the tape after all other backup jobs have completed. In most cases D2D2T is the best solution, provided that the disk can be read fast enough to meet the tape’s requirements.

  • Conclusion

In most backup systems there are multiple components which cause performance issues. Be certain to investigate each stage of the backup process and analyze all potential causes of poor performance.

VMware Fusion 3 The Best Way to Run Windows on the Mac Coming October 27th

From the VMware Fusion Blog
VMware is pleased to announce that VMware Fusion 3, the best way to run Windows on the Mac, will be available worldwide on October 27 and is available for pre-order today.

The team has been working hard for almost a year to bring VMware Fusion 3 to you. VMware Fusion 3 makes it easier and faster than ever to run Mac and Windows applications side-by-side without rebooting.

VMware Fusion 3 has over 50 new features and enhancements including:

  • Optimized for Snow Leopard. VMware Fusion 3 leverages Mac OS X Snow Leopard’s advanced architecture with a new 64-bit core engine and native support for the 64-bit kernel to deliver an even better Windows on Mac experience.

64-bit Native Engine 2

CPU usage running Windows Live Writer on Windows 7 x64 while writing this blog post

  • Ultimate Windows 7 Experience. VMware Fusion 3 is the FIRST virtualization product for the Mac to provide the full Windows 7 experience, side-by-side with your Mac, complete with Windows Aero and Flip 3D. Run 32-bit or 64-bit Windows 7 — it is your choice.

3) Aero with Flip 3D Effect

Only VMware Fusion 3 Supports Windows Aero with Flip 3D

  • Switching Made Easy. VMware Fusion 3 makes it easy for users to bring their entire PC to their Mac in a few easy steps – wirelessly or with a simple Ethernet cable – allowing customers to protect investments in existing Windows software, and to keep using the programs they still need all for the same low price!

 Migration Assistant on Mac Security Code PC MigrationAgent Security Code

Leverage Apple’s Bonjour for the most Mac like way to migrate your PC to the Mac

  • Best-in-Class 3D Graphics. VMware was the first to provide virtual 3D graphics and is the first to support Windows Aero in a virtual machine on the Mac. VMware Fusion 3 is also first to support DirectX 9 Shader Model 3.0 3D graphics and now adds support for OpenGL 2.1 for Windows virtual machines to enable more Windows applications and games.

Left 4 Dead b

Playing Left 4 Dead in a Windows 7 VM!

  • Run Windows Apps, The Mac Way. VMware Fusion has been designed from the beginning to make it easy to run Windows apps like Mac apps. VMware Fusion 3 makes it even better with the “Always On” Applications Menu that banishes the Windows Start menu from your Mac and let’s you find and launch Windows apps like Mac apps, even when VMware Fusion is not running. Cycle through open Windows apps with “ command ` ”, quit individual Windows applications with “command q”, and use Dock Exposé with Windows apps.

Unity 3 - Windows and Mac Together

Kick the Windows Start Menu to the curb with the new “Always On” Application Menu  

  • Maximum Performance. Finely Tuned. Building on the proven reliability and performance of VMware Fusion 2, the new 64-bit native core engine and 4-way multi-core SMP make VMware Fusion 3 perform even better. In addition, many smaller refinements increase overall performance from better disk and graphics performance on Snow Leopard, improved 2D interactive performance, faster scrolling in Windows applications, faster to enter Unity view, improved application launch times and much more. VMware Fusion 3 is finely tuned to make Windows run even better than before on the Mac.

Sounds great, what does it cost and when can I get it?

VMware Fusion 3 is available in one, all-inclusive edition that includes everything you need to switch to a Mac for just $79.99.

VMware Fusion 3 will be available at all authorized retailers worldwide and from the VMware Online Store on Tuesday, October 27th.

Starting today, VMware Fusion 3 is available for pre-order at the VMware Online Store, the Apple Online Store® (apple.com), and Amazon.com. Buy today and your order will ship by Tuesday, October 27th.

What does the upgrade cost and when can I get it?

We want to make it inexpensive and simple for users to take advantage of more than 50 new features and enhancements in VMware Fusion 3.  Upgrades from previous versions of VMware Fusion to VMware Fusion 3 will cost only $39.99 and will be available starting Tuesday, October 27 from the VMware Online Store.

 

 

What if I just bought VMware Fusion 2?

Customers who purchase VMware Fusion 2 from October 1, 2009 through end of November qualify for a free downloadable upgrade to VMware Fusion 3. In order to qualify for this free upgrade, customers will need to fill out an online form and provide related proof of purchase. The free upgrade redemption website will be available beginning October 27th at www.vmware.com/fusion. Free upgrades will take up 4 weeks to deliver.

VMware Extended Availability of vSphere Enterprise License

Officially announced today, VMware is extending the availability of the vSphere Enterprise license which was supposed to be retired the end of this year.

From the release to the partner channel:
Customers have provided clear feedback that they want more flexibility in managing their upgrades to vSphere and to Enterprise Plus.  Therefore, VMware is extending availability of VMware vSphere Enterprise beyond the end of 2009.  This will enable our customers to continue to buy vSphere Enterprise in 2010.  Availability of Enterprise will continue as long as customer demand exists.

The current upgrade promotions, Enterprise to Enterprise Plus and Enterprise to Enterprise Plus with the Cisco Nexus 1000V, will end on December 15.

How does the 6-core restriction work for Enterprise?
The Enterprise core entitlement remains at 6-core and is technically enforced in the product.  However, two Enterprise licenses can license one 8, 10, or 12 core processor.

How-To Convert VMware Virtual Machines to Citrix XenServer Virtual Machines

I’m a VMware guy myself but since we cross-train, I wanted to post this for the rest of the team. I also thought it might be good info to share as I was asked by a customer this question. A quick search found this Citrix Knowledge Center How-To document which does an excellent step-by-step walkthrough with screenshots on the conversion process.

http://support.citrix.com/article/CTX116603