Jump to content

  • Log in with Twitter Log in with Windows Live Log In with Google      Sign In   
  • Create Account

Photo

How To: Getting SMART data from Hyper-V


  • Please log in to reply
7 replies to this topic

#1 Jeff

Jeff

    Member

  • Members
  • PipPip
  • 11 posts

Posted 09 June 2013 - 12:47 AM

Sorry if the title may be misleading.

Unfortunately, the Hyper-V disk passthrough driver does not pass along SMART data from the "host" drive to the VM. That means that there is no way to get Scanner to display this data in the Virtual Machines.

 

However, you can run two copies:

One on the Host, and one in the Virtual Machine. (yes, not ideal, but you do get a discount on the price)

 

On the Host version, disable the disk scans.

To do this, right click on one of the disks that are going to be (or already are) passed through. Then click on the "Disk Settings" option.

On this window, check the "never scan surface automatically" and "never scan file system automatically".

  

 

 

HyperV Scanner Setting.png

 

 

 

Once that's done, you don't need to do anything on the Guest VMs, as they just won't get SMART data.

I'd recommend setting up email notifications so that you know when you're getting SMART errors.

 

 

 

Original Post

 

 

Hi there,

 

I just downloaded Scanner for my virtualized WHS 2011 setup, which runs within Hyper-V Server 2012.  Each of my data drives are passed through to WHS.  However, Scanner says it can't read SMART data from any of the drives.

 

My understanding was that Hyper-V did pass through SMART data to the guest OS.  Is there some trick to enabling this?

 

Thanks!

Attached Thumbnails

  • HyperV Scanner Setting.png

Edited by drashna, 07 September 2013 - 01:05 AM.
Instructions for Hyper-V


#2 Christopher (Drashna)

Christopher (Drashna)

    Customer and Technical Support

  • Administrators
  • 8,208 posts
  • LocationSan Diego, CA, USA

Posted 09 June 2013 - 06:58 AM

Unfortunately, no HyperV does not appear to pass along this information, even if you pass the disk through.

 

However, it *will* still read the SMART data in the Host OS. While Scanner and DrivePool are not tested on Server Core installations, they do appear to work (on 2012 Core only though).

However, if you want to get SMART info, as well as scanning of the disks.... you'd need it for both "machines".


Christopher Courtney

aka "Drashna"

Microsoft MVP for Windows Home Server 2009-2012

Lead Moderator for We Got Served

Moderator for Home Server Show

 

This is my server

 

Lots of "Other" data on your pool? Read about what it is here.


#3 Jeff

Jeff

    Member

  • Members
  • PipPip
  • 11 posts

Posted 09 June 2013 - 07:49 PM

Shoot, that's a bummer.  Two of my drives seem to run a little hot, even though there's a fan blowing across them.  The reason Scanner looked good is so it could monitor the temperatures while files were being moved around.

If Scanner can't access temperature or SMART data from any of the pooled drives when it is virtualized, is there any benefit to having it in that environment?  (And running it on the Host OS seems like it would nullify a lot of the features.  The drive is "offline" to the host OS, seems like Scanner couldn't do much.)



#4 Mick Mickle

Mick Mickle

    Advanced Member

  • Members
  • PipPipPip
  • 47 posts
  • LocationLas Cruces, NM

Posted 12 June 2013 - 06:14 PM

Jeff,

 

I've been using Scanner on both a WS2008R2 host and Hyper-V guest WHS2011 since last Fall with good performance. (You can probably still get a bargain discount for an additional Scanner license.)  However, Scanner would have to work on your host, and Drashna indicated it might not on Hyper-V Server 2012.  You should be able to test it yourself in trial mode on the Hyper-V core.

 

On the host, Scanner reads temperature and SMART data from all the drives, even the ones that are offline and being passed through to the VM. 

 

Here's what Alex told me in a support contact on coordinating Scanner use in both the host and a guest last October, which I've been doing:

 

"If you don't have SMART data (such as when using Hyper-V), the Scanner can only warn you at the first sign of data loss, in order to prevent further data loss. If you have SMART data, then Scanner will monitor the various counts of sector reassignment and will let you know of any potential developing issues. But this is not possible when using Hyper-V as I will explain later.

 

"Hyper-V virtualizes the disk controller. In other words, all commands that get sent to the drive have to go through this virtual controller. When I last tested it, the virtual controller refused to forward any kind of SMART commands to the drive. Because of this there is really nothing that Scanner can do to get SMART through these virtual controllers. Microsoft has to implement SMART support, there is really no other way.
 

"If you want to run Scanner on both the Host and Guest, in order to take advantage of file evacuation, I would suggest you do it like this:


Turn off Start / stop automatically on the Host. This will prevent surface scans from starting, while still monitoring SMART.

Install Scanner 2.2 and DrivePool 1.2 on the guests with the default settings. The default settings will perform surface scans and will evacuate files when damage is detected.

The only thing that you won't be able to get working is file evacuation on SMART warnings. But this is not enabled by default, so I don't think this is a big loss."



#5 Jeff

Jeff

    Member

  • Members
  • PipPip
  • 11 posts

Posted 12 June 2013 - 10:16 PM

Thanks Mick!  That was a big help.  I think I understand.  Scanner on the host will monitor SMART but won't do surface scans.  Scanner on the guest will do surface scans (which I think means it will read through every file periodically over time to make sure nothing is corrupt).  If a corrupt file is found, it will create a new duplicate copy on a different drive from the other remaining duplicate.

 

Sounds like the only thing that won't work well is halting StableBit operations if the drive gets too hot.  And that's not that big of a deal.



#6 Christopher (Drashna)

Christopher (Drashna)

    Customer and Technical Support

  • Administrators
  • 8,208 posts
  • LocationSan Diego, CA, USA

Posted 14 June 2013 - 08:53 AM

Jeff, that's pretty much exactly right, on both.

And yeah, Mick is right about that.

 

On the plus side, if you have purchase DrivePool, you would get the discount on both copies of Scanner, at least.


Christopher Courtney

aka "Drashna"

Microsoft MVP for Windows Home Server 2009-2012

Lead Moderator for We Got Served

Moderator for Home Server Show

 

This is my server

 

Lots of "Other" data on your pool? Read about what it is here.


#7 Mick Mickle

Mick Mickle

    Advanced Member

  • Members
  • PipPipPip
  • 47 posts
  • LocationLas Cruces, NM

Posted 14 June 2013 - 05:23 PM

Jeff,

 

Also, Scanner on the host will do more than you would expect on the offline, pass-through disks: It will perform a surface scan on all of them (but can't check the file systems on offline disks). That's why it's recommended to turn off "Start / stop automatically" since the guest will be already doing that job.  However, if you check "Never scan surface automatically" and "Never scan file system automatically" in the settings for the individual offline disks (the second option is probably unnecessary because it wouldn't find the file system of an offline disk anyway), then you can turn on "Start / stop automatically" and that will apply only to the disks that are online for the host.



#8 Jeff

Jeff

    Member

  • Members
  • PipPip
  • 11 posts

Posted 14 June 2013 - 05:49 PM

Awesome, thank you both.  Not too happy about buying two copies of the same software for the same computer, but it beats losing data. :)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users