Bug 638910 - FormatCreateError: ('format failed: 1', '/dev/sda3')
Summary: FormatCreateError: ('format failed: 1', '/dev/sda3')
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 19
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: anaconda_trace_hash:4378c93d2f991efbd...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-30 10:55 UTC by Frantisek Hanzlik
Modified: 2013-05-06 22:09 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-06 22:09:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Attached traceback automatically from anaconda. (454.22 KB, text/plain)
2010-09-30 10:55 UTC, Frantisek Hanzlik
no flags Details
Attached traceback automatically from anaconda. (468.89 KB, text/plain)
2010-10-30 21:40 UTC, José María
no flags Details
Attached traceback automatically from anaconda. (517.38 KB, text/plain)
2010-11-03 04:37 UTC, Darryl Filazek
no flags Details
Attached traceback automatically from anaconda. (17.38 MB, text/plain)
2011-01-11 20:46 UTC, thexman
no flags Details
F14 x64 error (2.21 MB, application/zip)
2011-01-11 21:52 UTC, thexman
no flags Details
Error when recreating and formatting /dev/md0 as RAID0 (which was previously RAID1) (11.11 MB, application/zip)
2011-01-15 20:14 UTC, thexman
no flags Details
Attached traceback automatically from anaconda. (3.86 MB, text/plain)
2011-01-22 15:19 UTC, Flóki Pálsson
no flags Details
Attached traceback automatically from anaconda. (970.48 KB, text/plain)
2011-01-23 01:47 UTC, Eric Springer
no flags Details
Attached traceback automatically from anaconda. (1.33 MB, text/plain)
2011-01-23 01:51 UTC, Eric Springer
no flags Details
Attached traceback automatically from anaconda. (341.36 KB, text/plain)
2011-01-31 00:39 UTC, balcells
no flags Details
Attached traceback automatically from anaconda. (2.96 MB, text/plain)
2011-02-22 18:59 UTC, Jim Meyering
no flags Details
Attached traceback automatically from anaconda. (2.66 MB, text/plain)
2011-02-25 19:48 UTC, Antonio T. (sagitter)
no flags Details
Attached traceback automatically from anaconda. (1.68 MB, text/plain)
2011-04-21 07:28 UTC, David
no flags Details
Attached traceback automatically from anaconda. (787.12 KB, text/plain)
2011-05-15 21:38 UTC, Brian Brock
no flags Details
Attached traceback automatically from anaconda. (1.33 MB, text/plain)
2011-06-20 20:47 UTC, OsgoodJ
no flags Details
Attached traceback automatically from anaconda. (1.24 MB, text/plain)
2011-09-26 01:56 UTC, Robert Myrland
no flags Details

Description Frantisek Hanzlik 2010-09-30 10:55:09 UTC
The following was filed automatically by anaconda:
anaconda 14.17.4 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/pyanaconda/storage/formats/fs.py", line 372, in doFormat
    raise FormatCreateError("format failed: %s" % ret.rc, self.device)
  File "/usr/lib/python2.7/site-packages/pyanaconda/storage/formats/fs.py", line 937, in doFormat
    FS.doFormat(self, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pyanaconda/storage/formats/fs.py", line 851, in create
    return self.doFormat(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pyanaconda/storage/deviceaction.py", line 290, in execute
    options=self.device.formatArgs)
  File "/usr/lib/python2.7/site-packages/pyanaconda/storage/devicetree.py", line 700, in processActions
    action.execute(intf=self.intf)
  File "/usr/lib/python2.7/site-packages/pyanaconda/storage/__init__.py", line 313, in doIt
    self.devicetree.processActions()
  File "/usr/lib/python2.7/site-packages/pyanaconda/packages.py", line 110, in turnOnFilesystems
    anaconda.storage.doIt()
  File "/usr/lib/python2.7/site-packages/pyanaconda/dispatch.py", line 212, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib/python2.7/site-packages/pyanaconda/dispatch.py", line 131, in gotoNext
    self.moveStep()
  File "/usr/lib/python2.7/site-packages/pyanaconda/gui.py", line 1174, in nextClicked
    self.anaconda.dispatch.gotoNext()
FormatCreateError: ('format failed: 1', '/dev/sda3')

Comment 1 Frantisek Hanzlik 2010-09-30 10:55:18 UTC
Created attachment 450717 [details]
Attached traceback automatically from anaconda.

Comment 2 David Lehman 2010-10-08 20:10:28 UTC
Are you mounting filesystems on the shell on tty2? If so, please don't do that. 

Apparently the filesystems on /dev/sda3 and /dev/sda4 are already mounted at /mnt/m3 and /mnt/m4, respectively. You must not have any devices mounted or otherwise active if you expect anaconda to operate on them in any way.

Comment 3 Frantisek Hanzlik 2010-10-09 03:59:45 UTC
You are right, although I now not remember exactly how things were, mountpoints /mnt/mNUMBER are my stuff, they aren't from anaconda. And likely there was some filesystem mounted (maybe some flash disk, I use it eg for "gdisk" utility, as it isn't on Fedora i386 boot disk. Or there could be more HDDs and I mounted some for other reason, I now not remember).
Thus, sorry for noise with this event.

