Discussion:
[smartmontools-support] Msft / Virtual Disk
Administrator (CompuMaster GmbH)
2016-08-01 09:50:02 UTC
Permalink
Hello together,

I've got following message (by e-mail) from my ubuntu system (running on a MS Windows Hyper-V Server 2012 R2):


smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-31-generic] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor: Msft
Product: Virtual Disk
Revision: 1.0
User Capacity: 160.041.885.696 bytes [160 GB]
Logical block size: 512 bytes
LU is thin provisioned, LBPRZ=0
Terminate command early due to bad response to IEC mode page
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.


A manual execution of -T and additional calls remains without any results:
----SNIP----
***@revproxy01:~# smartctl -T permissive /dev/sda
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-31-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

***@revproxy01:~# smartctl -H /dev/sda
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-31-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

***@revproxy01:~# smartctl -c /dev/sda
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-31-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

***@revproxy01:~# smartctl -l error /dev/sda
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-31-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
Error Counter logging not supported

***@revproxy01:~# smartctl -l ssd /dev/sda
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-31-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
***@revproxy01:~#
----/SNIP----

I wonder that a (mirrored) virtual disk can make trouble...?!?

Have you got any advices form me?

Regards,
Jochen
------------------------------------------------------------------------------
Christian Franke
2016-08-03 05:35:47 UTC
Permalink
Post by Administrator (CompuMaster GmbH)
Hello together,
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-31-generic] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: Msft
Product: Virtual Disk
Revision: 1.0
User Capacity: 160.041.885.696 bytes [160 GB]
Logical block size: 512 bytes
LU is thin provisioned, LBPRZ=0
Terminate command early due to bad response to IEC mode page
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
...
SMART Health Status: OK
...
Error Counter logging not supported
...
I wonder that a (mirrored) virtual disk can make trouble...?!?
It doesn't.

Virtual machines simply do not emulate (or pass-through) the optional
commands used by smartctl to get diagnostic info.
https://www.smartmontools.org/wiki/FAQ#DosmartctlandsmartdrunonavirtualmachineguestOS

Run smartctl on host instead of guest system.

Regards,
Christian


------------------------------------------------------------------------------
Jochen Wezel - CompuMaster GmbH
2016-08-03 08:51:26 UTC
Permalink
Hi Christian,
Post by Christian Franke
Post by Administrator (CompuMaster GmbH)
I wonder that a (mirrored) virtual disk can make trouble...?!?
It doesn't.
Virtual machines simply do not emulate (or pass-through) the optional commands
used by smartctl to get diagnostic info.
https://www.smartmontools.org/wiki/FAQ#DosmartctlandsmartdrunonavirtualmachineguestOS
Yes, so my expected behaviour of smartmon in a VM was to never report anything because there is nothing to monitor.
But then, I got the message below...
Post by Christian Franke
Post by Administrator (CompuMaster GmbH)
Post by Administrator (CompuMaster GmbH)
Terminate command early due to bad response to IEC mode page
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
It seems to be a "false positive" from my point of view.

Regards
Jochen

-----Ursprüngliche Nachricht-----
Von: Christian Franke [mailto:***@t-online.de]
Gesendet: Mittwoch, 3. August 2016 07:36
An: Administrator (CompuMaster GmbH) <***@compumaster.de>
Cc: smartmontools-***@lists.sourceforge.net
Betreff: Re: [smartmontools-support] Msft / Virtual Disk
Post by Christian Franke
Hello together,
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-31-generic] (local
build) Copyright (C) 2002-16, Bruce Allen, Christian Franke,
www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: Msft
Product: Virtual Disk
Revision: 1.0
User Capacity: 160.041.885.696 bytes [160 GB]
Logical block size: 512 bytes
LU is thin provisioned, LBPRZ=0
Post by Administrator (CompuMaster GmbH)
Post by Administrator (CompuMaster GmbH)
Terminate command early due to bad response to IEC mode page
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
...
SMART Health Status: OK
...
Error Counter logging not supported
...
I wonder that a (mirrored) virtual disk can make trouble...?!?
It doesn't.

Virtual machines simply do not emulate (or pass-through) the optional commands used by smartctl to get diagnostic info.
https://www.smartmontools.org/wiki/FAQ#DosmartctlandsmartdrunonavirtualmachineguestOS

Run smartctl on host instead of guest system.

Regards,
Christian


------------------------------------------------------------------------------
_______________________________________________
Smartmontools-support mailing list
Smartmontools-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/smartmontools-support



------------------------------------------------------------------------------
Christian Franke
2016-08-07 16:16:35 UTC
Permalink
Hi Jochen,
Post by Jochen Wezel - CompuMaster GmbH
Post by Christian Franke
Post by Administrator (CompuMaster GmbH)
I wonder that a (mirrored) virtual disk can make trouble...?!?
It doesn't.
Virtual machines simply do not emulate (or pass-through) the optional commands
used by smartctl to get diagnostic info.
https://www.smartmontools.org/wiki/FAQ#DosmartctlandsmartdrunonavirtualmachineguestOS
Yes, so my expected behaviour of smartmon in a VM was to never report anything because there is nothing to monitor.
But then, I got the message below...
Post by Christian Franke
Post by Administrator (CompuMaster GmbH)
Post by Administrator (CompuMaster GmbH)
Terminate command early due to bad response to IEC mode page
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
It seems to be a "false positive" from my point of view.
The message does not indicate disk problems. It means that the device
does not support the SCSI IEC mode page. Smartctl then assumes a badly
conforming device and aborts further processing.

Virtual disks of VMware or VirtualBox emulate the IEC page and smartctl
prints a sane (but useless) result.

Regards,
Christian


------------------------------------------------------------------------------
Loading...