Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a summary table to the log that shows each drives status #223

Conversation

PartialVolume
Copy link
Collaborator

Add a summary table to the log that shows each drives status
i.e. erased or failed, throughput, duration of wipe, model,
serial no etc. In particular it benefits those that wipe many
drives simultaneously in rack servers. At a glance any failed
drives can be seen without having to browse back through the
log. Especially useful in --nogui mode, but also useful in GUI
mode.

Single drive example (15 drive example further down)

[2020/03/18 17:59:56] notice: Device /dev/sda excluded as per command line optio
[2020/03/18 17:59:56] notice: Device /dev/sdb excluded as per command line optio
[2020/03/18 17:59:56] notice: Found /dev/sdc, ATA WDC WD1600AAJS-2, 160GB, S/N=W
[2020/03/18 17:59:56] notice: Device /dev/mapper/cryptswap1 excluded as per comm
[2020/03/18 17:59:56] info: Automatically enumerated 1 devices.
[2020/03/18 17:59:56] notice: bios-version = E16F2IM7 V5.0E
[2020/03/18 17:59:56] notice: bios-release-date = 01/10/2012
[2020/03/18 17:59:56] notice: system-manufacturer = MEDION
[2020/03/18 17:59:56] notice: system-product-name = X681X
[2020/03/18 17:59:56] notice: system-version = To be filled by O.E.M.
[2020/03/18 17:59:56] notice: system-serial-number = To be filled by O.E.M.
[2020/03/18 17:59:56] notice: system-uuid = 03000200-0400-0500-0006-000700080009
[2020/03/18 17:59:56] notice: baseboard-manufacturer = MEDION
[2020/03/18 17:59:56] notice: baseboard-product-name = X681X
[2020/03/18 17:59:56] notice: baseboard-version = To be filled by O.E.M.
[2020/03/18 17:59:56] notice: baseboard-serial-number = To be filled by O.E.M.
[2020/03/18 17:59:56] notice: baseboard-asset-tag = To be filled by O.E.M.
[2020/03/18 17:59:56] notice: chassis-manufacturer = To Be Filled By O.E.M.
[2020/03/18 17:59:56] notice: chassis-type = Notebook
[2020/03/18 17:59:56] notice: chassis-version = To be filled by O.E.M.
[2020/03/18 17:59:56] notice: chassis-serial-number = To Be Filled By O.E.M.
[2020/03/18 17:59:56] notice: chassis-asset-tag = To Be Filled By O.E.M.
[2020/03/18 17:59:56] notice: processor-family = Core i7
[2020/03/18 17:59:56] notice: processor-manufacturer = Intel
[2020/03/18 17:59:56] notice: processor-version = Intel(R) Core(TM) i7-2670QM CP
[2020/03/18 17:59:56] notice: processor-frequency = 800 MHz
[2020/03/18 17:59:56] notice: Opened entropy source '/dev/urandom'.
[2020/03/18 18:00:12] notice: /dev/sdc has serial number WD-WMAV2FS49552
[2020/03/18 18:00:12] notice: /dev/sdc, sect/blk/dev 512/4096/1128095744
[2020/03/18 18:00:12] notice: Invoking method 'Verify Blank' on /dev/sdc
[2020/03/18 18:00:12] notice: Starting round 1 of 1 on /dev/sdc
[2020/03/18 18:00:12] notice: Finished final round 1 of 1 on /dev/sdc
[2020/03/18 18:00:12] notice: Verifying that /dev/sdc is empty
[2020/03/18 18:31:00] notice: [SUCCESS] Verified that /dev/sdc is empty.

********************************************************************************
! Device | Status | Thru-put | HH:MM:SS | Model/Serial Number
--------------------------------------------------------------------------------
     sdc | Erased |   61MB/s | 00:30:48 | ATA WDC WD1600AAJ/WD-WMAV2FS49552
--------------------------------------------------------------------------------
[2020/03/18 18:47:02] Total Throughput   61MB/s, Verify Blank, 1R+B+NV
********************************************************************************

[2020/03/18 18:47:02] info: Nwipe successfully exited.

15 Drive example: 1 160GB drive + 14 loop drives on a second drive.