Comment 4 José María 2010-10-30 21:40:39 UTC
Created attachment 456674 [details]
Attached traceback automatically from anaconda.

Comment 5 Darryl Filazek 2010-11-03 04:37:27 UTC
Created attachment 457355 [details]
Attached traceback automatically from anaconda.

Comment 6 Darryl Filazek 2010-11-03 04:56:02 UTC
Comment on attachment 457355 [details]
Attached traceback automatically from anaconda.

- fault generated when attempting to install FC14 from DVD to iscsi on iomega ix4-200d

Comment 7 thexman 2011-01-11 20:46:52 UTC
Created attachment 472894 [details]
Attached traceback automatically from anaconda.

Comment 8 thexman 2011-01-11 21:52:33 UTC
Created attachment 472903 [details]
F14 x64 error

I am not sure that this is the correct bug report, but anaconda reported to it automatically... Some more information from my side:

I am trying to install F14 DVD and I get this error when trying to create the partitions. The hard drives are new, and I formatted them under windows in order to check for bad sectors - none found. The partition configuration is following:
/dev/sdb1 - ext4 mounted to "/boot", size 500MB
/dev/sdb2 - RAID partition, size 933869
/dev/sdc1 - RAID partition, size 933869
/dev/md0 - RAID device (LVM Group), size 1867712MB
/dev/mapper/vg_i5-lv_root - Logical volume, ext4 mounted to "/", size 1707712MB
/dev/mapper/vg_i5-lv_swap - Logical volume, swap, size 160000MB

Regarding the physical machine:
The motherboard is Asus P7P55D-E LX and the two WG 1TB HDD are attached to the SATA-3 (6Gb) interface. Another Seagate 500GB is attached to normal SATA-2.

Please tell me If you need more information 

The previous attachment is from F14 i686, this one is F14 x64

Comment 9 David Lehman 2011-01-12 17:14:38 UTC
This is the error from the command attempting to create the filesystem:

22:55:40,422 INFO program: Running... mke2fs -t ext4 /dev/mapper/vg_i5-lv_root
<snip>
22:58:54,391 ERR program: mke2fs 1.41.12 (17-May-2010)
22:58:54,392 ERR program: ext2fs_mkdir: Attempt to read block from filesystem resulted in short read while creating root dir


This is a small sample of the errors found throughout the system log:

20:58:44,728 INFO kernel:[ 1763.595440] sd 7:0:0:0: [sdc] Unhandled error code
20:58:44,728 INFO kernel:[ 1763.595442] sd 7:0:0:0: [sdc] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
20:58:44,728 INFO kernel:[ 1763.595445] sd 7:0:0:0: [sdc] CDB: Write(10): 2a 00 31 20 18 00 00 00 08 00
20:58:44,728 ERR kernel:[ 1763.595457] end_request: I/O error, dev sdc, sector 824186880
20:58:44,729 INFO kernel:[ 1763.596174] sd 6:0:0:0: [sdb] Unhandled error code
20:58:44,729 INFO kernel:[ 1763.596176] sd 6:0:0:0: [sdb] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
20:58:44,729 INFO kernel:[ 1763.596178] sd 6:0:0:0: [sdb] CDB: Write(10): 2a 00 31 2f b5 08 00 04 00 00
20:58:44,729 ERR kernel:[ 1763.596183] end_request: I/O error, dev sdb, sector 825210120


This all indicates there is a problem with your disks.

Comment 10 thexman 2011-01-15 20:10:17 UTC
Thank you Dave. I tried several things and still think it is a bug.
1. I installed Windows and successfully formatted the hard drives.
2. I used Ubuntu Live CD and created RAID partition and formatted it with 
mkfs.ext4 -c /dev/md0 
It didn't find any bad sectors. 
3. I started the Fedora installer again and tried to install F14 in the partitions that I created with Ubuntu Desktop CD. Unfortunatelly I /boot must cannot be on RAID0 device, so I changed /dev/md0 to be RAID1. It forces the installer to reformat /dev/md0 (however I didn't touch the physical partitions created with Ubuntu). Again I get the same error. See the attached log 'F14 x64 error 2'. Maybe it is a mke2fs bug?

I manged to workaround the installer by creating all required partition with Ubuntu Desktop CD, so the installer allow me to perform install without formating any of the partitions.

Comment 11 thexman 2011-01-15 20:14:08 UTC
Created attachment 473667 [details]
Error when recreating and formatting /dev/md0 as RAID0 (which was previously RAID1)

Comment 12 David Lehman 2011-01-17 17:58:14 UTC
Same basic failure. The mkfs is failing to create the filesystem:

18:43:17,703 INFO program: Running... mke2fs -t ext4 /dev/md0
<snip>
18:45:54,459 ERR program: mke2fs 1.41.12 (17-May-2010)
18:45:54,459 ERR program: ext2fs_mkdir: Attempt to read block from filesystem resulted in short read while creating root dir


Corresponding errors in syslog:

16:45:56,552 ERR kernel:[  332.544241] end_request: I/O error, dev sdc, sector 1953521640
16:45:56,552 ERR kernel:[  332.544245] end_request: I/O error, dev sdc, sector 1953521640
16:45:56,552 WARNING kernel:[  332.544248] md: super_written gets error=-5, uptodate=0
16:45:56,552 INFO kernel:[  332.544310] sd 7:0:0:0: [sdc] Unhandled error code
16:45:56,552 INFO kernel:[  332.544312] sd 7:0:0:0: [sdc] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
16:45:56,552 INFO kernel:[  332.544315] sd 7:0:0:0: [sdc] CDB: Write(10): 2a 00 74 70 5f f0 00 00 02 00
16:45:56,552 ERR kernel:[  332.544321] end_request: I/O error, dev sdc, sector 1953521648
16:45:56,552 ERR kernel:[  332.544326] end_request: I/O error, dev sdc, sector 1953521648
16:45:56,552 WARNING kernel:[  332.544329] md: super_written gets error=-5, uptodate=0
16:45:56,556 ERR kernel:[  332.547399] end_request: I/O error, dev sdc, sector 0

Comment 13 Flóki Pálsson 2011-01-22 15:19:43 UTC
Created attachment 474738 [details]
Attached traceback automatically from anaconda.

Comment 14 Eric Springer 2011-01-23 01:47:41 UTC
Created attachment 474773 [details]
Attached traceback automatically from anaconda.

Comment 15 Eric Springer 2011-01-23 01:51:31 UTC
Created attachment 474774 [details]
Attached traceback automatically from anaconda.

Comment 16 Eric Springer 2011-01-23 01:56:13 UTC
Maybe it's a problem with mkfs?

[root@2aul00132 ~]# mkfs.ext4 /dev/sda3
mke2fs 1.41.14 (22-Dec-2010)
/dev/sda3 is mounted; will not make a filesystem here!

[root@2aul00132 ~]# mkfs.ext4 /dev/sda3
mke2fs 1.41.14 (22-Dec-2010)
/dev/sda3 is mounted; will not make a filesystem here!

Comment 17 Martin Gracik 2011-01-24 09:36:29 UTC
That's normal with mkfs. You cannot create a filesystem on mounted partitions. You have to unmount them first.

Comment 18 balcells 2011-01-31 00:39:42 UTC
Created attachment 476102 [details]
Attached traceback automatically from anaconda.

Comment 19 Jim Meyering 2011-02-22 18:59:01 UTC
Created attachment 480206 [details]
Attached traceback automatically from anaconda.

Comment 20 Antonio T. (sagitter) 2011-02-25 19:48:10 UTC
Created attachment 481069 [details]
Attached traceback automatically from anaconda.

Comment 21 David 2011-04-21 07:28:17 UTC
Created attachment 493725 [details]
Attached traceback automatically from anaconda.

Comment 22 Brian Brock 2011-05-15 21:38:10 UTC
Created attachment 499061 [details]
Attached traceback automatically from anaconda.

Comment 23 OsgoodJ 2011-06-20 20:47:55 UTC
Created attachment 505695 [details]
Attached traceback automatically from anaconda.

Comment 24 Robert Myrland 2011-09-26 01:56:14 UTC
Created attachment 524814 [details]
Attached traceback automatically from anaconda.

Comment 25 Nico de Wet 2012-01-12 08:42:51 UTC
In case this helps the developer or anyone else, the workaround to this, when trying to install on a new SSD, was to format the drive with ext4 and then the restart the Fedora install process. 

As a worst-case scenario fix, the dialog box could suggest the above to the user.

In terms of a comment: 

The severity of this bug is far too low, this bug would be a showstopper to most linux newbies and doesn't inspire confidence.

Comment 26 Jesse Keating 2012-07-19 23:38:14 UTC
are any of the reporters still having issues with F17?

Comment 27 Fedora End Of Life 2013-04-03 18:26:48 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19


Note You need to log in before you can comment on or make changes to this bug.