[Disk tests/storage_device_sdx] Test got fail.
Bug #1217268 reported by
Gabriel Zhi Chen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox |
Fix Released
|
High
|
Unassigned |
Bug Description
When I run test case [Disk tests/storage_
Please refer to screenshots and system logs in attachment.
Related branches
lp://staging/~bladernr/checkbox/1217268
- Zygmunt Krynicki (community): Approve
-
Diff: 54 lines (+26/-5)2 files modifiedcheckbox-old/debian/changelog (+4/-1)
checkbox-old/scripts/storage_test (+22/-4)
Changed in checkbox: | |
status: | In Progress → Fix Committed |
Changed in checkbox: | |
status: | Triaged → Fix Committed |
Changed in checkbox: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Wow, this machine's partition map is very strange!
Look at the mount information, I'm including only the relevant ones (all in-memory filesystems removed)
/dev/disk/ by-uuid/ c6e02c0a- 1dd0-4570- 868c-edaa6f7297 30 / ext4 rw,relatime, errors= remount- ro,data= ordered 0 0 data=ordered 0 0 fmask=0022, dmask=0022, codepage= cp437,iocharset =iso8859- 1,shortname= mixed,errors= remount- ro 0 0
/dev/sda5 /home ext4 rw,relatime,
/dev/sda1 /boot/efi vfat rw,relatime,
The uuid for the root partition maps to /dev/sda3, which is a 20-GB partition.
Gabriel, could you please run the "df -h" command and post the output here? this is to see how much free space /dev/sda3 actually has.
This would let us know what happens when we try to test /dev/sda.
For /dev/sdb, notice from the screenshot that it didn't find where it's mounted (because it's not, per the mount map I looked at). Thus it puts the "scratch disk" at "", meaning that bonnie++ will again use the root directory (look at the script, if $mount_point is empty, bonnie++ will write to /tmp/scratchdir).
So two things to do for this bug:
1- Improve the checking so if a disk is not mounted, we either mount it (may be dangerous!) or simply fail to run the test (rather than running on a different disk and producing bogus results).
2- Once Gabriel sends us free space information, we can determine why it's failing on sda (we need to look at sda3 which is fairly small, it may be legitimately filling up).