Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

attempting to run storscore.cmd against a usb drive fails #15

Open
johnutz-wdc opened this issue Nov 26, 2014 · 19 comments
Open

attempting to run storscore.cmd against a usb drive fails #15

johnutz-wdc opened this issue Nov 26, 2014 · 19 comments

Comments

@johnutz-wdc
Copy link

Hello;

I am trying to demo storscore with a plugged in usb drive with a sata disk inside of it and with a sandisk usb flash drive since I can not afford to trash my laptop's filesystem.

So preconditions fails with the following error:

Cleaning disk...
Creating new filesystem...
Creating test file...
Syncing target volume...
SmartCtl missing or broken. SMART capture disabled.
Ipmiutil missing or broken. Power measurement disabled.
Access is denied.
Precondition returned non-zero errorlevel at C:/cygwin64/home/utz_j/GIT/StorScor
e\lib/PreconditionRunner.pm line 121.

I get this same problem in both cases, any suggestions? Your help would be appreciated.

Complete capture follows:

C:\cygwin64\home\utz_j\GIT\StorScore>StorScore.cmd --target .\PHYSICALDRIVE1 r
ecipes\flush_check.rcp
Targeting HDD: SanDisk SanDisk Ultra USB Device

Loaded recipes\corners.rcp (24 tests, 24 steps)

    Run time will be >= 1.02 days after target init (1 overwrite).

    Warning!
    Detected System Center Endpoint Protection (MsMpEng.exe)
    This can delay IOs and cause bogus latency results.
    You have the following options:
        - Run on a machine without SCEP
        - Disable SCEP real-time protection
        - Exclude testfile.dat from SCEP scan.

    Warning!
    This will destroy \\.\PHYSICALDRIVE1

Do you wish to continue? [Y/N]

Cleaning disk...
Creating new filesystem...
Creating test file...
Syncing target volume...
SmartCtl missing or broken. SMART capture disabled.
Ipmiutil missing or broken. Power measurement disabled.
Access is denied.
Precondition returned non-zero errorlevel at C:/cygwin64/home/utz_j/GIT/StorScor
e\lib/PreconditionRunner.pm line 121.

C:\cygwin64\home\utz_j\GIT\StorScore>

@marksantaniello
Copy link
Contributor

Can you run with --verbose and post the output?

@johnutz-wdc
Copy link
Author

Hi Mark;
thankyou for asking; here is the verbose output

c:\cygwin64\home\utz_j\GIT\StorScore>StorScore.cmd --verbose --target=\.\PHY
SICALDRIVE1

    >>> wmic path Win32_DiskDrive where Name="\\\\.\\PHYSICALDRIVE1"

    >>> wmic path Win32_DiskDrive where Name="\\\\.\\PHYSICALDRIVE1" get Mod

el

    >>> ipconfig /all

    >>> where smartctl

    >>> wmic path Win32_DiskDrive where Name="\\\\.\\PHYSICALDRIVE1" get Mod

el
Targeting HDD: HTS54106 0G9SA00 USB Device

Loaded recipes\corners.rcp (24 tests, 24 steps)

    Run time will be >= 1.02 days after target init (1 overwrite).


    >>> tasklist /FI "IMAGENAME eq MsMpEng.exe"
    Warning!
    Detected System Center Endpoint Protection (MsMpEng.exe)
    This can delay IOs and cause bogus latency results.
    You have the following options:
        - Run on a machine without SCEP
        - Disable SCEP real-time protection
        - Exclude testfile.dat from SCEP scan.

    Warning!
    This will destroy \\.\PHYSICALDRIVE1

Do you wish to continue? [Y/N]

Cleaning disk...

    >>> diskpart /s C:\Users\UTZ_J\AppData\Local\Temp\diskpartkH8bdM

Creating new filesystem...

    >>> diskpart /s C:\Users\UTZ_J\AppData\Local\Temp\diskpartRdXRFk

    >>> wmic path Win32_DiskDrive where DeviceID="\\\\.\\PHYSICALDRIVE1" ass