.
..
...
....
[2020/03/18 20:15:11] notice: Finished pass 1/1, round 1/1, on /dev/loop25
[2020/03/18 20:15:11] notice: Finished final round 1 of 1 on /dev/loop25
[2020/03/18 20:15:12] notice: 524288000 bytes written to /dev/loop21
[2020/03/18 20:15:12] notice: Finished pass 1/1, round 1/1, on /dev/loop21
[2020/03/18 20:15:12] notice: Finished final round 1 of 1 on /dev/loop21
[2020/03/18 20:15:12] notice: 524288000 bytes written to /dev/loop19
[2020/03/18 20:15:12] notice: Finished pass 1/1, round 1/1, on /dev/loop19
[2020/03/18 20:15:12] notice: Finished final round 1 of 1 on /dev/loop19
[2020/03/18 20:15:17] notice: 1073741824 bytes written to /dev/loop14
[2020/03/18 20:15:17] notice: Finished pass 1/1, round 1/1, on /dev/loop14
[2020/03/18 20:15:17] notice: Finished final round 1 of 1 on /dev/loop14
[2020/03/18 20:15:18] notice: 1073741824 bytes written to /dev/loop15
[2020/03/18 20:15:18] notice: Finished pass 1/1, round 1/1, on /dev/loop15
[2020/03/18 20:15:18] notice: Finished final round 1 of 1 on /dev/loop15
[2020/03/18 20:15:19] notice: 1073741824 bytes written to /dev/loop13
[2020/03/18 20:15:19] notice: Finished pass 1/1, round 1/1, on /dev/loop13
[2020/03/18 20:15:19] notice: Finished final round 1 of 1 on /dev/loop13
[2020/03/18 20:47:52] notice: 160041885696 bytes written to /dev/sdc
[2020/03/18 20:47:52] notice: Finished pass 1/1, round 1/1, on /dev/sdc
[2020/03/18 20:47:52] notice: Finished final round 1 of 1 on /dev/sdc

********************************************************************************
! Device | Status | Thru-put | HH:MM:SS | Model/Serial Number
--------------------------------------------------------------------------------
     sdc | Erased |   54MB/s | 00:34:27 | ATA WDC WD1600AAJ/WD-WMAV2FS49552
  loop13 | Erased |    9MB/s | 00:01:54 | Loopback device/
  loop14 | Erased |    9MB/s | 00:01:52 | Loopback device/
  loop15 | Erased |    9MB/s | 00:01:53 | Loopback device/
  loop16 | Erased |    7MB/s | 00:01:16 | Loopback device/
  loop17 | Erased |    6MB/s | 00:01:22 | Loopback device/
  loop18 | Erased |    8MB/s | 00:01:00 | Loopback device/
  loop19 | Erased |    5MB/s | 00:01:47 | Loopback device/
  loop20 | Erased |    5MB/s | 00:01:31 | Loopback device/
  loop21 | Erased |    4MB/s | 00:01:47 | Loopback device/
  loop22 | Erased |    6MB/s | 00:01:26 | Loopback device/
  loop23 | Erased |    5MB/s | 00:01:31 | Loopback device/
  loop24 | Erased |    5MB/s | 00:01:40 | Loopback device/
  loop25 | Erased |    4MB/s | 00:01:46 | Loopback device/
  loop26 | Erased |    7MB/s | 00:01:18 | Loopback device/
--------------------------------------------------------------------------------
[2020/03/18 20:58:11] Total Throughput  151MB/s, Zero Fill, 1R+NB+NV
********************************************************************************

[2020/03/18 20:58:11] info: Nwipe successfully exited.

Add a summary table to the log that shows each drives status
i.e. erased or failed, throughput, duration of wipe, model,
serial no etc. In particular it benefits those that wipe many
drives simultaneously in rack servers. At a glance any failed
drives can be seen without having to browse back through the
log. Especially useful in --nogui mode, but also useful in GUI
mode.
@PartialVolume PartialVolume merged commit fbfcbf8 into martijnvanbrummelen:master Mar 18, 2020
@PartialVolume
Copy link
Collaborator Author

Closes #21 Closes #212

@PartialVolume PartialVolume deleted the create_nwipe_log_summary_table branch March 18, 2020 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant