microsoft / StorScore

A test framework to evaluate SSDs and HDDs
http://aka.ms/storscore
MIT License
81 stars 34 forks source link

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

Open johnutz-wdc opened 9 years ago

johnutz-wdc commented 9 years ago

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 commented 9 years ago

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

johnutz-wdc commented 9 years ago

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 commented 9 years ago

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

johnutz-wdc commented 9 years ago

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 [notifications@github.com] 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/Microsoft/StorScore/issues/15#issuecomment-65165373.

marksantaniello commented 9 years ago

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 commented 9 years ago

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 [notifications@github.com] 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/Microsoft/StorScore/issues/15#issuecomment-65166705.

marksantaniello commented 9 years ago

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 commented 9 years ago

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 [notifications@github.com] 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/Microsoft/StorScore/issues/15#issuecomment-65267486.

marksantaniello commented 9 years ago

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

johnutz-wdc commented 9 years ago

sweet wilco!


From: Mark Santaniello [notifications@github.com] 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/Microsoft/StorScore/issues/15#issuecomment-65658850.

marksantaniello commented 9 years ago

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 commented 9 years ago

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 [notifications@github.com] 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/Microsoft/StorScore/issues/15#issuecomment-65877198.

marksantaniello commented 9 years ago

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

johnutz-wdc commented 9 years ago

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


From: Mark Santaniello [notifications@github.com] 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/Microsoft/StorScore/issues/15#issuecomment-66189583.

marksantaniello commented 9 years ago

What about some time tomorrow after 1PM.

johnutz-wdc commented 9 years ago

works. i can do it anytime from 1pm on


From: Mark Santaniello [notifications@github.com] 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/Microsoft/StorScore/issues/15#issuecomment-66197891.

marksantaniello commented 9 years ago

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

johnutz-wdc commented 9 years ago

agreed


From: Mark Santaniello [notifications@github.com] 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/Microsoft/StorScore/issues/15#issuecomment-66198449.

lauracaulfield commented 8 years ago

Hey guys, mind if I close this issue?

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