oc /assocclass:Win32_DiskDriveToDiskPartition

    >>> wmic path Win32_DiskPartition where (DeviceID="Disk #1, Partition #0

") assoc /assocclass:Win32_LogicalDiskToPartition
Creating test file...

    >>> wmic path Win32_LogicalDisk where Name="E:" get FreeSpace

    >>> fsutil file createnew E:\testfile.dat 58829307904

    >>> fsutil file setvaliddata E:\testfile.dat 58829307904

Syncing target volume...

    >>> sync.cmd E:

    >>> wmic path Win32_DiskDrive where Name="\\\\.\\PHYSICALDRIVE1" get /fo

rmat:list

    >>> wmic path Win32_LogicalDisk where Name="E:" get /format:list

SmartCtl missing or broken. SMART capture disabled.

    >>> where ipmiutil

Ipmiutil missing or broken. Power measurement disabled.

    >>> precondition.exe -n1 -p"Initializing target: " -Y E:\testfile.dat

Access is denied.
Precondition returned non-zero errorlevel at c:/cygwin64/home/utz_j/GIT/StorScor
e\lib/PreconditionRunner.pm line 121.

    >>> logman query

c:\cygwin64\home\utz_j\GIT\StorScore>

@marksantaniello
Copy link
Contributor

Everything seems fine up until we try to initialize the target with precondition.exe. Are you running as administrator?

@johnutz-wdc
Copy link
Author

I am indeed running as admin, because storscore complains if you dont run in an admin shell.

good question tho!

tnx!

johnu


From: Mark Santaniello [[email protected]]
Sent: Monday, December 01, 2014 4:41 PM
To: Microsoft/StorScore
Cc: John Utz
Subject: Re: [StorScore] attempting to run storscore.cmd against a usb drive fails (#15)

Everything seems fine up until we try to initialize the target with precondition.exe. Are you running as administrator?


Reply to this email directly or view it on GitHubhttps://github.com//issues/15#issuecomment-65165373.

@marksantaniello
Copy link
Contributor

I see a reference to Cygwin in your earlier comment. Can you try running under a standard Windows CMD.exe (admin, of course) if you haven't done this already?

@johnutz-wdc
Copy link
Author

I am running it in a standard windows cmd.exe, i just have my git stuff stashed in my cygwin home directory


From: Mark Santaniello [[email protected]]
Sent: Monday, December 01, 2014 4:56 PM
To: Microsoft/StorScore
Cc: John Utz
Subject: Re: [StorScore] attempting to run storscore.cmd against a usb drive fails (#15)

I see a reference to Cygwin in your earlier comment. Can you try running under a standard Windows CMD.exe (admin, of course) if you haven't done this already?


Reply to this email directly or view it on GitHubhttps://github.com//issues/15#issuecomment-65166705.

@marksantaniello
Copy link
Contributor

It must be something to do with the USB drive. I can't say I've ever tested that before.

I think the next step would be to create a debug build of precondition.exe and manually run "precondition.exe -n1 -p"Initializing target: " -Y E:\testfile.dat" under the debugger, to see exactly what is failing.

Is that something you could do?

@johnutz-wdc
Copy link
Author

That is something i could conceivably do.

Or, since it's my personal usb housing and old drive, i can donate it to the cause, are you in redmond or bellevue by chance?


From: Mark Santaniello [[email protected]]
Sent: Tuesday, December 02, 2014 9:17 AM
To: Microsoft/StorScore
Cc: John Utz
Subject: Re: [StorScore] attempting to run storscore.cmd against a usb drive fails (#15)

It must be something to do with the USB drive. I can't say I've ever tested that before.

I think the next step would be to create a debug build of precondition.exe and manually run "precondition.exe -n1 -p"Initializing target: " -Y E:\testfile.dat" under the debugger, to see exactly what is failing.

Is that something you could do?


Reply to this email directly or view it on GitHubhttps://github.com//issues/15#issuecomment-65267486.

@marksantaniello
Copy link
Contributor

Shoot me an email and we can schedule a meet? marksan AT microsoft.com

@johnutz-wdc
Copy link
Author

sweet wilco!


From: Mark Santaniello [[email protected]]
Sent: Thursday, December 04, 2014 8:27 AM
To: Microsoft/StorScore
Cc: John Utz
Subject: Re: [StorScore] attempting to run storscore.cmd against a usb drive fails (#15)

Shoot me an email and we can schedule a meet? marksan AT microsoft.com


Reply to this email directly or view it on GitHubhttps://github.com//issues/15#issuecomment-65658850.

@marksantaniello
Copy link
Contributor

John: thanks for dropping off the drive. Believe it or not, it seems to work perfectly fine on my system! See below. It reached the initialization step and started making progress at 29 MB/sec.

>StorScore.cmd --target=7
Targeting HDD: HTS54106 0G9SA00 USB Device

Loaded recipes\corners.rcp (24 tests, 24 steps)

        Run time will be >= 1.02 days after target init (1 overwrite).

        Warning!
        Detected System Center Endpoint Protection (MsMpEng.exe)
        This can delay IOs and cause bogus latency results.
        You have the following options:
            - Run on a machine without SCEP
            - Disable SCEP real-time protection
            - Exclude testfile.dat from SCEP scan.

        Warning!
        This will destroy \\.\PHYSICALDRIVE7

Do you wish to continue? [Y/N]

Cleaning disk...
Creating new filesystem...
Creating test file...
Syncing target volume...
SmartCtl missing or broken. SMART capture disabled.
Ipmiutil missing or broken. Power measurement disabled.
Initializing target: 0.8% [29.0 MB/s]

@johnutz-wdc
Copy link
Author

Completely peculiar.

did you do this on a desktop or a laptop? i did this on my dell latitude e6430s.

i have experienced circumstances where laptop usb ports provide just a little less current than needed, so the drive seems like the drive is happy but it's not quite right.

I will drop by and get it this week and try it on some different usb ports such as the ones on my docking station and see what happens.


From: Mark Santaniello [[email protected]]
Sent: Friday, December 05, 2014 4:46 PM
To: Microsoft/StorScore
Cc: John Utz
Subject: Re: [StorScore] attempting to run storscore.cmd against a usb drive fails (#15)

John: thanks for dropping off the drive. Believe it or not, it seems to work perfectly fine on my system! See below. It reached the initialization step and started making progress at 29 MB/sec.

StorScore.cmd --target=7
Targeting HDD: HTS54106 0G9SA00 USB Device

Loaded recipes\corners.rcp (24 tests, 24 steps)

    Run time will be >= 1.02 days after target init (1 overwrite).

    Warning!
    Detected System Center Endpoint Protection (MsMpEng.exe)
    This can delay IOs and cause bogus latency results.
    You have the following options:
        - Run on a machine without SCEP
        - Disable SCEP real-time protection
        - Exclude testfile.dat from SCEP scan.

    Warning!
    This will destroy \\.\PHYSICALDRIVE7

Do you wish to continue? [Y/N]

Cleaning disk...
Creating new filesystem...
Creating test file...
Syncing target volume...
SmartCtl missing or broken. SMART capture disabled.
Ipmiutil missing or broken. Power measurement disabled.
Initializing target: 0.8% [29.0 MB/s]


Reply to this email directly or view it on GitHubhttps://github.com//issues/15#issuecomment-65877198.

@marksantaniello
Copy link
Contributor

OK sounds like a plan. Yeah, I did this on a workstation.

@johnutz-wdc
Copy link
Author

better or worse times/days to swing by and grab the disk?


From: Mark Santaniello [[email protected]]
Sent: Monday, December 08, 2014 1:21 PM
To: Microsoft/StorScore
Cc: John Utz
Subject: Re: [StorScore] attempting to run storscore.cmd against a usb drive fails (#15)

OK sounds like a plan. Yeah, I did this on a workstation.


Reply to this email directly or view it on GitHubhttps://github.com//issues/15#issuecomment-66189583.

@marksantaniello
Copy link
Contributor

What about some time tomorrow after 1PM.

@johnutz-wdc
Copy link
Author

works. i can do it anytime from 1pm on


From: Mark Santaniello [[email protected]]
Sent: Monday, December 08, 2014 2:14 PM
To: Microsoft/StorScore
Cc: John Utz
Subject: Re: [StorScore] attempting to run storscore.cmd against a usb drive fails (#15)

What about some time tomorrow after 1PM.


Reply to this email directly or view it on GitHubhttps://github.com//issues/15#issuecomment-66197891.

@marksantaniello
Copy link
Contributor

OK let's say 2PM to give me some wiggle room. See you then.

@johnutz-wdc
Copy link
Author

agreed


From: Mark Santaniello [[email protected]]
Sent: Monday, December 08, 2014 2:18 PM
To: Microsoft/StorScore
Cc: John Utz
Subject: Re: [StorScore] attempting to run storscore.cmd against a usb drive fails (#15)

OK let's say 2PM to give me some wiggle room. See you then.


Reply to this email directly or view it on GitHubhttps://github.com//issues/15#issuecomment-66198449.

@lauracaulfield
Copy link
Member

Hey guys, mind if I close this issue?

Another thought -- depending on what you're demoing, you could point StorScore at a single file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants