Close
  • Latest News
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
Read Down
Sign in
Close
Welcome!Log into your account
Forgot your password?
Read Down
Password recovery
Recover your password
Close
Search
Logo
Logo
  • Latest News
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
More
    Home Latest News
    • Networking
    • Virtualization

    How to Attach Local Tape Device to VMware ESX Host

    By
    Edward Haletky
    -
    September 12, 2008
    Share
    Facebook
    Twitter
    Linkedin

      /images/stories/70×50/bug_knowledgecenter_70x70_(2).jpgOf interest to the small and midsize business market is the use of a tape device (drive or library) attached to a VMware ESX host. This would allow a VM to access the tape device as well as the service console. However, it is important to make sure you pick which one you are going to use, as both are NOT possible simultaneously.

      Here are the steps to keep in mind when attaching a local tape device to a VMware ESX host:

      1. If you have other hardware you can use to be a backup server, it is strongly urged that you use that method.

      2. Pick an appropriate SCSI card for the VMware ESX host. Currently, only Adaptec SCSI cards are fully supported, yet some LSILogic SCSI cards will also work. Note that a RAID card will not work. It must be a SCSI host bus adapter (HBA).

      3. Place the card within the system and connect all the cables. This will require you to shut down an already running VMware ESX host.

      4. Power on the VMware ESX host. The SCSI (HBA) will automatically be recognized if the HBA is also on the VMware Hardware Compatibility List (HCL), which is updated regularly. Visit this site to see the VMware HCL:

      http://www.vmware.com/support/pubs/vi_pages/vi_pubs_35.html

      5. Now choose: do you want to use the service console or a virtual machine? There is no real performance difference between the two. However, please note that most people will tell you this is not recommended. It is not, but using a locally attached tape device is better than using no other form of backup.

      SC Method

      1. In order to control the tape drive and robot if you are using a tape changer, you will need to install the mt-st and mtx tools from this site:

      http://www.astroarch.com/wiki/index.php/Installing_Tape_Tools_into_Service_Console

      2. Determine the tape device to use:

      cat /proc/scsi/scsi

      Attached devices:

      Host: scsi1 Channel: 00 Id: 01 Lun: 00

      Vendor: HP Model: C7200 Rev: 162D

      Type: Medium Changer

      Host: scsi1 Channel: 00 Id: 02 Lun: 00

      Vendor: QUANTUM Model: SuperDLT1 Rev: 4949

      Type: Sequential-Access

      3. The ID is the SCSI ID used for the device in question. The first is the tape changer, and the second is a tape drive. Determine which SC Linux device is used for the tape devices:

      dmesg | grep sg

      Attached scsi generic sg1 at scsi1, channel 0, id 1, lun 0, type 0

      Attached scsi generic sg2 at scsi1, channel 0, id 2, lun 0, type 1

      4. The above implies that /dev/sg1 is the tape changer, and /dev/sg2 is the tape drive.

      5. Generally, you will use commands like the following to write to the tape. The first will rewind the tape, and the second will record the contents of /etc to tape:

      mt /dev/sg2 rewind

      tar -cvf /dev/sg2 /etc

      6. To back up a VM, however, you will need to first employ vcbMounter to make a copy of the VM using snapshots to a safe location. So, something like this would work, which would back up a VM named VMName to /tmp/VMName, and then place the contents of /tmp/VMName onto the tape device:

      vcbMounter -a name:VMName -r /tmp/VMName

      tar -cvf /dev/sg2 /tmp/VMName

      From a VM

      1. The main thing to be concerned about when you assign the tape devices to a VM is make sure you use the same SCSI ID as the tape devices themselves. This will help with some internal management within the vmkernel.

      2. Using the VMware Infrastructure Client, go to the Settings for the VM in question.

      3. Add Hardware, then select the SCSI Device option.

      4. Select the SCSI Devices listed, and choose a virtual device node. This is the SCSI ID of the device to add; be sure the last number matches the ID of the device.

      5. Some robots do not appear. In this case, you will need to modify the configuration file by hand. Copy the original lines for the tape device and make the appropriate substitutions for SCSI IDs in use. Finally, access the tape devices per normal Guest Operating System methods.

      /images/stories/knowledge_center/Haletky-cover170.jpgVirtualization expert Edward Haletky is the author of “VMware ESX Server in the Enterprise: Planning and Securing Virtualization Servers,” Pearson Education (2007).

      Haletky recently left Hewlett-Packard, where he worked in the Virtualization, Linux and High-Performance Technical Computing teams.

      Haletky owns AstroArch Consulting, which provides virtualization, security, and network consulting and development. He is also a champion and moderator for the VMware discussion forums, providing answers to security and configuration questions. He can be reached at info@astroarch.com.

      Edward Haletky
      She can be reached at jha@sei.cmu.edu.

      MOST POPULAR ARTICLES

      Big Data and Analytics

      Alteryx’s Suresh Vittal on the Democratization of...

      James Maguire - May 31, 2022 0
      I spoke with Suresh Vittal, Chief Product Officer at Alteryx, about the industry mega-shift toward making data analytics tools accessible to a company’s complete...
      Read more
      Cybersecurity

      Visa’s Michael Jabbara on Cybersecurity and Digital...

      James Maguire - May 17, 2022 0
      I spoke with Michael Jabbara, VP and Global Head of Fraud Services at Visa, about the cybersecurity technology used to ensure the safe transfer...
      Read more
      Big Data and Analytics

      GoodData CEO Roman Stanek on Business Intelligence...

      James Maguire - May 4, 2022 0
      I spoke with Roman Stanek, CEO of GoodData, about business intelligence, data as a service, and the frustration that many executives have with data...
      Read more
      Applications

      Cisco’s Thimaya Subaiya on Customer Experience in...

      James Maguire - May 10, 2022 0
      I spoke with Thimaya Subaiya, SVP and GM of Global Customer Experience at Cisco, about the factors that create good customer experience – and...
      Read more
      Cloud

      Yotascale CEO Asim Razzaq on Controlling Multicloud...

      James Maguire - May 5, 2022 0
      Asim Razzaq, CEO of Yotascale, provides guidance on understanding—and containing—the complex cost structure of multicloud computing. Among the topics we covered:  As you survey the...
      Read more
      Logo

      eWeek has the latest technology news and analysis, buying guides, and product reviews for IT professionals and technology buyers. The site’s focus is on innovative solutions and covering in-depth technical content. eWeek stays on the cutting edge of technology news and IT trends through interviews and expert analysis. Gain insight from top innovators and thought leaders in the fields of IT, business, enterprise software, startups, and more.

      Facebook
      Linkedin
      RSS
      Twitter
      Youtube

      Advertisers

      Advertise with TechnologyAdvice on eWeek and our other IT-focused platforms.

      Advertise with Us

      Menu

      • About eWeek
      • Subscribe to our Newsletter
      • Latest News

      Our Brands

      • Privacy Policy
      • Terms
      • About
      • Contact
      • Advertise
      • Sitemap
      • California – Do Not Sell My Information

      Property of TechnologyAdvice.
      © 2021 TechnologyAdvice. All Rights Reserved

      Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.

      ×