Parallelize maas-wipe

Bug #1968453 reported by Joshua McClintock
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
maas (Ubuntu)
New
Undecided
Unassigned

Bug Description

I was looking at this code and it looks like it just loops through each disk found and then runs the wipe.

https://github.com/maas/maas/blob/master/src/metadataserver/user_data/templates/snippets/maas_wipe.py

When you have a machine with 25 SSDs that don't support secure erase it takes forever (22 hours).

root@MAASMACHINE:~# tail -f /var/log/cloud-init-output.log
SG_IO: bad/missing sense data, sb[]: 72 05 20 00 00 00 00 10 02 06 00 00 c0 00 00 00 03 02 00 21 80 02 f8 21 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]: 72 05 20 00 00 00 00 10 02 06 00 00 c0 00 00 00 03 02 00 21 80 02 f8 21 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]: 72 05 20 00 00 00 00 10 02 06 00 00 c0 00 00 00 03 02 00 21 80 02 f8 21 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]: 72 05 20 00 00 00 00 10 02 06 00 00 c0 00 00 00 03 02 00 21 80 02 f8 21 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]: 72 05 20 00 00 00 00 10 02 06 00 00 c0 00 00 00 03 02 00 21 80 02 f8 21 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]: 72 05 20 00 00 00 00 10 02 06 00 00 c0 00 00 00 03 02 00 21 80 02 f8 21 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
sdb, sdc, sdd, sde, sdf, sdg, sdh, sdi, sdj, sdk, sdl, sdm, sdn, sdo, sdp, sdq, sdr, sds, sdt, sdu, sdv, sdw, sdx, sdy, sdz to be wiped.
sdb: drive does not support secure erase.
sdb: started zeroing.

Revision history for this message
Joshua McClintock (jmcclintock1) wrote :

Would it be possible to parallelize this?

description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.